!function(t){var e={};function i(r){var n;return(e[r]||(n=e[r]={i:r,l:!1,exports:{}},t[r].call(n.exports,n,n.exports,i),n.l=!0,n)).exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/bundle/",i(i.s=414)}([function(t,e,i){"use strict";i.r(e),function(t){function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var t,e={},i=Object.prototype,n=i.hasOwnProperty,o=Object.defineProperty||function(t,e,i){t[e]=i.value},a=(M="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",h=M.asyncIterator||"@@asyncIterator",u=M.toStringTag||"@@toStringTag";function f(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,i){return t[e]=i}}function l(e,i,r,n){var s,a,h,u;i=i&&i.prototype instanceof v?i:v,i=Object.create(i.prototype),n=new R(n||[]);return o(i,"_invoke",{value:(s=e,a=r,h=n,u=c,function(e,i){if(u===m)throw new Error("Generator is already running");if(u===g){if("throw"===e)throw i;return{value:t,done:!0}}for(h.method=e,h.arg=i;;){var r=h.delegate;if(r&&(r=function e(i,r){var n=r.method,o=i.iterator[n];return o===t?(r.delegate=null,"throw"===n&&i.iterator.return&&(r.method="return",r.arg=t,e(i,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b):"throw"===(n=d(o,i.iterator,r.arg)).type?(r.method="throw",r.arg=n.arg,r.delegate=null,b):(o=n.arg)?o.done?(r[i.resultName]=o.value,r.next=i.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}(r,h))){if(r===b)continue;return r}if("next"===h.method)h.sent=h._sent=h.arg;else if("throw"===h.method){if(u===c)throw u=g,h.arg;h.dispatchException(h.arg)}else"return"===h.method&&h.abrupt("return",h.arg);if(u=m,"normal"===(r=d(s,a,h)).type){if(u=h.done?g:p,r.arg===b)continue;return{value:r.arg,done:h.done}}"throw"===r.type&&(u=g,h.method="throw",h.arg=r.arg)}})}),i}function d(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var c="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function y(){}function w(){}var M,_,S=((_=(_=(f(M={},a,(function(){return this})),Object.getPrototypeOf))&&_(_(T([]))))&&_!==i&&n.call(_,a)&&(M=_),w.prototype=v.prototype=Object.create(M));function x(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){var i;o(this,"_invoke",{value:function(r,o){function a(){return new e((function(i,a){!function i(r,o,a,h){var u;if("throw"!==(r=d(t[r],t,o)).type)return(o=(u=r.arg).value)&&"object"==s(o)&&n.call(o,"__await")?e.resolve(o.__await).then((function(t){i("next",t,a,h)}),(function(t){i("throw",t,a,h)})):e.resolve(o).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,h)}));h(r.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(e){if(e||""===e){var i,r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return i=-1,(r=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r}).next=r}throw new TypeError(s(e)+" is not iterable")}return o(S,"constructor",{value:y.prototype=w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=f(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){return!!(t="function"==typeof t&&t.constructor)&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},x(A.prototype),f(A.prototype,h,(function(){return this})),e.AsyncIterator=A,e.async=function(t,i,r,n,o){void 0===o&&(o=Promise);var s=new A(l(t,i,r,n),o);return e.isGeneratorFunction(i)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(S),f(S,u,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e,i=Object(t),r=[];for(e in i)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in i)return t.value=e,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function r(r,n){return a.type="throw",a.arg=e,i.next=r,n&&(i.method="next",i.arg=t),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var h=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(h&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(h){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var s=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),E(i),b}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i,r,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(i=n.completion).type&&(r=i.arg,E(n)),r}throw new Error("illegal catch attempt")},delegateYield:function(e,i,r){return this.delegate={iterator:T(e),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function n(t,e,i,r,n,o,s){try{var a=t[o](s),h=a.value}catch(t){return void i(t)}a.done?e(h):Promise.resolve(h).then(r,n)}function o(t){return function(){var e=this,i=arguments;return new Promise((function(r,o){var s=t.apply(e,i);function a(t){n(s,r,o,a,h,"next",t)}function h(t){n(s,r,o,a,h,"throw",t)}a(void 0)}))}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.d(e,"setUserDataCookie",(function(){return K})),i.d(e,"getCookie",(function(){return Y})),i.d(e,"getUserPreviewData",(function(){return G})),i.d(e,"ajaxCall",(function(){return f})),i.d(e,"ajaxUpload",(function(){return l})),i.d(e,"top",(function(){return d})),i.d(e,"currentDate",(function(){return c})),i.d(e,"dateDifference",(function(){return p})),i.d(e,"reversDate",(function(){return m})),i.d(e,"showModal",(function(){return g})),i.d(e,"closeModal",(function(){return b})),i.d(e,"preLoaderFunc",(function(){return v})),i.d(e,"rulesMaker",(function(){return y})),i.d(e,"ellipser",(function(){return w})),i.d(e,"getParameters",(function(){return M})),i.d(e,"getToken",(function(){return _})),i.d(e,"amountFormat",(function(){return S})),i.d(e,"lowerCaseText",(function(){return x})),i.d(e,"messageAlert",(function(){return A})),i.d(e,"updateFocus",(function(){return k})),i.d(e,"exceptionPage",(function(){return E})),i.d(e,"papreLoaderFunc",(function(){return R})),i.d(e,"reqEncrypter",(function(){return h})),i.d(e,"capitalizeText",(function(){return T})),i.d(e,"numberToWords",(function(){return C})),i.d(e,"checkexistinguser",(function(){return I})),i.d(e,"RTOCheck",(function(){return P})),i.d(e,"upperCaseText",(function(){return j})),i.d(e,"getFlowSlug",(function(){return L})),i.d(e,"OtpParams",(function(){return N})),i.d(e,"renewalLoaderFunc",(function(){return O})),i.d(e,"zoopLoaderFunc",(function(){return z})),i.d(e,"paymentGateway",(function(){return F})),i.d(e,"ashaInsLoaderFunc",(function(){return D})),i.d(e,"reqDecrypter",(function(){return u})),i.d(e,"abhaLoader",(function(){return Z})),i.d(e,"travelInsLoaderFunc",(function(){return q})),i.d(e,"existingUserPolicyCheck",(function(){return H})),i.d(e,"RenewalExisitingCheck",(function(){return W})),i.d(e,"renewalproductTypecheck",(function(){return Q})),i.d(e,"ashaRenewalExisitingCheck",(function(){return X})),i.d(e,"cyberpreLoaderFunc",(function(){return U}));var a=i(114),h=function(t){var e=a.val("75468354687994455236238415665442"),i=a.val("58467294476886534534251984514685");return{reqData:a.paymentEncrypt(JSON.stringify(t),e,i)}},u=function(t,e){var i=a.val("75468354687994455236238415665442"),r=a.val("58467294476886534534251984514685"),n=s(t);return e="string"==n&&0==e.includes("trace")?JSON.parse(a.paymentDecrypt(t,i,r)):"string"==n?JSON.parse(t):t},f=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"GET",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=3<arguments.length?arguments[3]:void 0,o=h(r);t.ajax({url:e,method:i,data:o,headers:{action:r.action||"",Authorization:sessionStorage.getItem("apiAuthToken")?"Bearer ".concat(sessionStorage.getItem("apiAuthToken")):""},success:function(t){try{var i=u(t,e);"function"==typeof n&&n(i)}catch(t){console.log("🚀 ~ file: utils.js:35 ~ ajaxCall ~ error:",t)}},error:function(t){t.responseJSON&&!0===t.responseJSON.reload?window.location.reload():"function"==typeof n&&n({status:"error",data:{}})}})},l=function(e,i,r){t.ajax({url:e,method:"POST",data:i,processData:!1,contentType:!1,cache:!1,headers:{Authorization:sessionStorage.getItem("apiAuthToken")?"Bearer ".concat(sessionStorage.getItem("apiAuthToken")):""},success:function(t){try{var i=u(t,e);"function"==typeof r&&r(i)}catch(t){console.log("🚀 ~ file: utils.js:35 ~ ajaxCall ~ error:",t)}},error:function(t){console.warn(t),t.responseJSON&&!0===t.responseJSON.reload?window.location.reload():"function"==typeof r&&r({status:"error",data:{}})}})},d=function(){t("html").animate({scrollTop:0},"slow")},c=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"/",e=(r=new Date).getFullYear(),i=r.getMonth()+1,r=r.getDate();return 1==i.toString().length&&(i="0"+i),(r=1==r.toString().length?"0"+r:r)+t+i+t+e},p=function(t,e){return t=new Date(t),e=new Date(e),Math.ceil((e-t)/864e5)},m=function(t,e,i){return""!=t&&null!=t?(t=t.split(e),"".concat(t[2]).concat(i).concat(t[1]).concat(i).concat(t[0])):""},g=function(e){t(e).show(),t("".concat(e," .modal")).toggleClass("is-visible")},b=function(e){t("".concat(e," .modal")).toggleClass("is-visible"),t("body").toggleClass("noneed_Overflow")},v=function(e){"s"==e?t("#caroLader").show():"h"==e&&t("#caroLader").hide()},y=function(e,i){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:20,n={required:!0},o=20,s="text-and-number-only";switch(i){case"A":n.passport=!0,o=8;break;case"B":n.voterID=!0,o=10;break;case"C":n.pan=!0,o=10;break;case"D":n.licence=!0,o=15;break;case"E":n.aadhar=!0,s="number-only",r=o=12;break;case"F":n.NREGAJobCard=!0;break;case"G":n.NPRLetter=!0;break;case"H":n.EKYCAuth=!0;break;case"I":n.aadhar=!0,s="number-only",r=o=12;break;case"J":n.CKYCAuth=!0,o=14;break;case"Mobile":n.mobile=!0,o=10,s="number-only";break;case"Landline":n.Landline=!0,s="number-only",o=10;break;case"Ration":n.Ration=!0,o=12;break;case"regNo":n.regNumber=!0,o=20;break;case"engineNo":n.enginNumber=!0,n.minlength=5,n.maxlength=17,o=20;break;case"chassisNo":n.chasisNumber=!0,n.minlength=5,n.maxlength=17,o=20;case"Z":n.CKYCIdentifier=!0;break;default:n.pan=!0,o=10}e&&(t(e).rules("remove"),t(e).rules("add",n),"E"==i||"I"==i?(t(e).attr("maxlength",r),t(e).attr("minlength",r)):(t(e).attr("maxlength",o),t(e).removeAttr("minlength")),t(e).attr("data-type",s))},w=function(t){return 15<(t=t.replace(" Number","")).length?t.substring(0,10)+"...":t},M=function(){var t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())},_=function(){var t=new URLSearchParams(window.location.search);return(null!=(t=Object.fromEntries(t.entries())).proposal_id?t.proposal_id:"").replace("#","")},S=function(t){return null!=t?parseFloat(t).toLocaleString("en-IN"):""},x=function(t){return t&&t.toLowerCase()},A=function(e,i,r){t(e).removeClass("alert-danger"),t(e).removeClass("alert-success"),"error"==i?t(e).addClass("alert-danger"):t(e).addClass("alert-success"),t(e).text(r),t(e).slideDown(),setTimeout((function(){t(e).slideUp(),t(e).delay(200).text("")}),8e3)},k=function(){t(".form-box").each((function(){""==t(this).val()?t(this).parent().removeClass("focused"):t(this).parent().addClass("focused")})),t(".customSelect").each((function(){""==t(this).val()||null==t(this).val()?t(this).parent().removeClass("focused"):t(this).parent().addClass("focused")}))},E=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=1<arguments.length?arguments[1]:void 0,i=2<arguments.length?arguments[2]:void 0,r=window.location.pathname.split("/");t="car"==t?"car-exception":"bike"==t?"bike-exception":"aid"==t?"aid-exception":"pa"==t?"personal-accident-exception":"gccv"==t?"gccv-exception":"pccv"==t?"pccv-exception":"cor"==t?"car-renewal-exception":"tor"==t?"bike-renewal-exception":"gor"==t?"gccv-renewal-exception":"por"==t?"pccv-renewal-exception":"miscdor"==t?"miscd-renewal-exception":"paor"==t?"pa-renewal-exception":"asha"==t?"asha-insurance-exception":"CRCR"==t?"critic-renewal-exception":"ti"==t?"travel-insurance-exception":"HCR"==t?"hospital-renewal-exception":"cyber"==t?"cyber-insurance-exception":"exception";localStorage.setItem(e,i),""==r[1]?window.location.replace("".concat(window.location.origin,"/").concat(t)):window.location.replace("".concat(window.location.origin,"/").concat(r[1],"/").concat(t))},R=function(e){"s"==e?t("#papreloader").removeClass("visuallyhidden"):"h"==e&&t("#papreloader").addClass("visuallyhidden")},T=function(t){return(t=1<arguments.length&&void 0!==arguments[1]&&!arguments[1]?t:t.toLowerCase()).replace(/(\b)([a-zA-Z])/g,(function(t){return t.toUpperCase()}))},C=function(t){var e=["zero","one","two","three","four","five","six","seven","eight","nine"],i=["ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],r=["twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],n=["","thousand","million","billion","trillion"];if((t=(t=t.toString()).replace(/[\, ]/g,""))!=parseFloat(t))return"not a number";var o=t.indexOf(".");if(15<(o=-1==o?t.length:o))return"too big";for(var s=t.split(""),a="",h=0,u=0;u<o;u++)(o-u)%3==2?"1"==s[u]?(a+=i[Number(s[u+1])]+" ",u++,h=1):0!=s[u]&&(a+=r[s[u]-2]+" ",h=1):0!=s[u]&&(a+=e[s[u]]+" ",(o-u)%3==0&&(a+="hundred "),h=1),(o-u)%3==1&&(h&&(a+=n[(o-u-1)/3]+" "),h=0);if(o!=t.length){var f=t.length;for(a+="point ",u=o+1;u<f;u++)a+=e[s[u]]+" "}return(a=a.replace(/\number+/g," ")).trim()+"."},I=function(e){e={vehRegNo:e,source:null!=(i=M()).source?i.source:"SGI Website",utm_source:null!=i.utm_source?i.utm_source:"SGI Website",utm_medium:null!=i.utm_medium?i.utm_medium:"organic",utm_campaign:null!=i.utm_campaign?i.utm_campaign:"",utm_term:null!=i.utm_term?i.utm_term:null!=i.utm_keyword?i.utm_keyword:"",utm_content:null!=i.utm_content?i.utm_content:"",gclid:null!=i.gclid?i.gclid:"",utm_url:window.location.href};var i={type:"SGIProcess",action:"existingUserCheck",data:JSON.stringify(e)};f("/ajax/commonCall","POST",i,(function(e){if(("success"==e.status||"Success"==e.status)&&200===e.data.code)return"Yes"==(e=e.data.data).ExistingUser&&"No"==e.RenewalNoticeGenerated?(t(".gisendotp").attr("disabled","disabled"),window.addEventListener("keydown",B),t("#existingPolicyDownload").addClass("is-visible"),!1):"Yes"==e.ExistingUser&&"Yes"==e.RenewalNoticeGenerated&&e.policyEndDateCount<=90?(window.addEventListener("keydown",B),t(".gisendotp").attr("disabled","disabled"),t("#existingPolicy90Days").addClass("is-visible"),!1):void 0}))};function B(t){return 13===t.keyCode||13===t.which||9==t.keyCode?(t.preventDefault(),!1):void 0}var P=function(t,e){return t.toUpperCase()==e.toUpperCase()},j=function(t){return t&&t.toUpperCase()},L=function(){var t=window.location.pathname.split("/");return t&&0<t.length?"goods-carrying-vehicle-insurance-mysgi"==t[1]?"".concat("goods-carrying-vehicle-insurance","/"):"passenger-carrying-vehicle-insurance-mysgi"==t[1]?"".concat("passenger-carrying-vehicle-insurance","/"):"personal-accident-insurance-mysgi"==t[1]?"".concat("personal-accident-insurance","/"):"".concat(t[1],"/"):""},N=function(){var e=(delete(i=M()).otperr,window.location.href.split("?")[0]),i=JSON.parse(JSON.stringify(i)),r=(i=Object.entries(i),[]);t(i).each((function(t,e){e[0],e[1],e=e.join("="),r.push(e)})),window.location.href=e+"?"+r.join("&")},O=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";"s"==e?("ckyc"==i?t("#loader-content").text("Fetching Your CKYC details..."):"cersaiForm"==i?t("#loader-content").text("Uploading the document..."):"payment"==i?t("#loader-content").text("Processing..."):"premiumBreakup"==i?t("#loader-content").text("Fetching Your Premium Breakup..."):"policyBreakup"==i?t("#loader-content").text("Fetching Your Policy Breakup..."):"IDV"==i&&t("#loader-content").text("Calculating Your IDV..."),t("#renewalLoader").show()):"h"==e&&(t("#renewalLoader").hide(),t("#loader-content").text("Fetching Details..."))},D=function(e){"s"==e?t("#ashaInsuranceLoader").show():"h"==e&&(t("#ashaInsuranceLoader").hide(),t("#loaderContent").text("Fetching Details..."))},q=function(e){"s"==e?t("#travelInsuranceLoader").show():"h"==e&&(t("#travelInsuranceLoader").hide(),t("#loaderContent").text("Fetching Details..."))},z=function(e){"s"==e?t("#zoopLoader").show():"h"==e&&t("#zoopLoader").hide()},U=function(e){"s"==e?t("#cyberInsuranceLoader").show():"h"==e&&t("#cyberInsuranceLoader").hide()},F=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},r={type:"SgiMaster",action:"paymentMethods",data:JSON.stringify({token:""})};f("/ajax/commonCall","POST",r,(function(r){1<(r=r.data&&r.data.data&&r.data.data.result).length?e(r):0<r.length?i(r):E(t,"paymentGateway","Active payment gateway not found")}))},Z=function(e){"s"==e?t("#abhaLoader").show():"h"==e&&t("#abhaLoader").hide()},H=function(e){e={mobile:e.mobile_no,email:e.email_id},e={type:"TIProcess",action:"existingUserPolicyCheck",data:JSON.stringify({inpData:e})},f("/ajax/commonCall","POST",e,(function(e){if(("success"==e.status||"Success"==e.status)&&200===e.data.code&&(console.log(e),(e=e.data.data)&&e.policy_no&&e.policy_url))return t(".intimate_claim__step2_popup").attr("disabled","disabled"),t(".downloadPolicyTravel").attr("href",e.policy_url),window.addEventListener("keydown",B),t("#existingTravelPolicyDownload").addClass("is-visible"),!1}))},W=function(t,e){t={type:"CORProcess",action:"CheckRenewalExistingCheck",data:JSON.stringify({pol_num:t})},f("/ajax/commonCall","POST",t,(function(t){if("200"==t.data.code&&"success"==t.data.status)return(t=t.data.data).policy_url?e(t.policy_url):e()}))};function K(t){return $.apply(this,arguments)}function $(){return($=o(r().mark((function t(e){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("🚀 ~ setUserDataCookie ~ userPreviewData:",e),t.prev=1,i=new Date(Date.now()+864e5).toUTCString(),e&&(document.cookie="userToken=".concat(e,"; expires=").concat(i,"; path=/;")),t.next=10;break;case 6:throw t.prev=6,t.t0=t.catch(1),console.error("Error setting session:",t.t0),t.t0;case 10:case"end":return t.stop()}}),t,null,[[1,6]])})))).apply(this,arguments)}function Y(t){return V.apply(this,arguments)}function V(){return(V=o(r().mark((function t(e){var i,n,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=document.cookie.split(";"),n=0;case 2:if(n<i.length){if(o=i[n].split("="),e==o[0].trim())return console.log(">",o[1]),t.abrupt("return",o[1]);t.next=7}else t.next=10;break;case 7:n++,t.next=2;break;case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function G(){return J.apply(this,arguments)}function J(){return(J=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e={},t.next=4,Y("userToken");case 4:return e.userToken=t.sent,t.abrupt("return",e);case 8:t.prev=8,t.t0=t.catch(0),console.error("Error setting session:",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}var X=function(t,e){t={type:"AORProcess",action:"CheckRenewalExistingCheck",data:JSON.stringify({pol_num:t})},f("/ajax/commonCall","POST",t,(function(t){if("200"==t.data.code&&"success"==t.data.status)return(t=t.data.data).policy_url?e(t.policy_url):e()}))},Q=function(t,e){t={type:"CORProcess",action:"quickRenewalPrevPolDetails",data:JSON.stringify({policy_number:t})},O("s"),f("/ajax/commonCall","POST",t,(function(t){if(O("h"),"success"==t.status&&200===t.data.code)return(t=t.data.data).vehicle_type?e(t.vehicle_type):e()}))}}.call(this,i(8))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var i;e&&(t.super_=e,(i=function(){}).prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t)}},function(t,e,i){var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,i){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=i(115),n=i(116),o=i(37);function s(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=h.prototype:(t=null===t?new h(e):t).length=e,t}function h(t,e,i){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(t,e,i);if("number"!=typeof t)return u(this,t,e,i);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}function u(t,e,i,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var n=t,s=e,u=i;if(s.byteLength,u<0||s.byteLength<u)throw new RangeError("'offset' is out of bounds");if(s.byteLength<u+(r||0))throw new RangeError("'length' is out of bounds");return s=void 0===u&&void 0===r?new Uint8Array(s):void 0===r?new Uint8Array(s,u):new Uint8Array(s,u,r),h.TYPED_ARRAY_SUPPORT?(n=s).__proto__=h.prototype:n=d(n,s),n}if("string"!=typeof e){if(u=t,r=e,h.isBuffer(r))return 0!==(u=a(u,s=0|c(r.length))).length&&r.copy(u,0,0,s),u;if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||function(t){return t!=t}(r.length)?a(u,0):d(u,r);if("Buffer"===r.type&&o(r.data))return d(u,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}if(n=t,r=e,t=i,h.isEncoding(t="string"==typeof t&&""!==t?t:"utf8"))return(r=(n=a(n,e=0|p(r,t))).write(r,t))!==e?n.slice(0,r):n;throw new TypeError('"encoding" must be a valid string encoding')}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(f(e),t=a(t,e<0?0:0|c(e)),!h.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function d(t,e){var i=e.length<0?0:0|c(e.length);t=a(t,i);for(var r=0;r<i;r+=1)t[r]=255&e[r];return t}function c(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(h.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t:t).length;if(0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return B(t).length;default:if(r)return I(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,i){var n,o=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var s=e,a=i,h=this.length;(!a||a<0||h<a)&&(a=h);for(var u="",f=s=!s||s<0?0:s;f<a;++f)u+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(this[f]);return u;case"utf8":case"utf-8":return M(this,e,i);case"ascii":h=e;var l=i,d="";l=Math.min(this.length,l);for(var c=h;c<l;++c)d+=String.fromCharCode(127&this[c]);return d;case"latin1":case"binary":s=e;var p=i,m="";p=Math.min(this.length,p);for(var g=s;g<p;++g)m+=String.fromCharCode(this[g]);return m;case"base64":return b=this,n=i,0===(v=e)&&n===b.length?r.fromByteArray(b):r.fromByteArray(b.slice(v,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var b=e,v=i,y=this.slice(b,v),w="",_=0;_<y.length;_+=2)w+=String.fromCharCode(y[_]+256*y[_+1]);return w;default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function b(t,e,i,r,n){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):2147483647<i?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,(i=(i=isNaN(i)?n?0:t.length-1:i)<0?t.length+i:i)>=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=h.from(e,r)),h.isBuffer(e))return 0===e.length?-1:v(t,e,i,r,n);if("number"==typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):v(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function v(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f<s;f++)if(h(t,f)===h(e,-1===u?0:f-u)){if(f-(u=-1===u?f:u)+1===a)return u*o}else-1!==u&&(f-=f-u),u=-1;else for(f=i=s<i+a?s-a:i;0<=f;f--){for(var l=!0,d=0;d<a;d++)if(h(t,f+d)!==h(e,d)){l=!1;break}if(l)return f}return-1}function y(t,e,i,r){return P(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,r)}function w(t,e,i,r){return P(function(t,e){for(var i,r,n=[],o=0;o<t.length&&!((e-=2)<0);++o)r=(i=t.charCodeAt(o))>>8,n.push(i%256),n.push(r);return n}(e,t.length-i),t,i,r)}function M(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var o,s,a,h,u=t[n],f=null,l=239<u?4:223<u?3:191<u?2:1;if(n+l<=i)switch(l){case 1:u<128&&(f=u);break;case 2:128==(192&(o=t[n+1]))&&127<(h=(31&u)<<6|63&o)&&(f=h);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&2047<(h=(15&u)<<12|(63&o)<<6|63&s)&&(h<55296||57343<h)&&(f=h);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(h=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)&&h<1114112&&(f=h)}null===f?(f=65533,l=1):65535<f&&(r.push((f-=65536)>>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}var d=r,c=d.length;if(c<=_)return String.fromCharCode.apply(String,d);for(var p="",m=0;m<c;)p+=String.fromCharCode.apply(String,d.slice(m,m+=_));return p}e.Buffer=h,e.SlowBuffer=function(t){return+t!=t&&(t=0),h.alloc(+t)},e.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,i){return u(null,t,e,i)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol)&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}),h.alloc=function(t,e,i){return r=null,e=e,i=i,f(t=t),t<=0||void 0===e?a(r,t):"string"==typeof i?a(r,t).fill(e,i):a(r,t).fill(e);var r},h.allocUnsafe=function(t){return l(null,t)},h.allocUnsafeSlow=function(t){return l(null,t)},h.isBuffer=function(t){return!(null==t||!t._isBuffer)},h.compare=function(t,e){if(!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);n<o;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:r<i?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===e)for(n=e=0;n<t.length;++n)e+=t[n].length;for(var i=h.allocUnsafe(e),r=0,n=0;n<t.length;++n){var s=t[n];if(!h.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},h.byteLength=p,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?M(this,0,t):m.apply(this,arguments)},h.prototype.equals=function(t){if(h.isBuffer(t))return this===t||0===h.compare(this,t);throw new TypeError("Argument must be a Buffer")},h.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i)&&(t+=" ... "),"<Buffer "+t+">"},h.prototype.compare=function(t,e,i,r,n){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,n),f=t.slice(e,i),l=0;l<a;++l)if(u[l]!==f[l]){o=u[l],s=f[l];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},h.prototype.indexOf=function(t,e,i){return b(this,t,e,i,!0)},h.prototype.lastIndexOf=function(t,e,i){return b(this,t,e,i,!1)},h.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||n<i)&&(i=n),0<t.length&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h=!1;;)switch(r){case"hex":var u=t,f=e,l=i,d=(f=Number(f)||0,this.length-f);if((!l||d<(l=Number(l)))&&(l=d),(d=u.length)%2!=0)throw new TypeError("Invalid hex string");d/2<l&&(l=d/2);for(var c=0;c<l;++c){var p=parseInt(u.substr(2*c,2),16);if(isNaN(p))return c;this[f+c]=p}return c;case"utf8":case"utf-8":return d=e,a=i,P(I(t,(s=this).length-d),s,d,a);case"ascii":return y(this,t,e,i);case"latin1":case"binary":return y(this,t,e,i);case"base64":return s=this,a=e,o=i,P(B(t),s,a,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,t,e,i);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function S(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(i<t+e)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,i,r,n,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<e||e<o)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function A(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n<o;++n)t[i+n]=(e&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function k(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n<o;++n)t[i+n]=e>>>8*(r?n:3-n)&255}function E(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function R(t,e,i,r,o){return o||E(t,0,i,4),n.write(t,e,i,r,23,4),i+4}function T(t,e,i,r,o){return o||E(t,0,i,8),n.write(t,e,i,r,52,8),i+8}h.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),e<t&&(e=t),h.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=h.prototype;else for(var r=e-t,n=new h(r,void 0),o=0;o<r;++o)n[o]=this[o+t];return n},h.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||S(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return r},h.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||S(t,e,this.length);for(var r=this[t+--e],n=1;0<e&&(n*=256);)r+=this[t+--e]*n;return r},h.prototype.readUInt8=function(t,e){return e||S(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||S(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||S(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||S(t,e,this.length);for(var r=this[t],n=1,o=0;++o<e&&(n*=256);)r+=this[t+o]*n;return(n*=128)<=r&&(r-=Math.pow(2,8*e)),r},h.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||S(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0<r&&(n*=256);)o+=this[t+--r]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){return e||S(t,2,this.length),32768&(e=this[t]|this[t+1]<<8)?4294901760|e:e},h.prototype.readInt16BE=function(t,e){return e||S(t,2,this.length),32768&(e=this[t+1]|this[t]<<8)?4294901760|e:e},h.prototype.readInt32LE=function(t,e){return e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||S(t,4,this.length),n.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||S(t,4,this.length),n.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||S(t,8,this.length),n.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||S(t,8,this.length),n.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||x(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o<i&&(n*=256);)this[e+o]=t/n&255;return e+i},h.prototype.writeUIntBE=function(t,e,i,r){t=+t,e|=0,i|=0,r||x(this,t,e,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[e+n]=255&t;0<=--n&&(o*=256);)this[e+n]=t/o&255;return e+i},h.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):k(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||x(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n<i&&(o*=256);)t<0&&0===s&&0!==this[e+n-1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},h.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||x(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},h.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},h.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,i){return R(this,t,e,!0,i)},h.prototype.writeFloatBE=function(t,e,i){return R(this,t,e,!1,i)},h.prototype.writeDoubleLE=function(t,e,i){return T(this,t,e,!0,i)},h.prototype.writeDoubleBE=function(t,e,i){return T(this,t,e,!1,i)},h.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0<r&&r<i?i:r)===i)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e<r-i?t.length-e+i:r)-i;if(this===t&&i<e&&e<r)for(n=o-1;0<=n;--n)t[n+e]=this[n+i];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},h.prototype.fill=function(t,e,i,r){if("string"==typeof t){var n;if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length&&(n=t.charCodeAt(0))<256&&(t=n),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(!(i<=e))if(e>>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a<i;++a)this[a]=t;else for(var o=h.isBuffer(t)?t:I(new h(t,r).toString()),s=o.length,a=0;a<i-e;++a)this[a+e]=o[a%s];return this};var C=/[^+\/0-9A-Za-z-_]/g;function I(t,e){e=e||1/0;for(var i,r=t.length,n=null,o=[],s=0;s<r;++s){if(55295<(i=t.charCodeAt(s))&&i<57344){if(!n){if(56319<i){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(e-=3)&&o.push(239,191,189);continue}n=i;continue}if(i<56320){-1<(e-=3)&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,i<128){if(--e<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function B(t){return r.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}).call(this,i(5))},function(t,e){var i,r;t=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===n||!i)&&setTimeout)return(i=setTimeout)(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}var a,h=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?h=a.concat(h):f=-1,h.length)&&d()}function d(){if(!u){for(var t=s(l),e=(u=!0,h.length);e;){for(a=h,h=[];++f<e;)a&&a[f].run();f=-1,e=h.length}a=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function c(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new c(t,e)),1!==h.length||u||s(d)},c.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){(t.exports=function(t,e){if(!t)throw new Error(e||"Assertion failed")}).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(12);e=i(6),i=i(95);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){for(var r=new Array(Math.max(t.bitLength(),i)+1),n=0;n<r.length;n+=1)r[n]=0;var o=1<<e+1,s=t.clone();for(n=0;n<r.length;n++){var a,h=s.andln(o-1);s.isOdd()?s.isubn(a=(o>>1)-1<h?(o>>1)-h:h):a=0,r[n]=a,s.iushrn(1)}return r},r.getJSF=function(t,e){for(var i,r=[[],[]],n=(t=t.clone(),e=e.clone(),0),o=0;0<t.cmpn(-n)||0<e.cmpn(-o);){var s,a=t.andln(3)+n&3,h=e.andln(3)+o&3;3===h&&(h=-1),s=0==(1&(a=3===a?-1:a))?0:3!=(i=t.andln(7)+n&7)&&5!==i||2!==h?a:-a,r[0].push(s),a=0==(1&h)?0:3!=(i=e.andln(7)+o&7)&&5!==i||2!==a?h:-h,r[1].push(a),2*n===s+1&&(n=1-n),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,i){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new n(t,"hex","le")}},function(t,e,i){var r;
/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(t.document)return i(t);throw new Error("jQuery requires a window with a document")}:i(e)}("undefined"!=typeof window?window:this,(function(i,n){"use strict";function o(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function s(t){return null!=t&&t===t.window}var a=[],h=Object.getPrototypeOf,u=a.slice,f=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},l=a.push,d=a.indexOf,c={},p=c.toString,m=c.hasOwnProperty,g=m.toString,b=g.call(Object),v={},y=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function M(t,e,i){var r,n,o=(i=i||y).createElement("script");if(o.text=t,e)for(r in w)(n=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,n);i.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[p.call(t)]||"object":typeof t}var S=/HTML$/i,x=function(t,e){return new x.fn.init(t,e)};function A(t){var e=!!t&&"length"in t&&t.length,i=_(t);return!o(t)&&!s(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}function k(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:"3.7.1",constructor:x,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){return(t=x.merge(this.constructor(),t)).prevObject=this,t},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length;t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:a.sort,splice:a.splice},x.extend=x.fn.extend=function(){var t,e,i,r,n,s=arguments[0]||{},a=1,h=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||o(s)||(s={}),a===h&&(s=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],n=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[e]=x.extend(u,n,i)):void 0!==i&&(s[e]=i));return s},x.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==p.call(t)||(t=h(t))&&("function"!=typeof(t=m.call(t,"constructor")&&t.constructor)||g.call(t)!==b))},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,i){M(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,r=0;if(A(t))for(i=t.length;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,i="",r=0,n=t.nodeType;if(!n)for(;e=t[r++];)i+=x.text(e);return 1===n||11===n?t.textContent:9===n?t.documentElement.textContent:3===n||4===n?t.nodeValue:i},makeArray:function(t,e){return e=e||[],null!=t&&(A(Object(t))?x.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:d.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI;t=t&&(t.ownerDocument||t).documentElement;return!S.test(e||t&&t.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,r=0,n=t.length;r<i;r++)t[n++]=e[r];return t.length=n,t},grep:function(t,e,i){for(var r=[],n=0,o=t.length,s=!i;n<o;n++)!e(t[n],n)!=s&&r.push(t[n]);return r},map:function(t,e,i){var r,n,o=0,s=[];if(A(t))for(r=t.length;o<r;o++)null!=(n=e(t[o],o,i))&&s.push(n);else for(o in t)null!=(n=e(t[o],o,i))&&s.push(n);return f(s)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=a[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var E=a.pop,R=a.sort,T=a.splice,C="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+C+"+|((?:^|[^\\\\])(?:\\\\.)*)"+C+"+$","g"),B=(x.contains=function(t,e){return t===(e=e&&e.parentNode)||!(!e||1!==e.nodeType||!(t.contains?t.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function P(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(B,P)};var j,L,N,O,D,q,z,U,F,Z,H=y,W=l,K=W,$=x.expando,Y=0,V=0,G=wt(),J=wt(),X=wt(),Q=wt(),tt=function(t,e){return t===e&&(D=!0),0},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="\\["+C+"*("+(de="(?:\\\\[\\da-fA-F]{1,6}"+C+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+")+")(?:"+C+"*([*^$|!~]?=)"+C+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+de+"))|)"+C+"*\\]",rt=":("+de+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",nt=new RegExp(C+"+","g"),ot=new RegExp("^"+C+"*,"+C+"*"),st=new RegExp("^"+C+"*([>+~]|"+C+")"+C+"*"),at=new RegExp(C+"|>"),ht=new RegExp(rt),ut=new RegExp("^"+de+"$"),ft={ID:new RegExp("^#("+de+")"),CLASS:new RegExp("^\\.("+de+")"),TAG:new RegExp("^("+de+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+C+"*(even|odd|(([+-]|)(\\d*)n|)"+C+"*(?:([+-]|)"+C+"*(\\d+)|))"+C+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+C+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+C+"*((?:-\\d)?\\d*)"+C+"*\\)|)(?=[^-]|$)","i")},lt=/^(?:input|select|textarea|button)$/i,dt=/^h\d$/i,ct=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,pt=/[+~]/,mt=new RegExp("\\\\[\\da-fA-F]{1,6}"+C+"?|\\\\([^\\r\\n\\f])","g"),gt=function(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))},bt=function(){kt()},vt=Ct((function(t){return!0===t.disabled&&k(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{K.apply(a=u.call(H.childNodes),H.childNodes),a[H.childNodes.length].nodeType}catch(de){K={apply:function(t,e){W.apply(t,u.call(e))},call:function(t){W.apply(t,u.call(arguments,1))}}}function yt(t,e,i,r){var n,o,s,a,h,u,f=e&&e.ownerDocument,l=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==l&&9!==l&&11!==l)return i;if(!r&&(kt(e),e=e||q,U)){if(11!==l&&(a=ct.exec(t)))if(n=a[1]){if(9===l){if(!(u=e.getElementById(n)))return i;if(u.id===n)return K.call(i,u),i}else if(f&&(u=f.getElementById(n))&&yt.contains(e,u)&&u.id===n)return K.call(i,u),i}else{if(a[2])return K.apply(i,e.getElementsByTagName(t)),i;if((n=a[3])&&e.getElementsByClassName)return K.apply(i,e.getElementsByClassName(n)),i}if(!(Q[t+" "]||F&&F.test(t))){if(u=t,f=e,1===l&&(at.test(t)||st.test(t))){for((f=pt.test(t)&&At(e.parentNode)||e)==e&&v.scope||((s=e.getAttribute("id"))?s=x.escapeSelector(s):e.setAttribute("id",s=$)),o=(h=Rt(t)).length;o--;)h[o]=(s?"#"+s:":scope")+" "+Tt(h[o]);u=h.join(",")}try{return K.apply(i,f.querySelectorAll(u)),i}catch(e){Q(t,!0)}finally{s===$&&e.removeAttribute("id")}}}return Lt(t.replace(I,"$1"),e,i,r)}function wt(){var t=[];return function e(i,r){return t.push(i+" ")>L.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function Mt(t){return t[$]=!0,t}function _t(t){var e=q.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function St(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&vt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function xt(t){return Mt((function(e){return e=+e,Mt((function(i,r){for(var n,o=t([],i.length,e),s=o.length;s--;)i[n=o[s]]&&(i[n]=!(r[n]=i[n]))}))}))}function At(t){return t&&void 0!==t.getElementsByTagName&&t}function kt(t){return(t=t?t.ownerDocument||t:H)!=q&&9===t.nodeType&&t.documentElement&&(z=(q=t).documentElement,U=!x.isXMLDoc(q),Z=z.matches||z.webkitMatchesSelector||z.msMatchesSelector,z.msMatchesSelector&&H!=q&&(t=q.defaultView)&&t.top!==t&&t.addEventListener("unload",bt),v.getById=_t((function(t){return z.appendChild(t).id=x.expando,!q.getElementsByName||!q.getElementsByName(x.expando).length})),v.disconnectedMatch=_t((function(t){return Z.call(t,"*")})),v.scope=_t((function(){return q.querySelectorAll(":scope")})),v.cssHas=_t((function(){try{q.querySelector(":has(*,:jqfake)")}catch(t){return 1}})),v.getById?(L.filter.ID=function(t){var e=t.replace(mt,gt);return function(t){return t.getAttribute("id")===e}},L.find.ID=function(t,e){if(void 0!==e.getElementById&&U)return(e=e.getElementById(t))?[e]:[]}):(L.filter.ID=function(t){var e=t.replace(mt,gt);return function(t){return(t=void 0!==t.getAttributeNode&&t.getAttributeNode("id"))&&t.value===e}},L.find.ID=function(t,e){if(void 0!==e.getElementById&&U){var i,r,n,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(n=e.getElementsByName(t),r=0;o=n[r++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),L.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},L.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&U)return e.getElementsByClassName(t)},F=[],_t((function(t){var e;z.appendChild(t).innerHTML="<a id='"+$+"' href='' disabled='disabled'></a><select id='"+$+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||F.push("\\["+C+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+$+"-]").length||F.push("~="),t.querySelectorAll("a#"+$+"+*").length||F.push(".#.+[+~]"),t.querySelectorAll(":checked").length||F.push(":checked"),(e=q.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),z.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),(e=q.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||F.push("\\["+C+"*name"+C+"*="+C+"*(?:''|\"\")")})),v.cssHas||F.push(":has"),F=F.length&&new RegExp(F.join("|")),tt=function(t,e){var i;return t===e?(D=!0,0):(i=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===i?t===q||t.ownerDocument==H&&yt.contains(H,t)?-1:e===q||e.ownerDocument==H&&yt.contains(H,e)?1:O?d.call(O,t)-d.call(O,e):0:4&i?-1:1)}),q}for(j in yt.matches=function(t,e){return yt(t,null,null,e)},yt.matchesSelector=function(t,e){if(kt(t),U&&!Q[e+" "]&&(!F||!F.test(e)))try{var i=Z.call(t,e);if(i||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){Q(e,!0)}return 0<yt(e,q,null,[t]).length},yt.contains=function(t,e){return(t.ownerDocument||t)!=q&&kt(t),x.contains(t,e)},yt.attr=function(t,e){var i;return(t.ownerDocument||t)!=q&&kt(t),void 0!==(i=(i=L.attrHandle[e.toLowerCase()])&&m.call(L.attrHandle,e.toLowerCase())?i(t,e,!U):void 0)?i:t.getAttribute(e)},yt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,i=[],r=0,n=0;if(D=!v.sortStable,O=!v.sortStable&&u.call(t,0),R.call(t,tt),D){for(;e=t[n++];)e===t[n]&&(r=i.push(n));for(;r--;)T.call(t,i[r],1)}return O=null,t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(u.apply(this)))},(L=x.expr={cacheLength:50,createPseudo:Mt,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(mt,gt),t[3]=(t[3]||t[4]||t[5]||"").replace(mt,gt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||yt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&yt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=(e=Rt(i,!0))&&i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(mt,gt).toLowerCase();return"*"===t?function(){return!0}:function(t){return k(t,e)}},CLASS:function(t){var e=G[t+" "];return e||(e=new RegExp("(^|"+C+")"+t+"("+C+"|$)"))&&G(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(r){return null==(r=yt.attr(r,t))?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&-1<r.indexOf(i):"$="===e?i&&r.slice(-i.length)===i:"~="===e?-1<(" "+r.replace(nt," ")+" ").indexOf(i):"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,r,n){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===n?function(t){return!!t.parentNode}:function(e,i,h){var u,f,l,d,c,p=o!=s?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),b=!h&&!a,v=!1;if(m){if(o){for(;p;){for(l=e;l=l[p];)if(a?k(l,g):1===l.nodeType)return!1;c=p="only"===t&&!c&&"nextSibling"}return!0}if(c=[s?m.firstChild:m.lastChild],s&&b){for(v=(d=(u=(f=m[$]||(m[$]={}))[t]||[])[0]===Y&&u[1])&&u[2],l=d&&m.childNodes[d];l=++d&&l&&l[p]||(v=d=0,c.pop());)if(1===l.nodeType&&++v&&l===e){f[t]=[Y,d,v];break}}else if(!1===(v=b?d=(u=(f=e[$]||(e[$]={}))[t]||[])[0]===Y&&u[1]:v))for(;(l=++d&&l&&l[p]||(v=d=0,c.pop()))&&((a?!k(l,g):1!==l.nodeType)||!++v||(b&&((f=l[$]||(l[$]={}))[t]=[Y,v]),l!==e)););return(v-=n)===r||v%r==0&&0<=v/r}}},PSEUDO:function(t,e){var i,r=L.pseudos[t]||L.setFilters[t.toLowerCase()]||yt.error("unsupported pseudo: "+t);return r[$]?r(e):1<r.length?(i=[t,t,"",e],L.setFilters.hasOwnProperty(t.toLowerCase())?Mt((function(t,i){for(var n,o=r(t,e),s=o.length;s--;)t[n=d.call(t,o[s])]=!(i[n]=o[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:Mt((function(t){var e=[],i=[],r=jt(t.replace(I,"$1"));return r[$]?Mt((function(t,e,i,n){for(var o,s=r(t,null,n,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,n,o){return e[0]=t,r(e,null,o,i),e[0]=null,!i.pop()}})),has:Mt((function(t){return function(e){return 0<yt(t,e).length}})),contains:Mt((function(t){return t=t.replace(mt,gt),function(e){return-1<(e.textContent||x.text(e)).indexOf(t)}})),lang:Mt((function(t){return ut.test(t||"")||yt.error("unsupported lang: "+t),t=t.replace(mt,gt).toLowerCase(),function(e){var i;do{if(i=U?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===z},focus:function(t){return t===function(){try{return q.activeElement}catch(t){}}()&&q.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:St(!1),disabled:St(!0),checked:function(t){return k(t,"input")&&!!t.checked||k(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!L.pseudos.empty(t)},header:function(t){return dt.test(t.nodeName)},input:function(t){return lt.test(t.nodeName)},button:function(t){return k(t,"input")&&"button"===t.type||k(t,"button")},text:function(t){return k(t,"input")&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:xt((function(){return[0]})),last:xt((function(t,e){return[e-1]})),eq:xt((function(t,e,i){return[i<0?i+e:i]})),even:xt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:xt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:xt((function(t,e,i){for(var r=i<0?i+e:e<i?e:i;0<=--r;)t.push(r);return t})),gt:xt((function(t,e,i){for(var r=i<0?i+e:i;++r<e;)t.push(r);return t}))}}).pseudos.nth=L.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})L.pseudos[j]=function(t){return function(e){return k(e,"input")&&e.type===t}}(j);for(j in{submit:!0,reset:!0})L.pseudos[j]=function(t){return function(e){return(k(e,"input")||k(e,"button"))&&e.type===t}}(j);function Et(){}function Rt(t,e){var i,r,n,o,s,a,h,u=J[t+" "];if(u)return e?0:u.slice(0);for(s=t,a=[],h=L.preFilter;s;){for(o in i&&!(r=ot.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(n=[])),i=!1,(r=st.exec(s))&&(i=r.shift(),n.push({value:i,type:r[0].replace(I," ")}),s=s.slice(i.length)),L.filter)!(r=ft[o].exec(s))||h[o]&&!(r=h[o](r))||(i=r.shift(),n.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?yt.error(t):J(t,a).slice(0)}function Tt(t){for(var e=0,i=t.length,r="";e<i;e++)r+=t[e].value;return r}function Ct(t,e,i){var r=e.dir,n=e.next,o=n||r,s=i&&"parentNode"===o,a=V++;return e.first?function(e,i,n){for(;e=e[r];)if(1===e.nodeType||s)return t(e,i,n);return!1}:function(e,i,h){var u,f,l=[Y,a];if(h){for(;e=e[r];)if((1===e.nodeType||s)&&t(e,i,h))return!0}else for(;e=e[r];)if(1===e.nodeType||s)if(f=e[$]||(e[$]={}),n&&k(e,n))e=e[r]||e;else{if((u=f[o])&&u[0]===Y&&u[1]===a)return l[2]=u[2];if((f[o]=l)[2]=t(e,i,h))return!0}return!1}}function It(t){return 1<t.length?function(e,i,r){for(var n=t.length;n--;)if(!t[n](e,i,r))return!1;return!0}:t[0]}function Bt(t,e,i,r,n){for(var o,s=[],a=0,h=t.length,u=null!=e;a<h;a++)!(o=t[a])||i&&!i(o,r,n)||(s.push(o),u&&e.push(a));return s}function Pt(t,e,i,r,n,o){return r&&!r[$]&&(r=Pt(r)),n&&!n[$]&&(n=Pt(n,o)),Mt((function(o,s,a,h){var u,f,l,c,p=[],m=[],g=s.length,b=o||function(t,e,i){for(var r=0,n=e.length;r<n;r++)yt(t,e[r],i);return i}(e||"*",a.nodeType?[a]:a,[]),v=!t||!o&&e?b:Bt(b,p,t,a,h);if(i?i(v,c=n||(o?t:g||r)?[]:s,a,h):c=v,r)for(u=Bt(c,m),r(u,[],a,h),f=u.length;f--;)(l=u[f])&&(c[m[f]]=!(v[m[f]]=l));if(o){if(n||t){if(n){for(u=[],f=c.length;f--;)(l=c[f])&&u.push(v[f]=l);n(null,c=[],u,h)}for(f=c.length;f--;)(l=c[f])&&-1<(u=n?d.call(o,l):p[f])&&(o[u]=!(s[u]=l))}}else c=Bt(c===s?c.splice(g,c.length):c),n?n(null,s,c,h):K.apply(s,c)}))}function jt(t,e){var i,r=[],n=[],o=X[t+" "];if(!o){for(i=(e=e||Rt(t)).length;i--;)((o=function t(e){for(var i,r,n,o=e.length,s=L.relative[e[0].type],a=s||L.relative[" "],h=s?1:0,u=Ct((function(t){return t===i}),a,!0),f=Ct((function(t){return-1<d.call(i,t)}),a,!0),l=[function(t,e,r){return t=!s&&(r||e!=N)||((i=e).nodeType?u:f)(t,e,r),i=null,t}];h<o;h++)if(r=L.relative[e[h].type])l=[Ct(It(l),r)];else{if((r=L.filter[e[h].type].apply(null,e[h].matches))[$]){for(n=++h;n<o&&!L.relative[e[n].type];n++);return Pt(1<h&&It(l),1<h&&Tt(e.slice(0,h-1).concat({value:" "===e[h-2].type?"*":""})).replace(I,"$1"),r,h<n&&t(e.slice(h,n)),n<o&&t(e=e.slice(n)),n<o&&Tt(e))}l.push(r)}return It(l)}(e[i]))[$]?r:n).push(o);(o=X(t,function(t,e){function i(i,o,s,a,h){var u,f,l,d=0,c="0",p=i&&[],m=[],g=N,b=i||n&&L.find.TAG("*",h),v=Y+=null==g?1:Math.random()||.1,y=b.length;for(h&&(N=o==q||o||h);c!==y&&null!=(u=b[c]);c++){if(n&&u){for(f=0,o||u.ownerDocument==q||(kt(u),s=!U);l=t[f++];)if(l(u,o||q,s)){K.call(a,u);break}h&&(Y=v)}r&&((u=!l&&u)&&d--,i)&&p.push(u)}if(d+=c,r&&c!==d){for(f=0;l=e[f++];)l(p,m,o,s);if(i){if(0<d)for(;c--;)p[c]||m[c]||(m[c]=E.call(a));m=Bt(m)}K.apply(a,m),h&&!i&&0<m.length&&1<d+e.length&&x.uniqueSort(a)}return h&&(Y=v,N=g),p}var r=0<e.length,n=0<t.length;return r?Mt(i):i}(n,r))).selector=t}return o}function Lt(t,e,i,r){var n,o,s,a,h,u="function"==typeof t&&t,f=!r&&Rt(t=u.selector||t);if(i=i||[],1===f.length){if(2<(o=f[0]=f[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===e.nodeType&&U&&L.relative[o[1].type]){if(!(e=(L.find.ID(s.matches[0].replace(mt,gt),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(n=ft.needsContext.test(t)?0:o.length;n--&&(s=o[n],!L.relative[a=s.type]);)if((h=L.find[a])&&(r=h(s.matches[0].replace(mt,gt),pt.test(o[0].type)&&At(e.parentNode)||e))){if(o.splice(n,1),t=r.length&&Tt(o))break;return K.apply(i,r),i}}return(u||jt(t,f))(r,e,!U,i,!e||pt.test(t)&&At(e.parentNode)||e),i}function Nt(t,e,i){for(var r=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&x(t).is(i))break;r.push(t)}return r}function Ot(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}Et.prototype=L.filters=L.pseudos,L.setFilters=new Et,v.sortStable=$.split("").sort(tt).join("")===$,kt(),v.sortDetached=_t((function(t){return 1&t.compareDocumentPosition(q.createElement("fieldset"))})),x.find=yt,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,yt.compile=jt,yt.select=Lt,yt.setDocument=kt,yt.tokenize=Rt,yt.escape=x.escapeSelector,yt.getText=x.text,yt.isXML=x.isXMLDoc,yt.selectors=x.expr,yt.support=x.support,yt.uniqueSort=x.uniqueSort;var Dt=x.expr.match.needsContext,qt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function zt(t,e,i){return o(e)?x.grep(t,(function(t,r){return!!e.call(t,r,t)!==i})):e.nodeType?x.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?x.grep(t,(function(t){return-1<d.call(e,t)!==i})):x.filter(e,t,i)}x.filter=function(t,e,i){var r=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,i,r=this.length,n=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<r;e++)if(x.contains(n[e],this))return!0})));for(i=this.pushStack([]),e=0;e<r;e++)x.find(t,n[e],i);return 1<r?x.uniqueSort(i):i},filter:function(t){return this.pushStack(zt(this,t||[],!1))},not:function(t){return this.pushStack(zt(this,t||[],!0))},is:function(t){return!!zt(this,"string"==typeof t&&Dt.test(t)?x(t):t||[],!1).length}});var Ut,Ft=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Zt=((x.fn.init=function(t,e,i){if(t){if(i=i||Ut,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):o(t)?void 0!==i.ready?i.ready(t):t(x):x.makeArray(t,this);if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Ft.exec(t))||!r[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),qt.test(r[1])&&x.isPlainObject(e))for(var r in e)o(this[r])?this[r](e[r]):this.attr(r,e[r])}else(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1)}return this}).prototype=x.fn,Ut=x(y),/^(?:parents|prev(?:Until|All))/),Ht={children:!0,contents:!0,next:!0,prev:!0};function Wt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var i,r=0,n=this.length,o=[],s="string"!=typeof t&&x(t);if(!Dt.test(t))for(;r<n;r++)for(i=this[r];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&x.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(x(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},parents:function(t){return Nt(t,"parentNode")},parentsUntil:function(t,e,i){return Nt(t,"parentNode",i)},next:function(t){return Wt(t,"nextSibling")},prev:function(t){return Wt(t,"previousSibling")},nextAll:function(t){return Nt(t,"nextSibling")},prevAll:function(t){return Nt(t,"previousSibling")},nextUntil:function(t,e,i){return Nt(t,"nextSibling",i)},prevUntil:function(t,e,i){return Nt(t,"previousSibling",i)},siblings:function(t){return Ot((t.parentNode||{}).firstChild,t)},children:function(t){return Ot(t.firstChild)},contents:function(t){return null!=t.contentDocument&&h(t.contentDocument)?t.contentDocument:(k(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(i,r){var n=x.map(this,e,i);return(r="Until"!==t.slice(-5)?i:r)&&"string"==typeof r&&(n=x.filter(r,n)),1<this.length&&(Ht[t]||x.uniqueSort(n),Zt.test(t))&&n.reverse(),this.pushStack(n)}}));var Kt=/[^\x20\t\r\n\f]+/g;function $t(t){return t}function Yt(t){throw t}function Vt(t,e,i,r){var n;try{t&&o(n=t.promise)?n.call(t).done(e).fail(i):t&&o(n=t.then)?n.call(t,e,i):e.apply(void 0,[t].slice(r))}catch(t){i.apply(void 0,[t])}}x.Callbacks=function(t){var e,i;function r(){for(h=h||t.once,a=n=!0;f.length;l=-1)for(s=f.shift();++l<u.length;)!1===u[l].apply(s[0],s[1])&&t.stopOnFalse&&(l=u.length,s=!1);t.memory||(s=!1),n=!1,h&&(u=s?[]:"")}t="string"==typeof t?(e=t,i={},x.each(e.match(Kt)||[],(function(t,e){i[e]=!0})),i):x.extend({},t);var n,s,a,h,u=[],f=[],l=-1,d={add:function(){return u&&(s&&!n&&(l=u.length-1,f.push(s)),function e(i){x.each(i,(function(i,r){o(r)?t.unique&&d.has(r)||u.push(r):r&&r.length&&"string"!==_(r)&&e(r)}))}(arguments),s)&&!n&&r(),this},remove:function(){return x.each(arguments,(function(t,e){for(var i;-1<(i=x.inArray(e,u,i));)u.splice(i,1),i<=l&&l--})),this},has:function(t){return t?-1<x.inArray(t,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return h=f=[],u=s="",this},disabled:function(){return!u},lock:function(){return h=f=[],s||n||(u=s=""),this},locked:function(){return!!h},fireWith:function(t,e){return h||(e=[t,(e=e||[]).slice?e.slice():e],f.push(e),n)||r(),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",n={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return n.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(i){x.each(e,(function(e,r){var n=o(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=n&&n.apply(this,arguments);t&&o(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this,n?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,n){var s=0;function a(t,e,r,n){return function(){function h(){var i,h;if(!(t<s)){if((i=r.apply(u,f))===e.promise())throw new TypeError("Thenable self-resolution");o(h=i&&("object"==typeof i||"function"==typeof i)&&i.then)?n?h.call(i,a(s,e,$t,n),a(s,e,Yt,n)):(s++,h.call(i,a(s,e,$t,n),a(s,e,Yt,n),a(s,e,$t,e.notifyWith))):(r!==$t&&(u=void 0,f=[i]),(n||e.resolveWith)(u,f))}}var u=this,f=arguments,l=n?h:function(){try{h()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,l.error),s<=t+1&&(r!==Yt&&(u=void 0,f=[i]),e.rejectWith(u,f))}};t?l():(x.Deferred.getErrorHook?l.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(l.error=x.Deferred.getStackHook()),i.setTimeout(l))}}return x.Deferred((function(i){e[0][3].add(a(0,i,o(n)?n:$t,i.notifyWith)),e[1][3].add(a(0,i,o(t)?t:$t)),e[2][3].add(a(0,i,o(r)?r:Yt))})).promise()},promise:function(t){return null!=t?x.extend(t,n):n}},s={};return x.each(e,(function(t,i){var o=i[2],a=i[5];n[i[1]]=o.add,a&&o.add((function(){r=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),n.promise(s),t&&t.call(s,s),s},when:function(t){function e(t){return function(e){n[t]=this,s[t]=1<arguments.length?u.call(arguments):e,--i||a.resolveWith(n,s)}}var i=arguments.length,r=i,n=Array(r),s=u.call(arguments),a=x.Deferred();if(i<=1&&(Vt(t,a.done(e(r)).resolve,a.reject,!i),"pending"===a.state()||o(s[r]&&s[r].then)))return a.then();for(;r--;)Vt(s[r],e(r),a.reject);return a.promise()}});var Gt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,Jt=(x.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Gt.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){i.setTimeout((function(){throw t}))},x.Deferred());function Xt(){y.removeEventListener("DOMContentLoaded",Xt),i.removeEventListener("load",Xt),x.ready()}function Qt(t,e,i,r,n,s,a){var h=0,u=t.length,f=null==i;if("object"===_(i))for(h in n=!0,i)Qt(t,e,h,i[h],!0,s,a);else if(void 0!==r&&(n=!0,o(r)||(a=!0),e=f?a?(e.call(t,r),null):(f=e,function(t,e,i){return f.call(x(t),i)}):e))for(;h<u;h++)e(t[h],i,a?r:r.call(t[h],h,e(t[h],i)));return n?t:f?e.call(t):u?e(t[0],i):s}x.fn.ready=function(t){return Jt.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0)!==t&&0<--x.readyWait||Jt.resolveWith(y,[x])}}),x.ready.then=Jt.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",Xt),i.addEventListener("load",Xt));var te=/^-ms-/,ee=/-([a-z])/g;function ie(t,e){return e.toUpperCase()}function re(t){return t.replace(te,"ms-").replace(ee,ie)}function ne(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function oe(){this.expando=x.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ne(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var r,n=this.cache(t);if("string"==typeof e)n[re(e)]=i;else for(r in e)n[re(r)]=e[r];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][re(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,r=t[this.expando];if(void 0!==r){if(void 0!==e){i=(e=Array.isArray(e)?e.map(re):(e=re(e))in r?[e]:e.match(Kt)||[]).length;for(;i--;)delete r[e[i]]}void 0!==e&&!x.isEmptyObject(r)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){return void 0!==(t=t[this.expando])&&!x.isEmptyObject(t)}};var se=new oe,ae=new oe,he=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function fe(t,e,i){var r,n;if(void 0===i&&1===t.nodeType)if(r="data-"+e.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(r))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:he.test(n)?JSON.parse(n):n)}catch(t){}ae.set(t,e,i)}else i=void 0;return i}function le(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ge(t)&&"none"===x.css(t,"display")}x.extend({hasData:function(t){return ae.hasData(t)||se.hasData(t)},data:function(t,e,i){return ae.access(t,e,i)},removeData:function(t,e){ae.remove(t,e)},_data:function(t,e,i){return se.access(t,e,i)},_removeData:function(t,e){se.remove(t,e)}}),x.fn.extend({data:function(t,e){var i,r,n,o=this[0],s=o&&o.attributes;if(void 0!==t)return"object"==typeof t?this.each((function(){ae.set(this,t)})):Qt(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=ae.get(o,t))||void 0!==(i=fe(o,t))?i:void 0;this.each((function(){ae.set(this,t,e)}))}),null,e,1<arguments.length,null,!0);if(this.length&&(n=ae.get(o),1===o.nodeType)&&!se.get(o,"hasDataAttrs")){for(i=s.length;i--;)s[i]&&0===(r=s[i].name).indexOf("data-")&&(r=re(r.slice(5)),fe(o,r,n[r]));se.set(o,"hasDataAttrs",!0)}return n},removeData:function(t){return this.each((function(){ae.remove(this,t)}))}}),x.extend({queue:function(t,e,i){var r;if(t)return r=se.get(t,e=(e||"fx")+"queue"),i&&(!r||Array.isArray(i)?r=se.access(t,e,x.makeArray(i)):r.push(i)),r||[]},dequeue:function(t,e){e=e||"fx";var i=x.queue(t,e),r=i.length,n=i.shift(),o=x._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===e&&i.unshift("inprogress"),delete o.stop,n.call(t,(function(){x.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return se.get(t,i)||se.access(t,i,{empty:x.Callbacks("once memory").add((function(){se.remove(t,[e+"queue",i])}))})}}),x.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?x.queue(this[0],t):void 0===e?this:this.each((function(){var i=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--n||o.resolveWith(s,[s])}var r,n=1,o=x.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(r=se.get(s[a],t+"queueHooks"))&&r.empty&&(n++,r.empty.add(i));return i(),o.promise(e)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ce=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],me=y.documentElement,ge=function(t){return x.contains(t.ownerDocument,t)},be={composed:!0};function ve(t,e,i,r){var n,o,s=20,a=r?function(){return r.cur()}:function(){return x.css(t,e,"")},h=a(),u=i&&i[3]||(x.cssNumber[e]?"":"px"),f=t.nodeType&&(x.cssNumber[e]||"px"!==u&&+h)&&ce.exec(x.css(t,e));if(f&&f[3]!==u){for(u=u||f[3],f=+(h/=2)||1;s--;)x.style(t,e,f+u),(1-o)*(1-(o=a()/h||.5))<=0&&(s=0),f/=o;x.style(t,e,(f*=2)+u),i=i||[]}return i&&(f=+f||+h||0,n=i[1]?f+(i[1]+1)*i[2]:+i[2],r)&&(r.unit=u,r.start=f,r.end=n),n}me.getRootNode&&(ge=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(be)===t.ownerDocument});var ye={};function we(t,e){for(var i,r,n,o,s,a=[],h=0,u=t.length;h<u;h++)(r=t[h]).style&&(i=r.style.display,e?("none"===i&&(a[h]=se.get(r,"display")||null,a[h]||(r.style.display="")),""===r.style.display&&le(r)&&(a[h]=(s=o=void 0,o=(n=r).ownerDocument,n=n.nodeName,(s=ye[n])||(o=o.body.appendChild(o.createElement(n)),s=x.css(o,"display"),o.parentNode.removeChild(o),ye[n]=s="none"===s?"block":s),s))):"none"!==i&&(a[h]="none",se.set(r,"display",i)));for(h=0;h<u;h++)null!=a[h]&&(t[h].style.display=a[h]);return t}x.fn.extend({show:function(){return we(this,!0)},hide:function(){return we(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){le(this)?x(this).show():x(this).hide()}))}});var Me=/^(?:checkbox|radio)$/i,_e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i,xe=(it=y.createDocumentFragment().appendChild(y.createElement("div")),(rt=y.createElement("input")).setAttribute("type","radio"),rt.setAttribute("checked","checked"),rt.setAttribute("name","t"),it.appendChild(rt),v.checkClone=it.cloneNode(!0).cloneNode(!0).lastChild.checked,it.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!it.cloneNode(!0).lastChild.defaultValue,it.innerHTML="<option></option>",v.option=!!it.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function Ae(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&k(t,e)?x.merge([t],i):i}function ke(t,e){for(var i=0,r=t.length;i<r;i++)se.set(t[i],"globalEval",!e||se.get(e[i],"globalEval"))}xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td,v.option||(xe.optgroup=xe.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function Re(t,e,i,r,n){for(var o,s,a,h,u,f=e.createDocumentFragment(),l=[],d=0,c=t.length;d<c;d++)if((o=t[d])||0===o)if("object"===_(o))x.merge(l,o.nodeType?[o]:o);else if(Ee.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(_e.exec(o)||["",""])[1].toLowerCase(),a=xe[a]||xe._default,s.innerHTML=a[1]+x.htmlPrefilter(o)+a[2],u=a[0];u--;)s=s.lastChild;x.merge(l,s.childNodes),(s=f.firstChild).textContent=""}else l.push(e.createTextNode(o));for(f.textContent="",d=0;o=l[d++];)if(r&&-1<x.inArray(o,r))n&&n.push(o);else if(h=ge(o),s=Ae(f.appendChild(o),"script"),h&&ke(s),i)for(u=0;o=s[u++];)Se.test(o.type||"")&&i.push(o);return f}var Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ie(){return!1}function Be(t,e,i,r,n,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof i&&(r=r||i,i=void 0),e)Be(t,a,i,r,e[a],o);return t}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=Ie;else if(!n)return t;return 1===o&&(s=n,(n=function(t){return x().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),t.each((function(){x.event.add(this,e,n,r,i)}))}function Pe(t,e,i){i?(se.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var i,r=se.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=u.call(arguments),se.set(this,e,r),this[e](),i=se.get(this,e),se.set(this,e,!1),r!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else r&&(se.set(this,e,x.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ce)}})):void 0===se.get(t,e)&&x.event.add(t,e,Ce)}x.event={global:{},add:function(t,e,i,r,n){var o,s,a,h,u,f,l,d,c,p=se.get(t);if(ne(t))for(i.handler&&(i=(o=i).handler,n=o.selector),n&&x.find.matchesSelector(me,n),i.guid||(i.guid=x.guid++),a=(a=p.events)||(p.events=Object.create(null)),s=(s=p.handle)||(p.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(Kt)||[""]).length;h--;)l=c=(d=Te.exec(e[h])||[])[1],d=(d[2]||"").split(".").sort(),l&&(u=x.event.special[l]||{},l=(n?u.delegateType:u.bindType)||l,u=x.event.special[l]||{},c=x.extend({type:l,origType:c,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&x.expr.match.needsContext.test(n),namespace:d.join(".")},o),(f=a[l])||((f=a[l]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,r,d,s))||t.addEventListener&&t.addEventListener(l,s),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),n?f.splice(f.delegateCount++,0,c):f.push(c),x.event.global[l]=!0)},remove:function(t,e,i,r,n){var o,s,a,h,u,f,l,d,c,p,m,g=se.hasData(t)&&se.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(Kt)||[""]).length;u--;)if(c=m=(a=Te.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),c){for(l=x.event.special[c]||{},d=h[c=(r?l.delegateType:l.bindType)||c]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)f=d[o],!n&&m!==f.origType||i&&i.guid!==f.guid||a&&!a.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(d.splice(o,1),f.selector&&d.delegateCount--,l.remove&&l.remove.call(t,f));s&&!d.length&&(l.teardown&&!1!==l.teardown.call(t,p,g.handle)||x.removeEvent(t,c,g.handle),delete h[c])}else for(c in h)x.event.remove(t,c+e[u],i,r,!0);x.isEmptyObject(h)&&se.remove(t,"handle events")}},dispatch:function(t){var e,i,r,n,o,s=new Array(arguments.length),a=x.event.fix(t),h=(t=(se.get(this,"events")||Object.create(null))[a.type]||[],x.event.special[a.type]||{});for(s[0]=a,e=1;e<arguments.length;e++)s[e]=arguments[e];if(a.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,a)){for(o=x.event.handlers.call(this,a,t),e=0;(r=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,i=0;(n=r.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==n.namespace&&!a.rnamespace.test(n.namespace)||(a.handleObj=n,a.data=n.data,void 0!==(n=((x.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,s))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,r,n,o,s,a=[],h=e.delegateCount,u=t.target;if(h&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},i=0;i<h;i++)void 0===s[n=(r=e[i]).selector+" "]&&(s[n]=r.needsContext?-1<x(n,this).index(u):x.find(n,this,null,[u]).length),s[n]&&o.push(r);o.length&&a.push({elem:u,handlers:o})}return u=this,h<e.length&&a.push({elem:u,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:o(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){return t=this||t,Me.test(t.type)&&t.click&&k(t,"input")&&Pe(t,"click",!0),!1},trigger:function(t){return t=this||t,Me.test(t.type)&&t.click&&k(t,"input")&&Pe(t,"click"),!0},_default:function(t){return t=t.target,Me.test(t.type)&&t.click&&k(t,"input")&&se.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ce:Ie,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ce,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ce,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ce,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){function i(t){var i,r;y.documentMode?(i=se.get(this,"handle"),(r=x.event.fix(t)).type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,i(t),r.target===r.currentTarget&&i(r)):x.event.simulate(e,t.target,x.event.fix(t))}x.event.special[t]={setup:function(){var r;if(Pe(this,t,!0),!y.documentMode)return!1;(r=se.get(this,e))||this.addEventListener(e,i),se.set(this,e,(r||0)+1)},trigger:function(){return Pe(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=se.get(this,e)-1)?se.set(this,e,t):(this.removeEventListener(e,i),se.remove(this,e))},_default:function(e){return se.get(e.target,t)},delegateType:e},x.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,n=y.documentMode?this:r,o=se.get(n,e);o||(y.documentMode?this.addEventListener(e,i):r.addEventListener(t,i,!0)),se.set(n,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,n=y.documentMode?this:r,o=se.get(n,e)-1;o?se.set(n,e,o):(y.documentMode?this.removeEventListener(e,i):r.removeEventListener(t,i,!0),se.remove(n,e))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,r=t.relatedTarget,n=t.handleObj;return r&&(r===this||x.contains(this,r))||(t.type=n.origType,i=n.handler.apply(this,arguments),t.type=e),i}}})),x.fn.extend({on:function(t,e,i,r){return Be(this,t,e,i,r)},one:function(t,e,i,r){return Be(this,t,e,i,r,1)},off:function(t,e,i){var r,n;if(t&&t.preventDefault&&t.handleObj)r=t.handleObj,x(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Ie),this.each((function(){x.event.remove(this,t,i,e)}));for(n in t)this.off(n,e,t[n])}return this}});var je=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Oe(t,e){return k(t,"table")&&k(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function De(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function qe(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function ze(t,e){var i,r,n,o;if(1===e.nodeType){if(se.hasData(t)&&(o=se.get(t).events))for(n in se.remove(e,"handle events"),o)for(i=0,r=o[n].length;i<r;i++)x.event.add(e,n,o[n][i]);ae.hasData(t)&&(t=ae.access(t),t=x.extend({},t),ae.set(e,t))}}function Ue(t,e,i,r){e=f(e);var n,s,a,h,u,l,d=0,c=t.length,p=c-1,m=e[0],g=o(m);if(g||1<c&&"string"==typeof m&&!v.checkClone&&Le.test(m))return t.each((function(n){var o=t.eq(n);g&&(e[0]=m.call(this,n,o.html())),Ue(o,e,i,r)}));if(c&&(s=(n=Re(e,t[0].ownerDocument,!1,t,r)).firstChild,1===n.childNodes.length&&(n=s),s||r)){for(h=(a=x.map(Ae(n,"script"),De)).length;d<c;d++)u=n,d!==p&&(u=x.clone(u,!0,!0),h)&&x.merge(a,Ae(u,"script")),i.call(t[d],u,d);if(h)for(l=a[a.length-1].ownerDocument,x.map(a,qe),d=0;d<h;d++)u=a[d],Se.test(u.type||"")&&!se.access(u,"globalEval")&&x.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):M(u.textContent.replace(Ne,""),u,l))}return t}function Fe(t,e,i){for(var r,n=e?x.filter(e,t):t,o=0;null!=(r=n[o]);o++)i||1!==r.nodeType||x.cleanData(Ae(r)),r.parentNode&&(i&&ge(r)&&ke(Ae(r,"script")),r.parentNode.removeChild(r));return t}function Ze(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:i).getComputedStyle(t)}function He(t,e,i){var r,n={};for(r in e)n[r]=t.style[r],t.style[r]=e[r];for(r in i=i.call(t),e)t.style[r]=n[r];return i}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var r,n,o,s,a,h,u,f=t.cloneNode(!0),l=ge(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(s=Ae(f),r=0,n=(o=Ae(t)).length;r<n;r++)a=o[r],void 0,"input"===(u=(h=s[r]).nodeName.toLowerCase())&&Me.test(a.type)?h.checked=a.checked:"input"!==u&&"textarea"!==u||(h.defaultValue=a.defaultValue);if(e)if(i)for(o=o||Ae(t),s=s||Ae(f),r=0,n=o.length;r<n;r++)ze(o[r],s[r]);else ze(t,f);return 0<(s=Ae(f,"script")).length&&ke(s,!l&&Ae(t,"script")),f},cleanData:function(t){for(var e,i,r,n=x.event.special,o=0;void 0!==(i=t[o]);o++)if(ne(i)){if(e=i[se.expando]){if(e.events)for(r in e.events)n[r]?x.event.remove(i,r):x.removeEvent(i,r,e.handle);i[se.expando]=void 0}i[ae.expando]&&(i[ae.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Fe(this,t,!0)},remove:function(t){return Fe(this,t)},text:function(t){return Qt(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ue(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,t).appendChild(t)}))},prepend:function(){return Ue(this,arguments,(function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Oe(this,t)).insertBefore(t,e.firstChild)}))},before:function(){return Ue(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ue(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(Ae(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return Qt(this,(function(t){var e=this[0]||{},i=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!je.test(t)&&!xe[(_e.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;i<r;i++)1===(e=this[i]||{}).nodeType&&(x.cleanData(Ae(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ue(this,arguments,(function(e){var i=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Ae(this)),i)&&i.replaceChild(e,this)}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var i,r=[],n=x(t),o=n.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),x(n[s])[e](i),l.apply(r,i.get());return this.pushStack(r)}}));var We,Ke,$e,Ye,Ve,Ge,Je,Xe,Qe=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),ti=/^--/,ei=new RegExp(pe.join("|"),"i");function ii(){var t;Xe&&(Je.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Xe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(Je).appendChild(Xe),t=i.getComputedStyle(Xe),We="1%"!==t.top,Ge=12===ri(t.marginLeft),Xe.style.right="60%",Ye=36===ri(t.right),Ke=36===ri(t.width),Xe.style.position="absolute",$e=12===ri(Xe.offsetWidth/3),me.removeChild(Je),Xe=null)}function ri(t){return Math.round(parseFloat(t))}function ni(t,e,i){var r,n=ti.test(e),o=t.style;return(i=i||Ze(t))&&(r=i.getPropertyValue(e)||i[e],""!==(r=n?r&&(r.replace(I,"$1")||void 0):r)||ge(t)||(r=x.style(t,e)),!v.pixelBoxStyles())&&Qe.test(r)&&ei.test(e)&&(n=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=t,o.maxWidth=e),void 0!==r?r+"":r}function oi(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Je=y.createElement("div"),(Xe=y.createElement("div")).style&&(Xe.style.backgroundClip="content-box",Xe.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===Xe.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return ii(),Ke},pixelBoxStyles:function(){return ii(),Ye},pixelPosition:function(){return ii(),We},reliableMarginLeft:function(){return ii(),Ge},scrollboxSize:function(){return ii(),$e},reliableTrDimensions:function(){var t,e,r;return null==Ve&&(t=y.createElement("table"),e=y.createElement("tr"),r=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",r.style.height="9px",r.style.display="block",me.appendChild(t).appendChild(e).appendChild(r),r=i.getComputedStyle(e),Ve=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,me.removeChild(t)),Ve}}));var si=["Webkit","Moz","ms"],ai=y.createElement("div").style,hi={};function ui(t){return x.cssProps[t]||hi[t]||(t in ai?t:hi[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=si.length;i--;)if((t=si[i]+e)in ai)return t}(t)||t)}var fi=/^(none|table(?!-c[ea]).+)/,li={position:"absolute",visibility:"hidden",display:"block"},di={letterSpacing:"0",fontWeight:"400"};function ci(t,e,i){var r=ce.exec(e);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):e}function pi(t,e,i,r,n,o){var s="width"===e?1:0,a=0,h=0,u=0;if(i===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(u+=x.css(t,i+pe[s],!0,n)),r?("content"===i&&(h-=x.css(t,"padding"+pe[s],!0,n)),"margin"!==i&&(h-=x.css(t,"border"+pe[s]+"Width",!0,n))):(h+=x.css(t,"padding"+pe[s],!0,n),"padding"!==i?h+=x.css(t,"border"+pe[s]+"Width",!0,n):a+=x.css(t,"border"+pe[s]+"Width",!0,n));return!r&&0<=o&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-h-a-.5))||0),h+u}function mi(t,e,i){var r=Ze(t),n=(!v.boxSizingReliable()||i)&&"border-box"===x.css(t,"boxSizing",!1,r),o=n,s=ni(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qe.test(s)){if(!i)return s;s="auto"}return(!v.boxSizingReliable()&&n||!v.reliableTrDimensions()&&k(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(t,"display",!1,r))&&t.getClientRects().length&&(n="border-box"===x.css(t,"boxSizing",!1,r),o=a in t)&&(s=t[a]),(s=parseFloat(s)||0)+pi(t,e,i||(n?"border":"content"),o,r,s)+"px"}function gi(t,e,i,r,n){return new gi.prototype.init(t,e,i,r,n)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=ni(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,o,s,a=re(e),h=ti.test(e),u=t.style;if(h||(e=ui(a)),s=x.cssHooks[e]||x.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(n=s.get(t,!1,r))?n:u[e];"string"==(o=typeof i)&&(n=ce.exec(i))&&n[1]&&(i=ve(t,e,n),o="number"),null==i||i!=i||("number"!==o||h||(i+=n&&n[3]||(x.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==i||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,r)))||(h?u.setProperty(e,i):u[e]=i)}},css:function(t,e,i,r){var n,o=re(e);return ti.test(e)||(e=ui(o)),"normal"===(n=void 0===(n=(o=x.cssHooks[e]||x.cssHooks[o])&&"get"in o?o.get(t,!0,i):n)?ni(t,e,r):n)&&e in di&&(n=di[e]),(""===i||i)&&(o=parseFloat(n),!0===i||isFinite(o))?o||0:n}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,i,r){if(i)return!fi.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?mi(t,e,r):He(t,li,(function(){return mi(t,e,r)}))},set:function(t,i,r){var n=Ze(t),o=!v.scrollboxSize()&&"absolute"===n.position,s=(o||r)&&"border-box"===x.css(t,"boxSizing",!1,n);r=r?pi(t,e,r,s,n):0;return s&&o&&(r-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(n[e])-pi(t,e,"border",!1,n)-.5)),r&&(s=ce.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=x.css(t,e)),ci(0,i,r)}}})),x.cssHooks.marginLeft=oi(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(ni(t,"marginLeft"))||t.getBoundingClientRect().left-He(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(i){for(var r=0,n={},o="string"==typeof i?i.split(" "):[i];r<4;r++)n[t+pe[r]+e]=o[r]||o[r-2]||o[0];return n}},"margin"!==t&&(x.cssHooks[t+e].set=ci)})),x.fn.extend({css:function(t,e){return Qt(this,(function(t,e,i){var r,n,o={},s=0;if(Array.isArray(e)){for(r=Ze(t),n=e.length;s<n;s++)o[e[s]]=x.css(t,e[s],!1,r);return o}return void 0!==i?x.style(t,e,i):x.css(t,e)}),t,e,1<arguments.length)}}),((x.Tween=gi).prototype={constructor:gi,init:function(t,e,i,r,n,o){this.elem=t,this.prop=i,this.easing=n||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[i]?"":"px")},cur:function(){var t=gi.propHooks[this.prop];return(t&&t.get?t:gi.propHooks._default).get(this)},run:function(t){var e,i=gi.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:gi.propHooks._default).set(this),this}}).init.prototype=gi.prototype,(gi.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=x.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[ui(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=gi.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=gi.prototype.init,x.fx.step={};var bi,vi,yi=/^(?:toggle|show|hide)$/,wi=/queueHooks$/;function Mi(){vi&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(Mi):i.setTimeout(Mi,x.fx.interval),x.fx.tick())}function _i(){return i.setTimeout((function(){bi=void 0})),bi=Date.now()}function Si(t,e){var i,r=0,n={height:t};for(e=e?1:0;r<4;r+=2-e)n["margin"+(i=pe[r])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function xi(t,e,i){for(var r,n=(Ai.tweeners[e]||[]).concat(Ai.tweeners["*"]),o=0,s=n.length;o<s;o++)if(r=n[o].call(i,e,t))return r}function Ai(t,e,i){var r,n,s,a,h,u,f,l=0,d=Ai.prefilters.length,c=x.Deferred().always((function(){delete p.elem})),p=function(){if(!n){for(var e=bi||_i(),i=1-((e=Math.max(0,m.startTime+m.duration-e))/m.duration||0),r=0,o=m.tweens.length;r<o;r++)m.tweens[r].run(i);if(c.notifyWith(t,[m,i,e]),i<1&&o)return e;o||c.notifyWith(t,[m,1,0]),c.resolveWith(t,[m])}return!1},m=c.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:e,originalOptions:i,startTime:bi||_i(),duration:i.duration,tweens:[],createTween:function(e,i){return i=x.Tween(t,m.opts,e,i,m.opts.specialEasing[e]||m.opts.easing),m.tweens.push(i),i},stop:function(e){var i=0,r=e?m.tweens.length:0;if(!n){for(n=!0;i<r;i++)m.tweens[i].run(1);e?(c.notifyWith(t,[m,1,0]),c.resolveWith(t,[m,e])):c.rejectWith(t,[m,e])}return this}}),g=m.props,b=g,v=m.opts.specialEasing;for(s in b)if(h=v[a=re(s)],u=b[s],Array.isArray(u)&&(h=u[1],u=b[s]=u[0]),s!==a&&(b[a]=u,delete b[s]),(f=x.cssHooks[a])&&"expand"in f)for(s in u=f.expand(u),delete b[a],u)s in b||(b[s]=u[s],v[s]=h);else v[a]=h;for(;l<d;l++)if(r=Ai.prefilters[l].call(m,t,g,m.opts))return o(r.stop)&&(x._queueHooks(m.elem,m.opts.queue).stop=r.stop.bind(r)),r;return x.map(g,xi,m),o(m.opts.start)&&m.opts.start.call(t,m),m.progress(m.opts.progress).done(m.opts.done,m.opts.complete).fail(m.opts.fail).always(m.opts.always),x.fx.timer(x.extend(p,{elem:t,anim:m,queue:m.opts.queue})),m}x.Animation=x.extend(Ai,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ve(i.elem,t,ce.exec(e),i),i}]},tweener:function(t,e){for(var i,r=0,n=(t=o(t)?(e=t,["*"]):t.match(Kt)).length;r<n;r++)i=t[r],Ai.tweeners[i]=Ai.tweeners[i]||[],Ai.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var r,n,o,s,a,h,u,f="width"in e||"height"in e,l=this,d={},c=t.style,p=t.nodeType&&le(t),m=se.get(t,"fxshow");for(r in i.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,l.always((function(){l.always((function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()}))}))),e)if(n=e[r],yi.test(n)){if(delete e[r],o=o||"toggle"===n,n===(p?"hide":"show")){if("show"!==n||!m||void 0===m[r])continue;p=!0}d[r]=m&&m[r]||x.style(t,r)}if((h=!x.isEmptyObject(e))||!x.isEmptyObject(d))for(r in f&&1===t.nodeType&&(i.overflow=[c.overflow,c.overflowX,c.overflowY],null==(u=m&&m.display)&&(u=se.get(t,"display")),"none"===(f=x.css(t,"display"))&&(u?f=u:(we([t],!0),u=t.style.display||u,f=x.css(t,"display"),we([t]))),"inline"===f||"inline-block"===f&&null!=u)&&"none"===x.css(t,"float")&&(h||(l.done((function(){c.display=u})),null==u&&(f=c.display,u="none"===f?"":f)),c.display="inline-block"),i.overflow&&(c.overflow="hidden",l.always((function(){c.overflow=i.overflow[0],c.overflowX=i.overflow[1],c.overflowY=i.overflow[2]}))),h=!1,d)h||(m?"hidden"in m&&(p=m.hidden):m=se.access(t,"fxshow",{display:u}),o&&(m.hidden=!p),p&&we([t],!0),l.done((function(){for(r in p||we([t]),se.remove(t,"fxshow"),d)x.style(t,r,d[r])}))),h=xi(p?m[r]:0,r,l),r in m||(m[r]=h.start,p&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?Ai.prefilters.unshift(t):Ai.prefilters.push(t)}}),x.speed=function(t,e,i){var r=t&&"object"==typeof t?x.extend({},t):{complete:i||!i&&e||o(t)&&t,duration:t,easing:i&&e||e&&!o(e)&&e};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){o(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(t,e,i,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:e},t,i,r)},animate:function(t,e,i,r){function n(){var e=Ai(this,x.extend({},t),s);(o||se.get(this,"finish"))&&e.stop(!0)}var o=x.isEmptyObject(t),s=x.speed(e,i,r);return n.finish=n,o||!1===s.queue?this.each(n):this.queue(s.queue,n)},stop:function(t,e,i){function r(t){var e=t.stop;delete t.stop,e(i)}return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,n=null!=t&&t+"queueHooks",o=x.timers,s=se.get(this);if(n)s[n]&&s[n].stop&&r(s[n]);else for(n in s)s[n]&&s[n].stop&&wi.test(n)&&r(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(i),e=!1,o.splice(n,1));!e&&i||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=se.get(this),r=i[t+"queue"],n=i[t+"queueHooks"],o=x.timers,s=r?r.length:0;for(i.finish=!0,x.queue(this,t,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var i=x.fn[e];x.fn[e]=function(t,r,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Si(e,!0),t,r,n)}})),x.each({slideDown:Si("show"),slideUp:Si("hide"),slideToggle:Si("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,i,r){return this.animate(e,t,i,r)}})),x.timers=[],x.fx.tick=function(){var t,e=0,i=x.timers;for(bi=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||x.fx.stop(),bi=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){vi||(vi=!0,Mi())},x.fx.stop=function(){vi=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,this.queue(e=e||"fx",(function(e,r){var n=i.setTimeout(e,t);r.stop=function(){i.clearTimeout(n)}}))},rt=y.createElement("input"),it=y.createElement("select").appendChild(y.createElement("option")),rt.type="checkbox",v.checkOn=""!==rt.value,v.optSelected=it.selected,(rt=y.createElement("input")).value="t",rt.type="radio",v.radioValue="t"===rt.value;var ki,Ei=x.expr.attrHandle,Ri=(x.fn.extend({attr:function(t,e){return Qt(this,x.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,i){var r,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,i):(1===o&&x.isXMLDoc(t)||(n=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?ki:void 0)),void 0!==i?null===i?void x.removeAttr(t,e):n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):n&&"get"in n&&null!==(r=n.get(t,e))||null!=(r=x.find.attr(t,e))?r:void 0)},attrHooks:{type:{set:function(t,e){var i;if(!v.radioValue&&"radio"===e&&k(t,"input"))return i=t.value,t.setAttribute("type",e),i&&(t.value=i),e}}},removeAttr:function(t,e){var i,r=0,n=e&&e.match(Kt);if(n&&1===t.nodeType)for(;i=n[r++];)t.removeAttribute(i)}}),ki={set:function(t,e,i){return!1===e?x.removeAttr(t,i):t.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=Ei[e]||x.find.attr;Ei[e]=function(t,e,r){var n,o,s=e.toLowerCase();return r||(o=Ei[s],Ei[s]=n,n=null!=i(t,e,r)?s:null,Ei[s]=o),n}})),/^(?:input|select|textarea|button)$/i),Ti=/^(?:a|area)$/i;function Ci(t){return(t.match(Kt)||[]).join(" ")}function Ii(t){return t.getAttribute&&t.getAttribute("class")||""}function Bi(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Kt)||[]}function Pi(t){t.stopPropagation()}x.fn.extend({prop:function(t,e){return Qt(this,x.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,i){var r,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,n=x.propHooks[e]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:t[e]=i:n&&"get"in n&&null!==(r=n.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):Ri.test(t.nodeName)||Ti.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(t){return(t=t.parentNode)&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){(t=t.parentNode)&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,i,r,n,s,a;return o(t)?this.each((function(e){x(this).addClass(t.call(this,e,Ii(this)))})):(e=Bi(t)).length?this.each((function(){if(r=Ii(this),i=1===this.nodeType&&" "+Ci(r)+" "){for(s=0;s<e.length;s++)n=e[s],i.indexOf(" "+n+" ")<0&&(i+=n+" ");a=Ci(i),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,i,r,n,s,a;return o(t)?this.each((function(e){x(this).removeClass(t.call(this,e,Ii(this)))})):arguments.length?(e=Bi(t)).length?this.each((function(){if(r=Ii(this),i=1===this.nodeType&&" "+Ci(r)+" "){for(s=0;s<e.length;s++)for(n=e[s];-1<i.indexOf(" "+n+" ");)i=i.replace(" "+n+" "," ");a=Ci(i),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var i,r,n,s,a=typeof t,h="string"==a||Array.isArray(t);return o(t)?this.each((function(i){x(this).toggleClass(t.call(this,i,Ii(this),e),e)})):"boolean"==typeof e&&h?e?this.addClass(t):this.removeClass(t):(i=Bi(t),this.each((function(){if(h)for(s=x(this),n=0;n<i.length;n++)r=i[n],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!=a||((r=Ii(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",!r&&!1!==t&&se.get(this,"__className__")||""))})))},hasClass:function(t){for(var e,i=0,r=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+Ci(Ii(e))+" ").indexOf(r))return!0;return!1}});var ji=/\r/g,Li=(x.fn.extend({val:function(t){var e,i,r,n=this[0];return arguments.length?(r=o(t),this.each((function(i){1!==this.nodeType||(null==(i=r?t.call(this,i,x(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value"))||(this.value=i)}))):n?(e=x.valHooks[n.type]||x.valHooks[n.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(ji,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:Ci(x.text(t))}},select:{get:function(t){for(var e,i=t.options,r=t.selectedIndex,n="select-one"===t.type,o=n?null:[],s=n?r+1:i.length,a=r<0?s:n?r:0;a<s;a++)if(((e=i[a]).selected||a===r)&&!e.disabled&&(!e.parentNode.disabled||!k(e.parentNode,"optgroup"))){if(e=x(e).val(),n)return e;o.push(e)}return o},set:function(t,e){for(var i,r,n=t.options,o=x.makeArray(e),s=n.length;s--;)((r=n[s]).selected=-1<x.inArray(x.valHooks.option.get(r),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<x.inArray(x(t).val(),e)}},v.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),i.location),Ni={guid:Date.now()},Oi=/\?/,Di=(x.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||x.error("Invalid XML: "+(r?x.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e},/^(?:focusinfocus|focusoutblur)$/),qi=(x.extend(x.event,{trigger:function(t,e,r,n){var a,h,u,f,l,d,c,p=[r||y],g=m.call(t,"type")?t.type:t,b=m.call(t,"namespace")?t.namespace.split("."):[],v=c=h=r=r||y;if(3!==r.nodeType&&8!==r.nodeType&&!Di.test(g+x.event.triggered)&&(-1<g.indexOf(".")&&(g=(b=g.split(".")).shift(),b.sort()),f=g.indexOf(":")<0&&"on"+g,(t=t[x.expando]?t:new x.Event(g,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:x.makeArray(e,[t]),d=x.event.special[g]||{},n||!d.trigger||!1!==d.trigger.apply(r,e))){if(!n&&!d.noBubble&&!s(r)){for(u=d.delegateType||g,Di.test(u+g)||(v=v.parentNode);v;v=v.parentNode)p.push(v),h=v;h===(r.ownerDocument||y)&&p.push(h.defaultView||h.parentWindow||i)}for(a=0;(v=p[a++])&&!t.isPropagationStopped();)c=v,t.type=1<a?u:d.bindType||g,(l=(se.get(v,"events")||Object.create(null))[t.type]&&se.get(v,"handle"))&&l.apply(v,e),(l=f&&v[f])&&l.apply&&ne(v)&&(t.result=l.apply(v,e),!1===t.result)&&t.preventDefault();return t.type=g,n||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!ne(r)||f&&o(r[g])&&!s(r)&&((h=r[f])&&(r[f]=null),x.event.triggered=g,t.isPropagationStopped()&&c.addEventListener(g,Pi),r[g](),t.isPropagationStopped()&&c.removeEventListener(g,Pi),x.event.triggered=void 0,h)&&(r[f]=h),t.result}},simulate:function(t,e,i){i=x.extend(new x.Event,i,{type:t,isSimulated:!0}),x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return x.event.trigger(t,e,i,!0)}}),/\[\]$/),zi=/\r?\n/g,Ui=/^(?:submit|button|image|reset|file)$/i,Fi=/^(?:input|select|textarea|keygen)/i;x.param=function(t,e){function i(t,e){e=o(e)?e():e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var r,n=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){i(this.name,this.value)}));else for(r in t)!function t(e,i,r,n){if(Array.isArray(i))x.each(i,(function(i,o){r||qi.test(e)?n(e,o):t(e+"["+("object"==typeof o&&null!=o?i:"")+"]",o,r,n)}));else if(r||"object"!==_(i))n(e,i);else for(var o in i)t(e+"["+o+"]",i[o],r,n)}(r,t[r],e,i);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Fi.test(this.nodeName)&&!Ui.test(t)&&(this.checked||!Me.test(t))})).map((function(t,e){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(t){return{name:e.name,value:t.replace(zi,"\r\n")}})):{name:e.name,value:i.replace(zi,"\r\n")}})).get()}});var Zi=/%20/g,Hi=/#.*$/,Wi=/([?&])_=[^&]*/,Ki=/^(.*?):[ \t]*([^\r\n]*)$/gm,$i=/^(?:GET|HEAD)$/,Yi=/^\/\//,Vi={},Gi={},Ji="*/".concat("*"),Xi=y.createElement("a");function Qi(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var r,n=0,s=e.toLowerCase().match(Kt)||[];if(o(i))for(;r=s[n++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(i)):(t[r]=t[r]||[]).push(i)}}function tr(t,e,i,r){var n={},o=t===Gi;function s(a){var h;return n[a]=!0,x.each(t[a]||[],(function(t,a){return"string"!=typeof(a=a(e,i,r))||o||n[a]?o?!(h=a):void 0:(e.dataTypes.unshift(a),s(a),!1)})),h}return s(e.dataTypes[0])||!n["*"]&&s("*")}function er(t,e){var i,r,n=x.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((n[i]?t:r=r||{})[i]=e[i]);return r&&x.extend(!0,t,r),t}Xi.href=Li.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Li.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Li.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ji,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?er(er(t,x.ajaxSettings),e):er(x.ajaxSettings,t)},ajaxPrefilter:Qi(Vi),ajaxTransport:Qi(Gi),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var r,n,o,s,a,h,u,f,l=x.ajaxSetup({},e=e||{}),d=l.context||l,c=l.context&&(d.nodeType||d.jquery)?x(d):x.event,p=x.Deferred(),m=x.Callbacks("once memory"),g=l.statusCode||{},b={},v={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(h){if(!s)for(s={};e=Ki.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?o:null},setRequestHeader:function(t,e){return null==h&&(t=v[t.toLowerCase()]=v[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(l.mimeType=t),this},statusCode:function(t){if(t)if(h)M.always(t[M.status]);else for(var e in t)g[e]=[g[e],t[e]];return this},abort:function(t){return t=t||w,r&&r.abort(t),_(0,t),this}};if(p.promise(M),l.url=((t||l.url||Li.href)+"").replace(Yi,Li.protocol+"//"),l.type=e.method||e.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(Kt)||[""],null==l.crossDomain){t=y.createElement("a");try{t.href=l.url,t.href=t.href,l.crossDomain=Xi.protocol+"//"+Xi.host!=t.protocol+"//"+t.host}catch(t){l.crossDomain=!0}}if(l.data&&l.processData&&"string"!=typeof l.data&&(l.data=x.param(l.data,l.traditional)),tr(Vi,l,e,M),!h){for(f in(u=x.event&&l.global)&&0==x.active++&&x.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!$i.test(l.type),n=l.url.replace(Hi,""),l.hasContent?l.data&&l.processData&&0===(l.contentType||"").indexOf("application/x-www-form-urlencoded")&&(l.data=l.data.replace(Zi,"+")):(t=l.url.slice(n.length),l.data&&(l.processData||"string"==typeof l.data)&&(n+=(Oi.test(n)?"&":"?")+l.data,delete l.data),!1===l.cache&&(n=n.replace(Wi,"$1"),t=(Oi.test(n)?"&":"?")+"_="+Ni.guid+++t),l.url=n+t),l.ifModified&&(x.lastModified[n]&&M.setRequestHeader("If-Modified-Since",x.lastModified[n]),x.etag[n])&&M.setRequestHeader("If-None-Match",x.etag[n]),(l.data&&l.hasContent&&!1!==l.contentType||e.contentType)&&M.setRequestHeader("Content-Type",l.contentType),M.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Ji+"; q=0.01":""):l.accepts["*"]),l.headers)M.setRequestHeader(f,l.headers[f]);if(l.beforeSend&&(!1===l.beforeSend.call(d,M,l)||h))return M.abort();if(w="abort",m.add(l.complete),M.done(l.success),M.fail(l.error),r=tr(Gi,l,e,M)){if(M.readyState=1,u&&c.trigger("ajaxSend",[M,l]),h)return M;l.async&&0<l.timeout&&(a=i.setTimeout((function(){M.abort("timeout")}),l.timeout));try{h=!1,r.send(b,_)}catch(t){if(h)throw t;_(-1,t)}}else _(-1,"No Transport")}return M;function _(t,e,s,f){var b,v,y,w=e;h||(h=!0,a&&i.clearTimeout(a),r=void 0,o=f||"",M.readyState=0<t?4:0,f=200<=t&&t<300||304===t,s&&(y=function(t,e,i){for(var r,n,o,s,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(n in a)if(a[n]&&a[n].test(r)){h.unshift(n);break}if(h[0]in i)o=h[0];else{for(n in i){if(!h[0]||t.converters[n+" "+h[0]]){o=n;break}s=s||n}o=o||s}if(o)return o!==h[0]&&h.unshift(o),i[o]}(l,M,s)),!f&&-1<x.inArray("script",l.dataTypes)&&x.inArray("json",l.dataTypes)<0&&(l.converters["text script"]=function(){}),y=function(t,e,i,r){var n,o,s,a,h,u={},f=t.dataTypes.slice();if(f[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=f.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!h&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=o,o=f.shift())if("*"===o)o=h;else if("*"!==h&&h!==o){if(!(s=u[h+" "+o]||u["* "+o]))for(n in u)if((a=n.split(" "))[1]===o&&(s=u[h+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[n]:!0!==u[n]&&(o=a[0],f.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+h+" to "+o}}}return{state:"success",data:e}}(l,y,M,f),f?(l.ifModified&&((s=M.getResponseHeader("Last-Modified"))&&(x.lastModified[n]=s),s=M.getResponseHeader("etag"))&&(x.etag[n]=s),204===t||"HEAD"===l.type?w="nocontent":304===t?w="notmodified":(w=y.state,b=y.data,f=!(v=y.error))):(v=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",f?p.resolveWith(d,[b,w,M]):p.rejectWith(d,[M,w,v]),M.statusCode(g),g=void 0,u&&c.trigger(f?"ajaxSuccess":"ajaxError",[M,l,f?b:v]),m.fireWith(d,[M,w]),u&&(c.trigger("ajaxComplete",[M,l]),--x.active||x.event.trigger("ajaxStop")))}},getJSON:function(t,e,i){return x.get(t,e,i,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,i,r,n){return o(i)&&(n=n||r,r=i,i=void 0),x.ajax(x.extend({url:t,type:e,dataType:n,data:i,success:r},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,i){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,i)}})},x.fn.extend({wrapAll:function(t){return this[0]&&(o(t)&&(t=t.call(this[0])),t=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return o(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=o(t);return this.each((function(i){x(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var ir={0:200,1223:204},rr=x.ajaxSettings.xhr(),nr=(v.cors=!!rr&&"withCredentials"in rr,v.ajax=rr=!!rr,x.ajaxTransport((function(t){var e,r;if(v.cors||rr&&!t.crossDomain)return{send:function(n,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)a.setRequestHeader(s,n[s]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(ir[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&r()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(n){if(e)throw n}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(r,n){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&n("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){i&&i()}}})),[]),or=/(=)\?(?=&|$)|\?\?/,sr=(x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=nr.pop()||x.expando+"_"+Ni.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,r){var n,s,a,h=!1!==t.jsonp&&(or.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&or.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=o(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(or,"$1"+n):!1!==t.jsonp&&(t.url+=(Oi.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return a||x.error(n+" was not called"),a[0]},t.dataTypes[0]="json",s=i[n],i[n]=function(){a=arguments},r.always((function(){void 0===s?x(i).removeProp(n):i[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,nr.push(n)),a&&o(s)&&s(a[0]),a=s=void 0})),"script"})),v.createHTMLDocument=((de=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===de.childNodes.length),x.parseHTML=function(t,e,i){var r;return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(v.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),r=!i&&[],(i=qt.exec(t))?[e.createElement(i[1])]:(i=Re([t],e,r),r&&r.length&&x(r).remove(),x.merge([],i.childNodes)))},x.fn.load=function(t,e,i){var r,n,s,a=this,h=t.indexOf(" ");return-1<h&&(r=Ci(t.slice(h)),t=t.slice(0,h)),o(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),0<a.length&&x.ajax({url:t,type:n||"GET",dataType:"html",data:e}).done((function(t){s=arguments,a.html(r?x("<div>").append(x.parseHTML(t)).find(r):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,s||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,i){var r,n,s,a,h=x.css(t,"position"),u=x(t),f={};"static"===h&&(t.style.position="relative"),s=u.offset(),r=x.css(t,"top"),a=x.css(t,"left"),h=("absolute"===h||"fixed"===h)&&-1<(r+a).indexOf("auto")?(n=(h=u.position()).top,h.left):(n=parseFloat(r)||0,parseFloat(a)||0),null!=(e=o(e)?e.call(t,i,x.extend({},s)):e).top&&(f.top=e.top-s.top+n),null!=e.left&&(f.left=e.left-s.left+h),"using"in e?e.using.call(t,f):u.css(f)}},x.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)})):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,r=this[0],n={top:0,left:0};if("fixed"===x.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),i=r.ownerDocument,t=r.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((n=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),n.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-n.top-x.css(r,"marginTop",!0),left:e.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||me}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;x.fn[t]=function(r){return Qt(this,(function(t,r,n){var o;if(s(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===n)return o?o[e]:t[r];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):t[r]=n}),t,r,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=oi(v.pixelPosition,(function(t,i){if(i)return i=ni(t,e),Qe.test(i)?x(t).position()[e]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,r){x.fn[r]=function(n,o){var a=arguments.length&&(i||"boolean"!=typeof n),h=i||(!0===n||!0===o?"margin":"border");return Qt(this,(function(e,i,n){var o;return s(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===n?x.css(e,i,h):x.style(e,i,n,h)}),e,a?n:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,r){return this.on(e,t,i,r)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,i){return 0<arguments.length?this.on(e,null,t,i):this.trigger(e)}})),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),ar=(x.proxy=function(t,e){var i,r;if("string"==typeof e&&(r=t[e],e=t,t=r),o(t))return i=u.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(u.call(arguments)))}).guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=k,x.isFunction=o,x.isWindow=s,x.camelCase=re,x.type=_,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(sr,"$1")},void 0!==(r=function(){return x}.apply(e,[]))&&(t.exports=r),i.jQuery),hr=i.$;return x.noConflict=function(t){return i.$===x&&(i.$=hr),t&&i.jQuery===x&&(i.jQuery=ar),x},void 0===n&&(i.jQuery=i.$=x),x}))},,function(t,e,i){(function(t){function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,i(3).Buffer)},function(t,e,i){"use strict";var r=i(6);i=i(1);function n(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function s(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s<t.length;s+=2)n.push(parseInt(t[s]+t[s+1],16))}else for(var o=0,s=0;s<t.length;s++){var a=t.charCodeAt(s);a<128?n[o++]=a:a<2048?(n[o++]=a>>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s<t.length;s++)n[s]=0|t[s];return n},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e},e.htonl=n,e.toHex32=function(t,e){for(var i="",r=0;r<t.length;r++){var o=t[r];i+=s((o="little"===e?n(o):o).toString(16))}return i},e.zero2=o,e.zero8=s,e.join32=function(t,e,i,n){r((i-=e)%4==0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var h="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a];o[s]=h>>>0}return o},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r<t.length;r++,n+=4){var o=t[r];"big"===e?(i[n]=o>>>24,i[n+1]=o>>>16&255,i[n+2]=o>>>8&255,i[n+3]=255&o):(i[n+3]=o>>>24,i[n+2]=o>>>16&255,i[n+1]=o>>>8&255,i[n]=255&o)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,r){return t+e+i+r>>>0},e.sum32_5=function(t,e,i,r,n){return t+e+i+r+n>>>0},e.sum64=function(t,e,i,r){var n=t[e],o=r+t[e+1]>>>0;t[e]=(o<r?1:0)+i+n>>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0<e?1:0)+t+i>>>0},e.sum64_lo=function(t,e,i,r){return e+r>>>0},e.sum64_4_hi=function(t,e,i,r,n,o,s,a){var h=0;return t+i+n+s+((h+=(t=e+r>>>0)<e?1:0)+((t=t+o>>>0)<o?1:0)+(t+a>>>0<a?1:0))>>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){return t+i+n+s+h+(0+((t=e+r>>>0)<e?1:0)+((t=t+o>>>0)<o?1:0)+((t=t+a>>>0)<a?1:0)+(t+u>>>0<u?1:0))>>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+u>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(175)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var r=i(2).Buffer,n=i(131).Transform,o=i(19).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(1)(s,n),s.prototype.update=function(t,e,i){return"string"==typeof t&&(t=r.from(t,e)),e=this._update(t),this.hashMode?this:i?this._toString(e,i):e},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");return e=this._decoder.write(t),i&&(e+=this._decoder.end()),e},t.exports=s},function(t,e,i){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,i,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,r)}));case 4:return e.nextTick((function(){t.call(null,i,r,n)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,i(4))},,function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},o=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},s=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(i,r){function n(i){t.removeListener(e,o),r(i)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",n),i([].slice.call(arguments))}var s,a,h;g(t,e,o,{once:!0}),"error"!==e&&(a=n,h={once:!0},"function"==typeof(s=t).on)&&g(s,"error",a,h)}))},(a.EventEmitter=a).prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var h=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(n=f(t))&&o.length>n&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=t,r.type=e,r.count=o.length,i=r,console)&&console.warn&&console.warn(i)),t}function d(t,e,i){return(e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i})).listener=i,t.wrapFn=e}function c(t,e,i){if(void 0===(t=t._events))return[];if(void 0===(t=t[e]))return[];if("function"==typeof t)return i?[t.listener||t]:[t];if(i){for(var r=t,n=new Array(r.length),o=0;o<n.length;++o)n[o]=r[o].listener||r[o];return n}return m(t,t.length)}function p(t){var e=this._events;if(void 0!==e){if("function"==typeof(e=e[t]))return 1;if(void 0!==e)return e.length}return 0}function m(t,e){for(var i=new Array(e),r=0;r<e;++r)i[r]=t[r];return i}function g(t,e,i,r){if("function"==typeof t.on)r.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function n(o){r.once&&t.removeEventListener(e,n),i(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");h=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){if((s=0<e.length?e[0]:s)instanceof Error)throw s;throw(r=new Error("Unhandled error."+(s?" ("+s.message+")":""))).context=s,r}var s=o[t];if(void 0===s)return!1;if("function"==typeof s)n(s,this,e);else{var a=s.length,h=m(s,a);for(i=0;i<a;++i)n(h[i],this,e)}return!0},a.prototype.on=a.prototype.addListener=function(t,e){return l(this,t,e,!1)},a.prototype.prependListener=function(t,e){return l(this,t,e,!0)},a.prototype.once=function(t,e){return u(e),this.on(t,d(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,d(this,t,e)),this},a.prototype.off=a.prototype.removeListener=function(t,e){var i,r,n,o,s;if(u(e),void 0!==(r=this._events)&&void 0!==(i=r[t]))if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(n=-1,o=i.length-1;0<=o;o--)if(i[o]===e||i[o].listener===e){s=i[o].listener,n=o;break}if(n<0)return this;if(0===n)i.shift();else{for(var a=i,h=n;h+1<a.length;h++)a[h]=a[h+1];a.pop()}1===i.length&&(r[t]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},a.prototype.removeAllListeners=function(t){var e,i=this._events;if(void 0!==i)if(void 0===i.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]);else if(0===arguments.length){for(var r,n=Object.keys(i),o=0;o<n.length;++o)"removeListener"!==(r=n[o])&&this.removeAllListeners(r);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(o=e.length-1;0<=o;o--)this.removeListener(t,e[o]);return this},a.prototype.listeners=function(t){return c(this,t,!0)},a.prototype.rawListeners=function(t){return c(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return 0<this._eventsCount?o(this._events):[]}},function(t,e,i){"use strict";var r=i(122).Buffer,n=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"==typeof e||r.isEncoding!==n&&n(t))return e||t;throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf16le":this.text=h,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=d,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i=this.lastTotal-this.lastNeed,r=(e=this,128!=(192&(r=t)[0])?(e.lastNeed=0,"�"):1<e.lastNeed&&1<r.length?128!=(192&r[1])?(e.lastNeed=1,"�"):2<e.lastNeed&&2<r.length&&128!=(192&r[2])?(e.lastNeed=2,"�"):void 0:void 0);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,i,0,t.length),void(this.lastNeed-=t.length))}function h(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);if(e=t.toString("utf16le",e)){var i=e.charCodeAt(e.length-1);if(55296<=i&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}function u(t){var e;t=t&&t.length?this.write(t):"";return this.lastNeed?(e=this.lastTotal-this.lastNeed,t+this.lastChar.toString("utf16le",0,e)):t}function f(t,e){var i=(t.length-e)%3;return 0==i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1==i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function l(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}(e.StringDecoder=o).prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},o.prototype.end=function(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+"�":t},o.prototype.text=function(t,e){var i=function(t,e,i){var r=e.length-1;if(!(r<i)){var n=s(e[r]);if(0<=n)return 0<n&&(t.lastNeed=n-1),n;if(!(--r<i||-2===n)){if(0<=(n=s(e[r])))return 0<n&&(t.lastNeed=n-2),n;if(!(--r<i||-2===n)&&0<=(n=s(e[r])))return 0<n&&(2===n?n=0:t.lastNeed=n-3),n}}return 0}(this,t,e);return this.lastNeed?(this.lastTotal=i,i=t.length-(i-this.lastNeed),t.copy(this.lastChar,0,i),t.toString("utf8",e,i)):t.toString("utf8",e)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,i){"use strict";var r=i(16),n=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i},o=((t=(t.exports=f,Object.create(i(10)))).inherits=i(1),i(67)),s=i(44);t.inherits(f,o);for(var a=n(s.prototype),h=0;h<a.length;h++){var u=a[h];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);o.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),f.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},,function(t,e,i){"use strict";(function(e,r){var n=i(2).Buffer,o=e.crypto||e.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var i=n.allocUnsafe(t);if(0<t)if(65536<t)for(var s=0;s<t;s+=65536)o.getRandomValues(i.slice(s,s+65536));else o.getRandomValues(i);return"function"!=typeof e?i:r.nextTick((function(){e(null,i)}))}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,i(5),i(4))},function(t,e,i){"use strict";var r={};function n(t,e,i){var n=function(t){var i,r;function n(i,r,n){return t.call(this,(i=i,r=r,n=n,"string"==typeof e?e:e(i,r,n)))||this}return r=t,(i=n).prototype=Object.create(r.prototype),(i.prototype.constructor=i).__proto__=r,n}(i=i||Error);n.prototype.name=i.name,n.prototype.code=t,r[t]=n}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r,n,o,s,a;return"string"==typeof e&&(s="not ",e.substr(!o||o<0?0:+o,s.length)===s)?(r="must not be",e=e.replace(/^not /,"")):r="must be",o=t,s=" argument",(void 0===a||a>o.length)&&(a=o.length),(o=(o.substring(a-s.length,a)===s?"The ".concat(t," "):(a=(n="number"!=typeof n?0:n)+(o=".").length>(a=t).length||-1===a.indexOf(o,n)?"argument":"property",'The "'.concat(t,'" ').concat(a," "))).concat(r," ").concat(function(t,e){var i;return Array.isArray(t)?(i=t.length,t=t.map((function(t){return String(t)})),2<i?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])):"of ".concat(e," ").concat(String(t))}(e,"type")))+". Received type ".concat(typeof i)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,i){"use strict";(function(e){var r=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i},n=(t.exports=u,i(59)),o=i(63);i(1)(u,n);for(var s=r(o.prototype),a=0;a<s.length;a++){var h=s[a];u.prototype[h]||(u.prototype[h]=o.prototype[h])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen)&&(this.allowHalfOpen=!1,this.once("end",f))}function f(){this._writableState.ended||e.nextTick(l,this)}function l(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(4))},function(t,e,i){var r=i(2).Buffer;function n(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}n.prototype.update=function(t,e){"string"==typeof t&&(t=r.from(t,e=e||"utf8"));for(var i=this._block,n=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var h=s%n,u=Math.min(o-a,n-h),f=0;f<u;f++)i[h+f]=t[a+f];a+=u,(s+=u)%n==0&&this._update(i)}return this._len+=o,this},n.prototype.digest=function(t){var e=this._len%this._blockSize;(e=(this._block[e]=128,this._block.fill(0,1+e),e>=this._finalSize&&(this._update(this._block),this._block.fill(0)),8*this._len))<=4294967295||this._block.writeUInt32BE((e-(e=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4),this._update(this._block),e=this._hash();return t?e.toString(t):e},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},function(t,e,i){"use strict";var r=i(16),n=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i},o=((t=(t.exports=f,Object.create(i(10)))).inherits=i(1),i(90)),s=i(93);t.inherits(f,o);for(var a=n(s.prototype),h=0;h<a.length;h++){var u=a[h];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);o.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),f.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e,i){"use strict";var r=i(1),n=i(38),o=i(41),s=i(42),a=i(15);function h(t){a.call(this,"digest"),this._hash=t}r(h,a),h.prototype._update=function(t){this._hash.update(t)},h.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new n:"rmd160"===t||"ripemd160"===t?new o:new h(s(t))}},function(t,e,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),o=0;o<r;++o)n[o]=t[o]^i[o];return n}}).call(this,i(3).Buffer)},function(t,e,i){"use strict";var r=i(11),n=i(6);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(e.BlockHash=o).prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){e=(t=this.pending).length%this._delta8,this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),n(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e,r=new Array(i+this.padLength);r[0]=128;for(var n=1;n<i;n++)r[n]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=t>>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o<this.padLength;o++)r[n++]=0;return r}},function(t,e,i){e.bignum=i(194),e.define=i(196).define,e.base=i(31),e.constants=i(101),e.decoders=i(201),e.encoders=i(203)},function(t,e,i){e.Reporter=i(198).Reporter,e.DecoderBuffer=i(100).DecoderBuffer,e.EncoderBuffer=i(100).EncoderBuffer,e.Node=i(199)},function(t,e,i){var r=i(2).Buffer;function n(t){for(var e=(t=r.isBuffer(t)?t:r.from(t)).length/4|0,i=new Array(e),n=0;n<e;n++)i[n]=t.readUInt32BE(4*n);return i}function o(t){for(;0<t.length;t++)t[0]=0}function s(t,e,i,r,n){for(var o,s,a,h,u=i[0],f=i[1],l=i[2],d=i[3],c=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],g=t[3]^e[3],b=4,v=1;v<n;v++)o=u[c>>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&g]^e[b++],s=u[p>>>24]^f[m>>>16&255]^l[g>>>8&255]^d[255&c]^e[b++],a=u[m>>>24]^f[g>>>16&255]^l[c>>>8&255]^d[255&p]^e[b++],h=u[g>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[b++],c=o,p=s,m=a,g=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^e[b++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&c])^e[b++],a=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[b++],h=(r[g>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[b++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4,f=(i[s]=u=u>>>8^255&u^99,t[r[u]=s]),l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function u(t){this._key=n(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<r;o++){var s=n[o-1];o%e==0?(s=h.SBOX[(s=s<<8|s>>>24)>>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s],s^=a[o/e|0]<<24):6<e&&o%e==4&&(s=h.SBOX[s>>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s]),n[o]=n[o-e]^s}for(var u=[],f=0;f<r;f++){var l=r-f,d=n[l-(f%4?0:4)];u[f]=f<4||l<=4?d:h.INV_SUB_MIX[0][h.SBOX[d>>>24]]^h.INV_SUB_MIX[1][h.SBOX[d>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[d>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&d]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(t){return s(t=n(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},u.prototype.encryptBlock=function(t){t=this.encryptBlockRaw(t);var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[1],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[3],12),e},u.prototype.decryptBlock=function(t){var e=(t=n(t))[1];t[1]=t[3],t[3]=e,e=s(t,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds);return(t=r.allocUnsafe(16)).writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},function(t,e,i){var r=i(2).Buffer,n=i(38);t.exports=function(t,e,i,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&8!==(e=r.isBuffer(e)?e:r.from(e,"binary")).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var s=i/8,a=r.alloc(s),h=r.alloc(o||0),u=r.alloc(0);0<s||0<o;){var f,l,d=((d=new n).update(u),d.update(t),e&&d.update(e),u=d.digest(),0);0<s&&(f=a.length-s,d=Math.min(s,u.length),u.copy(a,f,0,d),s-=d),d<u.length&&0<o&&(f=h.length-o,l=Math.min(o,u.length-d),u.copy(h,f,d,d+l),o-=l)}return u.fill(0),{key:a,iv:h}}},function(t,e,i){"use strict";var r=i(12),n=i(7),o=n.getNAF,s=n.getJSF,a=n.assert;function h(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0,!(t=this.n&&this.p.div(this.n))||0<t.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(t,e){this.curve=t,this.type=e,this.precomputed=null}(t.exports=h).prototype.point=function(){throw new Error("Not implemented")},h.prototype.validate=function(){throw new Error("Not implemented")},h.prototype._fixedNafMul=function(t,e){a(t.precomputed);for(var i=t._getDoubles(),r=o(e,1,this._bitLength),n=(t=(1<<i.step+1)-(i.step%2==0?2:1),t/=3,[]),s=0;s<r.length;s+=i.step){for(var h=0,u=s+i.step-1;s<=u;u--)h=(h<<1)+r[u];n.push(h)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=t;0<d;d--){for(s=0;s<n.length;s++)(h=n[s])===d?l=l.mixedAdd(i.points[s]):h===-d&&(l=l.mixedAdd(i.points[s].neg()));f=f.add(l)}return f.toP()},h.prototype._wnafMul=function(t,e){for(var i=t._getNAFPoints(4),r=i.wnd,n=i.points,s=o(e,r,this._bitLength),h=this.jpoint(null,null,null),u=s.length-1;0<=u;u--){for(var f=0;0<=u&&0===s[u];u--)f++;if(0<=u&&f++,h=h.dblp(f),u<0)break;var l=s[u];a(0!==l),h="affine"===t.type?0<l?h.mixedAdd(n[l-1>>1]):h.mixedAdd(n[-l-1>>1].neg()):0<l?h.add(n[l-1>>1]):h.add(n[-l-1>>1].neg())}return"affine"===t.type?h.toP():h},h.prototype._wnafMulAdd=function(t,e,i,r,n){for(var a=this._wnafT1,h=this._wnafT2,u=this._wnafT3,f=0,l=0;l<r;l++){var d,c=(d=e[l])._getNAFPoints(t);a[l]=c.wnd,h[l]=c.points}for(l=r-1;1<=l;l-=2){var p=l-1,m=l;if(1!==a[p]||1!==a[m])u[p]=o(i[p],a[p],this._bitLength),u[m]=o(i[m],a[m],this._bitLength),f=Math.max(u[p].length,f),f=Math.max(u[m].length,f);else{var g=[e[p],null,null,e[m]],b=(0===e[p].y.cmp(e[m].y)?(g[1]=e[p].add(e[m]),g[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(g[1]=e[p].toJ().mixedAdd(e[m]),g[2]=e[p].add(e[m].neg())):(g[1]=e[p].toJ().mixedAdd(e[m]),g[2]=e[p].toJ().mixedAdd(e[m].neg())),[-3,-1,-5,-7,0,7,5,1,3]),v=s(i[p],i[m]);f=Math.max(v[0].length,f);for(u[p]=new Array(f),u[m]=new Array(f),A=0;A<f;A++){var y=0|v[0][A],w=0|v[1][A];u[p][A]=b[3*(1+y)+(1+w)],u[m][A]=0,h[p]=g}}}var M=this.jpoint(null,null,null),_=this._wnafT4;for(l=f;0<=l;l--){for(var S=0;0<=l;){for(var x=!0,A=0;A<r;A++)_[A]=0|u[A][l],0!==_[A]&&(x=!1);if(!x)break;S++,l--}if(0<=l&&S++,M=M.dblp(S),l<0)break;for(A=0;A<r;A++){var k=_[A];0!==k&&(0<k?d=h[A][k-1>>1]:k<0&&(d=h[A][-k-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(l=0;l<r;l++)h[l]=null;return n?M:M.toP()},(h.BasePoint=u).prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},h.prototype.decodePoint=function(t,e){if(t=n.toArray(t,e),e=this.p.byteLength(),(4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*e)return 6===t[0]?a(t[t.length-1]%2==0):7===t[0]&&a(t[t.length-1]%2==1),this.point(t.slice(1,1+e),t.slice(1+e,1+2*e));if(2!==t[0]&&3!==t[0]||t.length-1!==e)throw new Error("Unknown point format");return this.pointFromX(t.slice(1,1+e),3===t[0])},u.prototype.encodeCompressed=function(t){return this.encode(t,!0)},u.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},u.prototype.encode=function(t,e){return n.encode(this._encode(e),t)},u.prototype.precompute=function(t){var e;return this.precomputed||((e={doubles:null,naf:null,beta:null}).naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e),this},u.prototype._hasDoubles=function(t){var e;return!!this.precomputed&&!!(e=this.precomputed.doubles)&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},u.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n<e;n+=t){for(var o=0;o<t;o++)r=r.dbl();i.push(r)}return{step:t,points:i}},u.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,r=1==i?null:this.dbl(),n=1;n<i;n++)e[n]=e[n-1].add(r);return{wnd:t,points:e}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,i){"use strict";var r=i(193),n=i(206),o=i(207),s=i(46),a=i(75),h=i(104).Buffer;function u(t){"object"!=typeof t||h.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=h.from(t));var e,i,u,f,l,d,c,p,m,g,b=(t=o(t,e)).tag,v=t.data;switch(b){case"CERTIFICATE":u=r.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i=(u=u||r.PublicKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.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=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":l=e,d=(f=v=r.EncryptedPrivateKey.decode(v,"der")).algorithm.decrypt.kde.kdeparams.salt,c=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10),p=n[f.algorithm.decrypt.cipher.algo.join(".")],m=f.algorithm.decrypt.cipher.iv,f=f.subjectPrivateKey,g=parseInt(p.split("-")[1],10)/8,l=a.pbkdf2Sync(l,d,c,g,"sha1"),d=s.createDecipheriv(p,l,m),(c=[]).push(d.update(f)),c.push(d.final()),v=h.concat(c);case"PRIVATE KEY":switch(i=(u=r.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=r.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+b)}}u.signature=r.signature,t.exports=u},,function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";var r=i(1),n=i(58),o=i(2).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<<e|t>>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},function(t,e,i){(function(e){function i(t){try{if(!e.localStorage)return}catch(t){return}return null!=(t=e.localStorage[t])&&"true"===String(t).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,i(5))},function(t,e,i){"use strict";var r=i(23).codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function t(e,i,o){var s,a,h,u,f,l,d,c,p,m,g,b,v;return"function"==typeof i?t(e,null,i):(s=o||n,a=!1,o=function(){if(!a){a=!0;for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];s.apply(this,e)}},h=(i=i||{}).readable||!1!==i.readable&&e.readable,u=i.writable||!1!==i.writable&&e.writable,f=function(){e.writable||d()},l=e._writableState&&e._writableState.finished,d=function(){l=!(u=!1),h||o.call(e)},c=e._readableState&&e._readableState.endEmitted,p=function(){c=!(h=!1),u||o.call(e)},m=function(t){o.call(e,t)},g=function(){var t;return h&&!c?(e._readableState&&e._readableState.ended||(t=new r),o.call(e,t)):u&&!l?(e._writableState&&e._writableState.ended||(t=new r),o.call(e,t)):void 0},b=function(){e.req.on("finish",d)},(v=e).setHeader&&"function"==typeof v.abort?(e.on("complete",d),e.on("abort",g),e.req?b():e.on("request",b)):u&&!e._writableState&&(e.on("end",f),e.on("close",f)),e.on("end",p),e.on("finish",d),!1!==i.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",g)})}},function(t,e,i){"use strict";var r=i(3).Buffer,n=i(1),o=i(58),s=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],h=[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],f=[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],d=[1352829926,1548603684,1836072691,2053994217,0];function c(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,i,r,n,o,s,a){return p(t+(e^i^r)+o+s|0,a)+n|0}function g(t,e,i,r,n,o,s,a){return p(t+(e&i|~e&r)+o+s|0,a)+n|0}function b(t,e,i,r,n,o,s,a){return p(t+((e|~i)^r)+o+s|0,a)+n|0}function v(t,e,i,r,n,o,s,a){return p(t+(e&r|i&~r)+o+s|0,a)+n|0}function y(t,e,i,r,n,o,s,a){return p(t+(e^(i|~r))+o+s|0,a)+n|0}n(c,o),c.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,c=0|this._e,w=0|this._a,M=0|this._b,_=0|this._c,S=0|this._d,x=0|this._e,A=0;A<80;A+=1){var k,E=A<16?(k=m(i,r,n,o,c,t[a[A]],l[0],u[A]),y(w,M,_,S,x,t[h[A]],d[0],f[A])):A<32?(k=g(i,r,n,o,c,t[a[A]],l[1],u[A]),v(w,M,_,S,x,t[h[A]],d[1],f[A])):A<48?(k=b(i,r,n,o,c,t[a[A]],l[2],u[A]),b(w,M,_,S,x,t[h[A]],d[2],f[A])):A<64?(k=v(i,r,n,o,c,t[a[A]],l[3],u[A]),g(w,M,_,S,x,t[h[A]],d[3],f[A])):(k=y(i,r,n,o,c,t[a[A]],l[4],u[A]),m(w,M,_,S,x,t[h[A]],d[4],f[A]));i=c,c=o,o=p(n,10),n=r,r=k,w=x,x=S,S=p(_,10),_=M,M=E}var R=this._b+n+S|0;this._b=this._c+o+x|0,this._c=this._d+c+w|0,this._d=this._e+i+M|0,this._e=this._a+r+_|0,this._a=R},c.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=c},function(t,e,i){(e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(i)return new i;throw new Error(t+" is not supported (we accept pull requests)")}).sha=i(127),e.sha1=i(128),e.sha224=i(129),e.sha256=i(65),e.sha384=i(130),e.sha512=i(66)},function(t,e,i){(((e=t.exports=i(67)).Stream=e).Readable=e).Writable=i(44),e.Duplex=i(20),e.Transform=i(71),e.PassThrough=i(136)},function(t,e,i){"use strict";(function(e,r,n){var o=i(16);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){var i=e,r=t,n=i.entry;for(i.entry=null;n;){var o=n.callback;r.pendingcb--,o(void 0),n=n.next}r.corkedRequestsFree.next=i}}t.exports=m;var a,h,u=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:o.nextTick,f=(r=((e=(m.WritableState=p,Object.create(i(10)))).inherits=i(1),{deprecate:i(39)}),i(68)),l=i(2).Buffer,d=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};n=i(69);function c(){}function p(t,e){a=a||i(20),t=t||{};var r=e instanceof a,n=(this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),t.highWaterMark),h=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(h||0===h)?h:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,n=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){t=t,n=(r=(i=e)._writableState).sync,s=r.writecb;var i,r,n,s,a,h,f,l,d=r;d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0,t?(d=i,h=n,f=t,l=s,--(a=r).pendingcb,h?(o.nextTick(l,f),o.nextTick(M,d,a),d._writableState.errorEmitted=!0,d.emit("error",f)):(l(f),d._writableState.errorEmitted=!0,d.emit("error",f),M(d,a))):((t=y(r))||r.corked||r.bufferProcessing||!r.bufferedRequest||v(i,r),n?u(b,i,r,t,s):b(i,r,t,s))},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 s(this)}e.inherits(m,f),p.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e};try{Object.defineProperty(p.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function m(t){if(a=a||i(20),!(h.call(m,this)||this instanceof a))return new m(t);this._writableState=new p(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),f.call(this)}function g(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function b(t,e,i,r){var n;i||(i=t,0===(n=e).length&&n.needDrain&&(n.needDrain=!1,i.emit("drain"))),e.pendingcb--,r(),M(t,e)}function v(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){for(var r=e.bufferedRequestCount,n=new Array(r),o=((r=e.corkedRequestsFree).entry=i,0),a=!0;i;)(n[o]=i).isBuf||(a=!1),i=i.next,o+=1;n.allBuffers=a,g(t,e,!0,e.length,n,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,u=i.encoding,f=i.callback;if(g(t,e,!1,e.objectMode?1:h.length,h,u,f),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function y(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),M(t,e)}))}function M(t,e){var i,r,n=y(e);return n&&(i=t,(r=e).prefinished||r.finalCalled||("function"==typeof i._final?(r.pendingcb++,r.finalCalled=!0,o.nextTick(w,i,r)):(r.prefinished=!0,i.emit("prefinish"))),0===e.pendingcb)&&(e.finished=!0,t.emit("finish")),n}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===m&&t&&t._writableState instanceof p}})):h=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,i){var r,n,s,a,h,u,f,p=this._writableState,m=!1,b=!p.objectMode&&(b=t,l.isBuffer(b)||b instanceof d);return b&&!l.isBuffer(t)&&(h=t,t=l.from(h)),"function"==typeof e&&(i=e,e=null),e=b?"buffer":e||p.defaultEncoding,"function"!=typeof i&&(i=c),p.ended?(h=this,u=i,f=new Error("write after end"),h.emit("error",f),o.nextTick(u,f)):(b||(u=this,f=p,n=i,a=!(s=!0),null===(r=t)?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||f.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(u.emit("error",a),o.nextTick(n,a),s=!1),s))&&(p.pendingcb++,m=function(t,e,i,r,n,o){i||r!==(a=function(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,i)),e}(e,r,n))&&(i=!0,n="buffer",r=a);var s,a=e.objectMode?1:r.length,h=(e.length+=a,e.length<e.highWaterMark);return h||(e.needDrain=!0),e.writing||e.corked?(s=e.lastBufferedRequest,e.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:o,next:null},s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):g(t,e,!1,a,r,n,o),h}(this,p,b,t,e,i)),m},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||v(this,t))},m.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase()))return this._writableState.defaultEncoding=t,this;throw new TypeError("Unknown encoding: "+t)},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,i){var r=this._writableState;"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||(t=this,e=i,(i=r).ending=!0,M(t,i),e&&(i.finished?o.nextTick(e):t.once("finish",e)),i.ended=!0,t.writable=!1)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=n.destroy,m.prototype._undestroy=n.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i(4),i(70).setImmediate,i(5))},function(t,e,i){"use strict";var r=i(6);function n(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}(t.exports=n).prototype._init=function(){},n.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},n.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<i;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=i,i},n.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(t){for(var e=0,i=0,r=(this.bufferOff+t.length)/this.blockSize|0,n=new Array(r*this.blockSize),o=(0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length)&&(i+=this._flushBuffer(n,i)),t.length-(t.length-e)%this.blockSize);e<o;e+=this.blockSize)this._update(t,e,n,i),i+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return n},n.prototype._updateDecrypt=function(t){for(var e=0,i=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=new Array(r*this.blockSize);0<r;r--)e+=this._buffer(t,e),i+=this._flushBuffer(n,i);return e+=this._buffer(t,e),n},n.prototype.final=function(t){var e;return t&&(e=this.update(t)),t="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(t):t},n.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},n.prototype._finalEncrypt=function(){var t;return this._pad(this.buffer,this.bufferOff)?(t=new Array(this.blockSize),this._update(this.buffer,0,t,0),t):[]},n.prototype._unpad=function(t){return t},n.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,i){var r=i(149),n=i(157),o=i(84);e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=n.createDecipher,e.createDecipheriv=e.Decipheriv=n.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},function(t,e,i){var r,n={ECB:i(150),CBC:i(151),CFB:i(152),CFB8:i(153),CFB1:i(154),OFB:i(155),CTR:i(82),GCM:i(82)},o=i(84);for(r in o)o[r].module=n[o[r].mode];t.exports=o},function(t,e,i){var r;function n(t){this.rand=t}if(t.exports=function(t){return(r=r||new n(null)).generate(t)},(t.exports.Rand=n).prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(t){return t=new Uint8Array(t),self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(t){return t=new Uint8Array(t),self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(163);if("function"!=typeof o.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,i){var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,i){(function(e){var r=i(52),n=i(22);function o(t){for(var e,i=t.modulus.byteLength();0<=(e=new r(n(i))).cmp(t.modulus)||!e.umod(t.prime1)||!e.umod(t.prime2););return e}function s(t,i){var n={blinder:(n=o(s=i)).toRed(r.mont(s.modulus)).redPow(new r(s.publicExponent)).fromRed(),unblinder:n.invm(s.modulus)},s=i.modulus.byteLength(),a=(t=new r(t).mul(n.blinder).umod(i.modulus)).toRed(r.mont(i.prime1)),h=(t=t.toRed(r.mont(i.prime2)),i.coefficient),u=i.prime1,f=i.prime2;a=a.redPow(i.exponent1).fromRed(),t=t.redPow(i.exponent2).fromRed(),a=a.isub(t).imul(h).umod(u).imul(f);return t.iadd(a).imul(n.unblinder).umod(i.modulus).toArrayLike(e,"be",s)}s.getr=o,t.exports=s}).call(this,i(3).Buffer)},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(173)).Buffer}catch(t){}function a(t,e){return 48<=(e=t.charCodeAt(e))&&e<=57?e-48:65<=e&&e<=70?e-55:97<=e&&e<=102?e-87:void r(!1,"Invalid character in "+t)}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,n){for(var o=0,s=0,a=Math.min(t.length,i),h=e;h<a;h++){var u=t.charCodeAt(h)-48;o*=n,s=49<=u?u-49+10:17<=u?u-17+10:u,r(0<=u&&s<n,"Invalid character"),o+=s}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this._strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){f(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i._strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=0,o=0,s=0;s<this.length;s++){var a=this.words[s],h=(16777215&(a<<n|o)).toString(16);o=a>>>24-n&16777215;26<=(n+=2)&&(n-=26,s--),i=0!==o||s!==this.length-1?d[6-h.length]+h+i:h+i}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative?"-"+i:i}if(t===(0|t)&&2<=t&&t<=36){var u=c[t],f=p[t];for(i="",(l=this.clone()).negative=0;!l.isZero();){var l,m=l.modrn(f).toString(t);i=(l=l.idivn(f)).isZero()?m+i:d[u-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative?"-"+i:i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),i=i,t=(t=t).allocUnsafe?t.allocUnsafe(i):new t(i);return this["_toArrayLike"+("le"===e?"LE":"BE")](t,n),t},o.prototype._toArrayLikeLE=function(t,e){for(var i=0,r=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|r;t[i++]=255&s,i<t.length&&(t[i++]=s>>8&255),i<t.length&&(t[i++]=s>>16&255),6===o?(i<t.length&&(t[i++]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(i<t.length)for(t[i++]=r;i<t.length;)t[i++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var i=t.length-1,r=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|r;t[i--]=255&s,0<=i&&(t[i--]=s>>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this._strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function b(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function v(t,e,i){return b(t,e,i)}Math.imul||(g=m),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?g:i<63?m:i<1024?b:v)(this,t,e)},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){for(var e=t<0,i=(r("number"==typeof(t=e?-t:t)),r(t<67108864),0),n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&i);i=(i>>=26)+(o/67108864|0)+(s>>>26);this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++)e[i]=t.words[i/26|0]>>>i%26&1;return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this._strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i._strip(),r._strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modrn=function(t){for(var e=t<0,i=(r((t=e?-t:t)<=67108863),(1<<26)%t),n=0,o=this.length-1;0<=o;o--)n=(i*n+(0|this.words[o]))%t;return e?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){for(var e=t<0,i=(r((t=e?-t:t)<=67108863),0),n=this.length-1;0<=n;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/t|0,i=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function k(t){A.call(this,t),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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(M,w),M.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(_,w),n(S,w),n(x,w),x.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new _;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e},A.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},A.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},A.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},A.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},A.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new k(t)},n(k,A),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},k.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},k.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},function(t,e,i){"use strict";e.version=i(174).version,e.utils=i(7),e.rand=i(48),e.curve=i(96),e.curves=i(54),e.ec=i(186),e.eddsa=i(190)},function(t,e,i){"use strict";var r,n=e,o=(e=i(55),i(96)),s=i(7).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var i=new a(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:i}),i}})}n.PresetCurve=a,h("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:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:e.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"]}),h("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:e.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(185)}catch(t){r=void 0}h("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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(11),e.common=i(29),e.sha=i(179),e.ripemd=i(183),e.hmac=i(184),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(214)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},,function(t,e,i){"use strict";var r=i(117).Buffer,n=i(118).Transform;function o(t){n.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(1)(o,n),o.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(t){r=t}i(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){var i=t;if(!r.isBuffer(i)&&"string"!=typeof i)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,o=0;this._blockOffset+t.length-o>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=t[o++];this._update(),this._blockOffset=0}for(;o<t.length;)n[this._blockOffset++]=t[o++];for(var a=0,h=8*t.length;0<h;++a)this._length[a]+=h,0<(h=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*h);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0);for(var i=this._blockOffset=0;i<4;++i)this._length[i]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,i){"use strict";(function(e,r){function n(t,e){return t.listeners(e).length}(t.exports=S).ReadableState=_,i(18).EventEmitter;var o,s,a,h,u=i(60),f=i(3).Buffer,l=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=(e=i(119))&&e.debuglog?e.debuglog("stream"):function(){},c=i(120),p=(e=i(61),i(62).getHighWaterMark),m=i(23).codes,g=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w=(i(1)(S,u),e.errorOrDestroy),M=["error","close","destroy","pause","resume"];function _(t,e,r){o=o||i(24),t=t||{},"boolean"!=typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=p(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||i(19).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function S(t){if(o=o||i(24),!(this instanceof S))return new S(t);var e=this instanceof o;this._readableState=new _(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),u.call(this)}function x(t,e,i,r,n){d("readableAddChunk",e);var o,s,a,h,u=t._readableState;if(null===e)u.reading=!1,s=t,a=u,d("onEofChunk"),a.ended||(a.decoder&&(h=a.decoder.end())&&h.length&&(a.buffer.push(h),a.length+=a.objectMode?1:h.length),a.ended=!0,a.sync?R(s):(a.needReadable=!1,a.emittedReadable||(a.emittedReadable=!0,T(s))));else if(o=n?o:function(t,e){var i;return!function(t){return f.isBuffer(t)||t instanceof l}(e)&&"string"!=typeof e&&void 0!==e&&!t.objectMode&&(i=new g("chunk",["string","Buffer","Uint8Array"],e)),i}(u,e))w(t,o);else if(u.objectMode||e&&0<e.length)if("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===f.prototype||(h=e,e=f.from(h)),r)u.endEmitted?w(t,new y):A(t,u,e,!0);else if(u.ended)w(t,new b);else{if(u.destroyed)return!1;u.reading=!1,!u.decoder||i||(e=u.decoder.write(e),u.objectMode)||0!==e.length?A(t,u,e,!1):C(t,u)}else r||(u.reading=!1,C(t,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function A(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&R(t)),C(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=e.destroy,S.prototype._undestroy=e.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=f.from(t,e),e=""),i=!0),x(this,t,e,!1,i)},S.prototype.unshift=function(t){return x(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){for(var e=new(s=s||i(19).StringDecoder)(t),r=(this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding,this._readableState.buffer.head),n="";null!==r;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var k=1073741824;function E(t,e){var i;return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=(k<=(i=t)?i=k:(i--,i=(i=(i=(i=(i|=i>>>1)|i>>>2)|i>>>4)|i>>>8)|i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(T,t))}function T(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function C(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(d("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function B(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function P(t){d("readable nexttick read 0"),t.read(0)}function j(t,e){d("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){var i;return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i)}function O(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(D,e,t))}function D(t,e){d("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&(!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy())}function q(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}S.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e,i=this._readableState,r=t;return 0!==t&&(i.emittedReadable=!1),0===t&&i.needReadable&&((0!==i.highWaterMark?i.length>=i.highWaterMark:0<i.length)||i.ended)?(d("read: emitReadable",i.length,i.ended),(0===i.length&&i.ended?O:R)(this),null):0===(t=E(t,i))&&i.ended?(0===i.length&&O(this),null):(e=i.needReadable,d("need readable",e),(0===i.length||i.length-t<i.highWaterMark)&&d("length less than watermark",e=!0),i.ended||i.reading?d("reading or ended",e=!1):e&&(d("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(t=E(r,i))),null===(e=0<t?N(t,i):null)?(i.needReadable=i.length<=i.highWaterMark,t=0):(i.length-=t,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),r!==t)&&i.ended&&O(this),null!==e&&this.emit("data",e),e)},S.prototype._read=function(t){w(this,new v("_read()"))},S.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}function s(){d("onend"),t.end()}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?m:s,o.endEmitted?r.nextTick(e):i.once("end",e),t.on("unpipe",(function e(r,n){d("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",c),t.removeListener("finish",p),t.removeListener("drain",h),t.removeListener("error",l),t.removeListener("unpipe",e),i.removeListener("end",s),i.removeListener("end",m),i.removeListener("data",f),u=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())})),a=i;var a,h=function(){var t=a._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(a,"data")&&(t.flowing=!0,L(a))},u=(t.on("drain",h),!1);function f(e){d("ondata"),e=t.write(e),d("dest.write",e),!1===e&&((1===o.pipesCount&&o.pipes===t||1<o.pipesCount&&-1!==q(o.pipes,t))&&!u&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function l(e){d("onerror",e),m(),t.removeListener("error",l),0===n(t,"error")&&w(t,e)}function c(){t.removeListener("finish",p),m()}function p(){d("onfinish"),t.removeListener("close",c),m()}function m(){d("unpipe"),i.unpipe(t)}return i.on("data",f),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",l),t.once("close",c),t.once("finish",p),t.emit("pipe",i),o.flowing||(d("pipe resume"),i.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0!==e.pipesCount)if(1===e.pipesCount)t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i));else if(t){var r=q(e.pipes,t);-1!==r&&(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i))}else{var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<o;s++)n[s].emit("unpipe",this,{hasUnpiped:!1})}return this},S.prototype.addListener=S.prototype.on=function(t,e){e=u.prototype.on.call(this,t,e);var i=this._readableState;return"data"===t?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,d("on readable",i.length,i.reading),i.length?R(this):i.reading||r.nextTick(P,this)),e},S.prototype.removeListener=function(t,e){return e=u.prototype.removeListener.call(this,t,e),"readable"===t&&r.nextTick(B,this),e},S.prototype.removeAllListeners=function(t){var e=u.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(B,this),e},S.prototype.resume=function(){var t,e,i=this._readableState;return i.flowing||(d("resume"),i.flowing=!i.readableListening,t=this,(e=i).resumeScheduled)||(e.resumeScheduled=!0,r.nextTick(j,t,e)),i.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e,i=this,r=this._readableState,n=!1;for(e in t.on("end",(function(){var t;d("wrapped end"),r.decoder&&!r.ended&&(t=r.decoder.end())&&t.length&&i.push(t),i.push(null)})),t.on("data",(function(e){d("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&!i.push(e)&&(n=!0,t.pause())})),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return(a=void 0===a?i(123):a)(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=N,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return(h=void 0===h?i(124):h)(S,t,e)})}).call(this,i(5),i(4))},function(t,e,i){t.exports=i(18).EventEmitter},function(t,e,i){"use strict";(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return a||h?o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(i,s,t)):e.nextTick(i,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(4))},function(t,e,i){"use strict";var r=i(23).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){s=n,o=i;var o,s=null!=(e=e).highWaterMark?e.highWaterMark:s?e[o]:null;if(null==s)return t.objectMode?16:16384;if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(n?i:"highWaterMark",s);return Math.floor(s)}}},function(t,e,i){"use strict";(function(e,r){function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){var i=e,r=t,n=i.entry;for(i.entry=null;n;){var o=n.callback;r.pendingcb--,o(void 0),n=n.next}r.corkedRequestsFree.next=i}}(t.exports=x).WritableState=S;var o,s,a={deprecate:i(39)},h=i(60),u=i(3).Buffer,f=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=(e=i(61),i(62).getHighWaterMark),d=i(23).codes,c=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,y=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,M=e.errorOrDestroy;function _(){}function S(t,e,s){o=o||i(24),t=t||{},"boolean"!=typeof s&&(s=e instanceof o),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,s=(this.destroyed=!1)===t.decodeStrings,this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e,n=i._writableState,o=n.sync,s=n.writecb;if("function"!=typeof s)throw new m;var a,h,u,f,l=n;l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,t?(l=i,h=o,u=t,f=s,--(a=n).pendingcb,h?(r.nextTick(f,u),r.nextTick(C,l,a),l._writableState.errorEmitted=!0,M(l,u)):(f(u),l._writableState.errorEmitted=!0,M(l,u),C(l,a))):((t=R(n)||i.destroyed)||n.corked||n.bufferProcessing||!n.bufferedRequest||E(i,n),o?r.nextTick(k,i,n,t,s):k(i,n,t,s))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}i(1)(x,h),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e};try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function x(t){var e=this instanceof(o=o||i(24));if(!e&&!s.call(x,this))return new x(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),h.call(this)}function A(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function k(t,e,i,r){var n;i||(i=t,0===(n=e).length&&n.needDrain&&(n.needDrain=!1,i.emit("drain"))),e.pendingcb--,r(),C(t,e)}function E(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){for(var r=e.bufferedRequestCount,o=new Array(r),s=((r=e.corkedRequestsFree).entry=i,0),a=!0;i;)(o[s]=i).isBuf||(a=!1),i=i.next,s+=1;o.allBuffers=a,A(t,e,!0,e.length,o,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,u=i.encoding,f=i.callback;if(A(t,e,!1,e.objectMode?1:h.length,h,u,f),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function T(t,e){t._final((function(i){e.pendingcb--,i&&M(t,i),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var i,n,o=R(e);return o&&(i=t,(n=e).prefinished||n.finalCalled||("function"!=typeof i._final||n.destroyed?(n.prefinished=!0,i.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,r.nextTick(T,i,n))),0===e.pendingcb)&&(e.finished=!0,t.emit("finish"),e.autoDestroy)&&(!(i=t._readableState)||i.autoDestroy&&i.endEmitted)&&t.destroy(),o}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===x&&t&&t._writableState instanceof S}})):s=function(t){return t instanceof this},x.prototype.pipe=function(){M(this,new g)},x.prototype.write=function(t,e,i){var n,o,s,a=this._writableState,h=!1,l=!a.objectMode&&(l=t,u.isBuffer(l)||l instanceof f);return l&&!u.isBuffer(t)&&(n=t,t=u.from(n)),"function"==typeof e&&(i=e,e=null),e=l?"buffer":e||a.defaultEncoding,"function"!=typeof i&&(i=_),a.ending?(n=this,o=i,s=new y,M(n,s),r.nextTick(o,s)):(l||function(t,e,i,n){var o;if(null===i?o=new v:"string"==typeof i||e.objectMode||(o=new c("chunk",["string","Buffer"],i)),!o)return 1;M(t,o),r.nextTick(n,o)}(this,a,t,i))&&(a.pendingcb++,h=function(t,e,i,r,n,o){i||r!==(a=function(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,i)),e}(e,r,n))&&(i=!0,n="buffer",r=a);var s,a=e.objectMode?1:r.length,h=(e.length+=a,e.length<e.highWaterMark);return h||(e.needDrain=!0),e.writing||e.corked?(s=e.lastBufferedRequest,e.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:o,next:null},s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):A(t,e,!1,a,r,n,o),h}(this,a,l,t,e,i)),h},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},x.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase()))return this._writableState.defaultEncoding=t,this;throw new w(t)},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(t,e,i){i(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||(t=this,e=n,n=i,e.ending=!0,C(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),x.prototype.destroy=e.destroy,x.prototype._undestroy=e.undestroy,x.prototype._destroy=function(t,e){e(t)}}).call(this,i(5),i(4))},function(t,e,i){"use strict";t.exports=h;var r=(t=i(23).codes).ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,o=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,a=i(24);function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),this._transformState={afterTransform:function(t,e){var i=this._transformState,r=(i.transforming=!1,i.writecb);if(null===r)return this.emit("error",new n);i.writechunk=null,(i.writecb=null)!=e&&this.push(e),r(t),(i=this._readableState).reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush)&&(this._flush=t.flush),this.on("prefinish",u)}function u(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,i){f(t,e,i)}))}function f(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;t.push(null)}i(1)(h,a),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,i){i(new r("_transform()"))},h.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,!r.transforming&&(i=this._readableState,r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){a.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,i){var r=i(1),n=i(25),o=i(2).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function h(){this.init(),this._w=a,n.call(this,64,56)}r(h,n),h.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},h.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,a=0|this._d,h=0|this._e,u=0|this._f,f=0|this._g,l=0|this._h,d=0;d<16;++d)i[d]=t.readInt32BE(4*d);for(;d<64;++d)i[d]=0|(((e=i[d-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[d-7]+(((e=i[d-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[d-16];for(var c=0;c<64;++c){var p=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(f^h&(u^f))+s[c]+i[c]|0,m=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n));l=f,f=u,u=h,h=a+p|0,a=o,o=n,n=r,r=p+m|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=h+this._e|0,this._f=u+this._f|0,this._g=f+this._g|0,this._h=l+this._h|0},h.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=h},function(t,e,i){var r=i(1),n=i(25),o=i(2).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function h(){this.init(),this._w=a,n.call(this,128,112)}function u(t,e,i){return i^t&(e^i)}function f(t,e,i){return t&e|i&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return t>>>0<e>>>0?1:0}r(h,n),h.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},h.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,a=0|this._eh,h=0|this._fh,p=0|this._gh,m=0|this._hh,g=0|this._al,b=0|this._bl,v=0|this._cl,y=0|this._dl,w=0|this._el,M=0|this._fl,_=0|this._gl,S=0|this._hl,x=0;x<32;x+=2)e[x]=t.readInt32BE(4*x),e[x+1]=t.readInt32BE(4*x+4);for(;x<160;x+=2){var A=e[x-30],k=e[x-30+1],E=(A>>>1|k<<31)^(A>>>8|k<<24)^A>>>7,R=(k>>>1|A<<31)^(k>>>8|A<<24)^(k>>>7|A<<25),T=(A=e[x-4],((k=e[x-4+1])>>>19|A<<13)^(A>>>29|k<<3)^(k>>>6|A<<26)),C=e[x-14],I=e[x-14+1],B=e[x-32],P=e[x-32+1],j=R+I|0,L=E+C+c(j,R)|0;L=(L=L+((A>>>19|k<<13)^(k>>>29|A<<3)^A>>>6)+c(j=j+T|0,T)|0)+B+c(j=j+P|0,P)|0,e[x]=L,e[x+1]=j}for(var N=0;N<160;N+=2){L=e[N],j=e[N+1];var O=f(i,r,n),D=f(g,b,v),q=l(i,g),z=l(g,i),U=d(a,w),F=d(w,a),Z=s[N+1],H=u(a,h,p),W=u(w,M,_);H=(U=(((m+U+c(F=S+F|0,S)|0)+H+c(F=F+W|0,W)|0)+s[N]+c(F=F+Z|0,Z)|0)+L+c(F=F+j|0,j)|0,z+D|0),W=q+O+c(H,z)|0,m=p,S=_,p=h,_=M,h=a,M=w,a=o+U+c(w=y+F|0,y)|0,o=n,y=v,n=r,v=b,r=i,b=g,i=U+W+c(g=F+H|0,F)|0}this._al=this._al+g|0,this._bl=this._bl+b|0,this._cl=this._cl+v|0,this._dl=this._dl+y|0,this._el=this._el+w|0,this._fl=this._fl+M|0,this._gl=this._gl+_|0,this._hl=this._hl+S|0,this._ah=this._ah+i+c(this._al,g)|0,this._bh=this._bh+r+c(this._bl,b)|0,this._ch=this._ch+n+c(this._cl,v)|0,this._dh=this._dh+o+c(this._dl,y)|0,this._eh=this._eh+a+c(this._el,w)|0,this._fh=this._fh+h+c(this._fl,M)|0,this._gh=this._gh+p+c(this._gl,_)|0,this._hh=this._hh+m+c(this._hl,S)|0},h.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,i,r){t.writeInt32BE(e,r),t.writeInt32BE(i,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=h},function(t,e,i){"use strict";(function(e,r){function n(t,e){return t.listeners(e).length}var o,s,a=i(16),h=(t.exports=b,i(37)),u=(b.ReadableState=g,i(18).EventEmitter,i(68)),f=i(2).Buffer,l=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=((e=Object.create(i(10))).inherits=i(1),i(132)),c=void 0,p=(c=d&&d.debuglog?d.debuglog("stream"):function(){},i(133)),m=(d=i(69),e.inherits(b,u),["error","close","destroy","pause","resume"]);function g(t,e){t=t||{};e=e instanceof(o=o||i(20));var r=(this.objectMode=!!t.objectMode,e&&(this.objectMode=this.objectMode||!!t.readableObjectMode),t.highWaterMark),n=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:e&&(n||0===n)?n:a,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||i(19).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||i(20),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),u.call(this)}function v(t,e,i,r,n){var o,s,a,h,u=t._readableState;return null===e?(u.reading=!1,s=t,(h=u).ended||(h.decoder&&(a=h.decoder.end())&&a.length&&(h.buffer.push(a),h.length+=h.objectMode?1:a.length),h.ended=!0,_(s))):(o=n?o:function(t,e){var i;return!function(t){return f.isBuffer(t)||t instanceof l}(e)&&"string"!=typeof e&&void 0!==e&&!t.objectMode&&(i=new TypeError("Invalid non-string/buffer chunk")),i}(u,e))?t.emit("error",o):u.objectMode||e&&0<e.length?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===f.prototype||(a=e,e=f.from(a)),r?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):y(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,!u.decoder||i||(e=u.decoder.write(e),u.objectMode)||0!==e.length?y(t,u,e,!1):x(t,u))):r||(u.reading=!1),!(h=u).ended&&(h.needReadable||h.length<h.highWaterMark||0===h.length)}function y(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=f.from(t,e),e=""),i=!0),v(this,t,e,!1,i)},b.prototype.unshift=function(t){return v(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return s=s||i(19).StringDecoder,this._readableState.decoder=new s(t),this._readableState.encoding=t,this};var w=8388608;function M(t,e){var i;return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=(w<=(i=t)?i=w:(i--,i=(i=(i=(i=(i|=i>>>1)|i>>>2)|i>>>4)|i>>>8)|i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?a.nextTick(S,t):S(t))}function S(t){c("emit readable"),t.emit("readable"),R(t)}function x(t,e){e.readingMore||(e.readingMore=!0,a.nextTick(A,t,e))}function A(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(c("maybeReadMore read 0"),t.read(0),i!==e.length);)i=e.length;e.readingMore=!1}function k(t){c("readable nexttick read 0"),t.read(0)}function E(t,e){e.reading||(c("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),R(t),e.flowing&&!e.reading&&t.read(0)}function R(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){var i;return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=function(t,e,i){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():(i?function(t,e){var i=e.head,r=1,n=i.data;for(t-=n.length;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=f.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(t,e),r}(t,e.buffer,e.decoder),i)}function C(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,a.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}b.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e,i=this._readableState,r=t;return 0!==t&&(i.emittedReadable=!1),0===t&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)?(c("read: emitReadable",i.length,i.ended),(0===i.length&&i.ended?C:_)(this),null):0===(t=M(t,i))&&i.ended?(0===i.length&&C(this),null):(e=i.needReadable,c("need readable",e),(0===i.length||i.length-t<i.highWaterMark)&&c("length less than watermark",e=!0),i.ended||i.reading?c("reading or ended",e=!1):e&&(c("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(t=M(r,i))),null===(e=0<t?T(t,i):null)?(i.needReadable=!0,t=0):i.length-=t,0===i.length&&(i.ended||(i.needReadable=!0),r!==t)&&i.ended&&C(this),null!==e&&this.emit("data",e),e)},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}function s(){c("onend"),t.end()}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?v:s,o.endEmitted?a.nextTick(e):i.once("end",e),t.on("unpipe",(function e(r,n){c("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",m),t.removeListener("unpipe",e),i.removeListener("end",s),i.removeListener("end",v),i.removeListener("data",p),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())})),u=i;var u,f=function(){var t=u._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(u,"data")&&(t.flowing=!0,R(u))},l=(t.on("drain",f),!1),d=!1;function p(e){c("ondata"),(d=!1)!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||1<o.pipesCount&&-1!==B(o.pipes,t))&&!l&&(c("false write response, pause",o.awaitDrain),o.awaitDrain++,d=!0),i.pause())}function m(e){c("onerror",e),v(),t.removeListener("error",m),0===n(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",b),v()}function b(){c("onfinish"),t.removeListener("close",g),v()}function v(){c("unpipe"),i.unpipe(t)}return i.on("data",p),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?h(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",m),t.once("close",g),t.once("finish",b),t.emit("pipe",i),o.flowing||(c("pipe resume"),i.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0!==e.pipesCount)if(1===e.pipesCount)t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i));else if(t){var r=B(e.pipes,t);-1!==r&&(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i))}else{var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<o;s++)n[s].emit("unpipe",this,{hasUnpiped:!1})}return this},b.prototype.addListener=b.prototype.on=function(t,e){return e=u.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"!==t||(t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&_(this):a.nextTick(k,this)),e},b.prototype.resume=function(){var t,e=this._readableState;return e.flowing||(c("resume"),e.flowing=!0,t=this,(e=e).resumeScheduled)||(e.resumeScheduled=!0,a.nextTick(E,t,e)),this},b.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e,i=this,r=this._readableState,n=!1;for(e in t.on("end",(function(){var t;c("wrapped end"),r.decoder&&!r.ended&&(t=r.decoder.end())&&t.length&&i.push(t),i.push(null)})),t.on("data",(function(e){c("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&!i.push(e)&&(n=!0,t.pause())})),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T}).call(this,i(5),i(4))},function(t,e,i){t.exports=i(18).EventEmitter},function(t,e,i){"use strict";var r=i(16);function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var i=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(n,this,t)):r.nextTick(n,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,r.nextTick(n,i,t)):r.nextTick(n,i,t):e&&e(t)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,i){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(n.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(n.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i(135),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,i(5))},function(t,e,i){"use strict";t.exports=n;var r=i(20);function n(t){if(!(this instanceof n))return new n(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var i=this._transformState,r=(i.transforming=!1,i.writecb);if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,(i.writecb=null)!=e&&this.push(e),r(t),(i=this._readableState).reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush)&&(this._flush=t.flush),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,i){s(t,e,i)})):s(this,null,null)}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");t.push(null)}(t=Object.create(i(10))).inherits=i(1),t.inherits(n,r),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,!r.transforming&&(i=this._readableState,r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(t,e){var i=this;r.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},function(t,e,i){"use strict";var r=i(1),n=i(141),o=i(15),s=i(2).Buffer,a=i(73),h=i(41),u=i(42),f=s.alloc(128);function l(t,e){o.call(this,"digest"),"string"==typeof e&&(e=s.from(e));for(var i="sha512"===t||"sha384"===t?128:64,r=(this._alg=t,(this._key=e).length>i?e=("rmd160"===t?new h:u(t)).update(e).digest():e.length<i&&(e=s.concat([e,f],i)),this._ipad=s.allocUnsafe(i)),n=this._opad=s.allocUnsafe(i),a=0;a<i;a++)r[a]=54^e[a],n[a]=92^e[a];this._hash="rmd160"===t?new h:u(t),this._hash.update(r)}r(l,o),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new h:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new l("rmd160",e):"md5"===t?new n(a,e):new l(t,e)}},function(t,e,i){var r=i(38);t.exports=function(t){return(new r).update(t).digest()}},function(t){t.exports=JSON.parse('{"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(t,e,i){e.pbkdf2=i(143),e.pbkdf2Sync=i(78)},function(t,e){var i=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||i<e||e!=e)throw new TypeError("Bad key length")}},function(t,e,i){(function(e,i){e=e.process&&e.process.browser||!e.process||!e.process.version||6<=parseInt(i.version.split(".")[0].slice(1),10)?"utf-8":"binary",t.exports=e}).call(this,i(5),i(4))},function(t,e,i){var r=i(73),n=i(41),o=i(42),s=i(2).Buffer,a=i(76),h=i(77),u=i(79),f=s.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,i){for(var a,h="rmd160"===(a=t)||"ripemd160"===a?function(t){return(new n).update(t).digest()}:"md5"===a?r:function(t){return o(a).update(t).digest()},u="sha512"===t||"sha384"===t?128:64,d=(e.length>u?e=h(e):e.length<u&&(e=s.concat([e,f],u)),s.allocUnsafe(u+l[t])),c=s.allocUnsafe(u+l[t]),p=0;p<u;p++)d[p]=54^e[p],c[p]=92^e[p];i=s.allocUnsafe(u+i+4),d.copy(i,0,0,u),this.ipad1=i,this.ipad2=d,this.opad=c,this.alg=t,this.blocksize=u,this.hash=h,this.size=l[t]}d.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,i,r,n){a(i,r);for(var o=new d(n=n||"sha1",t=u(t,h,"Password"),(e=u(e,h,"Salt")).length),f=s.allocUnsafe(r),c=s.allocUnsafe(e.length+4),p=(e.copy(c,0,0,e.length),0),m=l[n],g=Math.ceil(r/m),b=1;b<=g;b++){c.writeUInt32BE(b,e.length);for(var v=o.run(c,o.ipad1),y=v,w=1;w<i;w++){y=o.run(y,o.ipad2);for(var M=0;M<m;M++)v[M]^=y[M]}v.copy(f,p),p+=m}return f}},function(t,e,i){var r=i(2).Buffer;t.exports=function(t,e,i){if(r.isBuffer(t))return t;if("string"==typeof t)return r.from(t,e);if(ArrayBuffer.isView(t))return r.from(t.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,i){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,r){for(var n=0,o=0,s=6;0<=s;s-=2){for(var a=0;a<=24;a+=8)n=n<<1|e>>>a+s&1;for(a=0;a<=24;a+=8)n=n<<1|t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o=o<<1|e>>>a+s&1;for(a=1;a<=25;a+=8)o=o<<1|t>>>a+s&1}i[r+0]=n>>>0,i[r+1]=o>>>0},e.rip=function(t,e,i,r){for(var n=0,o=0,s=0;s<4;s++)for(var a=24;0<=a;a-=8)n=(n=n<<1|e>>>a+s&1)<<1|t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o=(o=o<<1|e>>>a+s&1)<<1|t>>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.pc1=function(t,e,i,r){for(var n=0,o=0,s=7;5<=s;s--){for(var a=0;a<=24;a+=8)n=n<<1|e>>a+s&1;for(a=0;a<=24;a+=8)n=n<<1|t>>a+s&1}for(a=0;a<=24;a+=8)n=n<<1|e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o=o<<1|e>>a+s&1;for(a=0;a<=24;a+=8)o=o<<1|t>>a+s&1}for(a=0;a<=24;a+=8)o=o<<1|t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24],n=(e.pc2=function(t,e,i,n){for(var o=0,s=0,a=r.length>>>1,h=0;h<a;h++)o=o<<1|t>>>r[h]&1;for(h=a;h<r.length;h++)s=s<<1|e>>>r[h]&1;i[n+0]=o>>>0,i[n+1]=s>>>0},e.expand=function(t,e,i){for(var r=0,n=0,o=(r=(1&t)<<5|t>>>27,23);15<=o;o-=4)r=r<<6|t>>>o&63;for(o=11;3<=o;o-=4)n=(n|t>>>o&63)<<6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>0},[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]),o=(e.substitute=function(t,e){for(var i=0,r=0;r<4;r++)i=i<<4|n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i=i<<4|n[256+64*r+(e>>>18-6*r&63)];return i>>>0},[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]);e.permute=function(t){for(var e=0,i=0;i<o.length;i++)e=e<<1|t>>>o[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var n=[],o=0;o<e;o+=i)n.push(r.slice(o,o+i));return n.join(" ")}},function(t,e,i){"use strict";var r=i(6),n=i(1),o=i(80),s=i(45);function a(){this.tmp=new Array(2),this.keys=null}function h(t){s.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}n(h,s),(t.exports=h).create=function(t){return new h(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];h.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var i=o.readUInt32BE(e,0),n=o.readUInt32BE(e,4);o.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var s=0;s<t.keys.length;s+=2){var a=u[s>>>1];i=o.r28shl(i,a),n=o.r28shl(n,a);o.pc2(i,n,t.keys,s)}},h.prototype._update=function(t,e,i,r){var n=this._desState,s=o.readUInt32BE(t,e);t=o.readUInt32BE(t,e+4);o.ip(s,t,n.tmp,0),s=n.tmp[0],t=n.tmp[1],"encrypt"===this.type?this._encrypt(n,s,t,n.tmp,0):this._decrypt(n,s,t,n.tmp,0),s=n.tmp[0],t=n.tmp[1],o.writeUInt32BE(i,s,r),o.writeUInt32BE(i,t,r+4)},h.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var i=t.length-e,r=e;r<t.length;r++)t[r]=i;return!0},h.prototype._unpad=function(t){if(!1===this.padding)return t;for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)r.equal(t[i],e);return t.slice(0,t.length-e)},h.prototype._encrypt=function(t,e,i,r,n){for(var s=e,a=i,h=0;h<t.keys.length;h+=2){var u=t.keys[h],f=t.keys[h+1];u=(o.expand(a,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1],o.substitute(u,f)),f=a,a=(s^o.permute(u))>>>0,s=f}o.rip(a,s,r,n)},h.prototype._decrypt=function(t,e,i,r,n){for(var s=i,a=e,h=t.keys.length-2;0<=h;h-=2){var u=t.keys[h],f=t.keys[h+1];u=(o.expand(s,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1],o.substitute(u,f)),f=s,s=(a^o.permute(u))>>>0,a=f}o.rip(s,a,r,n)}},function(t,e,i){var r=i(28),n=i(2).Buffer,o=i(83);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),s=t._cache.length;t._cache=n.concat([t._cache,n.allocUnsafe(16*i)]);for(var a=0;a<i;a++){u=void 0,u=(h=t)._cipher.encryptBlockRaw(h._prev),o(h._prev);var h=u,u=s+16*a;t._cache.writeUInt32BE(h[0],u+0),t._cache.writeUInt32BE(h[1],u+4),t._cache.writeUInt32BE(h[2],u+8),t._cache.writeUInt32BE(h[3],u+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,f)}},function(t,e){t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,i){var r=i(32),n=i(2).Buffer,o=i(15),s=i(1),a=i(156),h=i(28),u=i(83);function f(t,e,i,s){o.call(this);var h,f,l,d=n.alloc(4,0);this._cipher=new r.AES(e),e=this._cipher.encryptBlock(d);this._ghash=new a(e),d=this,e=e,i=12===(h=i).length?(d._finID=n.concat([h,n.from([0,0,0,1])]),n.concat([h,n.from([0,0,0,2])])):(e=new a(e),f=(l=h.length)%16,e.update(h),f&&e.update(n.alloc(f=16-f,0)),e.update(n.alloc(8,0)),h=8*l,(f=n.alloc(8)).writeUIntBE(h,0,8),e.update(f),d._finID=e.state,l=n.from(d._finID),u(l),l),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}s(f,o),f.prototype._update=function(t){!this._called&&this._alen&&(e=16-this._alen%16)<16&&(e=n.alloc(e,0),this._ghash.update(e)),this._called=!0;var e=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(e),this._len+=t.length,e},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){for(var i=0,r=(t.length!==e.length&&i++,Math.min(t.length,e.length)),n=0;n<r;++n)i+=t[n]^e[n];return i}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=f},function(t,e,i){var r=i(32),n=i(2).Buffer,o=i(15);function s(t,e,i,s){o.call(this),this._cipher=new r.AES(e),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._mode=t}i(1)(s,o),s.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},function(t,e,i){var r=i(22),n=((t.exports=b).simpleSieve=m,b.fermatTest=g,i(88)),o=new n(24),s=new(i(89)),a=new n(1),h=new n(2),u=new n(5),f=(new n(16),new n(8),new n(10)),l=new n(3),d=(new n(7),new n(11)),c=new n(4),p=(new n(12),null);function m(t){for(var e=function(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,i=3;i<1048576;i+=2){for(var r=Math.ceil(Math.sqrt(i)),n=0;n<e&&t[n]<=r&&i%t[n]!=0;n++);e!==n&&t[n]<=r||(t[e++]=i)}return p=t}(),i=0;i<e.length;i++)if(0===t.modn(e[i]))return 0===t.cmpn(e[i]);return!0}function g(t){var e=n.mont(t);return 0===h.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new n(2===e||5===e?[140,123]:[140,39]);var i,p;for(e=new n(e);;){for(i=new n(r(Math.ceil(t/8)));i.bitLength()>t;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(h),e.cmp(h)){if(!e.cmp(u))for(;i.mod(f).cmp(l);)i.iadd(c)}else for(;i.mod(o).cmp(d);)i.iadd(c);if(m(p=i.shrn(1))&&m(i)&&g(p)&&g(i)&&s.test(p)&&s.test(i))return i}}},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(160)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},function(t,e,i){var r=i(161),n=i(48);function o(t){this.rand=t||new n.Rand}(t.exports=o).create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var n=new r(this.rand.generate(i))}while(0<=n.cmp(t));return n},o.prototype._randrange=function(t,e){return e=e.sub(t),t.add(this._randbelow(e))},o.prototype.test=function(t,e,i){for(var n=t.bitLength(),o=r.mont(t),s=new r(1).toRed(o),a=(e=e||Math.max(1,n/48|0),t.subn(1)),h=0;!a.testn(h);h++);for(var u=t.shrn(h),f=a.toRed(o);0<e;e--){var l=this._randrange(new r(2),a),d=(i&&i(l),l.toRed(o).redPow(u));if(0!==d.cmp(s)&&0!==d.cmp(f)){for(var c=1;c<h;c++){if(0===(d=d.redSqr()).cmp(s))return!1;if(0===d.cmp(f))break}if(c===h)return!1}}return!0},o.prototype.getDivisor=function(t,e){for(var i=t.bitLength(),n=r.mont(t),o=new r(1).toRed(n),s=(e=e||Math.max(1,i/48|0),t.subn(1)),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0<e;e--){var f=this._randrange(new r(2),s),l=t.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(n).redPow(h);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var c=1;c<a;c++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(u))break}if(c===a)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,i){"use strict";(function(e,r){function n(t,e){return t.listeners(e).length}var o,s,a=i(16),h=(t.exports=b,i(37)),u=(b.ReadableState=g,i(18).EventEmitter,i(91)),f=i(50).Buffer,l=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=((e=Object.create(i(10))).inherits=i(1),i(168)),c=void 0,p=(c=d&&d.debuglog?d.debuglog("stream"):function(){},i(169)),m=(d=i(92),e.inherits(b,u),["error","close","destroy","pause","resume"]);function g(t,e){t=t||{};e=e instanceof(o=o||i(26));var r=(this.objectMode=!!t.objectMode,e&&(this.objectMode=this.objectMode||!!t.readableObjectMode),t.highWaterMark),n=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:e&&(n||0===n)?n:a,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||i(19).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||i(26),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),u.call(this)}function v(t,e,i,r,n){var o,s,a,h,u=t._readableState;return null===e?(u.reading=!1,s=t,(h=u).ended||(h.decoder&&(a=h.decoder.end())&&a.length&&(h.buffer.push(a),h.length+=h.objectMode?1:a.length),h.ended=!0,_(s))):(o=n?o:function(t,e){var i;return!function(t){return f.isBuffer(t)||t instanceof l}(e)&&"string"!=typeof e&&void 0!==e&&!t.objectMode&&(i=new TypeError("Invalid non-string/buffer chunk")),i}(u,e))?t.emit("error",o):u.objectMode||e&&0<e.length?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===f.prototype||(a=e,e=f.from(a)),r?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):y(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,!u.decoder||i||(e=u.decoder.write(e),u.objectMode)||0!==e.length?y(t,u,e,!1):x(t,u))):r||(u.reading=!1),!(h=u).ended&&(h.needReadable||h.length<h.highWaterMark||0===h.length)}function y(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=f.from(t,e),e=""),i=!0),v(this,t,e,!1,i)},b.prototype.unshift=function(t){return v(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return s=s||i(19).StringDecoder,this._readableState.decoder=new s(t),this._readableState.encoding=t,this};var w=8388608;function M(t,e){var i;return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=(w<=(i=t)?i=w:(i--,i=(i=(i=(i=(i|=i>>>1)|i>>>2)|i>>>4)|i>>>8)|i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?a.nextTick(S,t):S(t))}function S(t){c("emit readable"),t.emit("readable"),R(t)}function x(t,e){e.readingMore||(e.readingMore=!0,a.nextTick(A,t,e))}function A(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(c("maybeReadMore read 0"),t.read(0),i!==e.length);)i=e.length;e.readingMore=!1}function k(t){c("readable nexttick read 0"),t.read(0)}function E(t,e){e.reading||(c("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),R(t),e.flowing&&!e.reading&&t.read(0)}function R(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){var i;return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=function(t,e,i){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():(i?function(t,e){var i=e.head,r=1,n=i.data;for(t-=n.length;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=f.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(t,e),r}(t,e.buffer,e.decoder),i)}function C(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,a.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}b.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e,i=this._readableState,r=t;return 0!==t&&(i.emittedReadable=!1),0===t&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)?(c("read: emitReadable",i.length,i.ended),(0===i.length&&i.ended?C:_)(this),null):0===(t=M(t,i))&&i.ended?(0===i.length&&C(this),null):(e=i.needReadable,c("need readable",e),(0===i.length||i.length-t<i.highWaterMark)&&c("length less than watermark",e=!0),i.ended||i.reading?c("reading or ended",e=!1):e&&(c("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(t=M(r,i))),null===(e=0<t?T(t,i):null)?(i.needReadable=!0,t=0):i.length-=t,0===i.length&&(i.ended||(i.needReadable=!0),r!==t)&&i.ended&&C(this),null!==e&&this.emit("data",e),e)},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}function s(){c("onend"),t.end()}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?v:s,o.endEmitted?a.nextTick(e):i.once("end",e),t.on("unpipe",(function e(r,n){c("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",m),t.removeListener("unpipe",e),i.removeListener("end",s),i.removeListener("end",v),i.removeListener("data",p),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())})),u=i;var u,f=function(){var t=u._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(u,"data")&&(t.flowing=!0,R(u))},l=(t.on("drain",f),!1),d=!1;function p(e){c("ondata"),(d=!1)!==t.write(e)||d||((1===o.pipesCount&&o.pipes===t||1<o.pipesCount&&-1!==B(o.pipes,t))&&!l&&(c("false write response, pause",o.awaitDrain),o.awaitDrain++,d=!0),i.pause())}function m(e){c("onerror",e),v(),t.removeListener("error",m),0===n(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",b),v()}function b(){c("onfinish"),t.removeListener("close",g),v()}function v(){c("unpipe"),i.unpipe(t)}return i.on("data",p),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?h(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",m),t.once("close",g),t.once("finish",b),t.emit("pipe",i),o.flowing||(c("pipe resume"),i.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0!==e.pipesCount)if(1===e.pipesCount)t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i));else if(t){var r=B(e.pipes,t);-1!==r&&(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i))}else{var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<o;s++)n[s].emit("unpipe",this,{hasUnpiped:!1})}return this},b.prototype.addListener=b.prototype.on=function(t,e){return e=u.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"!==t||(t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&_(this):a.nextTick(k,this)),e},b.prototype.resume=function(){var t,e=this._readableState;return e.flowing||(c("resume"),e.flowing=!0,t=this,(e=e).resumeScheduled)||(e.resumeScheduled=!0,a.nextTick(E,t,e)),this},b.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e,i=this,r=this._readableState,n=!1;for(e in t.on("end",(function(){var t;c("wrapped end"),r.decoder&&!r.ended&&(t=r.decoder.end())&&t.length&&i.push(t),i.push(null)})),t.on("data",(function(e){c("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&!i.push(e)&&(n=!0,t.pause())})),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T}).call(this,i(5),i(4))},function(t,e,i){t.exports=i(18).EventEmitter},function(t,e,i){"use strict";var r=i(16);function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var i=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(n,this,t)):r.nextTick(n,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,r.nextTick(n,i,t)):r.nextTick(n,i,t):e&&e(t)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,i){"use strict";(function(e,r,n){var o=i(16);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){var i=e,r=t,n=i.entry;for(i.entry=null;n;){var o=n.callback;r.pendingcb--,o(void 0),n=n.next}r.corkedRequestsFree.next=i}}t.exports=m;var a,h,u=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:o.nextTick,f=(r=((e=(m.WritableState=p,Object.create(i(10)))).inherits=i(1),{deprecate:i(39)}),i(91)),l=i(50).Buffer,d=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};n=i(92);function c(){}function p(t,e){a=a||i(26),t=t||{};var r=e instanceof a,n=(this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),t.highWaterMark),h=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(h||0===h)?h:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,n=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){t=t,n=(r=(i=e)._writableState).sync,s=r.writecb;var i,r,n,s,a,h,f,l,d=r;d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0,t?(d=i,h=n,f=t,l=s,--(a=r).pendingcb,h?(o.nextTick(l,f),o.nextTick(M,d,a),d._writableState.errorEmitted=!0,d.emit("error",f)):(l(f),d._writableState.errorEmitted=!0,d.emit("error",f),M(d,a))):((t=y(r))||r.corked||r.bufferProcessing||!r.bufferedRequest||v(i,r),n?u(b,i,r,t,s):b(i,r,t,s))},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 s(this)}e.inherits(m,f),p.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e};try{Object.defineProperty(p.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function m(t){if(a=a||i(26),!(h.call(m,this)||this instanceof a))return new m(t);this._writableState=new p(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),f.call(this)}function g(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function b(t,e,i,r){var n;i||(i=t,0===(n=e).length&&n.needDrain&&(n.needDrain=!1,i.emit("drain"))),e.pendingcb--,r(),M(t,e)}function v(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){for(var r=e.bufferedRequestCount,n=new Array(r),o=((r=e.corkedRequestsFree).entry=i,0),a=!0;i;)(n[o]=i).isBuf||(a=!1),i=i.next,o+=1;n.allBuffers=a,g(t,e,!0,e.length,n,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,u=i.encoding,f=i.callback;if(g(t,e,!1,e.objectMode?1:h.length,h,u,f),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function y(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),M(t,e)}))}function M(t,e){var i,r,n=y(e);return n&&(i=t,(r=e).prefinished||r.finalCalled||("function"==typeof i._final?(r.pendingcb++,r.finalCalled=!0,o.nextTick(w,i,r)):(r.prefinished=!0,i.emit("prefinish"))),0===e.pendingcb)&&(e.finished=!0,t.emit("finish")),n}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===m&&t&&t._writableState instanceof p}})):h=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,i){var r,n,s,a,h,u,f,p=this._writableState,m=!1,b=!p.objectMode&&(b=t,l.isBuffer(b)||b instanceof d);return b&&!l.isBuffer(t)&&(h=t,t=l.from(h)),"function"==typeof e&&(i=e,e=null),e=b?"buffer":e||p.defaultEncoding,"function"!=typeof i&&(i=c),p.ended?(h=this,u=i,f=new Error("write after end"),h.emit("error",f),o.nextTick(u,f)):(b||(u=this,f=p,n=i,a=!(s=!0),null===(r=t)?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||f.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(u.emit("error",a),o.nextTick(n,a),s=!1),s))&&(p.pendingcb++,m=function(t,e,i,r,n,o){i||r!==(a=function(t,e,i){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,i)),e}(e,r,n))&&(i=!0,n="buffer",r=a);var s,a=e.objectMode?1:r.length,h=(e.length+=a,e.length<e.highWaterMark);return h||(e.needDrain=!0),e.writing||e.corked?(s=e.lastBufferedRequest,e.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:o,next:null},s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):g(t,e,!1,a,r,n,o),h}(this,p,b,t,e,i)),m},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||v(this,t))},m.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase()))return this._writableState.defaultEncoding=t,this;throw new TypeError("Unknown encoding: "+t)},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,i){var r=this._writableState;"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||(t=this,e=i,(i=r).ending=!0,M(t,i),e&&(i.finished?o.nextTick(e):t.once("finish",e)),i.ended=!0,t.writable=!1)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=n.destroy,m.prototype._undestroy=n.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i(4),i(70).setImmediate,i(5))},function(t,e,i){"use strict";t.exports=n;var r=i(26);function n(t){if(!(this instanceof n))return new n(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var i=this._transformState,r=(i.transforming=!1,i.writecb);if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,(i.writecb=null)!=e&&this.push(e),r(t),(i=this._readableState).reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush)&&(this._flush=t.flush),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,i){s(t,e,i)})):s(this,null,null)}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");t.push(null)}(t=Object.create(i(10))).inherits=i(1),t.inherits(n,r),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,!r.transforming&&(i=this._readableState,r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(t,e){var i=this;r.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},function(t,e,i){"use strict";function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!=typeof t)for(var r=0;r<t.length;r++)i[r]=0|t[r];else if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16));else for(r=0;r<t.length;r++){var n=(o=t.charCodeAt(r))>>8,o=255&o;n?i.push(n,o):i.push(o)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(34),e.short=i(176),e.mont=i(177),e.edwards=i(178)},function(t,e,i){"use strict";var r=i(11).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=function(t,e,i){return t^e^i},e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(11),n=i(29),o=i(97),s=i(6),a=r.sum32,h=r.sum32_4,u=r.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,c=o.s1_256,p=o.g0_256,m=o.g1_256,g=n.BlockHash,b=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(v,g),(t.exports=v).blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=h(m(i[r-2]),i[r-7],p(i[r-15]),i[r-16]);var n=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],M=this.h[7];for(s(this.k.length===i.length),r=0;r<i.length;r++){var _=u(M,c(v),f(v,y,w),this.k[r],i[r]),S=a(d(n),l(n,o,g));M=w,w=y,y=v,v=a(b,_),b=g,g=o,o=n,n=a(_,S)}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],b),this.h[4]=a(this.h[4],v),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],M)},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,i){"use strict";var r=i(11),n=i(29),o=i(6),s=r.rotr64_hi,a=r.rotr64_lo,h=r.shr64_hi,u=r.shr64_lo,f=r.sum64,l=r.sum64_hi,d=r.sum64_lo,c=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,b=n.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}r.inherits(y,b),(t.exports=y).blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var i=this.W,r=0;r<32;r++)i[r]=t[e+r];for(;r<i.length;r+=2){var n=function(t,e){return(e=s(t,e,19)^s(e,t,29)^(t=h(t,e,6)))<0&&(e+=4294967296),e}(i[r-4],i[r-3]),o=function(t,e){return(e=a(t,e,19)^a(e,t,29)^(t=u(t,e,6)))<0&&(e+=4294967296),e}(i[r-4],i[r-3]),f=i[r-14],l=i[r-13],d=function(t,e){return(e=s(t,e,1)^s(t,e,8)^(t=h(t,e,7)))<0&&(e+=4294967296),e}(i[r-30],i[r-29]),m=function(t,e){return(e=a(t,e,1)^a(t,e,8)^(t=u(t,e,7)))<0&&(e+=4294967296),e}(i[r-30],i[r-29]),g=i[r-32],b=i[r-31];i[r]=c(n,o,f,l,d,m,g,b),i[r+1]=p(n,o,f,l,d,m,g,b)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var i=this.W,r=this.h[0],n=this.h[1],h=this.h[2],u=this.h[3],c=this.h[4],p=this.h[5],b=this.h[6],v=this.h[7],y=this.h[8],w=this.h[9],M=this.h[10],_=this.h[11],S=this.h[12],x=this.h[13],A=this.h[14],k=this.h[15];o(this.k.length===i.length);for(var E=0;E<i.length;E+=2){var R=A,T=k,C=function(t,e){return(t=s(t,e,14)^s(t,e,18)^(e=s(e,t,9)))<0&&(t+=4294967296),t}(y,w),I=function(t,e){return(t=a(t,e,14)^a(t,e,18)^(e=a(e,t,9)))<0&&(t+=4294967296),t}(y,w),B=function(t,e,i){return(e=t&e^~t&i)<0&&(e+=4294967296),e}(y,M,S),P=function(t,e,i){return(e=t&e^~t&i)<0&&(e+=4294967296),e}(w,_,x),j=this.k[E],L=this.k[E+1],N=i[E],O=i[E+1],D=m(R,T,C,I,B,P,j,L,N,O);B=g(R,T,C,I,B,P,j,L,N,O),R=function(t,e){return(t=s(t,e,28)^s(e,t,2)^(e=s(e,t,7)))<0&&(t+=4294967296),t}(r,n),T=function(t,e){return(t=a(t,e,28)^a(e,t,2)^(e=a(e,t,7)))<0&&(t+=4294967296),t}(r,n),C=function(t,e,i){return(t=t&e^t&i^e&i)<0&&(t+=4294967296),t}(r,h,c),I=function(t,e,i){return(t=t&e^t&i^e&i)<0&&(t+=4294967296),t}(n,u,p),P=l(R,T,C,I),j=d(R,T,C,I),A=S,k=x,S=M,x=_,M=y,_=w,y=l(b,v,D,B),w=d(v,v,D,B),b=c,v=p,c=h,p=u,h=r,u=n,r=l(D,B,P,j),n=d(D,B,P,j)}f(this.h,0,r,n),f(this.h,2,h,u),f(this.h,4,c,p),f(this.h,6,b,v),f(this.h,8,y,w),f(this.h,10,M,_),f(this.h,12,S,x),f(this.h,14,A,k)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,i){var r=i(1),n=i(31).Reporter,o=i(3).Buffer;function s(t,e){n.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}r(s,n),(e.DecoderBuffer=s).prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(t){var e=new s(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,n.prototype.restore.call(this,t.reporter),e},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},s.prototype.skip=function(t,e){var i;return this.offset+t<=this.length?((i=new s(this.base))._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i):this.error(e||"DecoderBuffer overrun")},s.prototype.raw=function(t){return this.base.slice((t||this).offset,this.length)},(e.EncoderBuffer=function t(e,i){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof t||(e=new t(e,i)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return i.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return i.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}).prototype.join=function(t,e){return t=t||new o(this.length),e=e||0,0!==this.length&&(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,i){e._reverse=function(t){var e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0);var r=t[i];e[r]=i})),e},e.der=i(200)},function(t,e,i){var r=i(1),n=(i=i(30)).base,o=i.bignum,s=i.constants.der;function a(t){n.Node.call(this,"der",t)}function h(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=s.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var o=i;for(i=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;i=i<<7|127&o}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:s.tag[i]}}function u(t,e,i){var r=t.readUInt8(i);if(!t.isError(r)){if(!e&&128===r)return null;if(0!=(128&r)){var n=127&r;if(4<n)return t.error("length octect is too long");r=0;for(var o=0;o<n;o++){r<<=8;var s=t.readUInt8(i);if(t.isError(s))return s;r|=s}}}return r}(t.exports=function(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new a,this.tree._init(t.body)}).prototype.decode=function(t,e){return t instanceof n.DecoderBuffer||(t=new n.DecoderBuffer(t,e)),this.tree._decode(t,e)},r(a,n.Node),a.prototype._peekTag=function(t,e,i){var r,n;return!t.isEmpty()&&(r=t.save(),n=h(t,'Failed to peek tag: "'+e+'"'),t.isError(n)?n:(t.restore(r),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||i))},a.prototype._decodeTag=function(t,e,i){var r=h(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var n=u(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(n))return n;if(!i&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(!r.primitive&&null===n){if(i=t.save(),r=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"'),t.isError(r))return r;n=t.offset-i.offset,t.restore(i)}return t.skip(n,'Failed to match body of: "'+e+'"')},a.prototype._skipUntilEnd=function(t,e){for(;;){var i=h(t,e);if(t.isError(i))return i;var r=u(t,i.primitive,e);if(t.isError(r))return r;if(r=i.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},a.prototype._decodeList=function(t,e,i,r){for(var n=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",r);if(t.isError(s)&&o)break;n.push(s)}return n},a.prototype._decodeStr=function(t,e){var i;if("bitstr"===e)return i=t.readUInt8(),t.isError(i)?i:{unused:i,data:t.raw()};if("bmpstr"!==e)return"numstr"===e?(i=t.raw().toString("ascii"),this._isNumstr(i)?i:t.error("Decoding of string type: numstr unsupported characters")):"octstr"===e||"objDesc"===e?t.raw():"printstr"===e?(i=t.raw().toString("ascii"),this._isPrintstr(i)?i:t.error("Decoding of string type: printstr unsupported characters")):/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported");var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var n="",o=0;o<r.length/2;o++)n+=String.fromCharCode(r.readUInt16BE(2*o));return n},a.prototype._decodeObjid=function(t,e,i){for(var r=[],n=0;!t.isEmpty();){var o=t.readUInt8();n=n<<7|127&o;0==(128&o)&&(r.push(n),n=0)}128&o&&r.push(n);var s;i=i?r:[r[0]/40|0,r[0]%40].concat(r.slice(1));return e&&void 0!==(s=void 0===(s=e[i.join(" ")])?e[i.join(".")]:s)?s:i},a.prototype._decodeTime=function(t,e){var i=t.raw().toString();if("gentime"===e)var r=0|i.slice(0,4),n=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),a=0|i.slice(10,12),h=0|i.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|i.slice(0,2),n=0|i.slice(2,4),o=0|i.slice(4,6),s=0|i.slice(6,8),a=0|i.slice(8,10),h=0|i.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,o,s,a,h,0)},a.prototype._decodeNull=function(t){return null},a.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},a.prototype._decodeInt=function(t,e){return t=t.raw(),t=new o(t),e&&e[t.toString(10)]||t},a.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getDecoder("der").tree}},function(t,e,i){var r=i(1),n=i(3).Buffer,o=(i=i(30)).base,s=i.constants.der;function a(t){o.Node.call(this,"der",t)}function h(t){return t<10?"0"+t:t}(t.exports=function(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new a,this.tree._init(t.body)}).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(a,o.Node),a.prototype._encodeComposite=function(t,e,i,r){if(t=function(t,e,i,r){var n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),s.tagByName.hasOwnProperty(t))n=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|s.tagClassByName[i||"universal"]<<6)}(t,e,i,this.reporter),r.length<128)(o=new n(2))[0]=t,o[1]=r.length;else{for(var o,a=1,h=r.length;256<=h;h>>=8)a++;(o=new n(2+a))[0]=t,o[1]=128|a;h=1+a;for(var u=r.length;0<u;h--,u>>=8)o[h]=255&u}return this._createEncoderBuffer([o,r])},a.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"!==e)return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported");for(var i=new n(2*t.length),r=0;r<t.length;r++)i.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(i)},a.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t))for(t=t.slice(),r=0;r<t.length;r++)t[r]|=0;if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(40<=t[1])return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(r=0;r<t.length;r++){var s=t[r];for(o++;128<=s;s>>=7)o++}var a=new n(o),h=a.length-1;for(r=t.length-1;0<=r;r--)for(s=t[r],a[h--]=127&s;0<(s>>=7);)a[h--]=128|127&s;return this._createEncoderBuffer(a)},a.prototype._encodeTime=function(t,e){var i;t=new Date(t);return"gentime"===e?i=[h(t.getFullYear()),h(t.getUTCMonth()+1),h(t.getUTCDate()),h(t.getUTCHours()),h(t.getUTCMinutes()),h(t.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[h(t.getFullYear()%100),h(t.getUTCMonth()+1),h(t.getUTCDate()),h(t.getUTCHours()),h(t.getUTCMinutes()),h(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"==typeof t||n.isBuffer(t)||(e=t.toArray(),!t.sign&&128&e[0]&&e.unshift(0),t=new n(e)),n.isBuffer(t))return i=t.length,0===t.length&&i++,o=new n(i),t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o);if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var i=1,r=t;256<=r;r>>=8)i++;var o;for(r=(o=new Array(i)).length-1;0<=r;r--)o[r]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},a.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},a.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},a.prototype._skipDefault=function(t,e,i){var r,n=this._baseState;if(null===n.default)return!1;var o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,i).join()),o.length!==n.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==n.defaultBuffer[r])return!1;return!0}},function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,i){var r=i(27),n=i(2).Buffer;t.exports=function(t,e){for(var i,o,s=n.alloc(0),a=0;s.length<e;)i=a++,o=void 0,(o=n.allocUnsafe(4)).writeUInt32BE(i,0),i=o,s=n.concat([s,r("sha1").update(t).update(i).digest()]);return s.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var i=t.length,r=-1;++r<i;)t[r]^=e[r];return t}},function(t,e,i){var r=i(56),n=i(2).Buffer;t.exports=function(t,e){return n.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},function(t,e,i){var r;i=[i(8)],void 0!==(e="function"==typeof(r=function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",(function(e){i.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(i.cancelSubmit=!0)})),this.on("submit.validate",(function(e){function r(){var r,n;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(r=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),!(i.settings.submitHandler&&!i.settings.debug)||(n=i.settings.submitHandler.call(i,i.currentForm,e),r&&r.remove(),void 0!==n&&n)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)}))),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,i,r;return t(this[0]).is("form")?e=this.validate().form():(r=[],e=!0,i=t(this[0].form).validate(),this.each((function(){(e=i.element(this)&&e)||(r=r.concat(i.errorList))})),i.errorList=r),e},rules:function(e,i){var r,n,o,s,a,h,u=this[0],f=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=u&&(!u.form&&f&&(u.form=this.closest("form")[0],u.name=this.attr("name")),null!=u.form)){if(e)switch(n=(r=t.data(u.form,"validator").settings).rules,o=t.validator.staticRules(u),e){case"add":t.extend(o,t.validator.normalizeRule(i)),delete o.messages,n[u.name]=o,i.messages&&(r.messages[u.name]=t.extend(r.messages[u.name],i.messages));break;case"remove":return i?(h={},t.each(i.split(/\s/),(function(t,e){h[e]=o[e],delete o[e]})),h):(delete n[u.name],o)}return(s=t.validator.normalizeRules(t.extend({},t.validator.classRules(u),t.validator.attributeRules(u),t.validator.dataRules(u),t.validator.staticRules(u)),u)).required&&(a=s.required,delete s.required,s=t.extend({required:a},s)),s.remote&&(a=s.remote,delete s.remote,s=t.extend(s,{remote:a})),s}}});var e,i=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},r=(t.extend(t.expr.pseudos||t.expr[":"],{blank:function(e){return!i(""+t(e).val())},filled:function(e){var r=t(e).val();return null!==r&&!!i(""+r)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(void 0===i||(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,(function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),(function(){return i}))}))),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,i){9===i.which&&""===this.elementValue(e)||-1!==t.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,r){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(r):t(e).addClass(i).removeClass(r)},unhighlight:function(e,i,r){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(r):t(e).removeClass(i).addClass(r)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e,i=this.currentForm,r=this.groups={};function n(e){var r=void 0!==t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");if(!this.form&&r&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name")),i===this.form){var n=t.data(this.form,"validator"),o="on"+e.type.replace(/^validate/,""),s=n.settings;s[o]&&!t(this).is(s.ignore)&&s[o].call(n,this,e)}}t.each(this.settings.groups,(function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,(function(t,i){r[i]=e}))})),e=this.settings.rules,t.each(e,(function(i,r){e[i]=t.validator.normalizeRule(r)})),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",n).on("click.validate","select, option, [type='radio'], [type='checkbox']",n),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,r,n=this.clean(e),o=this.validationTargetFor(n),s=this,a=!0;return void 0===o?delete this.invalid[n.name]:(this.prepareElement(o),this.currentElements=t(o),(r=this.groups[o.name])&&t.each(this.groups,(function(t,e){e===r&&t!==o.name&&(n=s.validationTargetFor(s.clean(s.findByName(t))))&&n.name in s.invalid&&(s.currentElements.push(n),a=s.check(n)&&a)})),i=!1!==this.check(o),a=a&&i,this.invalid[o.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!i)),a},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,(function(t,e){return{message:t,element:i.findByName(e)[0]}})),this.successList=t.grep(this.successList,(function(t){return!(t.name in e)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)void 0!==t[e]&&null!==t[e]&&!1!==t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,(function(t){return t.element.name===e.name})).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter((function(){var r=this.name||t(this).attr("name"),n=void 0!==t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");return!r&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),n&&(this.form=t(this).closest("form")[0],this.name=r),this.form===e.currentForm&&(!(r in i||!e.objectLength(t(this).rules()))&&(i[r]=!0,!0))}))},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,r,n=t(e),o=e.type,s=void 0!==n.attr("contenteditable")&&"false"!==n.attr("contenteditable");return"radio"===o||"checkbox"===o?this.findByName(e.name).filter(":checked").val():"number"===o&&void 0!==e.validity?e.validity.badInput?"NaN":n.val():(i=s?n.text():n.val(),"file"===o?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(r=i.lastIndexOf("/"))>=0||(r=i.lastIndexOf("\\"))>=0?i.substr(r+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,r,n,o,s=t(e).rules(),a=t.map(s,(function(t,e){return e})).length,h=!1,u=this.elementValue(e);for(r in this.abortRequest(e),"function"==typeof s.normalizer?o=s.normalizer:"function"==typeof this.settings.normalizer&&(o=this.settings.normalizer),o&&(u=o.call(e,u),delete s.normalizer),s){n={method:r,parameters:s[r]};try{if("dependency-mismatch"===(i=t.validator.methods[r].call(this,u,e,n.parameters))&&1===a){h=!0;continue}if(h=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(s){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",s),s instanceof TypeError&&(s.message+=".  Exception occurred when checking element "+e.id+", check the '"+n.method+"' method."),s}}if(!h)return this.objectLength(s)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var r=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),n=/\$?\{(\d+)\}/g;return"function"==typeof r?r=r.call(this,i.parameters,e):n.test(r)&&(r=t.validator.format(r.replace(n,"{$1}"),i.parameters)),r},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map((function(){return this.element}))},showLabel:function(e,i){var r,n,o,s,a=this.errorsFor(e),h=this.idOrName(e),u=t(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(i||""):a.html(i||"")):(a=t("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(i||""):a.html(i||""),r=a,this.settings.wrapper&&(r=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(r):this.settings.errorPlacement?this.settings.errorPlacement.call(this,r,t(e)):r.insertAfter(e),a.is("label")?a.attr("for",h):0===a.parents("label[for='"+this.escapeCssMeta(h)+"']").length&&(o=a.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(u+=" "+o):u=o,t(e).attr("aria-describedby",u),(n=this.groups[e.name])&&(s=this,t.each(s.groups,(function(e,i){i===n&&t("[name='"+s.escapeCssMeta(e)+"']",s.currentForm).attr("aria-describedby",a.attr("id"))}))))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),r=t(e).attr("aria-describedby"),n="label[for='"+i+"'], label[for='"+i+"'] *";return r&&(n=n+", #"+this.escapeCssMeta(r).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return void 0===t?"":t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},elementAjaxPort:function(t){return"validate"+t.name},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(t(this.currentForm).trigger("submit"),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(e){var i;this.pending[e.name]&&(i=this.elementAjaxPort(e),t.ajaxAbort(i),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass))},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},r=t(e).attr("class");return r&&t.each(r.split(" "),(function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])})),i},normalizeAttributeRule:function(t,e,i,r){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(r=Number(r),isNaN(r)&&(r=void 0)),r||0===r?t[i]=r:e===i&&"range"!==e&&(t["date"===e?"dateISO":i]=!0)},attributeRules:function(e){var i,r,n={},o=t(e),s=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(""===(r=e.getAttribute(i))&&(r=!0),r=!!r):r=o.attr(i),this.normalizeAttributeRule(n,s,i,r);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,r,n={},o=t(e),s=e.getAttribute("type");for(i in t.validator.methods)""===(r=o.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()))&&(r=!0),this.normalizeAttributeRule(n,s,i,r);return n},staticRules:function(e){var i={},r=t.data(e.form,"validator");return r.settings.rules&&(i=t.validator.normalizeRule(r.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,(function(r,n){if(!1!==n){if(n.param||n.depends){var o=!0;switch(typeof n.depends){case"string":o=!!t(n.depends,i.form).length;break;case"function":o=n.depends.call(i,i)}o?e[r]=void 0===n.param||n.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[r])}}else delete e[r]})),t.each(e,(function(t,r){e[t]="function"==typeof r&&"normalizer"!==t?r(i):r})),t.each(["minlength","maxlength"],(function(){e[this]&&(e[this]=Number(e[this]))})),t.each(["rangelength","range"],(function(){var t;e[this]&&(Array.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(t=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(t[0]),Number(t[1])]))})),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),(function(){i[this]=!0})),e=i}return e},addMethod:function(e,i,r){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==r?r:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:null!=e&&e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(){var t=!1;return function(e,i){return t||(t=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(i)||!/Invalid|NaN/.test(new Date(e).toString())}}(),dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,i){var r=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||r>=i},maxlength:function(t,e,i){var r=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||r<=i},rangelength:function(t,e,i){var r=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||r>=i[0]&&r<=i[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,r){var n,o=t(i).attr("type"),s="Step attribute on input type "+o+" is not supported.",a=new RegExp("\\b"+o+"\\b"),h=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},u=function(t){return Math.round(t*Math.pow(10,n))},f=!0;if(o&&!a.test(["text","number","range"].join()))throw new Error(s);return n=h(r),(h(e)>n||u(e)%u(r)!=0)&&(f=!1),this.optional(i)||f},equalTo:function(e,i,r){var n=t(r);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",(function(){t(i).valid()})),e===n.val()},remote:function(e,i,r,n){if(this.optional(i))return"dependency-mismatch";n="string"==typeof n&&n||"remote";var o,s,a,h=this.previousValue(i,n);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),h.originalMessage=h.originalMessage||this.settings.messages[i.name][n],this.settings.messages[i.name][n]=h.message,r="string"==typeof r&&{url:r}||r,a=t.param(t.extend({data:e},r.data)),h.old===a?h.valid:(h.old=a,o=this,this.startRequest(i),(s={})[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:this.elementAjaxPort(i),dataType:"json",data:s,context:o.currentForm,success:function(t){var r,s,a,u=!0===t||"true"===t;o.settings.messages[i.name][n]=h.originalMessage,u?(a=o.formSubmitted,o.toHide=o.errorsFor(i),o.formSubmitted=a,o.successList.push(i),o.invalid[i.name]=!1,o.showErrors()):(r={},s=t||o.defaultMessage(i,{method:n,parameters:e}),r[i.name]=h.message=s,o.invalid[i.name]=!0,o.showErrors(r)),h.valid=u,o.stopRequest(i,u)}},r)),"pending")}}}),{});return t.ajaxPrefilter?t.ajaxPrefilter((function(e,i,n){var o=e.port;"abort"===e.mode&&(t.ajaxAbort(o),r[o]=n)})):(e=t.ajax,t.ajax=function(i){var n=("mode"in i?i:t.ajaxSettings).mode,o=("port"in i?i:t.ajaxSettings).port;return"abort"===n?(t.ajaxAbort(o),r[o]=e.apply(this,arguments),r[o]):e.apply(this,arguments)}),t.ajaxAbort=function(t){r[t]&&(r[t].abort(),delete r[t])},t})?r.apply(e,i):r)&&(t.exports=e)},,,,function(t,e,i){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(22),e.createHash=e.Hash=i(27),e.createHmac=e.Hmac=i(72);var r=i(142),n=(r=Object.keys(r),["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r));e.getHashes=function(){return n},r=i(75),e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync,r=i(144),e.Cipher=r.Cipher,e.createCipher=r.createCipher,e.Cipheriv=r.Cipheriv,e.createCipheriv=r.createCipheriv,e.Decipher=r.Decipher,e.createDecipher=r.createDecipher,e.Decipheriv=r.Decipheriv,e.createDecipheriv=r.createDecipheriv,e.getCiphers=r.getCiphers,e.listCiphers=r.listCiphers,r=i(159),e.DiffieHellmanGroup=r.DiffieHellmanGroup,e.createDiffieHellmanGroup=r.createDiffieHellmanGroup,e.getDiffieHellman=r.getDiffieHellman,e.createDiffieHellman=r.createDiffieHellman,e.DiffieHellman=r.DiffieHellman,r=i(166),e.createSign=r.createSign,e.Sign=r.Sign,e.createVerify=r.createVerify,e.Verify=r.Verify,e.createECDH=i(209),r=i(212),e.publicEncrypt=r.publicEncrypt,e.privateEncrypt=r.privateEncrypt,e.publicDecrypt=r.publicDecrypt,e.privateDecrypt=r.privateDecrypt,r=i(216);e.randomFill=r.randomFill,e.randomFillSync=r.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,i){"use strict";(function(t){var e,r=i(113),n=i(217),o={iv:"@@@@&&&&####$$$$",encrypt:function(t,e){var i=this.iv,n="256";switch(e.length){case 16:n="128";break;case 24:n="192";break;case 32:n="256"}return(i=(e=r.createCipheriv("AES-"+n+"-CBC",e,i)).update(t,"binary","base64"))+e.final("base64")},decrypt:function(t,e){var i=this.iv,o="256";switch(e.length){case 16:o="128";break;case 24:o="192";break;case 32:o="256"}i=(e=r.createDecipheriv("AES-"+o+"-CBC",e,i)).update(t,"base64","binary");try{i+=e.final("binary")}catch(t){n.log(n.inspect(t))}return i},gen_salt:function(t,e){r.randomBytes(3*t/4,(function(t,i){var r;t||(r=i.toString("base64")),e(t,r)}))},md5sum:function(t,e){return r.createHash("md5").update(t+e).digest("hex")},sha256sum:function(t,e){return r.createHash("sha256").update(e+t).digest("hex")},paymentEncrypt:function(t,e,i){var n="256";switch(e.length){case 16:n="128";break;case 24:n="192";break;case 32:n="256"}return(i=(e=r.createCipheriv("AES-"+n+"-CBC",e,i)).update(t,"binary","base64"))+e.final("base64")},paymentDecrypt:function(t,e,i){var o="256";switch(e.length){case 16:o="128";break;case 24:o="192";break;case 32:o="256"}i=(e=r.createDecipheriv("AES-"+o+"-CBC",e,i)).update(t,"base64","binary");try{i+=e.final("binary")}catch(t){n.log(n.inspect(t))}return i},val:function(t){return t.charAt(0)+t.charAt(2)+t.charAt(4)+t.charAt(6)+t.charAt(8)+t.charAt(10)+t.charAt(12)+t.charAt(14)+t.charAt(16)+t.charAt(18)+t.charAt(20)+t.charAt(22)+t.charAt(24)+t.charAt(26)+t.charAt(28)+t.charAt(30)}};function s(t,e){t||console.log("salt is "+e)}if(t.exports=o,i.c[i.s]===t)for(t=o.encrypt("One97"),console.log("encrypted - "+t),console.log("decrypted - "+o.decrypt(t)),e=0;e<5;e++)o.gen_salt(4,s)}).call(this,i(14)(t))},function(t,e,i){"use strict";e.byteLength=function(t){return 3*((t=u(t))[0]+(t=t[1]))/4-t},e.toByteArray=function(t){var e,i,r=(s=u(t))[0],s=s[1],a=new o(function(t,e){return 3*(t+e)/4-e}(r,s)),h=0,f=0<s?r-4:r;for(i=0;i<f;i+=4)e=n[t.charCodeAt(i)]<<18|n[t.charCodeAt(i+1)]<<12|n[t.charCodeAt(i+2)]<<6|n[t.charCodeAt(i+3)],a[h++]=e>>16&255,a[h++]=e>>8&255,a[h++]=255&e;return 2===s&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,a[h++]=255&e),1===s&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,a[h++]=e>>8&255,a[h++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,o=[],s=0,a=i-n;s<a;s+=16383)o.push(function(t,e,i){for(var n,o=[],s=e;s<i;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(function(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(n));return o.join("")}(t,s,a<s+16383?a:s+16383));return 1==n?(e=t[i-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2==n&&(e=(t[i-2]<<8)+t[i-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,h=s.length;a<h;++a)r[a]=s[a],n[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return e=(t=-1===(t=t.indexOf("="))?e:t)===e?0:4-t%4,[t,e]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,i,r,n){var o,s,a=8*n-r-1,h=(1<<a)-1,u=h>>1,f=-7,l=i?n-1:0,d=i?-1:1;n=t[e+l];for(l+=d,o=n&(1<<-f)-1,n>>=-f,f+=a;0<f;o=256*o+t[e+l],l+=d,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;0<f;s=256*s+t[e+l],l+=d,f-=8);if(0===o)o=1-u;else{if(o===h)return s?NaN:1/0*(n?-1:1);s+=Math.pow(2,r),o-=u}return(n?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,i,r,n,o){var s,a,h=8*o-n-1,u=(1<<h)-1,f=u>>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1;o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<<n|a,h+=n;0<h;t[i+d]=255&s,d+=c,s/=256,h-=8);t[i+d-c]|=128*o}},function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,i){(((e=t.exports=i(59)).Stream=e).Readable=e).Writable=i(63),e.Duplex=i(24),e.Transform=i(64),e.PassThrough=i(125),e.finished=i(40),e.pipeline=i(126)},function(t,e){},function(t,e,i){"use strict";function r(t,e){var i,r=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)),r}function n(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){var r,n;r=t,n=i[e=e],(e=s(e))in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){return"symbol"==typeof(t=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return String(t);if("object"!=typeof(i=i.call(t,e)))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"))?t:String(t)}var a=i(3).Buffer,h=i(121).inspect,u=h&&h.custom||"inspect";t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}var e,i;return e=t,(i=[{key:"push",value:function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){var t;if(0!==this.length)return t=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,i,r=a.allocUnsafe(t>>>0),n=this.head,o=0;n;)e=n.data,i=o,a.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return h(this,n(n({},e),{},{depth:0,customInspect:!1}))}}])&&o(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},function(t,e){},function(t,e,i){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=i(3),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=n(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,i){"use strict";(function(e){var r;function n(t,e,i){(e=function(t){return"symbol"==typeof(t=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return String(t);if("object"!=typeof(i=i.call(t,e)))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"))?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}var o=i(40),s=Symbol("lastResolve"),a=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),d=Symbol("stream");function c(t,e){return{value:t,done:e}}function p(t){var e,i=t[s];null!==i&&null!==(e=t[d].read())&&(t[f]=null,t[s]=null,t[a]=null,i(c(e,!1)))}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((n(r={get stream(){return this[d]},next:function(){var t,i,r,n,o=this;if(null!==(n=this[h]))return Promise.reject(n);if(this[u])return Promise.resolve(c(void 0,!0));if(this[d].destroyed)return new Promise((function(t,i){e.nextTick((function(){o[h]?i(o[h]):t(c(void 0,!0))}))}));if(n=this[f])t=new Promise((i=n,r=this,function(t,e){i.then((function(){r[u]?t(c(void 0,!0)):r[l](t,e)}),e)}));else{if(null!==(n=this[d].read()))return Promise.resolve(c(n,!1));t=new Promise(this[l])}return this[f]=t}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var t=this;return new Promise((function(e,i){t[d].destroy(null,(function(t){t?i(t):e(c(void 0,!0))}))}))})),r),m);t.exports=function(t){var i,r=Object.create(g,(n(i={},d,{value:t,writable:!0}),n(i,s,{value:null,writable:!0}),n(i,a,{value:null,writable:!0}),n(i,h,{value:null,writable:!0}),n(i,u,{value:t._readableState.endEmitted,writable:!0}),n(i,l,{value:function(t,e){var i=r[d].read();i?(r[f]=null,r[s]=null,r[a]=null,t(c(i,!1))):(r[s]=t,r[a]=e)},writable:!0}),i));return r[f]=null,o(t,(function(t){var e;t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code?(null!==(e=r[a])&&(r[f]=null,r[s]=null,r[a]=null,e(t)),r[h]=t):(null!==(e=r[s])&&(r[f]=null,r[s]=null,e(c(void 0,!(r[a]=null)))),r[u]=!0)})),t.on("readable",function(t){e.nextTick(p,t)}.bind(null,r)),r}}).call(this,i(4))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,i){"use strict";t.exports=n;var r=i(64);function n(t){if(!(this instanceof n))return new n(t);r.call(this,t)}i(1)(n,r),n.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){"use strict";var r,n=i(23).codes,o=n.ERR_MISSING_ARGS,s=n.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function h(t,e,n,o){a=o,h=!1;var a,h,u=!(o=function(){h||(h=!0,a.apply(void 0,arguments))}),f=(t.on("close",(function(){u=!0})),(r=void 0===r?i(40):r)(t,{readable:e,writable:n},(function(t){if(t)return o(t);u=!0,o()})),!1);return function(e){var i;if(!u&&!f)return f=!0,(i=t).setHeader&&"function"==typeof i.abort?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function u(t){t()}function f(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var r,n,s=(r=e).length&&"function"==typeof r[r.length-1]?r.pop():a;if((e=Array.isArray(e[0])?e[0]:e).length<2)throw new o("streams");var l=e.map((function(t,i){var r=i<e.length-1;return h(t,r,0<i,(function(t){n=n||t,t&&l.forEach(u),r||(l.forEach(u),s(n))}))}));return e.reduce(f)}},function(t,e,i){var r=i(1),n=i(25),o=i(2).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}r(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var u,f,l,d=0;d<80;++d){var c=~~(d/20),p=0|(i<<5|i>>>27)+(u=r,f=n,l=o,0===(p=c)?u&f|~u&l:2===p?u&f|u&l|f&l:u^f^l)+a+e[d]+s[c];a=o,o=n,n=r<<30|r>>>2,r=i,i=p}this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},h.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},function(t,e,i){var r=i(1),n=i(25),o=i(2).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}r(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,a=0|this._d,h=0|this._e,u=0;u<16;++u)i[u]=t.readInt32BE(4*u);for(;u<80;++u)i[u]=(e=i[u-3]^i[u-8]^i[u-14]^i[u-16])<<1|e>>>31;for(var f,l,d,c=0;c<80;++c){var p=~~(c/20),m=0|(r<<5|r>>>27)+(f=n,l=o,d=a,0===(m=p)?f&l|~f&d:2===m?f&l|f&d|l&d:f^l^d)+h+i[c]+s[p];h=a,a=o,o=n<<30|n>>>2,n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=h+this._e|0},h.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},function(t,e,i){var r=i(1),n=i(65),o=i(25),s=i(2).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=h},function(t,e,i){var r=i(1),n=i(66),o=i(25),s=i(2).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,i,r){t.writeInt32BE(e,r),t.writeInt32BE(i,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=h},function(t,e,i){t.exports=n;var r=i(18).EventEmitter;function n(){r.call(this)}i(1)(n,r),n.Readable=i(43),n.Writable=i(137),n.Duplex=i(138),n.Transform=i(139),n.PassThrough=i(140),(n.Stream=n).prototype.pipe=function(t,e){var i=this;function n(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function o(){i.readable&&i.resume&&i.resume()}i.on("data",n),t.on("drain",o),t._isStdio||e&&!1===e.end||(i.on("end",a),i.on("close",h));var s=!1;function a(){s||(s=!0,t.end())}function h(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(f(),0===r.listenerCount(this,"error"))throw t}function f(){i.removeListener("data",n),t.removeListener("drain",o),i.removeListener("end",a),i.removeListener("close",h),i.removeListener("error",u),t.removeListener("error",u),i.removeListener("end",f),i.removeListener("close",f),t.removeListener("close",f)}return i.on("error",u),t.on("error",u),i.on("end",f),i.on("close",f),t.on("close",f),t.emit("pipe",i),t}},function(t,e){},function(t,e,i){"use strict";var r=i(2).Buffer,n=i(134);function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(o.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},o.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},o.prototype.shift=function(){var t;if(0!==this.length)return t=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},o.prototype.concat=function(t){if(0===this.length)return r.alloc(0);for(var e,i=r.allocUnsafe(t>>>0),n=this.head,o=0;n;)e=o,n.data.copy(i,e),o+=n.data.length,n=n.next;return i},o),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,i){(function(t,e){!function(t,i){"use strict";var r,n,o,s,a,h,u,f;function l(t){delete n[t]}function d(t){if(o)setTimeout(d,0,t);else{var e=n[t];if(e){o=!0;try{var i=e,r=i.callback,s=i.args;switch(s.length){case 0:r();break;case 1:r(s[0]);break;case 2:r(s[0],s[1]);break;case 3:r(s[0],s[1],s[2]);break;default:r.apply(void 0,s)}}finally{l(t),o=!1}}}}t.setImmediate||(r=1,o=!(n={}),s=t.document,f=(f=Object.getPrototypeOf&&Object.getPrototypeOf(t))&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?a=function(t){e.nextTick((function(){d(t)}))}:function(){var e,i;if(t.postMessage&&!t.importScripts)return e=!0,i=t.onmessage,t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}()?function(){function e(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))}var i="setImmediate$"+Math.random()+"$";t.addEventListener?t.addEventListener("message",e,!1):t.attachEvent("onmessage",e),a=function(e){t.postMessage(i+e,"*")}}():a=t.MessageChannel?((u=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){u.port2.postMessage(t)}):s&&"onreadystatechange"in s.createElement("script")?(h=s.documentElement,function(t){var e=s.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,h.removeChild(e),e=null},h.appendChild(e)}):function(t){setTimeout(d,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return n[r]={callback:t,args:e},a(r),r++},f.clearImmediate=l)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(5),i(4))},function(t,e,i){"use strict";t.exports=n;var r=i(71);function n(t){if(!(this instanceof n))return new n(t);r.call(this,t)}(t=Object.create(i(10))).inherits=i(1),t.inherits(n,r),n.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){t.exports=i(44)},function(t,e,i){t.exports=i(20)},function(t,e,i){t.exports=i(43).Transform},function(t,e,i){t.exports=i(43).PassThrough},function(t,e,i){"use strict";var r=i(1),n=i(2).Buffer,o=i(15),s=n.alloc(128);function a(t,e){o.call(this,"digest"),"string"==typeof e&&(e=n.from(e)),this._alg=t,64<(this._key=e).length?e=t(e):e.length<64&&(e=n.concat([e,s],64));for(var i=this._ipad=n.allocUnsafe(64),r=this._opad=n.allocUnsafe(64),a=0;a<64;a++)i[a]=54^e[a],r[a]=92^e[a];this._hash=[i]}r(a,o),a.prototype._update=function(t){this._hash.push(t)},a.prototype._final=function(){var t=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,t]))},t.exports=a},function(t,e,i){"use strict";t.exports=i(74)},function(t,e,i){(function(e){var r,n,o=i(2).Buffer,s=i(76),a=i(77),h=i(78),u=i(79),f=e.crypto&&e.crypto.subtle,l={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"},d=[];function c(){return n=n||(e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask||e.setImmediate||e.setTimeout)}function p(t,e,i,r,n){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:n}},t,r<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,i,n,m,g,b){"function"==typeof g&&(b=g,g=void 0);var v,y,w,M=l[(g=g||"sha1").toLowerCase()];if(M&&"function"==typeof e.Promise){if(s(n,m),t=u(t,a,"Password"),i=u(i,a,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");y=M,y=((!e.process||e.process.browser)&&f&&f.importKey&&f.deriveBits?void 0!==d[y]?d[y]:(w=p(r=r||o.alloc(8),r,10,128,y).then((function(){return!0})).catch((function(){return!1})),d[y]=w):Promise.resolve(!1)).then((function(e){return e?p(t,i,n,m,M):h(t,i,n,m,g)})),v=b,y.then((function(t){c()((function(){v(null,t)}))}),(function(t){c()((function(){v(t)}))}))}else c()((function(){var e;try{e=h(t,i,n,m,g)}catch(e){return b(e)}b(null,e)}))}}).call(this,i(5))},function(t,e,i){var r=i(145),n=i(46),o=i(47),s=i(158),a=i(33);function h(t,e,i){if(t=t.toLowerCase(),o[t])return n.createCipheriv(t,e,i);if(s[t])return new r({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function u(t,e,i){if(t=t.toLowerCase(),o[t])return n.createDecipheriv(t,e,i);if(s[t])return new r({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var i,r;if(t=t.toLowerCase(),o[t])i=o[t].key,r=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");i=8*s[t].key,r=s[t].iv}return h(t,(e=a(e,!1,i,r)).key,e.iv)},e.createCipheriv=e.Cipheriv=h,e.createDecipher=e.Decipher=function(t,e){var i,r;if(t=t.toLowerCase(),o[t])i=o[t].key,r=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");i=8*s[t].key,r=s[t].iv}return u(t,(e=a(e,!1,i,r)).key,e.iv)},e.createDecipheriv=e.Decipheriv=u,e.listCiphers=e.getCiphers=function(){return Object.keys(s).concat(n.getCiphers())}},function(t,e,i){var r=i(15),n=i(146),o=i(1),s=i(2).Buffer,a={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function h(t){r.call(this);var e=t.mode.toLowerCase(),i=a[e],n=t.decrypt?"decrypt":"encrypt",o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==e&&"des-ede-cbc"!==e||(o=s.concat([o,o.slice(0,8)])),e=t.iv;s.isBuffer(e)||(e=s.from(e)),this._des=i.create({key:o,iv:e,type:n})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],o(t.exports=h,r),h.prototype._update=function(t){return s.from(this._des.update(t))},h.prototype._final=function(){return s.from(this._des.final())}},function(t,e,i){"use strict";e.utils=i(80),e.Cipher=i(45),e.DES=i(81),e.CBC=i(147),e.EDE=i(148)},function(t,e,i){"use strict";var r=i(6),n=i(1),o={};function s(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}n(e,t);for(var i=Object.keys(o),r=0;r<i.length;r++){var s=i[r];e.prototype[s]=o[s]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new s(this.options.iv);this._cbcState=t},o._update=function(t,e,i,r){var n=this._cbcState,o=this.constructor.super_.prototype,s=n.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=t[e+a];for(o._update.call(this,s,0,i,r),a=0;a<this.blockSize;a++)s[a]=i[r+a]}else{for(o._update.call(this,t,e,i,r),a=0;a<this.blockSize;a++)i[r+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=t[e+a]}}},function(t,e,i){"use strict";var r=i(6),n=i(1),o=i(45),s=i(81);function a(t,e){r.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),n=e.slice(8,16);e=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:e})]:[s.create({type:"decrypt",key:e}),s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:i})]}function h(t){o.call(this,t),t=new a(this.type,this.options.key),this._edeState=t}n(h,o),(t.exports=h).create=function(t){return new h(t)},h.prototype._update=function(t,e,i,r){var n=this._edeState;n.ciphers[0]._update(t,e,i,r),n.ciphers[1]._update(i,r,i,r),n.ciphers[2]._update(i,r,i,r)},h.prototype._pad=s.prototype._pad,h.prototype._unpad=s.prototype._unpad},function(t,e,i){var r=i(47),n=i(85),o=i(2).Buffer,s=i(86),a=i(15),h=i(32),u=i(33);function f(t,e,i){a.call(this),this._cache=new d,this._cipher=new h.AES(e),this._prev=o.from(i),this._mode=t,this._autopadding=!0}i(1)(f,a),f.prototype._update=function(t){this._cache.add(t);for(var e,i=[];e=this._cache.get();)e=this._mode.encrypt(this,e),i.push(e);return o.concat(i)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function c(t,e,i){if(!(t=r[t.toLowerCase()]))throw new TypeError("invalid suite type");if((e="string"==typeof e?o.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=o.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);return new("stream"===t.type?s:"auth"===t.type?n:f)(t.module,e,i)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){var t;return 15<this.cache.length?(t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t):null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return o.concat([this.cache,e])},e.createCipheriv=c,e.createCipher=function(t,e){var i=r[t.toLowerCase()];if(i)return c(t,(t=u(e,!1,i.key,i.iv)).key,t.iv);throw new TypeError("invalid suite type")}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,i){var r=i(28);e.encrypt=function(t,e){return e=r(e,t._prev),t._prev=t._cipher.encryptBlock(e),t._prev},e.decrypt=function(t,e){var i=t._prev;t._prev=e,t=t._cipher.decryptBlock(e);return r(t,i)}},function(t,e,i){var r=i(2).Buffer,n=i(28);function o(t,e,i){var o=e.length,s=n(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,i?e:s]),s}e.encrypt=function(t,e,i){for(var n,s=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){s=r.concat([s,o(t,e,i)]);break}n=t._cache.length,s=r.concat([s,o(t,e.slice(0,n),i)]),e=e.slice(n)}return s}},function(t,e,i){var r=i(2).Buffer;e.encrypt=function(t,e,i){for(var n,o,s,a,h=e.length,u=r.allocUnsafe(h),f=-1;++f<h;)u[f]=(n=t,o=e[f],s=i,void 0,a=n._cipher.encryptBlock(n._prev)[0]^o,n._prev=r.concat([n._prev.slice(1),r.from([s?o:a])]),a);return u}},function(t,e,i){var r=i(2).Buffer;function n(t,e,i){for(var n,o,s=-1,a=0;++s<8;)a+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^(n=e&1<<7-s?128:0)))>>s%8,t._prev=function(t,e){var i=t.length,n=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++n<i;)o[n]=t[n]<<1|t[n+1]>>7;return o}(t._prev,i?n:o);return a}e.encrypt=function(t,e,i){for(var o=e.length,s=r.allocUnsafe(o),a=-1;++a<o;)s[a]=n(t,e[a],i);return s}},function(t,e,i){(function(t){var r=i(28);e.encrypt=function(e,i){for(;e._cache.length<i.length;)e._cache=t.concat([e._cache,((n=e)._prev=n._cipher.encryptBlock(n._prev),n._prev)]);var n,o=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),r(i,o)}}).call(this,i(3).Buffer)},function(t,e,i){var r=i(2).Buffer,n=r.alloc(16,0);function o(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function s(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},s.prototype._multiply=function(){for(var t,e,i,r=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],n=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),i=0!=(1&r[3]),e=3;0<e;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=o(n)},s.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},s.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=s},function(t,e,i){var r=i(85),n=i(2).Buffer,o=i(47),s=i(86),a=i(15),h=i(32),u=i(33);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){if(!(t=o[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(1)(f,a),f.prototype._update=function(t){this._cache.add(t);for(var e,i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding){var e=this._mode.decrypt(this,t),i=e[15];if(i<1||16<i)throw new Error("unable to decrypt data");for(var r=-1;++r<i;)if(e[r+(16-i)]!==i)throw new Error("unable to decrypt data");if(16!==i)return e.slice(0,16-i)}else if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=n.concat([this.cache,t])},l.prototype.get=function(t){var e;if(t){if(16<this.cache.length)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(16<=this.cache.length)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=o[t.toLowerCase()];if(i)return d(t,(t=u(e,!1,i.key,i.iv)).key,t.iv);throw new TypeError("invalid suite type")},e.createDecipheriv=d},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,i){(function(t){var r=i(87),n=i(164),o=i(165),s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var i=new t(n[e].prime,"hex");e=new t(n[e].gen,"hex");return new o(i,e)},e.createDiffieHellman=e.DiffieHellman=function e(i,n,a,h){return t.isBuffer(n)||void 0===s[n]?e(i,"binary",n,a):(n=n||"binary",h=h||"binary",a=a||new t([2]),t.isBuffer(a)||(a=new t(a,h)),"number"==typeof i?new o(r(i,a),a,!0):(t.isBuffer(i)||(i=new t(i,n)),new o(i,a,!0)))}}).call(this,i(3).Buffer)},function(t,e){},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(162)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},function(t,e){},function(t,e){},function(t){t.exports=JSON.parse('{"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(t,e,i){(function(e){var r=i(88),n=new(i(89)),o=new r(24),s=new r(11),a=new r(10),h=new r(3),u=new r(7),f=i(87),l=i(22);function d(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new r(t),this}function c(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new r(t),this}t.exports=m;var p={};function m(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=d,this.setPrivateKey=c):this._primeCode=8}function g(t,i){return t=new e(t.toArray()),i?t.toString(i):t}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=[e=e.toString("hex"),t.toString(16)].join("_");if(i in p)return p[i];var r,l=0;if(t.isEven()||!f.simpleSieve||!f.fermatTest(t)||!n.test(t))return p[i]=l+1+("02"===e||"05"===e?8:4);switch(n.test(t.shrn(1))||(l+=2),e){case"02":t.mod(o).cmp(s)&&(l+=8);break;case"05":(r=t.mod(a)).cmp(h)&&r.cmp(u)&&(l+=8);break;default:l+=4}return p[i]=l}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){t=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new e(t.toArray());var i=this.getPrime();return t.length<i.length&&((i=new e(i.length-t.length)).fill(0),t=e.concat([i,t])),t},m.prototype.getPublicKey=function(t){return g(this._pub,t)},m.prototype.getPrivateKey=function(t){return g(this._priv,t)},m.prototype.getPrime=function(t){return g(this.__prime,t)},m.prototype.getGenerator=function(t){return g(this._gen,t)},m.prototype.setGenerator=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.__gen=t,this._gen=new r(t),this}}).call(this,i(3).Buffer)},function(t,e,i){"use strict";var r=i(49).Buffer,n=i(27),o=i(167),s=i(1),a=i(172),h=i(208),u=i(74);function f(t){if(o.Writable.call(this),!(t=u[t]))throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(t){if(o.Writable.call(this),!(t=u[t]))throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function d(t){return new f(t)}function c(t){return new l(t)}Object.keys(u).forEach((function(t){u[t].id=r.from(u[t].id,"hex"),u[t.toLowerCase()]=u[t]})),s(f,o.Writable),f.prototype._write=function(t,e,i){this._hash.update(t),i()},f.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},f.prototype.sign=function(t,e){this.end();var i=this._hash.digest();i=a(i,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},s(l,o.Writable),l.prototype._write=function(t,e,i){this._hash.update(t),i()},l.prototype.update=function(t,e){return this._hash.update("string"==typeof t?r.from(t,e):t),this},l.prototype.verify=function(t,e,i){return i="string"==typeof e?r.from(e,i):e,this.end(),e=this._hash.digest(),h(i,e,t,this._signType,this._tag)},t.exports={Sign:d,Verify:c,createSign:d,createVerify:c}},function(t,e,i){(((e=t.exports=i(90)).Stream=e).Readable=e).Writable=i(93),e.Duplex=i(26),e.Transform=i(94),e.PassThrough=i(171)},function(t,e){},function(t,e,i){"use strict";var r=i(50).Buffer,n=i(170);function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(o.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},o.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},o.prototype.shift=function(){var t;if(0!==this.length)return t=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},o.prototype.concat=function(t){if(0===this.length)return r.alloc(0);for(var e,i=r.allocUnsafe(t>>>0),n=this.head,o=0;n;)e=o,n.data.copy(i,e),o+=n.data.length,n=n.next;return i},o),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,i){"use strict";t.exports=n;var r=i(94);function n(t){if(!(this instanceof n))return new n(t);r.call(this,t)}(t=Object.create(i(10))).inherits=i(1),t.inherits(n,r),n.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){"use strict";var r=i(49).Buffer,n=i(72),o=i(51),s=i(53).ec,a=i(52),h=i(35),u=i(105);function f(t,e,i,o){(t=r.from(t.toArray())).length<e.byteLength()&&(s=r.alloc(e.byteLength()-t.length),t=r.concat([s,t]));var s=i.length;i=function(t,e){return t=(t=l(t,e)).mod(e),(t=r.from(t.toArray())).length<e.byteLength()&&(e=r.alloc(e.byteLength()-t.length),t=r.concat([e,t])),t}(i,e),(e=r.alloc(s)).fill(1),s=r.alloc(s),s=n(o,s).update(e).update(r.from([0])).update(t).update(i).digest(),e=n(o,s).update(e).digest();return{k:s=n(o,s).update(e).update(r.from([1])).update(t).update(i).digest(),v:e=n(o,s).update(e).digest()}}function l(t,e){var i=new a(t);return 0<(t=(t.length<<3)-e.bitLength())&&i.ishrn(t),i}function d(t,e,i){var o,s;do{for(o=r.alloc(0);8*o.length<t.bitLength();)e.v=n(i,e.k).update(e.v).digest(),o=r.concat([o,e.v])}while(s=l(o,t),e.k=n(i,e.k).update(e.v).update(r.from([0])).digest(),e.v=n(i,e.k).update(e.v).digest(),-1!==s.cmp(t));return s}t.exports=function(t,e,i,n,c){var p=h(e);if(p.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");var m=t;if(b=u[(E=p).curve.join(".")])return b=new s(b).keyFromPrivate(E.privateKey).sign(m),r.from(b.toDER());throw new Error("unknown curve "+E.curve.join("."))}if("dsa"===p.type){if("dsa"!==n)throw new Error("wrong private key type");m=t;for(var g,b,v=i,y=(b=p).params.priv_key,w=b.params.p,M=b.params.q,_=b.params.g,S=new a(0),x=l(m,M).mod(M),A=!1,k=f(y,M,m,v);!1===A;)S=function(t,e,i,r){return t.toRed(a.mont(i)).redPow(e).fromRed().mod(r)}(_,g=d(M,k,v),w,M),0===(A=g.invm(M).imul(x.add(y.mul(S))).mod(M)).cmpn(0)&&(A=!1,S=new a(0));i=A;var E,R=(E=(E=S).toArray(),i=i.toArray(),128&E[0]&&(E=[0].concat(E)),128&i[0]&&(i=[0].concat(i)),[48,E.length+i.length+4,2,E.length]);return R=R.concat(E,[2,i.length],i),r.from(R)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");if(void 0!==e.padding&&1!==e.padding)throw new Error("illegal or unsupported padding mode");t=r.concat([c,t]);for(var T=p.modulus.byteLength(),C=[0,1];t.length+C.length+1<T;)C.push(255);C.push(0);for(var I=-1;++I<t.length;)C.push(t[I]);return o(C,p)},t.exports.getKey=f,t.exports.makeKey=d},function(t,e){},function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.5","/var/www/html/NOVA/sgi-digital-web-front-end"]],"_development":true,"_from":"elliptic@6.5.5","_id":"elliptic@6.5.5","_inBundle":false,"_integrity":"sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.5","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.5","saveSpec":null,"fetchSpec":"6.5.5"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz","_spec":"6.5.5","_where":"/var/www/html/NOVA/sgi-digital-web-front-end","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},"description":"EC cryptography","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.5"}')},function(t,e){},function(t,e,i){"use strict";var r=i(7),n=i(12),o=i(1),s=i(34),a=r.assert;function h(t){s.call(this,"short",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(t,e,i,r){s.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(e,16),this.y=new n(i,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(t,e,i,r){s.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(e,16),this.y=new n(i,16),this.z=new n(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(h,s),(t.exports=h).prototype._getEndomorphism=function(t){var e,i,r;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return i=(t.beta?new n(t.beta,16):i=(i=this._getEndoRoots(this.p))[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red),t.lambda?e=new n(t.lambda,16):(r=this._getEndoRoots(this.n),0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(i))?e=r[0]:(e=r[1],a(0===this.g.mul(e).x.cmp(this.g.x.redMul(i))))),{beta:i,lambda:e,basis:t.basis?t.basis.map((function(t){return{a:new n(t.a,16),b:new n(t.b,16)}})):this._getEndoBasis(e)}},h.prototype._getEndoRoots=function(t){t=t===this.p?this.red:n.mont(t);var e=new n(2).toRed(t).redInvm(),i=e.redNeg();t=new n(3).toRed(t).redNeg().redSqrt().redMul(e);return[i.redAdd(t).fromRed(),i.redSub(t).fromRed()]},h.prototype._getEndoBasis=function(t){for(var e,i,r,o,s,a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,u=this.n.clone(),f=new n(1),l=new n(0),d=new n(0),c=new n(1),p=0;0!==h.cmpn(0);){var m=u.div(h),g=u.sub(m.mul(h)),b=d.sub(m.mul(f));m=c.sub(m.mul(l));if(!r&&g.cmp(a)<0)e=s.neg(),i=f,r=g.neg(),o=b;else if(r&&2==++p)break;u=h,h=s=g,d=f,f=b,c=l,l=m}t=g.neg();var v=b,y=r.sqr().add(o.sqr());return 0<=t.sqr().add(v.sqr()).cmp(y)&&(t=e,v=i),r.negative&&(r=r.neg(),o=o.neg()),t.negative&&(t=t.neg(),v=v.neg()),[{a:r,b:o},{a:t,b:v}]},h.prototype._endoSplit=function(t){var e,i=(e=this.endo.basis)[0],r=(e=e[1]).b.mul(t).divRound(this.n),n=i.b.neg().mul(t).divRound(this.n),o=r.mul(i.a),s=n.mul(e.a);r=r.mul(i.b),i=n.mul(e.b);return{k1:t.sub(o).sub(s),k2:r.add(i).neg()}},h.prototype.pointFromX=function(t,e){var i=(t=(t=new n(t,16)).red?t:t.toRed(this.red)).redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return i=r.fromRed().isOdd(),(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},h.prototype.validate=function(t){var e,i;return!!t.inf||(i=t.x,t=t.y,e=this.a.redMul(i),i=i.redSqr().redMul(i).redIAdd(e).redIAdd(this.b),0===t.redSqr().redISub(i).cmpn(0))},h.prototype._endoWnafMulAdd=function(t,e,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],h=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),h=h.neg(!0)),r[2*o]=a,r[2*o+1]=h,n[2*o]=s.k1,n[2*o+1]=s.k2}i=this._wnafMulAdd(1,r,n,2*o,i);for(var u=0;u<2*o;u++)r[u]=null,n[u]=null;return i},o(u,s.BasePoint),h.prototype.point=function(t,e,i){return new u(this,t,e,i)},h.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.prototype._getBeta=function(){var t,e,i,r;if(this.curve.endo)return(t=this.precomputed)&&t.beta?t.beta:(e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y),t&&(i=this.curve,r=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)},(t.beta=e).precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}),e)},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,i){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],i);return e[2]&&(e=e[2],r.precomputed={beta:null,doubles:e.doubles&&{step:e.doubles.step,points:[r].concat(e.doubles.points.map(n))},naf:e.naf&&{wnd:e.naf.wnd,points:[r].concat(e.naf.points.map(n))}}),r;function n(e){return t.point(e[0],e[1],i)}},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(t){var e;return this.inf?t:t.inf?this:this.eq(t)?this.dbl():this.neg().eq(t)||0===this.x.cmp(t.x)?this.curve.point(null,null):(t=(e=0!==(e=this.y.redSub(t.y)).cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y),this.curve.point(t,e))},u.prototype.dbl=function(){var t,e,i;return this.inf?this:0===(i=this.y.redAdd(this.y)).cmpn(0)?this.curve.point(null,null):(e=this.curve.a,t=this.x.redSqr(),i=i.redInvm(),e=(t=t.redAdd(t).redIAdd(t).redIAdd(e).redMul(i)).redSqr().redISub(this.x.redAdd(this.x)),i=t.redMul(this.x.redSub(e)).redISub(this.y),this.curve.point(e,i))},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(t){return t=new n(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t):this.curve._wnafMulAdd(1,e,t,2)},u.prototype.jmulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t,!0):this.curve._wnafMulAdd(1,e,t,2,!0)},u.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},u.prototype.neg=function(t){var e,i;return this.inf?this:(e=this.curve.point(this.x,this.y.redNeg()),t&&this.precomputed&&(t=this.precomputed,i=function(t){return t.neg()},e.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}),e)},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,s.BasePoint),h.prototype.jpoint=function(t,e,i){return new f(this,t,e,i)},f.prototype.toP=function(){var t,e,i;return this.isInfinity()?this.curve.point(null,null):(i=(t=this.z.redInvm()).redSqr(),e=this.x.redMul(i),i=this.y.redMul(i).redMul(t),this.curve.point(e,i))},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(t){var e,i,r,n,o,s;return this.isInfinity()?t:t.isInfinity()?this:(e=t.z.redSqr(),o=this.z.redSqr(),s=this.x.redMul(e),i=t.x.redMul(o),e=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(o.redMul(this.z)),i=s.redSub(i),o=e.redSub(o),0===i.cmpn(0)?0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(r=(n=i.redSqr()).redMul(i),s=s.redMul(n),n=o.redSqr().redIAdd(r).redISub(s).redISub(s),o=o.redMul(s.redISub(n)).redISub(e.redMul(r)),s=this.z.redMul(t.z).redMul(i),this.curve.jpoint(n,o,s)))},f.prototype.mixedAdd=function(t){var e,i,r,n,o;return this.isInfinity()?t.toJ():t.isInfinity()?this:(i=this.z.redSqr(),o=this.x,n=t.x.redMul(i),e=this.y,t=t.y.redMul(i).redMul(this.z),i=o.redSub(n),n=e.redSub(t),0===i.cmpn(0)?0!==n.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(r=(t=i.redSqr()).redMul(i),o=o.redMul(t),t=n.redSqr().redIAdd(r).redISub(o).redISub(o),n=n.redMul(o.redISub(t)).redISub(e.redMul(r)),o=this.z.redMul(i),this.curve.jpoint(t,n,o)))},f.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}var r=this.curve.a,n=this.curve.tinv,o=this.x,s=this.y,a=this.z,h=a.redSqr().redSqr(),u=s.redAdd(s);for(i=0;i<t;i++){var f=o.redSqr(),l=(d=u.redSqr()).redSqr(),d=(f=f.redAdd(f).redIAdd(f).redIAdd(r.redMul(h)),o.redMul(d)),c=f.redSqr().redISub(d.redAdd(d));d=d.redISub(c),f=(f=f.redMul(d)).redIAdd(f).redISub(l),d=u.redMul(a);i+1<t&&(h=h.redMul(l)),o=c,a=d,u=f}return this.curve.jpoint(o,u.redMul(n),a)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var t,e,i,r,n,o=this.zOne?(e=this.x.redSqr(),i=(t=this.y.redSqr()).redSqr(),t=(t=this.x.redAdd(t).redSqr().redISub(e).redISub(i)).redIAdd(t),r=(e=e.redAdd(e).redIAdd(e)).redSqr().redISub(t).redISub(t),i=(i=(i=i.redIAdd(i)).redIAdd(i)).redIAdd(i),t=e.redMul(t.redISub(e=r)).redISub(i),this.y.redAdd(this.y)):(r=this.x.redSqr(),n=(i=this.y.redSqr()).redSqr(),i=(i=this.x.redAdd(i).redSqr().redISub(r).redISub(n)).redIAdd(i),o=(r=r.redAdd(r).redIAdd(r)).redSqr(),n=(n=(n=n.redIAdd(n)).redIAdd(n)).redIAdd(n),e=o.redISub(i).redISub(i),t=r.redMul(i.redISub(e)).redISub(n),(o=this.y.redMul(this.z)).redIAdd(o));return this.curve.jpoint(e,t,o)},f.prototype._threeDbl=function(){var t,e,i,r,n,o,s,a;return this.zOne?(e=this.x.redSqr(),n=(t=this.y.redSqr()).redSqr(),t=(t=this.x.redAdd(t).redSqr().redISub(e).redISub(n)).redIAdd(t),i=r=(e=e.redAdd(e).redIAdd(e).redIAdd(this.curve.a)).redSqr().redISub(t).redISub(t),n=(n=(n=n.redIAdd(n)).redIAdd(n)).redIAdd(n),e=e.redMul(t.redISub(r)).redISub(n),t=this.y.redAdd(this.y)):(r=this.z.redSqr(),n=this.y.redSqr(),s=this.x.redMul(n),o=(o=this.x.redSub(r).redMul(this.x.redAdd(r))).redAdd(o).redIAdd(o),a=(s=(s=s.redIAdd(s)).redIAdd(s)).redAdd(s),i=o.redSqr().redISub(a),t=this.y.redAdd(this.z).redSqr().redISub(n).redISub(r),a=(a=(a=(a=n.redSqr()).redIAdd(a)).redIAdd(a)).redIAdd(a),e=o.redMul(s.redISub(i)).redISub(a)),this.curve.jpoint(i,e,t)},f.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,r=this.z,n=r.redSqr().redSqr(),o=e.redSqr(),s=i.redSqr();o=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(n)),n=(t=(t=e.redAdd(e)).redIAdd(t)).redMul(s),e=o.redSqr().redISub(n.redAdd(n)),t=n.redISub(e),n=(n=(n=(n=s.redSqr()).redIAdd(n)).redIAdd(n)).redIAdd(n),s=o.redMul(t).redISub(n),o=i.redAdd(i).redMul(r);return this.curve.jpoint(e,s,o)},f.prototype.trpl=function(){var t,e,i,r,n,o,s;return this.curve.zeroA?(e=this.x.redSqr(),n=this.y.redSqr(),t=this.z.redSqr(),s=n.redSqr(),o=(r=e.redAdd(e).redIAdd(e)).redSqr(),i=(e=(e=(e=(e=this.x.redAdd(n).redSqr().redISub(e).redISub(s)).redIAdd(e)).redAdd(e).redIAdd(e)).redISub(o)).redSqr(),s=(s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s)).redIAdd(s),r=r.redIAdd(e).redSqr().redISub(o).redISub(i).redISub(s),o=(o=(o=n.redMul(r)).redIAdd(o)).redIAdd(o),n=(n=(n=this.x.redMul(i).redISub(o)).redIAdd(n)).redIAdd(n),o=(o=(o=(o=this.y.redMul(r.redMul(s.redISub(r)).redISub(e.redMul(i)))).redIAdd(o)).redIAdd(o)).redIAdd(o),s=this.z.redAdd(e).redSqr().redISub(t).redISub(i),this.curve.jpoint(n,o,s)):this.dbl().add(this)},f.prototype.mul=function(t,e){return t=new n(t,e),this.curve._wnafMul(this,t)},f.prototype.eq=function(t){var e,i;return"affine"===t.type?this.eq(t.toJ()):this===t||(e=this.z.redSqr(),i=t.z.redSqr(),0===this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0)&&(e=e.redMul(this.z),i=i.redMul(t.z),0===this.y.redMul(i).redISub(t.y.redMul(e)).cmpn(0)))},f.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(i.redIAdd(n),0===this.x.cmp(i))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(12),n=i(1),o=i(34),s=i(7);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e;return 0===(e=(e=(t=t.normalize().x).redSqr()).redMul(t).redAdd(e.redMul(this.a)).redAdd(t)).redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e);t=t.redMul(e),e=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,e)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z);t=t.x.redSub(t.z).redMul(i),i=n.redMul(r),n=e.z.redMul(t.redAdd(i).redSqr()),r=e.x.redMul(t.redISub(i).redSqr());return this.curve.point(n,r)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(7),n=i(12),o=i(1),s=i(34),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new n(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function u(t,e,i,r,o){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(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 n(e,16),this.y=new n(i,16),this.z=r?new n(r,16):this.curve.one,this.t=o&&new n(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=(t=new n(t,16)).red?t:t.toRed(this.red)).redSqr(),r=this.c2.redSub(this.a.redMul(i));i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm());if(0!==(i=r.redSqrt()).redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return r=i.fromRed().isOdd(),(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(r=(t=(t=new n(t,16)).red?t:t.toRed(this.red)).redSqr()).redSub(this.c2),r=r.redMul(this.d).redMul(this.c2).redSub(this.a);if(0===(i=i.redMul(r.redInvm())).cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}if(0!==(r=i.redSqrt()).redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return r.fromRed().isOdd()!==e&&(r=r.redNeg()),this.point(r,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=(t=t.y.redSqr(),e.redMul(this.a).redAdd(t));e=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(t)));return 0===i.cmp(e)},o(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=(t=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),r.redAdd(e)),o=(i=n.redSub(i),r=r.redSub(e),e=t.redMul(i),n.redMul(r));t=t.redMul(r),r=i.redMul(n);return this.curve.point(e,o,r,t)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(o=(n=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(o.redSub(this.curve.two)),e=o.redMul(n.redSub(h)),o.redSqr().redSub(o).redSub(o)):(i=this.z.redSqr(),r=o.redSub(i).redISub(i),t=s.redSub(a).redISub(h).redMul(r),e=o.redMul(n.redSub(h)),o.redMul(r))):(n=a.redAdd(h),i=this.curve._mulC(this.z).redSqr(),r=n.redSub(i).redSub(i),t=this.curve._mulC(s.redISub(n)).redMul(r),e=this.curve._mulC(n).redMul(a.redISub(h)),n.redMul(r)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),n=(t=this.z.redMul(t.z.redAdd(t.z)),i.redSub(e)),o=t.redSub(r);t=t.redAdd(r),r=i.redAdd(e),i=n.redMul(o),e=t.redMul(r),n=n.redMul(r),r=o.redMul(t);return this.curve.point(i,e,r,n)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s);r=r.redAdd(s),s=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(s),s=(this.curve.twisted?(e=i.redMul(r).redMul(o.redSub(this.curve._mulA(n))),a):(e=i.redMul(r).redMul(o.redSub(n)),this.curve._mulC(a))).redMul(r);return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.prototype.normalize=function(){var t;return this.zOne||(t=this.z.redInvm(),this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0),this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(180),e.sha224=i(181),e.sha256=i(98),e.sha384=i(182),e.sha512=i(99)},function(t,e,i){"use strict";var r=i(11),n=i(29),o=(i=i(97),r.rotl32),s=r.sum32,a=r.sum32_5,h=i.ft_1,u=n.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(l,u),(t.exports=l).blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=o(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);var n=this.h[0],u=this.h[1],l=this.h[2],d=this.h[3],c=this.h[4];for(r=0;r<i.length;r++){var p=~~(r/20);p=a(o(n,5),h(p,u,l,d),c,i[r],f[p]),c=d,d=l,l=o(u,30),u=n,n=p}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],u),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],c)},l.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,i){"use strict";var r=i(11),n=i(98);function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,n),(t.exports=o).blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(t,e,i){"use strict";var r=i(11),n=i(99);function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,n),(t.exports=o).blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(t,e,i){"use strict";var r=i(11),n=(i=i(29),r.rotl32),o=r.sum32,s=r.sum32_3,a=r.sum32_4,h=i.BlockHash;function u(){if(!(this instanceof u))return new u;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,i,r){return t<=15?e^i^r:t<=31?e&i|~e&r:t<=47?(e|~i)^r:t<=63?e&r|i&~r:e^(i|~r)}r.inherits(u,h),(e.ripemd160=u).blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,e){for(var i,r=y=this.h[0],h=S=this.h[1],u=_=this.h[2],m=M=this.h[3],g=w=this.h[4],b=0;b<80;b++){var v=o(n(a(y,f(b,S,_,M),t[l[b]+e],(i=b)<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838),c[b]),w),y=w,w=M,M=n(_,10),_=S,S=v;v=o(n(a(r,f(79-b,h,u,m),t[d[b]+e],(i=b)<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0),p[b]),g),r=g,g=m,m=n(u,10),u=h,h=v}v=s(this.h[1],_,m),this.h[1]=s(this.h[2],M,g),this.h[2]=s(this.h[3],w,r),this.h[3]=s(this.h[4],y,h),this.h[4]=s(this.h[0],S,u),this.h[0]=v},u.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var l=[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],d=[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],c=[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],p=[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]},function(t,e,i){"use strict";var r=i(11),n=i(6);function o(t,e,i){if(!(this instanceof o))return new o(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,i))}(t.exports=o).prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,i){"use strict";var r=i(12),n=i(187),o=i(7),s=i(54),a=i(48),h=o.assert,u=i(188),f=i(189);function l(t){if(!(this instanceof l))return new l(t);"string"==typeof t&&(h(Object.prototype.hasOwnProperty.call(s,t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}(t.exports=l).prototype.keyPair=function(t){return new u(this,t)},l.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},l.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},l.prototype.genKeyPair=function(t){for(var e=new n({hash:this.hash,pers:(t=t||{}).pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),o=this.n.sub(new r(2));;){var s=new r(e.generate(i));if(!(0<s.cmp(o)))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return 0<i&&(t=t.ushrn(i)),!e&&0<=t.cmp(this.n)?t.sub(this.n):t},l.prototype.sign=function(t,e,i,o){"object"==typeof i&&(o=i,i=null),o=o||{},e=this.keyFromPrivate(e,i),t=this._truncateToN(new r(t,16));i=this.n.byteLength();for(var s=e.getPrivate().toArray("be",i),a=(i=t.toArray("be",i),new n({hash:this.hash,entropy:s,nonce:i,pers:o.pers,persEnc:o.persEnc||"utf8"})),h=this.n.sub(new r(1)),u=0;;u++){var l=o.k?o.k(u):new r(a.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||0<=l.cmp(h))){var d=this.g.mul(l);if(!d.isInfinity()){var c=d.getX(),p=c.umod(this.n);if(0!==p.cmpn(0)&&0!==(l=(l=l.invm(this.n).mul(p.mul(e.getPrivate()).iadd(t))).umod(this.n)).cmpn(0))return d=(d.getY().isOdd()?1:0)|(0!==c.cmp(p)?2:0),o.canonical&&0<l.cmp(this.nh)&&(l=this.n.sub(l),d^=1),new f({r:p,s:l,recoveryParam:d})}}}},l.prototype.verify=function(t,e,i,n){t=this._truncateToN(new r(t,16)),i=this.keyFromPublic(i,n);var o;n=(e=new f(e,"hex")).r,e=e.s;return!(n.cmpn(1)<0||0<=n.cmp(this.n)||e.cmpn(1)<0||0<=e.cmp(this.n))&&(t=(e=e.invm(this.n)).mul(t).umod(this.n),e=e.mul(n).umod(this.n),this.curve._maxwellTrick?!(o=this.g.jmulAdd(t,i.getPublic(),e)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(t,i.getPublic(),e)).isInfinity()&&0===o.getX().umod(this.n).cmp(n))},l.prototype.recoverPubKey=function(t,e,i,n){h((3&i)===i,"The recovery param is more than two bits"),e=new f(e,n);n=this.n,t=new r(t);var o=e.r,s=e.s,a=1&i;i>>=1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");return o=i?this.curve.pointFromX(o.add(this.curve.n),a):this.curve.pointFromX(o,a),i=e.r.invm(n),a=n.sub(t).mul(i).umod(n),e=s.mul(i).umod(n),this.g.mulAdd(a,o,e)},l.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new f(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(55),n=i(95),o=i(6);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=n.toArray(t.entropy,t.entropyEnc||"hex"),i=n.toArray(t.nonce,t.nonceEnc||"hex");t=n.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){t=t.concat(e).concat(i),this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,i,r){"string"!=typeof e&&(r=i,i=e,e=null),t=n.toArray(t,e),i=n.toArray(i,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=n.toArray(i,r||"hex"),this._update(i));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);return r=o.slice(0,t),this._update(i),this._reseed++,n.encode(r,e)}},function(t,e,i){"use strict";var r=i(12),n=i(7).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}(t.exports=o).fromPublic=function(t,e,i){return e instanceof o?e:new o(t,{pub:e,pubEnc:i})},o.fromPrivate=function(t,e,i){return e instanceof o?e:new o(t,{priv:e,privEnc:i})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){t.x||t.y?("mont"===this.ec.curve.type?n(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y)):this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||n(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,i){"use strict";var r=i(12),n=i(7),o=n.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4<r)return!1;for(var n=0,o=0,s=e.place;o<r;o++,s++)n=((n<<=8)|t[s])>>>0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e<i;)e++;return 0===e?t:t.slice(e)}function f(t,e){if(!(e<128)){var i=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255)}t.push(e)}(t.exports=s).prototype._importDER=function(t,e){if(48!==(t=n.toArray(t,e))[(e=new a).place++])return!1;var i=h(t,e);if(!1===i)return!1;if(i+e.place!==t.length)return!1;if(2!==t[e.place++])return!1;if(!1===(i=h(t,e)))return!1;var o=t.slice(e.place,i+e.place);if(e.place+=i,2!==t[e.place++])return!1;if(!1===(i=h(t,e)))return!1;if(t.length!==i+e.place)return!1;if(t=t.slice(e.place,i+e.place),0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===t[0]){if(!(128&t[1]))return!1;t=t.slice(1)}return this.r=new r(o),this.s=new r(t),!(this.recoveryParam=null)},s.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r;f(r=[2],e.length),(r=r.concat(e)).push(2),f(r,i.length),e=r.concat(i);return f(r=[48],e.length),r=r.concat(e),n.encode(r,t)}},function(t,e,i){"use strict";var r=i(55),n=i(54),o=i(7),s=o.assert,a=o.parseBytes,h=i(191),u=i(192);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);e=this.keyFromSecret(e);var i=this.hashInt(e.messagePrefix(),t),r=this.g.mul(i),n=this.encodePoint(r);t=this.hashInt(n,e.pubBytes(),t).mul(e.priv()),e=i.add(t).umod(this.curve.n);return this.makeSignature({R:r,S:e,Rencoded:n})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);i=this.keyFromPublic(i),t=this.hashInt(e.Rencoded(),i.pubBytes(),t);var r=this.g.mul(e.S());return e.R().add(i.pub().mul(t)).eq(r)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(t){return h.fromPublic(this,t)},f.prototype.keyFromSecret=function(t){return h.fromSecret(this,t)},f.prototype.makeSignature=function(t){return t instanceof u?t:new u(this,t)},f.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},f.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,i=t.slice(0,e).concat(-129&t[e]);t=0!=(128&t[e]),e=o.intFromLE(i);return this.curve.pointFromY(e,t)},f.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(t){return o.intFromLE(t)},f.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,i){"use strict";var r=i(7),n=r.assert,o=r.parseBytes;i=r.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},i(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),i(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),i(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1;return(e=e.slice(0,t.encodingLength))[0]&=248,e[i]&=127,e[i]|=64,e})),i(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),i(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),i(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return n(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},s.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=s},function(t,e,i){"use strict";var r=i(12),n=i(7),o=n.assert,s=(i=n.cachedProperty,n.parseBytes);function a(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}i(a,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),i(a,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),i(a,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),i(a,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=a},function(t,e,i){"use strict";var r=i(30),n=(i=(e.certificate=i(205),r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}))),i=(e.RSAPrivateKey=i,r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}))),e.RSAPublicKey=i,r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}))),o=(i=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())})),i=(e.PublicKey=i,r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())}))),i=(e.PrivateKey=i,r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}))),i=(e.EncryptedPrivateKey=i,r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}))),e.DSAPrivateKey=i,e.DSAparam=r.define("DSAparam",(function(){this.int()})),r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})));i=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=i,e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(195)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},function(t,e){},function(t,e,i){var r=i(30),n=i(1);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=i(197).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return n(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return this.decoders.hasOwnProperty(t=t||"der")||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},o.prototype._getEncoder=function(t){return this.encoders.hasOwnProperty(t=t||"der")||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)i.push(e);return i},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var i=0;i<t.length;i++)e(t[i],i,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,i){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(t){return function(t,e,i){t[e]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){var e,i,r,n,o;if(t instanceof Context)return(e=document.createElement("iframe")).style||(e.style={}),e.style.display="none",document.body.appendChild(e),r=(i=e.contentWindow).eval,o=i.execScript,!r&&o&&(o.call(i,"null"),r=i.eval),forEach(Object_keys(t),(function(e){i[e]=t[e]})),forEach(globals,(function(e){t[e]&&(i[e]=t[e])})),n=Object_keys(i),o=r.call(i,this.code),forEach(Object_keys(i),(function(e){(e in t||-1===indexOf(n,e))&&(t[e]=i[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,i[e])})),document.body.removeChild(e),o;throw new TypeError("needs a 'context' argument.")},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),i=this.runInContext(e);return t&&forEach(Object_keys(e),(function(i){t[i]=e[i]})),i},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var i=Script(e);return i[t].apply(i,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(i){e[i]=t[i]})),e}},function(t,e,i){function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function n(t,e){this.path=t,this.rethrow(e)}i=i(1),(e.Reporter=r).prototype.isError=function(t){return t instanceof n},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){var e=this._reporterState,i=t instanceof n;t=i?t:new n(e.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack);if(e.options.partial)return i||e.errors.push(t),t;throw t},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(n,Error),n.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){var r=i(31).Reporter,n=i(31).EncoderBuffer,o=i(31).DecoderBuffer,s=i(6),a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(i=["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"]);function h(t,e){var i={};(this._baseState=i).enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=h;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var t=this._baseState,e={},i=(u.forEach((function(i){e[i]=t[i]})),new this.constructor(e.parent));return i._baseState=e,i},h.prototype._wrap=function(){var t=this._baseState;a.forEach((function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},h.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){var e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(s(null===e.children),(e.children=i).forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){var e;return"object"!=typeof t||t.constructor!==Object?t:(e={},Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0);var r=t[i];e[r]=i})),e)})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){h.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),i.forEach((function(t){h.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(i),this}})),h.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){var e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r,n=i.default,s=!0,a=null;if(null!==i.key&&(a=t.enterKey(i.key)),i.optional){var h=null;if(null!==i.explicit?h=i.explicit:null!==i.implicit?h=i.implicit:null!==i.tag&&(h=i.tag),null!==h||i.any){if(s=this._peekTag(t,h,i.any),t.isError(s))return s}else{var u=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),s=!0}catch(i){s=!1}t.restore(u)}}if(i.obj&&s&&(r=t.enterObject()),s){if(null!==i.explicit){if(h=this._decodeTag(t,i.explicit),t.isError(h))return h;t=h}if(h=t.offset,null===i.use&&null===i.choice){i.any&&(u=t.save());var f=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(f))return f;i.any?n=t.raw(u):t=f}if(e&&e.track&&null!==i.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(n))return n;i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),!i.contains||"octstr"!==i.tag&&"bitstr"!==i.tag||(u=new o(n),n=this._getUse(i.contains,t._reporterState.obj)._decode(u,e))}return i.obj&&s&&(n=t.leaveObject(r)),null===i.key||null===n&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,i.key,n),n},h.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},h.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some((function(o){var s=t.save(),a=i.choice[o];try{var h=a._decode(t,e);if(t.isError(h))return!1;r={type:o,value:h},n=!0}catch(o){return t.restore(s),!1}return!0}),this),n?r:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},h.prototype._encode=function(t,e,i){var r=this._baseState;if((null===r.default||r.default!==t)&&void 0!==(r=this._encodeValue(t,e,i))&&!this._skipDefault(r,e,i))return r},h.prototype._encodeValue=function(t,e,i){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(t,e||new r);var o=null;if(this.reporter=e,n.optional&&void 0===t){if(null===n.default)return;t=n.default}var s=null,a=!1;if(n.any)o=this._createEncoderBuffer(t);else if(n.choice)o=this._encodeChoice(t,e);else if(n.contains)s=this._getUse(n.contains,i)._encode(t,e),a=!0;else if(n.children)s=n.children.map((function(i){var r;return"null_"===i._baseState.tag?i._encode(null,e,t):null===i._baseState.key?e.error("Child should have a key"):(r=e.enterKey(i._baseState.key),"object"!=typeof t?e.error("Child expected, but input is not object"):(i=i._encode(t[i._baseState.key],e,t),e.leaveKey(r),i))}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var h=this.clone();h._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(i){var r=this._baseState;return this._getUse(r.args[0],t)._encode(i,e)}),h))}else null!==n.use?o=this._getUse(n.use,i)._encode(t,e):(s=this._encodePrimitive(n.tag,t),a=!0);return n.any||null!==n.choice||(h=null!==n.implicit?n.implicit:n.tag,i=null===n.implicit?"universal":"context",null===h?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(h,a,i,s))),null!==n.explicit?this._encodeComposite(n.explicit,!1,"context",o):o},h.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,i){i=i(101),e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i._reverse(e.tagClass),e.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"},e.tagByName=i._reverse(e.tag)},function(t,e,i){e.der=i(102),e.pem=i(202)},function(t,e,i){var r=i(1),n=i(3).Buffer,o=i(102);function s(t){o.call(this,t),this.enc="pem"}r(s,o),(t.exports=s).prototype.decode=function(t,e){for(var i=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,h=-1,u=0;u<i.length;u++){var f=i[u].match(s);if(null!==f&&f[2]===r){if(-1!==a){if("END"!==f[1])break;h=u;break}if("BEGIN"!==f[1])break;a=u}}if(-1===a||-1===h)throw new Error("PEM section not found for: "+r);return(t=i.slice(a+1,h).join("")).replace(/[^a-z0-9\+\/=]+/gi,""),t=new n(t,"base64"),o.prototype.decode.call(this,t,e)}},function(t,e,i){e.der=i(103),e.pem=i(204)},function(t,e,i){var r=i(1),n=i(103);function o(t){n.call(this,t),this.enc="pem"}r(o,n),(t.exports=o).prototype.encode=function(t,e){for(var i=n.prototype.encode.call(this,t).toString("base64"),r=["-----BEGIN "+e.label+"-----"],o=0;o<i.length;o+=64)r.push(i.slice(o,o+64));return r.push("-----END "+e.label+"-----"),r.join("\n")}},function(t,e,i){"use strict";var r=(i=i(30)).define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=i.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=i.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=i.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),a=i.define("RelativeDistinguishedName",(function(){this.setof(n)})),h=i.define("RDNSequence",(function(){this.seqof(a)})),u=i.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),f=i.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),l=i.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=i.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}));i=i.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=i},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,i){"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=i(33),a=i(46),h=i(104).Buffer;t.exports=function(t,e){var i,u,f,l=(t=t.toString()).match(r);return f=l?(u="aes"+l[1],f=h.from(l[2],"hex"),i=h.from(l[3].replace(/[\r\n]/g,""),"base64"),e=s(e,f.slice(0,8),parseInt(l[1],10)).key,l=[],u=a.createDecipheriv(u,e,f),l.push(u.update(i)),l.push(u.final()),h.concat(l)):(e=t.match(o),h.from(e[2].replace(/[\r\n]/g,""),"base64")),{tag:t.match(n)[1],data:f}}},function(t,e,i){"use strict";var r=i(49).Buffer,n=i(52),o=i(53).ec,s=i(35),a=i(105);function h(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(0<=t.cmp(e))throw new Error("invalid sig")}t.exports=function(t,e,i,u,f){var l,d;if("ec"===(i=s(i)).type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");var c,p=t,m=e,g=i,b=a[g.data.algorithm.curve.join(".")];if(b)return b=new o(b),c=g.data.subjectPrivateKey.data,b.verify(m,p,c);throw new Error("unknown curve "+g.data.algorithm.curve.join("."))}if("dsa"===i.type){if("dsa"!==u)throw new Error("wrong public key type");return b=t,m=e,c=(p=i).data.p,g=i.data.q,_=i.data.g,p=i.data.pub_key,l=(b=s.signature.decode(b,"der")).s,b=b.r,h(l,g),h(b,g),d=n.mont(c),l=l.invm(g),0===_.toRed(d).redPow(new n(m).mul(l).mod(g)).fromRed().mul(p.toRed(d).redPow(b.mul(l).mod(g)).fromRed()).mod(c).mod(g).cmp(b)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");e=r.concat([f,e]);for(var v=i.modulus.byteLength(),y=[1],w=0;e.length+y.length+2<v;)y.push(255),w+=1;y.push(0);for(var M=-1;++M<e.length;)y.push(e[M]);y=r.from(y);var _=n.mont(i.modulus),S=(t=(t=new n(t).toRed(_)).redPow(new n(i.publicExponent)),t=r.from(t.fromRed().toArray()),w<8?1:0);v=Math.min(t.length,y.length);for(t.length!==y.length&&(S=1),M=-1;++M<v;)S|=t[M]^y[M];return 0===S}},function(t,e,i){(function(e){var r=i(53),n=i(210),o=(t.exports=function(t){return new s(t)},{secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}});function s(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function a(t,i,r){return Array.isArray(t)||(t=t.toArray()),t=new e(t),r&&t.length<r&&((r=new e(r-t.length)).fill(0),t=e.concat([r,t])),i?t.toString(i):t}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},s.prototype.computeSecret=function(t,i,r){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),a(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(t,e){var i=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(i[i.length-1]%2?i[0]=7:i[0]=6),a(i,t)},s.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},s.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},s.prototype.setPrivateKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),i=(i=new n(t)).toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}}).call(this,i(3).Buffer)},function(t,e,i){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,(o.BN=o).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:i(211)).Buffer}catch(t){}function a(t,e){return 65<=(t=t.charCodeAt(e))&&t<=70?t-55:97<=t&&t<=102?t-87:t-48&15}function h(t,e,i){var r=a(t,i);return e<=i-1&&(r|=a(t,i-1)<<4),r}function u(t,e,i,r){for(var n=0,o=Math.min(t.length,i),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n=n*r+(49<=a?a-49+10:17<=a?a-17+10:a)}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);r((e="hex"===e?16:e)===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,i):(this._parseBase(t,e,n),"le"===i&&this._initArray(this.toArray(),e,i)))},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===i)for(s=t.length-1,n=0;0<=s;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);else if("le"===i)for(n=s=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(t,e,i){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o=0,s=0;if("be"===i)for(r=t.length-1;e<=r;r-=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)n=h(t,e,r)<<o,this.words[s]|=67108863&n,18<=o?(o-=18,this.words[s+=1]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;n=n/e|0;for(var o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,f=i;f<a;f+=r)h=u(t,f,f+r,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!=s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function c(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,n=(r=(i.length=r)-1|0,(s=(0|t.words[0])*(0|e.words[0]))/67108864|0);i.words[0]=67108863&s;for(var o=1;o<r;o++){for(var s,a=n>>>26,h=67108863&n,u=Math.min(o,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++)a+=(s=(0|t.words[o-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&s;i.words[o]=0|h,n=0|a}return 0!==n?i.words[o]=0|n:i.length--,i.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){h="";for(var i=0,n=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<i|n)).toString(16),h=0!=(n=s>>>24-i&16777215)||o!==this.length-1?f[6-a.length]+a+h:a+h;26<=(i+=2)&&(i-=26,o--)}for(0!==n&&(h=n.toString(16)+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}if(t===(0|t)&&2<=t&&t<=36){var u=l[t],c=d[t];for(h="",(p=this.clone()).negative=0;!p.isZero();){var p,m=p.modn(c).toString(t);h=(p=p.idivn(c)).isZero()?m+h:f[u-m.length]+m+h}for(this.isZero()&&(h="0"+h);h.length%e!=0;)h="0"+h;return 0!==this.negative?"-"+h:h}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n,o,s=this.byteLength(),a=i||Math.max(1,s),h=(i=(r(s<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip(),"le"===e),new t(a)),u=this.clone();if(i){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[o]=n;for(;o<a;o++)h[o]=0}else{for(o=0;o<a-s;o++)h[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),h[a-o-1]=n}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){var e;return 0===t?26:((e=0)==(8191&(t=t))&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e)},o.prototype.bitLength=function(){var t=this.words[this.length-1];t=this._countBits(t);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;r<i.length;r++)this.words[r]=e.words[r]^i.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26;this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;t%=26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){var e,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();for(var r=this.length>t.length?(i=this,t):(i=t,this),n=0,o=0;o<r.length;o++)e=(0|i.words[o])+(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<i.length;o++)e=(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){var e;if(0!==t.negative)return t.negative=0,e=this.iadd(t),t.negative=1,e._normSign();if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<r?(i=this,t):(i=t,this),o=0,s=0;s<n.length;s++)o=(e=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<i.length;s++)o=(e=(0|i.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,i){var r,n=t.words,o=e.words,s=i.words,a=8191&(h=0|n[0]),h=h>>>13,u=8191&(f=0|n[1]),f=f>>>13,l=8191&(d=0|n[2]),d=d>>>13,c=8191&(p=0|n[3]),p=p>>>13,m=8191&(g=0|n[4]),g=g>>>13,b=8191&(v=0|n[5]),v=v>>>13,y=8191&(w=0|n[6]),w=w>>>13,M=8191&(_=0|n[7]),_=_>>>13,S=8191&(x=0|n[8]),x=x>>>13,A=8191&(n=0|n[9]),k=(n=n>>>13,8191&(E=0|o[0])),E=E>>>13,R=8191&(T=0|o[1]),T=T>>>13,C=8191&(I=0|o[2]),I=I>>>13,B=8191&(P=0|o[3]),P=P>>>13,j=8191&(L=0|o[4]),L=L>>>13,N=8191&(O=0|o[5]),O=O>>>13,D=8191&(q=0|o[6]),q=q>>>13,z=8191&(U=0|o[7]),U=U>>>13,F=8191&(Z=0|o[8]),Z=Z>>>13,H=8191&(o=0|o[9]),W=(o=o>>>13,e=(i.negative=t.negative^e.negative,i.length=19,(0+Math.imul(a,k)|0)+((8191&(t=Math.imul(a,E)+Math.imul(h,k)|0))<<13)|0),(Math.imul(h,E)+(t>>>13)|0)+(e>>>26)|0);e&=67108863,r=Math.imul(u,k),t=Math.imul(u,E)+Math.imul(f,k)|0,K=Math.imul(f,E);var K,$=(W+(r+Math.imul(a,R)|0)|0)+((8191&(t=(t+Math.imul(a,T)|0)+Math.imul(h,R)|0))<<13)|0,Y=(W=((K+Math.imul(h,T)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,r=Math.imul(l,k),t=Math.imul(l,E)+Math.imul(d,k)|0,K=Math.imul(d,E),r=r+Math.imul(u,R)|0,t=(t+Math.imul(u,T)|0)+Math.imul(f,R)|0,K=K+Math.imul(f,T)|0,(W+(r+Math.imul(a,C)|0)|0)+((8191&(t=(t+Math.imul(a,I)|0)+Math.imul(h,C)|0))<<13)|0),V=(W=((K+Math.imul(h,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,r=Math.imul(c,k),t=Math.imul(c,E)+Math.imul(p,k)|0,K=Math.imul(p,E),r=r+Math.imul(l,R)|0,t=(t+Math.imul(l,T)|0)+Math.imul(d,R)|0,K=K+Math.imul(d,T)|0,r=r+Math.imul(u,C)|0,t=(t+Math.imul(u,I)|0)+Math.imul(f,C)|0,K=K+Math.imul(f,I)|0,(W+(r+Math.imul(a,B)|0)|0)+((8191&(t=(t+Math.imul(a,P)|0)+Math.imul(h,B)|0))<<13)|0),G=(W=((K+Math.imul(h,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,r=Math.imul(m,k),t=Math.imul(m,E)+Math.imul(g,k)|0,K=Math.imul(g,E),r=r+Math.imul(c,R)|0,t=(t+Math.imul(c,T)|0)+Math.imul(p,R)|0,K=K+Math.imul(p,T)|0,r=r+Math.imul(l,C)|0,t=(t+Math.imul(l,I)|0)+Math.imul(d,C)|0,K=K+Math.imul(d,I)|0,r=r+Math.imul(u,B)|0,t=(t+Math.imul(u,P)|0)+Math.imul(f,B)|0,K=K+Math.imul(f,P)|0,(W+(r+Math.imul(a,j)|0)|0)+((8191&(t=(t+Math.imul(a,L)|0)+Math.imul(h,j)|0))<<13)|0),J=(W=((K+Math.imul(h,L)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,r=Math.imul(b,k),t=Math.imul(b,E)+Math.imul(v,k)|0,K=Math.imul(v,E),r=r+Math.imul(m,R)|0,t=(t+Math.imul(m,T)|0)+Math.imul(g,R)|0,K=K+Math.imul(g,T)|0,r=r+Math.imul(c,C)|0,t=(t+Math.imul(c,I)|0)+Math.imul(p,C)|0,K=K+Math.imul(p,I)|0,r=r+Math.imul(l,B)|0,t=(t+Math.imul(l,P)|0)+Math.imul(d,B)|0,K=K+Math.imul(d,P)|0,r=r+Math.imul(u,j)|0,t=(t+Math.imul(u,L)|0)+Math.imul(f,j)|0,K=K+Math.imul(f,L)|0,(W+(r+Math.imul(a,N)|0)|0)+((8191&(t=(t+Math.imul(a,O)|0)+Math.imul(h,N)|0))<<13)|0),X=(W=((K+Math.imul(h,O)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,r=Math.imul(y,k),t=Math.imul(y,E)+Math.imul(w,k)|0,K=Math.imul(w,E),r=r+Math.imul(b,R)|0,t=(t+Math.imul(b,T)|0)+Math.imul(v,R)|0,K=K+Math.imul(v,T)|0,r=r+Math.imul(m,C)|0,t=(t+Math.imul(m,I)|0)+Math.imul(g,C)|0,K=K+Math.imul(g,I)|0,r=r+Math.imul(c,B)|0,t=(t+Math.imul(c,P)|0)+Math.imul(p,B)|0,K=K+Math.imul(p,P)|0,r=r+Math.imul(l,j)|0,t=(t+Math.imul(l,L)|0)+Math.imul(d,j)|0,K=K+Math.imul(d,L)|0,r=r+Math.imul(u,N)|0,t=(t+Math.imul(u,O)|0)+Math.imul(f,N)|0,K=K+Math.imul(f,O)|0,(W+(r+Math.imul(a,D)|0)|0)+((8191&(t=(t+Math.imul(a,q)|0)+Math.imul(h,D)|0))<<13)|0),Q=(W=((K+Math.imul(h,q)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,r=Math.imul(M,k),t=Math.imul(M,E)+Math.imul(_,k)|0,K=Math.imul(_,E),r=r+Math.imul(y,R)|0,t=(t+Math.imul(y,T)|0)+Math.imul(w,R)|0,K=K+Math.imul(w,T)|0,r=r+Math.imul(b,C)|0,t=(t+Math.imul(b,I)|0)+Math.imul(v,C)|0,K=K+Math.imul(v,I)|0,r=r+Math.imul(m,B)|0,t=(t+Math.imul(m,P)|0)+Math.imul(g,B)|0,K=K+Math.imul(g,P)|0,r=r+Math.imul(c,j)|0,t=(t+Math.imul(c,L)|0)+Math.imul(p,j)|0,K=K+Math.imul(p,L)|0,r=r+Math.imul(l,N)|0,t=(t+Math.imul(l,O)|0)+Math.imul(d,N)|0,K=K+Math.imul(d,O)|0,r=r+Math.imul(u,D)|0,t=(t+Math.imul(u,q)|0)+Math.imul(f,D)|0,K=K+Math.imul(f,q)|0,(W+(r+Math.imul(a,z)|0)|0)+((8191&(t=(t+Math.imul(a,U)|0)+Math.imul(h,z)|0))<<13)|0),tt=(W=((K+Math.imul(h,U)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,r=Math.imul(S,k),t=Math.imul(S,E)+Math.imul(x,k)|0,K=Math.imul(x,E),r=r+Math.imul(M,R)|0,t=(t+Math.imul(M,T)|0)+Math.imul(_,R)|0,K=K+Math.imul(_,T)|0,r=r+Math.imul(y,C)|0,t=(t+Math.imul(y,I)|0)+Math.imul(w,C)|0,K=K+Math.imul(w,I)|0,r=r+Math.imul(b,B)|0,t=(t+Math.imul(b,P)|0)+Math.imul(v,B)|0,K=K+Math.imul(v,P)|0,r=r+Math.imul(m,j)|0,t=(t+Math.imul(m,L)|0)+Math.imul(g,j)|0,K=K+Math.imul(g,L)|0,r=r+Math.imul(c,N)|0,t=(t+Math.imul(c,O)|0)+Math.imul(p,N)|0,K=K+Math.imul(p,O)|0,r=r+Math.imul(l,D)|0,t=(t+Math.imul(l,q)|0)+Math.imul(d,D)|0,K=K+Math.imul(d,q)|0,r=r+Math.imul(u,z)|0,t=(t+Math.imul(u,U)|0)+Math.imul(f,z)|0,K=K+Math.imul(f,U)|0,(W+(r+Math.imul(a,F)|0)|0)+((8191&(t=(t+Math.imul(a,Z)|0)+Math.imul(h,F)|0))<<13)|0);W=((K+Math.imul(h,Z)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,r=Math.imul(A,k),t=Math.imul(A,E)+Math.imul(n,k)|0,K=Math.imul(n,E),r=r+Math.imul(S,R)|0,t=(t+Math.imul(S,T)|0)+Math.imul(x,R)|0,K=K+Math.imul(x,T)|0,r=r+Math.imul(M,C)|0,t=(t+Math.imul(M,I)|0)+Math.imul(_,C)|0,K=K+Math.imul(_,I)|0,r=r+Math.imul(y,B)|0,t=(t+Math.imul(y,P)|0)+Math.imul(w,B)|0,K=K+Math.imul(w,P)|0,r=r+Math.imul(b,j)|0,t=(t+Math.imul(b,L)|0)+Math.imul(v,j)|0,K=K+Math.imul(v,L)|0,r=r+Math.imul(m,N)|0,t=(t+Math.imul(m,O)|0)+Math.imul(g,N)|0,K=K+Math.imul(g,O)|0,r=r+Math.imul(c,D)|0,t=(t+Math.imul(c,q)|0)+Math.imul(p,D)|0,K=K+Math.imul(p,q)|0,r=r+Math.imul(l,z)|0,t=(t+Math.imul(l,U)|0)+Math.imul(d,z)|0,K=K+Math.imul(d,U)|0,r=r+Math.imul(u,F)|0,t=(t+Math.imul(u,Z)|0)+Math.imul(f,F)|0,K=K+Math.imul(f,Z)|0,k=(W+(r+Math.imul(a,H)|0)|0)+((8191&(t=(t+Math.imul(a,o)|0)+Math.imul(h,H)|0))<<13)|0,W=((K+Math.imul(h,o)|0)+(t>>>13)|0)+(k>>>26)|0,k&=67108863,r=Math.imul(A,R),t=Math.imul(A,T)+Math.imul(n,R)|0,K=Math.imul(n,T),r=r+Math.imul(S,C)|0,t=(t+Math.imul(S,I)|0)+Math.imul(x,C)|0,K=K+Math.imul(x,I)|0,r=r+Math.imul(M,B)|0,t=(t+Math.imul(M,P)|0)+Math.imul(_,B)|0,K=K+Math.imul(_,P)|0,r=r+Math.imul(y,j)|0,t=(t+Math.imul(y,L)|0)+Math.imul(w,j)|0,K=K+Math.imul(w,L)|0,r=r+Math.imul(b,N)|0,t=(t+Math.imul(b,O)|0)+Math.imul(v,N)|0,K=K+Math.imul(v,O)|0,r=r+Math.imul(m,D)|0,t=(t+Math.imul(m,q)|0)+Math.imul(g,D)|0,K=K+Math.imul(g,q)|0,r=r+Math.imul(c,z)|0,t=(t+Math.imul(c,U)|0)+Math.imul(p,z)|0,K=K+Math.imul(p,U)|0,r=r+Math.imul(l,F)|0,t=(t+Math.imul(l,Z)|0)+Math.imul(d,F)|0,K=K+Math.imul(d,Z)|0,E=(W+(r+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,o)|0)+Math.imul(f,H)|0))<<13)|0,W=((K+Math.imul(f,o)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,r=Math.imul(A,C),t=Math.imul(A,I)+Math.imul(n,C)|0,K=Math.imul(n,I),r=r+Math.imul(S,B)|0,t=(t+Math.imul(S,P)|0)+Math.imul(x,B)|0,K=K+Math.imul(x,P)|0,r=r+Math.imul(M,j)|0,t=(t+Math.imul(M,L)|0)+Math.imul(_,j)|0,K=K+Math.imul(_,L)|0,r=r+Math.imul(y,N)|0,t=(t+Math.imul(y,O)|0)+Math.imul(w,N)|0,K=K+Math.imul(w,O)|0,r=r+Math.imul(b,D)|0,t=(t+Math.imul(b,q)|0)+Math.imul(v,D)|0,K=K+Math.imul(v,q)|0,r=r+Math.imul(m,z)|0,t=(t+Math.imul(m,U)|0)+Math.imul(g,z)|0,K=K+Math.imul(g,U)|0,r=r+Math.imul(c,F)|0,t=(t+Math.imul(c,Z)|0)+Math.imul(p,F)|0,K=K+Math.imul(p,Z)|0,a=(W+(r+Math.imul(l,H)|0)|0)+((8191&(t=(t+Math.imul(l,o)|0)+Math.imul(d,H)|0))<<13)|0,W=((K+Math.imul(d,o)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,r=Math.imul(A,B),t=Math.imul(A,P)+Math.imul(n,B)|0,K=Math.imul(n,P),r=r+Math.imul(S,j)|0,t=(t+Math.imul(S,L)|0)+Math.imul(x,j)|0,K=K+Math.imul(x,L)|0,r=r+Math.imul(M,N)|0,t=(t+Math.imul(M,O)|0)+Math.imul(_,N)|0,K=K+Math.imul(_,O)|0,r=r+Math.imul(y,D)|0,t=(t+Math.imul(y,q)|0)+Math.imul(w,D)|0,K=K+Math.imul(w,q)|0,r=r+Math.imul(b,z)|0,t=(t+Math.imul(b,U)|0)+Math.imul(v,z)|0,K=K+Math.imul(v,U)|0,r=r+Math.imul(m,F)|0,t=(t+Math.imul(m,Z)|0)+Math.imul(g,F)|0,K=K+Math.imul(g,Z)|0,h=(W+(r+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,o)|0)+Math.imul(p,H)|0))<<13)|0,W=((K+Math.imul(p,o)|0)+(t>>>13)|0)+(h>>>26)|0,h&=67108863,r=Math.imul(A,j),t=Math.imul(A,L)+Math.imul(n,j)|0,K=Math.imul(n,L),r=r+Math.imul(S,N)|0,t=(t+Math.imul(S,O)|0)+Math.imul(x,N)|0,K=K+Math.imul(x,O)|0,r=r+Math.imul(M,D)|0,t=(t+Math.imul(M,q)|0)+Math.imul(_,D)|0,K=K+Math.imul(_,q)|0,r=r+Math.imul(y,z)|0,t=(t+Math.imul(y,U)|0)+Math.imul(w,z)|0,K=K+Math.imul(w,U)|0,r=r+Math.imul(b,F)|0,t=(t+Math.imul(b,Z)|0)+Math.imul(v,F)|0,K=K+Math.imul(v,Z)|0,R=(W+(r+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,o)|0)+Math.imul(g,H)|0))<<13)|0,W=((K+Math.imul(g,o)|0)+(t>>>13)|0)+(R>>>26)|0,R&=67108863,r=Math.imul(A,N),t=Math.imul(A,O)+Math.imul(n,N)|0,K=Math.imul(n,O),r=r+Math.imul(S,D)|0,t=(t+Math.imul(S,q)|0)+Math.imul(x,D)|0,K=K+Math.imul(x,q)|0,r=r+Math.imul(M,z)|0,t=(t+Math.imul(M,U)|0)+Math.imul(_,z)|0,K=K+Math.imul(_,U)|0,r=r+Math.imul(y,F)|0,t=(t+Math.imul(y,Z)|0)+Math.imul(w,F)|0,K=K+Math.imul(w,Z)|0,T=(W+(r+Math.imul(b,H)|0)|0)+((8191&(t=(t+Math.imul(b,o)|0)+Math.imul(v,H)|0))<<13)|0,W=((K+Math.imul(v,o)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,r=Math.imul(A,D),t=Math.imul(A,q)+Math.imul(n,D)|0,K=Math.imul(n,q),r=r+Math.imul(S,z)|0,t=(t+Math.imul(S,U)|0)+Math.imul(x,z)|0,K=K+Math.imul(x,U)|0,r=r+Math.imul(M,F)|0,t=(t+Math.imul(M,Z)|0)+Math.imul(_,F)|0,K=K+Math.imul(_,Z)|0,u=(W+(r+Math.imul(y,H)|0)|0)+((8191&(t=(t+Math.imul(y,o)|0)+Math.imul(w,H)|0))<<13)|0,W=((K+Math.imul(w,o)|0)+(t>>>13)|0)+(u>>>26)|0,u&=67108863,r=Math.imul(A,z),t=Math.imul(A,U)+Math.imul(n,z)|0,K=Math.imul(n,U),r=r+Math.imul(S,F)|0,t=(t+Math.imul(S,Z)|0)+Math.imul(x,F)|0,K=K+Math.imul(x,Z)|0,f=(W+(r+Math.imul(M,H)|0)|0)+((8191&(t=(t+Math.imul(M,o)|0)+Math.imul(_,H)|0))<<13)|0,W=((K+Math.imul(_,o)|0)+(t>>>13)|0)+(f>>>26)|0,f&=67108863,r=Math.imul(A,F),t=Math.imul(A,Z)+Math.imul(n,F)|0,K=Math.imul(n,Z),C=(W+(r+Math.imul(S,H)|0)|0)+((8191&(t=(t+Math.imul(S,o)|0)+Math.imul(x,H)|0))<<13)|0,W=((K+Math.imul(x,o)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,I=(W+Math.imul(A,H)|0)+((8191&(t=Math.imul(A,o)+Math.imul(n,H)|0))<<13)|0;return W=(Math.imul(n,o)+(t>>>13)|0)+(I>>>26)|0,I&=67108863,s[0]=e,s[1]=$,s[2]=Y,s[3]=V,s[4]=G,s[5]=J,s[6]=X,s[7]=Q,s[8]=tt,s[9]=k,s[10]=E,s[11]=a,s[12]=h,s[13]=R,s[14]=T,s[15]=u,s[16]=f,s[17]=C,s[18]=I,0!=W&&(s[19]=W,i.length++),i};function m(t,e,i){return(new g).mulp(t,e,i)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=c),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return i=(10===this.length&&10===t.length?p:i<63?c:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){for(var s=n,a=(n=0,67108863&r),h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f,l=(0|t.words[o-u])*(0|e.words[u]);a=67108863&(f=(67108863&l)+a|0);n+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:m)(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},g.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=0,n=0;n<e;n++)r|=(1&t)<<e-n-1,t>>=1;return r},g.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},g.prototype.transform=function(t,e,i,r,n,o){this.permute(o,t,e,i,r,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,d=u,c=0;c<s;c++){var p=i[f+c],m=r[f+c],g=i[f+c+s],b=l*g-d*(v=r[f+c+s]),v=l*v+d*g;i[f+c]=p+(g=b),r[f+c]=m+v,i[f+c+s]=p-g,r[f+c+s]=m-v,c!==a&&(b=h*l-u*d,d=h*d+u*l,l=b)}},g.prototype.guessLen13b=function(t,e){e=1&(r=1|Math.max(e,t));for(var i=0,r=r/2|0;r;r>>>=1)i++;return 1<<i+1+e},g.prototype.conjugate=function(t,e,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},g.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++){var n=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i;t[r]=67108863&n,i=n<67108864?0:n/67108864|0}return t},g.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,i[2*s+1]=8191&(o>>>=13),o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},g.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),h=new Array(r),u=new Array(r),f=new Array(r),l=new Array(r),d=i.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,h,r,n),this.transform(u,o,f,l,r,n);for(var c=0;c<r;c++){var p=a[c]*f[c]-h[c]*l[c];h[c]=a[c]*l[c]+h[c]*f[c],a[c]=p}return this.conjugate(a,h,r),this.transform(a,h,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e=(e>>=26)+(n/67108864|0)+(o>>>26);this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,r=0;r<e.length&&0===e[r];r++,i=i.sqr());if(++r<e.length)for(var n=i.sqr();r<e.length;r++,n=n.sqr())0!==e[r]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26,i=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!=e){for(var o=0,s=0;s<this.length;s++){var a=this.words[s]&n,h=(0|this.words[s])-a<<e;this.words[s]=h|o,o=a>>>26-e}o&&(this.words[s]=o,this.length++)}if(0!=i){for(s=this.length-1;0<=s;s--)this.words[s+i]=this.words[s];for(s=0;s<i;s++)this.words[s]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var n,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=i;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0!==s)if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<<e))},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;return r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!=e&&t++,this.length=Math.min(t,this.length),0!=e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,--this.words[e+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){for(var n=t.length+i,o=(this._expand(n),0),s=0;s<t.length;s++){var a=(0|this.words[s+i])+o,h=(0|t.words[s])*e;o=((a-=67108863&h)>>26)-(h/67108864|0);this.words[s+i]=67108863&a}for(;s<this.length-i;s++)o=(a=(0|this.words[s+i])+o)>>26,this.words[s+i]=67108863&a;if(0!==o){for(r(-1===o),s=o=0;s<this.length;s++)o=(a=-(0|this.words[s])+o)>>26,this.words[s]=67108863&a;this.negative=1}return this.strip()},o.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,s=0|n.words[n.length-1],a=(0!=(t=26-this._countBits(s))&&(n=n.ushln(t),r.iushln(t),s=0|n.words[n.length-1]),r.length-n.length);if("mod"!==e){(i=new o(null)).length=1+a,i.words=new Array(i.length);for(var h=0;h<i.length;h++)i.words[h]=0}var u=r.clone()._ishlnsubmul(n,1,a);0===u.negative&&(r=u,i)&&(i.words[a]=1);for(var f=a-1;0<=f;f--){var l=67108864*(0|r.words[n.length+f])+(0|r.words[n.length+f-1]);l=Math.min(l/s|0,67108863);for(r._ishlnsubmul(n,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(n,1,f),r.isZero()||(r.negative^=1);i&&(i.words[f]=l)}return i&&i.strip(),r.strip(),"div"!==e&&0!=t&&r.iushrn(t),{div:i||null,mod:r}},o.prototype.divmod=function(t,e,i){var n,s,a;return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.iadd(t),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),{div:n="mod"!==e?a.div.neg():n,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),i)&&0!==s.negative&&s.isub(t),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e,i,r=this.divmod(t);return r.mod.isZero()||(i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),t=t.andln(1),(i=i.cmp(e))<0)||1===t&&0===i?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());for(var e=this,i=t.clone(),n=(e=0!==e.negative?e.umod(t):e.clone(),new o(1)),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var f=i.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;0==(e.words[0]&c)&&d<26;++d,c<<=1);if(0<d)for(e.iushrn(d);0<d--;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(i.iushrn(p);0<p--;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(a),s.isub(h)):(i.isub(e),a.isub(n),h.isub(s))}return{a:a,b:h,gcd:i.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());for(var e,i=this,n=t.clone(),s=(i=0!==i.negative?i.umod(t):i.clone(),new o(1)),a=new o(0),h=n.clone();0<i.cmpn(1)&&0<n.cmpn(1);){for(var u=0,f=1;0==(i.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(i.iushrn(u);0<u--;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(n.iushrn(l);0<l--;)a.isOdd()&&a.iadd(h),a.iushrn(1);0<=i.cmp(n)?(i.isub(n),s.isub(a)):(n.isub(i),a.isub(s))}return(e=0===i.cmpn(1)?s:a).cmpn(0)<0&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0;for(var r=i.negative=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var o=e;e=i,i=o}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);t=(t-(e=t%26))/26;var e=1<<e;if(this.length<=t)this._expand(1+t),this.words[t]|=e;else{for(var i=e,n=t;0!==i&&n<this.length;n++){var o=0|this.words[n];i=(o+=i)>>>26;o&=67108863,this.words[n]=o}0!==i&&(this.words[n]=i,this.length++)}return this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),e=1<this.length?1:(r((t=e?-t:t)<=67108863,"Number is too big"),(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-e:e):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!=n){r<n?e=-1:n<r&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){var e;"string"==typeof t?(e=o._prime(t),this.m=e.p,this.prime=e):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function x(t){S.call(this,t),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)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){for(var e,i=t;this.split(i,this.tmp),(e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);return 0===(t=e<this.n?-1:i.ucmp(this.p))?(i.words[0]=0,i.length=1):0<t?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(y,v),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)t.words[0]=0,t.length=1;else{var n=t.words[9];for(e.words[e.length++]=4194303&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|n>>>22,n=o}0==(t.words[r-10]=n>>>=22)&&10<t.length?t.length-=10:t.length-=9}},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1])&&t.length--,t},n(w,v),n(M,v),n(_,v),_.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return b[t]=e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},S.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},S.prototype.sub=function(t,e){return this._verify2(t,e),(t=t.sub(e)).cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},S.prototype.isub=function(t,e){return this._verify2(t,e),(t=t.isub(e)).cmpn(0)<0&&t.iadd(this.m),t},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());for(var s=new o(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=new o(2*(u=this.m.bitLength())*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var f=this.pow(u,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),c=n;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();r(m<c);var g=this.pow(f,new o(1).iushln(c-m-1));l=l.redMul(g),f=g.redSqr(),d=d.redMul(f),c=m}return l},S.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var n=i[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){for(var u=e.words[r],f=h-1;0<=f;f--){var l=u>>f&1;n!==i[0]&&(n=this.sqr(n)),0==l&&0===s?a=0:(s=s<<1|l,(4==++a||0===r&&0===f)&&(n=this.mul(n,i[s]),s=a=0))}h=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new x(t)},n(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},x.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},x.prototype.mul=function(t,e){return(t.isZero()||e.isZero()?new o(0):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e))._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(14)(t))},function(t,e){},function(t,e,i){e.publicEncrypt=i(213),e.privateDecrypt=i(215),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},function(t,e,i){var r=i(35),n=i(22),o=i(27),s=i(106),a=i(107),h=i(56),u=i(108),f=i(51),l=i(2).Buffer;t.exports=function(t,e,i){var d,c=t.padding||(i?1:4);t=r(t);if(4===c)d=function(t,e){t=t.modulus.byteLength();var i=e.length,r=(d=o("sha1").update(l.alloc(0)).digest()).length;if(t-(u=2*r)-2<i)throw new Error("message too long");i=l.alloc(t-i-u-2);var u=t-r-1,f=n(r),d=a(l.concat([d,i,l.alloc(1,1),e],u),s(f,u));i=a(f,s(d,r));return new h(l.concat([l.alloc(1),i,d],t))}(t,e);else if(1===c)d=function(t,e,i){var r=e.length;if((t=t.modulus.byteLength())-11<r)throw new Error("message too long");return r=i?l.alloc(t-r-3,255):function(t){for(var e,i=l.allocUnsafe(t),r=0,o=n(2*t),s=0;r<t;)s===o.length&&(o=n(2*t),s=0),(e=o[s++])&&(i[r++]=e);return i}(t-r-3),new h(l.concat([l.from([0,i?1:2]),r,l.alloc(1),e],t))}(t,e,i);else{if(3!==c)throw new Error("unknown padding");if(0<=(d=new h(e)).cmp(t.modulus))throw new Error("data too long for modulus")}return(i?f:u)(d,t)}},function(t,e){},function(t,e,i){var r=i(35),n=i(106),o=i(107),s=i(56),a=i(51),h=i(27),u=i(108),f=i(2).Buffer;t.exports=function(t,e,i){var l=t.padding||(i?1:4),d=(t=r(t)).modulus.byteLength();if(e.length>d||0<=new s(e).cmp(t.modulus))throw new Error("decryption error");e=i?u(new s(e),t):a(e,t);var c=f.alloc(d-e.length);if(e=f.concat([c,e],d),4===l){c=e,d=(d=t).modulus.byteLength();var p=(t=h("sha1").update(f.alloc(0)).digest()).length;if(0===c[0]){var m=c.slice(1,p+1),g=(c=c.slice(p+1),m=o(m,n(c,p)),o(c,n(m,d-p-1)));if(!function(t,e){t=f.from(t),e=f.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n<r;)i+=t[n]^e[n];return i}(t,g.slice(0,p))){for(var b=p;0===g[b];)b++;if(1===g[b++])return g.slice(b)}}throw new Error("decryption error")}if(1===l){for(var v=e,y=(c=i,m=v.slice(0,2),2),w=0;0!==v[y++];)if(y>=v.length){w++;break}if(d=v.slice(2,y-1),("0002"!==m.toString("hex")&&!c||"0001"!==m.toString("hex")&&c)&&w++,d.length<8&&w++,w)throw new Error("decryption error");return v.slice(y)}if(3===l)return e;throw new Error("unknown padding")}},function(t,e,i){"use strict";(function(t,r){function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i(2),s=i(22),a=o.Buffer,h=o.kMaxLength,u=t.crypto||t.msCrypto,f=Math.pow(2,32)-1;function l(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(f<t||t<0)throw new TypeError("offset must be a uint32");if(h<t||e<t)throw new RangeError("offset out of range")}function d(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(f<t||t<0)throw new TypeError("size must be a uint32");if(i<t+e||h<t)throw new RangeError("buffer too small")}function c(t,e,i,n){var o;return r.browser?(o=t.buffer,o=new Uint8Array(o,e,i),u.getRandomValues(o),n?void r.nextTick((function(){n(null,t)})):t):n?void s(i,(function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)})):(s(i).copy(t,e),t)}u&&u.getRandomValues||!r.browser?(e.randomFill=function(e,i,r,n){if(!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)n=i,i=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-i;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return l(i,e.length),d(r,i,e.length),c(e,i,r,n)},e.randomFillSync=function(e,i,r){if(void 0===i&&(i=0),!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(i,e.length),void 0===r&&(r=e.length-i),d(r,i,e.length),c(e,i,r)}):(e.randomFill=n,e.randomFillSync=n)}).call(this,i(5),i(4))},function(t,e,i){(function(t){var r,n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),i={},r=0;r<e.length;r++)i[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return i},o=/%[sdj%]/g,s=(e.format=function(t){if(!b(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(a(arguments[i]));return e.join(" ")}i=1;for(var r=arguments,n=r.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n<=i)return t;switch(t){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return t}})),h=r[i];i<n;h=r[++i])m(h)||!w(h)?s+=" "+h:s+=" "+a(h);return s},e.deprecate=function(i,r){var n;return void 0!==t&&!0===t.noDeprecation?i:void 0===t?function(){return e.deprecate(i,r).apply(this,arguments)}:(n=!1,function(){if(!n){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),n=!0}return i.apply(this,arguments)})},{});function a(t,i){var r={seen:[],stylize:u};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),p(i)?r.showHidden=i:i&&e._extend(r,i),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=h),f(r,t,r.depth)}function h(t,e){return(e=a.styles[e])?"["+a.colors[e][0]+"m"+t+"["+a.colors[e][1]+"m":t}function u(t,e){return t}function f(t,i,r){if(t.customInspect&&i&&S(i.inspect)&&i.inspect!==e.inspect&&(!i.constructor||i.constructor.prototype!==i))return b(o=i.inspect(r,t))?o:f(t,o,r);if(o=function(t,e){return v(e)?t.stylize("undefined","undefined"):b(e)?(i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(i,"string")):g(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0;var i}(t,i))return o;var n,o=Object.keys(i),s=(n={},o.forEach((function(t,e){n[t]=!0})),n);if(t.showHidden&&(o=Object.getOwnPropertyNames(i)),_(i)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return l(i);if(0===o.length){if(S(i))return h=i.name?": "+i.name:"",t.stylize("[Function"+h+"]","special");if(y(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(M(i))return t.stylize(Date.prototype.toString.call(i),"date");if(_(i))return l(i)}var a,h="",u=!1,w=["{","}"];return c(i)&&(u=!0,w=["[","]"]),S(i)&&(h=" [Function"+(i.name?": "+i.name:"")+"]"),y(i)&&(h=" "+RegExp.prototype.toString.call(i)),M(i)&&(h=" "+Date.prototype.toUTCString.call(i)),_(i)&&(h=" "+l(i)),0!==o.length||u&&0!=i.length?r<0?y(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),a=u?function(t,e,i,r,n){for(var o=[],s=0,a=e.length;s<a;++s)E(e,String(s))?o.push(d(t,e,i,r,String(s),!0)):o.push("");return n.forEach((function(n){n.match(/^\d+$/)||o.push(d(t,e,i,r,n,!0))})),o}(t,i,r,s,o):o.map((function(e){return d(t,i,r,s,e,u)})),t.seen.pop(),60<a.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)?w[0]+(""===h?"":h+"\n ")+" "+a.join(",\n  ")+" "+w[1]:w[0]+h+" "+a.join(", ")+" "+w[1]):w[0]+h+w[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,i,r,n,o){var s,a;if((e=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]}).get?a=e.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):e.set&&(a=t.stylize("[Setter]","special")),E(r,n)||(s="["+n+"]"),a||(t.seen.indexOf(e.value)<0?-1<(a=m(i)?f(t,e.value,null):f(t,e.value,i-1)).indexOf("\n")&&(a=o?a.split("\n").map((function(t){return"  "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return"   "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(s)){if(o&&n.match(/^\d+$/))return a;s=(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t.stylize(s,"string"))}return s+": "+a}function c(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function y(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"==typeof t&&null!==t}function M(t){return w(t)&&"[object Date]"===x(t)}function _(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function S(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(i){var n;return v(r)&&(r=t.env.NODE_DEBUG||""),i=i.toUpperCase(),s[i]||(new RegExp("\\b"+i+"\\b","i").test(r)?(n=t.pid,s[i]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",i,n,t)}):s[i]=function(){}),s[i]},(e.inspect=a).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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=c,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=y,e.isObject=w,e.isDate=M,e.isError=_,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=i(218);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,i;console.log("%s - %s",(i=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],i].join(" ")),e.format.apply(e,arguments))},e.inherits=i(219),e._extend=function(t,e){if(e&&w(e))for(var i=Object.keys(e),r=i.length;r--;)t[i[r]]=e[i[r]];return t};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(t,e){var i;return t||((i=new Error("Promise was rejected with a falsy value")).reason=t,t=i),e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(R&&t[R]){var e;if("function"!=typeof(e=t[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,i,r=new Promise((function(t,r){e=t,i=r})),n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);n.push((function(t,r){t?i(t):e(r)}));try{t.apply(this,n)}catch(r){i(r)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),R&&Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=R,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function i(){for(var i=[],r=0;r<arguments.length;r++)i.push(arguments[r]);var n=i.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");function o(){return n.apply(s,arguments)}var s=this;e.apply(this,i).then((function(e){t.nextTick(o,null,e)}),(function(e){t.nextTick(T,e,o)}))}return Object.setPrototypeOf(i,Object.getPrototypeOf(e)),Object.defineProperties(i,n(e)),i}}).call(this,i(4))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){function i(){}t.super_=e,i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},function(t,e,i){var r;i=[i(8),i(109)],void 0!==(e="function"==typeof(r=function(t){function e(t){return t.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}return t.validator.addMethod("maxWords",(function(t,i,r){return this.optional(i)||e(t).match(/\b\w+\b/g).length<=r}),t.validator.format("Please enter {0} words or less.")),t.validator.addMethod("minWords",(function(t,i,r){return this.optional(i)||e(t).match(/\b\w+\b/g).length>=r}),t.validator.format("Please enter at least {0} words.")),t.validator.addMethod("rangeWords",(function(t,i,r){var n=e(t),o=/\b\w+\b/g;return this.optional(i)||n.match(o).length>=r[0]&&n.match(o).length<=r[1]}),t.validator.format("Please enter between {0} and {1} words.")),t.validator.addMethod("abaRoutingNumber",(function(t){var e=0,i=t.split(""),r=i.length;if(9!==r)return!1;for(var n=0;n<r;n+=3)e+=3*parseInt(i[n],10)+7*parseInt(i[n+1],10)+parseInt(i[n+2],10);return 0!==e&&e%10==0}),"Please enter a valid routing number."),t.validator.addMethod("accept",(function(e,i,r){var n,o,s="string"==typeof r?r.replace(/\s/g,""):"image/*",a=this.optional(i);if(a)return a;if("file"===t(i).attr("type")&&(s=s.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),i.files&&i.files.length))for(o=new RegExp(".?("+s+")$","i"),n=0;n<i.files.length;n++)if(!i.files[n].type.match(o))return!1;return!0}),t.validator.format("Please enter a value with a valid mimetype.")),t.validator.addMethod("alphanumeric",(function(t,e){return this.optional(e)||/^\w+$/i.test(t)}),"Letters, numbers, and underscores only please."),t.validator.addMethod("bankaccountNL",(function(t,e){if(this.optional(e))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(t))return!1;var i,r=t.replace(/ /g,""),n=0,o=r.length;for(i=0;i<o;i++)n+=(o-i)*r.substring(i,i+1);return n%11==0}),"Please specify a valid bank account number."),t.validator.addMethod("bankorgiroaccountNL",(function(e,i){return this.optional(i)||t.validator.methods.bankaccountNL.call(this,e,i)||t.validator.methods.giroaccountNL.call(this,e,i)}),"Please specify a valid bank or giro account number."),t.validator.addMethod("bic",(function(t,e){return this.optional(e)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(t.toUpperCase())}),"Please specify a valid BIC code."),t.validator.addMethod("cifES",(function(t,e){"use strict";if(this.optional(e))return!0;var i,r,n,o,s=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),a=t.substring(0,1),h=t.substring(1,8),u=t.substring(8,9),f=0,l=0;function d(t){return t%2==0}if(9!==t.length||!s.test(t))return!1;for(i=0;i<h.length;i++)r=parseInt(h[i],10),d(i)?l+=(r*=2)<10?r:r-9:f+=r;return n=(10-(f+l).toString().substr(-1)).toString(),n=parseInt(n,10)>9?"0":n,o="JABCDEFGHI".substr(n,1).toString(),a.match(/[ABEH]/)?u===n:a.match(/[KPQS]/)?u===o:u===n||u===o}),"Please specify a valid CIF number."),t.validator.addMethod("cnhBR",(function(t){if(11!==(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length)return!1;var e,i,r,n,o,s=0,a=0;if(e=t.charAt(0),new Array(12).join(e)===t)return!1;for(n=0,o=9,0;n<9;++n,--o)s+=+t.charAt(n)*o;for((i=s%11)>=10&&(i=0,a=2),s=0,n=0,o=1,0;n<9;++n,++o)s+=+t.charAt(n)*o;return(r=s%11)>=10?r=0:r-=a,String(i).concat(r)===t.substr(-2)}),"Please specify a valid CNH number."),t.validator.addMethod("cnpjBR",(function(t,e){"use strict";if(this.optional(e))return!0;if(14!==(t=t.replace(/[^\d]+/g,"")).length)return!1;if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;for(var i=t.length-2,r=t.substring(0,i),n=t.substring(i),o=0,s=i-7,a=i;a>=1;a--)o+=r.charAt(i-a)*s--,s<2&&(s=9);var h=o%11<2?0:11-o%11;if(h!==parseInt(n.charAt(0),10))return!1;i+=1,r=t.substring(0,i),o=0,s=i-7;for(var u=i;u>=1;u--)o+=r.charAt(i-u)*s--,s<2&&(s=9);return(h=o%11<2?0:11-o%11)===parseInt(n.charAt(1),10)}),"Please specify a CNPJ value number."),t.validator.addMethod("cpfBR",(function(t,e){"use strict";if(this.optional(e))return!0;if(11!==(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length)return!1;var i,r,n,o,s=0;if(i=parseInt(t.substring(9,10),10),r=parseInt(t.substring(10,11),10),n=function(t,e){var i=10*t%11;return 10!==i&&11!==i||(i=0),i===e},""===t||"00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return!1;for(o=1;o<=9;o++)s+=parseInt(t.substring(o-1,o),10)*(11-o);if(n(s,i)){for(s=0,o=1;o<=10;o++)s+=parseInt(t.substring(o-1,o),10)*(12-o);return n(s,r)}return!1}),"Please specify a valid CPF number."),t.validator.addMethod("creditcard",(function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i,r,n=0,o=0,s=!1;if((t=t.replace(/\D/g,"")).length<13||t.length>19)return!1;for(i=t.length-1;i>=0;i--)r=t.charAt(i),o=parseInt(r,10),s&&(o*=2)>9&&(o-=9),n+=o,s=!s;return n%10==0}),"Please enter a valid credit card number."),t.validator.addMethod("creditcardtypes",(function(t,e,i){if(/[^0-9\-]+/.test(t))return!1;t=t.replace(/\D/g,"");var r=0;return i.mastercard&&(r|=1),i.visa&&(r|=2),i.amex&&(r|=4),i.dinersclub&&(r|=8),i.enroute&&(r|=16),i.discover&&(r|=32),i.jcb&&(r|=64),i.unknown&&(r|=128),i.all&&(r=255),1&r&&(/^(5[12345])/.test(t)||/^(2[234567])/.test(t))||2&r&&/^(4)/.test(t)?16===t.length:4&r&&/^(3[47])/.test(t)?15===t.length:8&r&&/^(3(0[012345]|[68]))/.test(t)?14===t.length:16&r&&/^(2(014|149))/.test(t)?15===t.length:32&r&&/^(6011)/.test(t)||64&r&&/^(3)/.test(t)?16===t.length:64&r&&/^(2131|1800)/.test(t)?15===t.length:!!(128&r)}),"Please enter a valid credit card number."),t.validator.addMethod("currency",(function(t,e,i){var r,n="string"==typeof i,o=n?i:i[0],s=!!n||i[1];return o=o.replace(/,/g,""),r="^["+(o=s?o+"]":o+"]?")+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",r=new RegExp(r),this.optional(e)||r.test(t)}),"Please specify a valid currency."),t.validator.addMethod("dateFA",(function(t,e){return this.optional(e)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(t)}),t.validator.messages.date),t.validator.addMethod("dateITA",(function(t,e){var i,r,n,o,s,a=!1;return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(t)?(i=t.split("/"),r=parseInt(i[0],10),n=parseInt(i[1],10),o=parseInt(i[2],10),a=(s=new Date(Date.UTC(o,n-1,r,12,0,0,0))).getUTCFullYear()===o&&s.getUTCMonth()===n-1&&s.getUTCDate()===r):a=!1,this.optional(e)||a}),t.validator.messages.date),t.validator.addMethod("dateNL",(function(t,e){return this.optional(e)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(t)}),t.validator.messages.date),t.validator.addMethod("extension",(function(t,e,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(e)||t.match(new RegExp("\\.("+i+")$","i"))}),t.validator.format("Please enter a value with a valid extension.")),t.validator.addMethod("giroaccountNL",(function(t,e){return this.optional(e)||/^[0-9]{1,7}$/.test(t)}),"Please specify a valid giro account number."),t.validator.addMethod("greaterThan",(function(e,i,r){var n=t(r);return this.settings.onfocusout&&n.not(".validate-greaterThan-blur").length&&n.addClass("validate-greaterThan-blur").on("blur.validate-greaterThan",(function(){t(i).valid()})),e>n.val()}),"Please enter a greater value."),t.validator.addMethod("greaterThanEqual",(function(e,i,r){var n=t(r);return this.settings.onfocusout&&n.not(".validate-greaterThanEqual-blur").length&&n.addClass("validate-greaterThanEqual-blur").on("blur.validate-greaterThanEqual",(function(){t(i).valid()})),e>=n.val()}),"Please enter a greater value."),t.validator.addMethod("iban",(function(t,e){if(this.optional(e))return!0;var i,r,n,o,s,a=t.replace(/ /g,"").toUpperCase(),h="",u=!0,f="";if(a.length<5)return!1;if(void 0!==(n={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"}[a.substring(0,2)])&&!new RegExp("^[A-Z]{2}\\d{2}"+n+"$","").test(a))return!1;for(i=a.substring(4,a.length)+a.substring(0,4),o=0;o<i.length;o++)"0"!==(r=i.charAt(o))&&(u=!1),u||(h+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(r));for(s=0;s<h.length;s++)f=(""+f+h.charAt(s))%97;return 1===f}),"Please specify a valid IBAN."),t.validator.addMethod("integer",(function(t,e){return this.optional(e)||/^-?\d+$/.test(t)}),"A positive or negative non-decimal number please."),t.validator.addMethod("ipv4",(function(t,e){return this.optional(e)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(t)}),"Please enter a valid IP v4 address."),t.validator.addMethod("ipv6",(function(t,e){return this.optional(e)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(t)}),"Please enter a valid IP v6 address."),t.validator.addMethod("lessThan",(function(e,i,r){var n=t(r);return this.settings.onfocusout&&n.not(".validate-lessThan-blur").length&&n.addClass("validate-lessThan-blur").on("blur.validate-lessThan",(function(){t(i).valid()})),e<n.val()}),"Please enter a lesser value."),t.validator.addMethod("lessThanEqual",(function(e,i,r){var n=t(r);return this.settings.onfocusout&&n.not(".validate-lessThanEqual-blur").length&&n.addClass("validate-lessThanEqual-blur").on("blur.validate-lessThanEqual",(function(){t(i).valid()})),e<=n.val()}),"Please enter a lesser value."),t.validator.addMethod("lettersonly",(function(t,e){return this.optional(e)||/^[a-z]+$/i.test(t)}),"Letters only please."),t.validator.addMethod("letterswithbasicpunc",(function(t,e){return this.optional(e)||/^[a-z\-.,()'"\s]+$/i.test(t)}),"Letters or punctuation only please."),t.validator.addMethod("maxfiles",(function(e,i,r){return!!this.optional(i)||!("file"===t(i).attr("type")&&i.files&&i.files.length>r)}),t.validator.format("Please select no more than {0} files.")),t.validator.addMethod("maxsize",(function(e,i,r){if(this.optional(i))return!0;if("file"===t(i).attr("type")&&i.files&&i.files.length)for(var n=0;n<i.files.length;n++)if(i.files[n].size>r)return!1;return!0}),t.validator.format("File size must not exceed {0} bytes each.")),t.validator.addMethod("maxsizetotal",(function(e,i,r){if(this.optional(i))return!0;if("file"===t(i).attr("type")&&i.files&&i.files.length)for(var n=0,o=0;o<i.files.length;o++)if((n+=i.files[o].size)>r)return!1;return!0}),t.validator.format("Total size of all files must not exceed {0} bytes.")),t.validator.addMethod("mobileNL",(function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(t)}),"Please specify a valid mobile number."),t.validator.addMethod("mobileRU",(function(t,e){var i=t.replace(/\(|\)|\s+|-/g,"");return this.optional(e)||i.length>9&&/^((\+7|7|8)+([0-9]){10})$/.test(i)}),"Please specify a valid mobile number."),t.validator.addMethod("mobileUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)}),"Please specify a valid mobile number."),t.validator.addMethod("netmask",(function(t,e){return this.optional(e)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(t)}),"Please enter a valid netmask."),t.validator.addMethod("nieES",(function(t,e){"use strict";if(this.optional(e))return!0;var i,r=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi),n=t.substr(t.length-1).toUpperCase();return!((t=t.toString().toUpperCase()).length>10||t.length<9||!r.test(t))&&(i=9===(t=t.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2")).length?t.substr(0,8):t.substr(0,9),"TRWAGMYFPDXBNJZSQVHLCKET".charAt(parseInt(i,10)%23)===n)}),"Please specify a valid NIE number."),t.validator.addMethod("nifES",(function(t,e){"use strict";return!!this.optional(e)||!!(t=t.toUpperCase()).match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")&&(/^[0-9]{8}[A-Z]{1}$/.test(t)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,0)%23)===t.charAt(8):!!/^[KLM]{1}/.test(t)&&t[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,1)%23))}),"Please specify a valid NIF number."),t.validator.addMethod("nipPL",(function(t){"use strict";if(10!==(t=t.replace(/[^0-9]/g,"")).length)return!1;for(var e=[6,5,7,2,3,4,5,6,7],i=0,r=0;r<9;r++)i+=e[r]*t[r];var n=i%11;return(10===n?0:n)===parseInt(t[9],10)}),"Please specify a valid NIP number."),t.validator.addMethod("nisBR",(function(t){var e,i,r,n,o,s=0;if(11!==(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length)return!1;for(i=parseInt(t.substring(10,11),10),e=parseInt(t.substring(0,10),10),n=2;n<12;n++)o=n,10===n&&(o=2),11===n&&(o=3),s+=e%10*o,e=parseInt(e/10,10);return i===(r=(r=s%11)>1?11-r:0)}),"Please specify a valid NIS/PIS number."),t.validator.addMethod("notEqualTo",(function(e,i,r){return this.optional(i)||!t.validator.methods.equalTo.call(this,e,i,r)}),"Please enter a different value, values must not be the same."),t.validator.addMethod("nowhitespace",(function(t,e){return this.optional(e)||/^\S+$/i.test(t)}),"No white space please."),t.validator.addMethod("pattern",(function(t,e,i){return!!this.optional(e)||("string"==typeof i&&(i=new RegExp("^(?:"+i+")$")),i.test(t))}),"Invalid format."),t.validator.addMethod("phoneNL",(function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(t)}),"Please specify a valid phone number."),t.validator.addMethod("phonePL",(function(t,e){t=t.replace(/\s+/g,"");return this.optional(e)||/^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/.test(t)}),"Please specify a valid phone number."),t.validator.addMethod("phonesUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)}),"Please specify a valid uk phone number."),t.validator.addMethod("phoneUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)}),"Please specify a valid phone number."),t.validator.addMethod("phoneUS",(function(t,e){return t=t.replace(/\s+/g,""),this.optional(e)||t.length>9&&t.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]\d{2}-?\d{4}$/)}),"Please specify a valid phone number."),t.validator.addMethod("postalcodeBR",(function(t,e){return this.optional(e)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(t)}),"Informe um CEP válido."),t.validator.addMethod("postalCodeCA",(function(t,e){return this.optional(e)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(t)}),"Please specify a valid postal code."),t.validator.addMethod("postalcodeIT",(function(t,e){return this.optional(e)||/^\d{5}$/.test(t)}),"Please specify a valid postal code."),t.validator.addMethod("postalcodeNL",(function(t,e){return this.optional(e)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(t)}),"Please specify a valid postal code."),t.validator.addMethod("postcodeUK",(function(t,e){return this.optional(e)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(t)}),"Please specify a valid UK postcode."),t.validator.addMethod("require_from_group",(function(e,i,r){var n=t(r[1],i.form),o=n.eq(0),s=o.data("valid_req_grp")?o.data("valid_req_grp"):t.extend({},this),a=n.filter((function(){return s.elementValue(this)})).length>=r[0];return o.data("valid_req_grp",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each((function(){s.element(this)})),n.data("being_validated",!1)),a}),t.validator.format("Please fill at least {0} of these fields.")),t.validator.addMethod("skip_or_fill_minimum",(function(e,i,r){var n=t(r[1],i.form),o=n.eq(0),s=o.data("valid_skip")?o.data("valid_skip"):t.extend({},this),a=n.filter((function(){return s.elementValue(this)})).length,h=0===a||a>=r[0];return o.data("valid_skip",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each((function(){s.element(this)})),n.data("being_validated",!1)),h}),t.validator.format("Please either skip these fields or fill at least {0} of them.")),t.validator.addMethod("stateUS",(function(t,e,i){var r,n=void 0===i,o=!n&&void 0!==i.caseSensitive&&i.caseSensitive,s=!n&&void 0!==i.includeTerritories&&i.includeTerritories,a=!n&&void 0!==i.includeMilitary&&i.includeMilitary;return r=s||a?s&&a?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":s?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",r=o?new RegExp(r):new RegExp(r,"i"),this.optional(e)||r.test(t)}),"Please specify a valid state."),t.validator.addMethod("strippedminlength",(function(e,i,r){return t(e).text().length>=r}),t.validator.format("Please enter at least {0} characters.")),t.validator.addMethod("time",(function(t,e){return this.optional(e)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(t)}),"Please enter a valid time, between 00:00 and 23:59."),t.validator.addMethod("time12h",(function(t,e){return this.optional(e)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(t)}),"Please enter a valid time in 12-hour am/pm format."),t.validator.addMethod("url2",(function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?)|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff])|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62}\.)))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)}),t.validator.messages.url),t.validator.addMethod("vinUS",(function(t){if(17!==t.length)return!1;var e,i,r,n,o,s=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],a=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],h=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],u=0;for(e=0;e<17;e++)n=h[e],r=t.slice(e,e+1),isNaN(r)?(r=r.toUpperCase(),i=a[s.indexOf(r)]):i=parseInt(r,10),8===e&&(o=i,"X"===r&&(o=10)),u+=i*n;return u%11===o}),"The specified vehicle identification number (VIN) is invalid."),t.validator.addMethod("zipcodeUS",(function(t,e){return this.optional(e)||/^\d{5}(-\d{4})?$/.test(t)}),"The specified US ZIP Code is invalid."),t.validator.addMethod("ziprange",(function(t,e){return this.optional(e)||/^90[2-5]\d\{2\}-\d{4}$/.test(t)}),"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx."),t})?r.apply(e,i):r)&&(t.exports=e)},,,,function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return n}));var r=i(0),n=function(){t.validator.addMethod("pan",(function(t,e){var i=new RegExp("^[A-Za-z]{5}\\d{4}[A-Za-z]{1}$");return this.optional(e)||i.test(t)}),"Invalid PAN number"),t.validator.addMethod("email",(function(t,e){return this.optional(e)||/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)}),"Please enter a valid Email"),t.validator.addMethod("mobile",(function(t,e){var i=new RegExp("^(\\+91-|\\+91|0)?[6789]\\d{9}$");return this.optional(e)||i.test(t)}),"Invalid mobile number"),t.validator.addMethod("gst",(function(t,e){var i=new RegExp("^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$");return this.optional(e)||i.test(t)}),"Invalid GST number"),t.validator.addMethod("dd-mm-yyyy",(function(t){return!!new RegExp(/\b\d{2}-\d{2}-\d{4}\b/).test(t)&&(t=t.split("-"),t=new Date("".concat(t[2],"-").concat(t[1],"-").concat(t[0])),"[object Date]"===Object.prototype.toString.call(t))&&!isNaN(t.getTime())}),"Invalid date or format (DD-MM-YYYY)"),t.validator.addMethod("lettersonly",(function(t,e){return this.optional(e)||/^[a-zA-Z\s]+$/i.test(t)})),t.validator.addMethod("alphaNumeric",(function(t,e){var i=new RegExp("^[a-zA-Z][a-zA-Z0-9 ]*$");return this.optional(e)||i.test(t)})),t.validator.addMethod("numbers",(function(t,e){var i=new RegExp("^[1-9][0-9,]*$");return this.optional(e)||i.test(t)}),"Invalid input (numbers only)"),t.validator.addMethod("maxFileSize",(function(e,i,r){var n=!0;return t(i.files).each((function(t){if(i.files[t].size>=r)return n=!1})),this.optional(i)||n}),"File size must be less than {0} B"),t.validator.addMethod("validateDate",(function(t,e){return this.optional(e)||/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/.test(t)})),t.validator.addMethod("validDateFormat",(function(t,e){return this.optional(e)||/^(0?[1-9]|1[0-2])\/(0?[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$/.test(t)})),t.validator.addMethod("validateMob",(function(t,e){return this.optional(e)||/^[6-9][0-9]{9}$/.test(t)})),t.validator.addMethod("validateEmail",(function(t,e){var i,r=t.toLowerCase();return r.includes(".co.in")||r.includes(".co.uk")?(i=new RegExp("^[a-zA-Z0-9._-]+@[a-zA-Z0-9]+.(.co.in|.co.uk)$"),this.optional(e)||i.test(r)):(i=["co","com","in","org","net","uk","cc"].join("|"),r=new RegExp("^[a-zA-Z0-9._-]+@[a-zA-Z0-9]+.("+i+")$"),this.optional(e)||r.test(t.toLowerCase()))})),t.validator.addMethod("PANnumber",(function(t,e){return this.optional(e)||/^[A-Za-z]{5}[0-9]{4}[A-Za-z]{1}$/.test(t)})),t.validator.addMethod("decimals",(function(t,e){var i=new RegExp("^[0-9]*(.[0-9])?$");return!(60<Number(t))&&(this.optional(e)||i.test(t))})),t.validator.addMethod("strongpassword",(function(t,e){return this.optional(e)||/^(?=.*[a-z]){3,}(?=.*[A-Z]){1,}(?=.*[0-9]){2,}(?=.*[!@#$%^&*()--__+.]){1,}.{8,}$/.test(t)})),t('input[type="tel"]').on("focus",(function(){t(this).data("pre-val",this.value)})).on("keypress",(function(t){return!(31<(t=t.which||t.keyCode)&&(t<48||57<t))})).on("input",(function(e){var i=this.value.substr(-1);if(!/^[0-9]+$/.test(i)&&""!=this.value)return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t("body").on("focus","[data-type='text-only']",(function(){t(this).data("pre-val",this.value)})).on("keypress","[data-type='text-only']",(function(t){return 64<(t=t.which||t.keyCode)&&t<91||96<t&&t<123||8==t||32==t})).on("input","[data-type='text-only']",(function(e){var i=this.value;if(!/^[a-zA-Z\s]*$/.test(i))return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t("body").on("focus","[data-type='text-and-number-only']",(function(){t(this).data("pre-val",this.value)})).on("keypress","[data-type='text-and-number-only']",(function(t){return 64<(t=t.which||t.keyCode)&&t<91||96<t&&t<123||8==t||32==t||48<=t&&t<=57})).on("input","[data-type='text-and-number-only']",(function(e){var i=this.value;if(!/^[a-zA-Z0-9\s]*$/.test(i))return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t('[data-type="text-and-number-only-without-space"]').on("focus",(function(){t(this).data("pre-val",this.value)})).on("keypress",(function(t){return 64<(t=t.which||t.keyCode)&&t<91||96<t&&t<123||8==t||32==t||48<=t&&t<=57})).on("input",(function(e){var i=this.value;if(!/^[a-zA-Z0-9]*$/.test(i))return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t("#investorPAN").keyup((function(){var e=(e=t(this).val()).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>₹•√π÷×¶∆£€$¢°©®™\{\}\[\]\\\/]/gi,"");t(this).val(e)})),t("body").on("focus","[data-type='number-only']",(function(){t(this).data("pre-val",this.value)})).on("keypress","[data-type='number-only']",(function(t){return 8==(t=t.which||t.keyCode)||48<=t&&t<=57})).on("input","[data-type='number-only']",(function(e){var i=this.value.substr(-1);if(!/^[0-9]+$/.test(i)&&""!=this.value)return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t('input[key="nameText"]').on("keypress",(function(t){var e=t.currentTarget.selectionStart;if(32===t.which&&0==e)return t.preventDefault(),!1})),t('input[key="dont-start-with-zero"]').on("keyup",(function(e){if(e.preventDefault(),!/^[1-9][0-9]*$/.test(this.value.replace(/,/g,"")))return t(this).val(""),t(this).valid(),!1})),t("#investorQuery,#contactFeedback,#comQuery").on("keypress",(function(t){var e=t.currentTarget.selectionStart;if(32===t.which&&0==e)return t.preventDefault(),!1})),t("input[type='text']").keyup((function(){""==t.trim(t(this).val())&&t(this).val(t.trim(t(this).val()))})),t('input[autocapitalize="lowercase"]').on("change",(function(e){var i=t(this).val().toLowerCase();t(this).val(i)})),t("input[maxlength]").on("input",(function(e){var i=t(this).attr("maxlength"),r=t(this).val();r.length>i&&t(this).val(r.slice(0,i))})),t.validator.addMethod("passport",(function(t,e){var i=new RegExp("^([A-Za-z]{1})[0-9]{7}$");return this.optional(e)||i.test(t)}),"Invalid Passport Number"),t.validator.addMethod("voterID",(function(t,e){var i=new RegExp("^([A-Za-z]{3})[0-9]{7}$");return this.optional(e)||i.test(t)}),"Invalid voter ID"),t.validator.addMethod("licence",(function(t,e){return this.optional(e)||/^([A-Z]{2})(\d{2}|\d{3})[a-zA-Z]{0,1}(\d{4})(\d{7})$/.test(t)}),"Invalid Driving Licence"),t.validator.addMethod("aadhar",(function(t,e){var i=new RegExp("^[0-9]{4,12}$");return this.optional(e)||i.test(t)}),"Invalid Aadhar Number"),t.validator.addMethod("NREGAJobCard",(function(t,e){var i=new RegExp("^([a-zA-Z0-9_-]){0,20}$");return this.optional(e)||i.test(t)}),"Invalid NREGA Job Card Number"),t.validator.addMethod("NPRLetter",(function(t,e){var i=new RegExp("^([a-zA-Z0-9_-]){0,20}$");return this.optional(e)||i.test(t)}),"Invalid National Population Register Letter"),t.validator.addMethod("EKYCAuth",(function(t,e){var i=new RegExp("^([a-zA-Z0-9_-]){0,20}$");return this.optional(e)||i.test(t)}),"Invalid E-KYC Authentication"),t.validator.addMethod("CKYCAuth",(function(t,e){var i=new RegExp("^[0-9]{14}$");return this.optional(e)||i.test(t)}),"Invalid CKYC Number"),t.validator.addMethod("CKYCIdentifier",(function(t,e){var i=new RegExp("^([a-zA-Z0-9_-]){0,20}$");return this.optional(e)||i.test(t)}),"Invalid CKYC Identifier"),t.validator.addMethod("Landline",(function(t,e){var i=new RegExp("^[0-9]d{2,4}-d{6,8}$");return this.optional(e)||i.test(t)}),"Invalid Landline Number"),t.validator.addMethod("Ration",(function(t,e){var i=new RegExp("^([a-zA-Z0-9]){8,12}s*");return this.optional(e)||i.test(t)}),"Invalid Ration Number"),t.validator.addMethod("regNumber",(function(t,e){return this.optional(e)||/^[A-Za-z]{2}[0-9]{1,2}(?:[A-Za-z])?(?:[A-Za-z]*)?[0-9]{4}$/.test(t)}),"Invalid Registration Number"),t.validator.addMethod("enginNumber",(function(t,e){for(var i=t.slice(-5),r=i.slice(-1),n="",o=1;o<=i.length;o++)n+=r;return i!==n}),"Invalid Engine Number"),t.validator.addMethod("chasisNumber",(function(t,e){for(var i=t.slice(-5),r=i.slice(-1),n="",o=1;o<=i.length;o++)n+=r;return i!==n}),"Invalid Chasis Number"),t.validator.addMethod("AidRegNumber",(function(t,e){return"BH"==t.substring(2,4).toUpperCase()?2==t.substring(0,1)&&(this.optional(e)||/^[0-9]{1,2}[A-Za-z]{2}[0-9]{4}[A-Za-z]{1,2}$/.test(t)):this.optional(e)||/^[A-Za-z]{2}[0-9]{1,2}(?:[A-Za-z])?(?:[A-Za-z]*)?[0-9]{4}$/.test(t)})),t.validator.addMethod("greaterThanDate",(function(e,i,r){var n=e.split("/"),o=t(r).val().split("/");n=n[1]+"/"+n[0]+"/"+n[2],o=o[1]+"/"+o[0]+"/"+o[2];return/Invalid|NaN/.test(new Date(n))?isNaN(e)&&isNaN(t(r).val())||Number(e)>Number(t(r).val()):new Date(n)>new Date(o)}),"Must be greater than {0}."),t.validator.addMethod("DenyFutureDate",(function(t,e){t=t.split("/");var i=Object(r.currentDate)().split("/");return!(Object(r.dateDifference)("".concat(i[2],"-").concat(i[1],"-").concat(i[0]),"".concat(t[2],"-").concat(t[1],"-").concat(t[0]))<0)}),"Policy Expired"),t.validator.addMethod("age18plus",(function(t,e){t=t.split("/");var i=parseInt(t[0]),r=parseInt(t[1]);t=parseInt(t[2]);return new Date(t+18,r-1,i)<=new Date}),"DOB should be above 18"),t.validator.addMethod("age120less",(function(t,e){return!(120<parseInt(t))}),"Nominee age should be below 120"),t.validator.addMethod("age18plusNum",(function(t,e){return!(parseInt(t)<18)}),"Nominee age should be above 18"),t.validator.addMethod("lessThanOrEqualNum",(function(t,e,i){return(t=parseInt(t))<=parseInt(i)}),"Must be less than eqaual to {0}."),t.validator.addMethod("maxlengthFullName",(function(t,e){return""==(t=t.replace(/\s/g,""))||50!=t.length}),"Maximum character length exceeds"),t.validator.addMethod("motorNumber",(function(t,e){for(var i=t.slice(-5),r=i.slice(-1),n="",o=1;o<=i.length;o++)n+=r;return i!==n}),"Invalid Chasis Number"),t('[data-type="text-and-number-only-without-space-with-special-characters"]').on("focus",(function(){t(this).data("pre-val",this.value)})).on("keypress",(function(t){return 64<(t=t.which||t.keyCode)&&t<91||96<t&&t<123||8==t||32==t||48<=t&&t<=57||95==t||45<=t&&t<=47})).on("input",(function(e){var i=this.value;if(!/^[a-zA-Z0-9_./-]*$/.test(i))return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)})),t('[data-type="number-only-without-space-with-special-characters"]').on("focus",(function(){t(this).data("pre-val",this.value)})).on("keypress",(function(t){return 45==(t=t.which||t.keyCode)||48<=t&&t<=57})).on("input",(function(e){var i=this.value;if(!/^[0-9-]*$/.test(i))return e.preventDefault(),t(this).val(t(this).data("pre-val")),!1;t(this).data("pre-val",this.value)}))}}).call(this,i(8))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return n}));var r=i(0),n=function(){t("#motor_downloadform").validate({rules:{policyno:{required:!0},inputtype:{required:!0},regno:{required:!0}},messages:{policyno:{required:"Policy number required"},inputtype:{required:"Please select any"},regno:{required:"Registration number required",regNumber:"Invalid Registration Number",engineNo:"Invalid Engine Number",chassisNo:"Invalid Chansis Number"}}}),t("#inputtype").on("change",(function(){Object(r.rulesMaker)("input[name=regno]",t("#inputtype :selected").val(),4),t("label[for=regno]").text(t("#inputtype :selected").text()),t("#regno").attr("placeholder",t("#inputtype :selected").text())})),t("#btn-motorpolicy").on("click",(function(e){var i,n,o,s,a,h;e.preventDefault(),t("#motor_downloadform").valid()&&(e={policyNumber:t("#policyno").val(),regNo:"",engineNo:"",chassisNo:"",action:"get_motor_policy_url"},i=t("#inputtype").val(),n=t("#regno").val(),"regNo"===i&&(o=null!=(n=t("#regno").val().match(/[^\d]+|\d+/g))[0]?n[0]:"",s=null!=n[1]?n[1]:"",a=null!=n[2]?n[2]:"",h=null!=n[3]?n[3]:"",n="".concat(o," ").concat(s," ").concat(a," ").concat(h)),e[i]=n,Object(r.ajaxCall)("/ajax/webData","POST",e,(function(e){"success"==e.status&&e.data&&"success"==e.data.status?(t(".downloadPolicy").hide(),t(".download-file").show(),t(".downloadpolicyname").html("Policy Document"),t("a.downloadpolicyurl").attr("href",e.data.data.polUrl)):(t(".downloadPolicy").hide(),t(".download-file").show(),t(".pdf-file").hide(),t(".downloadhead").hide(),t(".downloadpolicyname").html("No Record found!!"))})))})),t("#btn-nonmotorpolicy").on("click",(function(e){e.preventDefault(),t("#non_motor_downloadform").validate({rules:{policyno2:{required:!0},prodtype:{required:!0},mobileno:{required:!0}},messages:{policyno2:{required:"Policy number required"},prodtype:{required:"Product type required"},mobileno:{required:"Mobile number required"}}}),t("#non_motor_downloadform").valid()&&(e={policyNumber:t("#policyno2").val(),prodCode:t("#prodtype").val(),mobileNo:t("#mobileno").val(),action:"get_non_motor_policy_url"},Object(r.ajaxCall)("/ajax/webData","POST",e,(function(e){"success"==e.status&&e.data&&"success"==e.data.status?(t(".downloadPolicy").hide(),t(".download-file").show(),t(".downloadpolicyname").html("Policy Document"),t("a.downloadpolicyurl").attr("href",e.data.data.polUrl)):(t(".downloadPolicy").hide(),t(".download-file").show(),t(".pdf-file").hide(),t(".downloadhead").hide(),t(".downloadpolicyname").html("No Record found!!"))})))})),t("body").on("click",".toggle",(function(e){t(".toggle").hasClass("active")?t(".sidebar-contact, .sidebar-contact-mob, .sidebar_contact_mob_layer").addClass("is_active"):t(".sidebar-contact, .sidebar-contact-mob, .sidebar_contact_mob_layer").removeClass("is_active"),t(".sidebar-contact, .sidebar-contact-mob, .sidebar_contact_mob_layer").toggleClass("is_active"),t(".toggle").toggleClass("is_active"),t(window).innerWidth()<=1199?t(".sidebar_contact_mob").hasClass("is_active")&&t("body").css("overflow","hidden"):t("body").css("overflow","auto")})),t("body").on("click",".close-btn",(function(e){t(".sidebar-contact, .sidebar-contact-mob, .sidebar_contact_mob_layer").removeClass("is_active")})),t("body").on("click","#btn-policyTryAgain",(function(e){t(".download-file").hide(),t(".downloadPolicy").show(),t(".downloadPolicy").find("input").val(""),t(".downloadPolicy").find("select").prop("selectedIndex",0)})),t(document).ready((function(){t("#regno").keyup((function(){t(this).val(t(this).val().toUpperCase())}))}))}}).call(this,i(8))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i(109),i(220),e=i(224),i=i(330),Object(e.a)(),Object(i.a)()}]);