diff --git a/asset-manifest.json b/asset-manifest.json index 2e4289c..0fac7b0 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "./static/css/main.7cce3fe3.chunk.css", - "main.js": "./static/js/main.22515e01.chunk.js", - "main.js.map": "./static/js/main.22515e01.chunk.js.map", - "runtime-main.js": "./static/js/runtime-main.747d0671.js", - "runtime-main.js.map": "./static/js/runtime-main.747d0671.js.map", + "main.js": "./static/js/main.1189ac8e.chunk.js", + "main.js.map": "./static/js/main.1189ac8e.chunk.js.map", + "runtime-main.js": "./static/js/runtime-main.59b45838.js", + "runtime-main.js.map": "./static/js/runtime-main.59b45838.js.map", "static/css/2.bfcb563f.chunk.css": "./static/css/2.bfcb563f.chunk.css", - "static/js/2.a733fd21.chunk.js": "./static/js/2.a733fd21.chunk.js", - "static/js/2.a733fd21.chunk.js.map": "./static/js/2.a733fd21.chunk.js.map", - "static/js/3.72de51db.chunk.js": "./static/js/3.72de51db.chunk.js", - "static/js/3.72de51db.chunk.js.map": "./static/js/3.72de51db.chunk.js.map", + "static/js/2.5f236600.chunk.js": "./static/js/2.5f236600.chunk.js", + "static/js/2.5f236600.chunk.js.map": "./static/js/2.5f236600.chunk.js.map", + "static/js/3.359e17bd.chunk.js": "./static/js/3.359e17bd.chunk.js", + "static/js/3.359e17bd.chunk.js.map": "./static/js/3.359e17bd.chunk.js.map", "static/js/4.e720529f.chunk.js": "./static/js/4.e720529f.chunk.js", "static/js/4.e720529f.chunk.js.map": "./static/js/4.e720529f.chunk.js.map", "static/js/5.6313d282.chunk.js": "./static/js/5.6313d282.chunk.js", @@ -19,8 +19,8 @@ "index.html": "./index.html", "static/css/2.bfcb563f.chunk.css.map": "./static/css/2.bfcb563f.chunk.css.map", "static/css/main.7cce3fe3.chunk.css.map": "./static/css/main.7cce3fe3.chunk.css.map", - "static/js/2.a733fd21.chunk.js.LICENSE.txt": "./static/js/2.a733fd21.chunk.js.LICENSE.txt", - "static/js/3.72de51db.chunk.js.LICENSE.txt": "./static/js/3.72de51db.chunk.js.LICENSE.txt", + "static/js/2.5f236600.chunk.js.LICENSE.txt": "./static/js/2.5f236600.chunk.js.LICENSE.txt", + "static/js/3.359e17bd.chunk.js.LICENSE.txt": "./static/js/3.359e17bd.chunk.js.LICENSE.txt", "static/js/4.e720529f.chunk.js.LICENSE.txt": "./static/js/4.e720529f.chunk.js.LICENSE.txt", "static/js/5.6313d282.chunk.js.LICENSE.txt": "./static/js/5.6313d282.chunk.js.LICENSE.txt", "static/js/6.90ddfc00.chunk.js.LICENSE.txt": "./static/js/6.90ddfc00.chunk.js.LICENSE.txt", @@ -29,10 +29,10 @@ "static/media/wikitree.7bffea31.png": "./static/media/wikitree.7bffea31.png" }, "entrypoints": [ - "static/js/runtime-main.747d0671.js", + "static/js/runtime-main.59b45838.js", "static/css/2.bfcb563f.chunk.css", - "static/js/2.a733fd21.chunk.js", + "static/js/2.5f236600.chunk.js", "static/css/main.7cce3fe3.chunk.css", - "static/js/main.22515e01.chunk.js" + "static/js/main.1189ac8e.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index a7ce642..b692fc6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Topola Genealogy Viewer
\ No newline at end of file +Topola Genealogy Viewer
\ No newline at end of file diff --git a/static/js/2.5f236600.chunk.js b/static/js/2.5f236600.chunk.js new file mode 100644 index 0000000..3c91bf4 --- /dev/null +++ b/static/js/2.5f236600.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.5f236600.chunk.js.LICENSE.txt */ +(this["webpackJsonptopola-viewer"]=this["webpackJsonptopola-viewer"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(432)},function(t,e,n){"use strict";t.exports=n(448)},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__spreadArray",(function(){return b})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return w})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return M})),n.d(e,"__makeTemplateObject",(function(){return O})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return k})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return j}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&h(e,t,n);return E(e,t),e}function k(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(215);var i=n(96),o=n(216);function a(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||Object(i.a)(t,e)||Object(o.a)()}},function(t,e,n){"use strict";e.a=function(t){return null==t}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},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){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=k(t),r=n.length>0?n[0]:"",o=x("%"+r+"%",e),s=o.name,l=o.value,c=!1,f=o.alias;f&&(r=f[0],_(n,w([0,1],f)));for(var h=1,d=!0;h=n.length){var b=u(l,p);l=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[p]}else d=y(l,p),l=l[p];d&&!c&&(m[s]=l)}}return l}},function(t,e,n){"use strict";for(var r=function(t){return null!==t&&!Array.isArray(t)&&"object"===typeof t},i={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},o=0;o<24;o+=1)i[112+o]="F"+(o+1);for(var a=0;a<26;a+=1){var s=a+65;i[s]=[String.fromCharCode(s+32),String.fromCharCode(s)]}var u={codes:i,getCode:function(t){return r(t)?t.keyCode||t.which||this[t.key]:this[t]},getKey:function(t){var e=r(t);if(e&&t.key)return t.key;var n=i[e?t.keyCode||t.which:t];return Array.isArray(n)&&(n=e?n[t.shiftKey?1:0]:n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};u.Spacebar=u[" "],u.Digit0=u[0],u.Digit1=u[1],u.Digit2=u[2],u.Digit3=u[3],u.Digit4=u[4],u.Digit5=u[5],u.Digit6=u[6],u.Digit7=u[7],u.Digit8=u[8],u.Digit9=u[9],u.Tilde=u["~"],u.GraveAccent=u["`"],u.ExclamationPoint=u["!"],u.AtSign=u["@"],u.PoundSign=u["#"],u.PercentSign=u["%"],u.Caret=u["^"],u.Ampersand=u["&"],u.PlusSign=u["+"],u.MinusSign=u["-"],u.EqualsSign=u["="],u.DivisionSign=u["/"],u.MultiplicationSign=u["*"],u.Comma=u[","],u.Decimal=u["."],u.Colon=u[":"],u.Semicolon=u[";"],u.Pipe=u["|"],u.BackSlash=u["\\"],u.QuestionMark=u["?"],u.SingleQuote=u["'"],u.DoubleQuote=u['"'],u.LeftCurlyBrace=u["{"],u.RightCurlyBrace=u["}"],u.LeftParenthesis=u["("],u.RightParenthesis=u[")"],u.LeftAngleBracket=u["<"],u.RightAngleBracket=u[">"],u.LeftSquareBracket=u["["],u.RightSquareBracket=u["]"],t.exports=u},function(t,e,n){"use strict";(function(t){var r=n(529),i=n(530),o=n(531);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){var o,a=1,s=t.length,u=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;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=x)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function R(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function L(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||L(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||L(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=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),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function H(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(50))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(181);var i=n(217),o=n(96);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(t,e,n){"use strict";var r=n(220),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){"use strict";var r=n(102),i=n(54),o=n(67),a=n(41);var s=function(t,e){var n=-1,r=Object(a.a)(t)?Array(t.length):[];return Object(o.a)(t,(function(t,i,o){r[++n]=e(t,i,o)})),r},u=n(17);e.a=function(t,e){return(Object(u.a)(t)?r.a:s)(t,Object(i.a)(e,3))}},,function(t,e,n){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),n(508),i(n(256),e),i(n(170),e),i(n(116),e),i(n(509),e),i(n(196),e),i(n(315),e),i(n(316),e),i(n(510),e),i(n(198),e),i(n(511),e),i(n(512),e),i(n(513),e),i(n(514),e),i(n(518),e),i(n(519),e),i(n(520),e)},,function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f1)for(var n=1;n0})).join("&")},e.parseUrl=function(t,e){e=Object.assign({decode:!0},e);var n=u(t,"#"),i=r(n,2),o=i[0],a=i[1];return Object.assign({url:o.split("?")[0]||"",query:g(m(t),e)},e&&e.parseFragmentIdentifier&&a?{fragmentIdentifier:h(a,e)}:{})},e.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var r=p(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),a=Object.assign(o,t.query),s=e.stringify(a,n);s&&(s="?".concat(s));var u=function(t){var e="",n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(u="#".concat(f(t.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)},e.pick=function(t,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var i=e.parseUrl(t,r),o=i.url,a=i.query,s=i.fragmentIdentifier;return e.stringifyUrl({url:o,query:l(a,n),fragmentIdentifier:s},r)},e.exclude=function(t,n,r){var i=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,e){return!n(t,e)};return e.pick(t,i,r)}},function(t,e,n){"use strict";var r=n(103);e.a=function(t,e,n){var i=null==t?void 0:Object(r.a)(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return p}));var r=n(10),i=n(684),o=n(165),a=n.n(o),s=n(21);function u(t,e,n){return void 0===n&&(n={}),e.reduce((function(e,r){return r in t?e[r]=t[r]:r in n&&(e[r]=n[r]),e}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(t){0}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function f(t){return{create:function(){return{has:function(e){return e in t},get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var h=a.a||o;function d(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames,a=h((function(){for(var t,e=[],n=0;n-1:!!u&&Object(r.a)(t,e,n)>-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(119),i=n(58),o=n(93),a=function(){function t(){}return t.isString=function(t){return"string"==typeof t||t instanceof String},t.forceString=function(e,n,r){if(void 0===n&&(n=""),void 0===r&&(r="must be a string"),!t.isString(e))throw new Error(n+" "+r)},t.isUrl=function(e){var n=!1;return!t.isEmpty(e)&&t.isString(e)&&(n=!!(e.length<2083&&new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(e))),n},t.isEmpty=function(e,n){if(void 0===n&&(n=[]),!t.isString(e)){if(null==e||""==e)return!0;throw new Error("value is not a string")}return""===t.replace(e,n.concat([" ","\n","\r","\t"]),"")},t.forceNonEmptyString=function(e,n,r){if(void 0===n&&(n=""),void 0===r&&(r="must be a non empty string"),!t.isString(e)||t.isEmpty(e))throw new Error(n+" "+r)},t.isCamelCase=function(){},t.isSnakeCase=function(){},t.replace=function(e,n,o,a){if(void 0===a&&(a=-1),!t.isString(e))throw new Error("string is not valid");if(!t.isString(n)&&!i.ArrayUtils.isArray(n))throw new Error("search is not a string or array");if(!t.isString(o)&&!i.ArrayUtils.isArray(o))throw new Error("replacement is not a string or array");if(!r.NumericUtils.isInteger(a)||0===a)throw new Error("count must be a positive integer");var s=e,u=t.isString(n)?[String(n)]:n,l=t.isString(o)?[String(o)]:o;if(l.length>1&&u.length!==l.length)throw new Error("search and replacement arrays must have the same length");for(var c=0;cn?i.substring(0,n):e.substring(0,n-i.length)+i:""},t.getDomainFromUrl=function(e){var n=t.getHostNameFromUrl(e);return(n=n.split(".")).length>2&&n.shift(),n.join(".")},t.getHostNameFromUrl=function(e){if(t.isEmpty(e)||!t.isUrl(e))return"";var n=document.createElement("a");n.href=e;var r=(n.host.match(/\./g)||[]).length;return r<=0||r>2?"":n.host},t.getLines=function(e,n){void 0===n&&(n=[/\s+/g]);var r=[];if(!t.isString(e))return r;for(var i=e.split(/\r?\n|\n|\r/),o=0;oi.length||n<-1)return"";for(var o=[],a=i.length-n;a=r.length||n<-r.length)throw new Error("Invalid position specified");return n<0?r[r.length+n]:r[n]},t.getPathElementWithoutExt=function(e,n,r){void 0===n&&(n=-1),void 0===r&&(r=".");var i=t.getPathElement(e,n);return i.indexOf(r)>=0&&(i=i.substr(0,i.lastIndexOf(r))),i},t.getPathExtension=function(e,n,r){void 0===n&&(n=-1),void 0===r&&(r=".");var i=t.getPathElement(e,n);return i.indexOf(r)<0?"":i.substr(i.lastIndexOf(r)+1)},t.getSchemeFromUrl=function(e){if(null==e||void 0==e)return"";if(!t.isString(e))throw new Error("Specified value must be a string");if(!t.isUrl(e))return"";var n=e.split("://");return 2===n.length?n[0]:""},t.formatCase=function(e,n){if(!t.isString(e))throw new Error("value is not a string");if(t.isEmpty(e))return e;if(n===t.FORMAT_START_CASE)return e.split(" ").map((function(t){return(t.length>0?t[0].toUpperCase():"")+(t.length>1?t.substr(1).toLowerCase():"")})).join(" ");if(n===t.FORMAT_ALL_UPPER_CASE)return e.toUpperCase();if(n===t.FORMAT_ALL_LOWER_CASE)return e.toLowerCase();if(n===t.FORMAT_FIRST_UPPER_REST_LOWER)return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();if(n.indexOf("CAMEL_CASE")>0){var r=t.removeAccents(e).replace(/[^a-z0-9]+/gi," ").trim().split(" ");if(r.length>1)for(var i=1;i=0;)e=e.replace(n+n,n);return e.length>1&&e.substr(e.length-1)===n&&(e=e.substr(0,e.length-1)),e},t.formatUrl=function(e){if(""==e)return"";if(!t.isString(e))throw new Error("url must be a string");if(t.isEmpty(e))return e;for(e=(e=(e=(e=e.trim()).replace(/\//g,"/")).replace(/\\/g,"/")).replace(/\:\/\//g,"@@@");e.indexOf("//")>=0;)e=e.replace("//","/");return e=e.replace(/@@@/g,"://"),""===this.getSchemeFromUrl(e)&&t.isUrl("http://"+e)?"http://"+e:e},t.formatForFullTextSearch=function(){},t.compareByLevenshtein=function(e,n){if(!t.isString(e)||!t.isString(n))throw new Error("string1 and string2 must be strings");var r=e.length,i=n.length;if(r=0?a+="0123456789".substring("0123456789".indexOf(c),"0123456789".indexOf(f)+1):"abcdefghijkmnopqrstuvwxyz".indexOf(c)>=0?a+="abcdefghijkmnopqrstuvwxyz".substring("abcdefghijkmnopqrstuvwxyz".indexOf(c),"abcdefghijkmnopqrstuvwxyz".indexOf(f)+1):"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(c)>=0&&(a+="ABCDEFGHIJKMNOPQRSTUVWXYZ".substring("ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(c),"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(f)+1)):a+=t.replace(l,"\\-","-")}for(var h="",d=e===n?n:r.NumericUtils.generateRandomInteger(e,n),p=0;p=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){var r,i;!function(){var o,a=function t(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};a.version="2.3.9",(a.utils={}).warn=(o=this,function(t){o.console&&console.warn&&console.warn(t)}),a.utils.asString=function(t){return void 0===t||null===t?"":t.toString()},a.utils.clone=function(t){if(null===t||void 0===t)return t;for(var e=Object.create(null),n=Object.keys(t),r=0;r0){var l=a.utils.clone(e)||{};l.position=[s,u],l.index=i.length,i.push(new a.Token(n.slice(s,o),l))}s=o+1}}return i}).separator=/[\s\-]+/,(a.Pipeline=function(){this._stack=[]}).registeredFunctions=Object.create(null),a.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&a.utils.warn("Overwriting existing registered function: "+e),t.label=e,a.Pipeline.registeredFunctions[t.label]=t},a.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||a.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},a.Pipeline.load=function(t){var e=new a.Pipeline;return t.forEach((function(t){var n=a.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},a.Pipeline.prototype.add=function(){var t=Array.prototype.slice.call(arguments);t.forEach((function(t){a.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},a.Pipeline.prototype.after=function(t,e){a.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},a.Pipeline.prototype.before=function(t,e){a.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},a.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},a.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n1&&(ot&&(n=i),o!=t);)r=n-e,i=e+Math.floor(r/2),o=this.elements[2*i];return o==t||o>t?2*i:os?l+=2:a==s&&(e+=n[u+1]*r[l+1],u+=2,l+=2);return e},a.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},a.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e0){var o,s=i.str.charAt(0);s in i.node.edges?o=i.node.edges[s]:(o=new a.TokenSet,i.node.edges[s]=o),1==i.str.length&&(o.final=!0),r.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new a.TokenSet;i.node.edges["*"]=u}if(0==i.str.length&&(u.final=!0),r.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new a.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,f=i.str.charAt(0),h=i.str.charAt(1);h in i.node.edges?c=i.node.edges[h]:(c=new a.TokenSet,i.node.edges[h]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:f+i.str.slice(2)})}}}return n},a.TokenSet.fromString=function(t){for(var e=new a.TokenSet,n=e,r=0,i=t.length;r=t;e--){var n=this.uncheckedNodes[e],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},(a.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline}).prototype.search=function(t){return this.query((function(e){new a.QueryParser(t,e).parse()}))},a.Index.prototype.query=function(t){for(var e=new a.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),o=Object.create(null),s=Object.create(null),u=0;u1?1:t},a.Builder.prototype.k1=function(t){this._k1=t},a.Builder.prototype.add=function(t,e){var n=t[this._ref],r=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var i=0;i=this.length)return a.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},a.QueryLexer.prototype.width=function(){return this.pos-this.start},a.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},a.QueryLexer.prototype.backup=function(){this.pos-=1},a.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=a.QueryLexer.EOS&&this.backup()},a.QueryLexer.prototype.more=function(){return this.pos1&&(t.backup(),t.emit(a.QueryLexer.TERM)),t.ignore(),t.more())return a.QueryLexer.lexText},a.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(a.QueryLexer.EDIT_DISTANCE),a.QueryLexer.lexText},a.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(a.QueryLexer.BOOST),a.QueryLexer.lexText},a.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(a.QueryLexer.TERM)},a.QueryLexer.termSeparator=a.tokenizer.separator,a.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==a.QueryLexer.EOS)return a.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return a.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(a.QueryLexer.TERM),a.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(a.QueryLexer.TERM),a.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(a.QueryLexer.PRESENCE),a.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(a.QueryLexer.PRESENCE),a.QueryLexer.lexText;if(e.match(a.QueryLexer.termSeparator))return a.QueryLexer.lexTerm}else t.escapeCharacter()}},(a.QueryParser=function(t,e){this.lexer=new a.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0}).prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=a.QueryParser.parseClause;t;)t=t(this);return this.query},a.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},a.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},a.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},a.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(void 0!=e)switch(e.type){case a.QueryLexer.PRESENCE:return a.QueryParser.parsePresence;case a.QueryLexer.FIELD:return a.QueryParser.parseField;case a.QueryLexer.TERM:return a.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new a.QueryParseError(n,e.start,e.end)}},a.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(void 0!=e){switch(e.str){case"-":t.currentClause.presence=a.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=a.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new a.QueryParseError(n,e.start,e.end)}var r=t.peekLexeme();if(void 0==r)throw new a.QueryParseError(n="expecting term or field, found nothing",e.start,e.end);switch(r.type){case a.QueryLexer.FIELD:return a.QueryParser.parseField;case a.QueryLexer.TERM:return a.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new a.QueryParseError(n,r.start,r.end)}}},a.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(void 0!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),r="unrecognised field '"+e.str+"', possible fields: "+n;throw new a.QueryParseError(r,e.start,e.end)}t.currentClause.fields=[e.str];var i=t.peekLexeme();if(void 0==i)throw new a.QueryParseError(r="expecting term, found nothing",e.start,e.end);switch(i.type){case a.QueryLexer.TERM:return a.QueryParser.parseTerm;default:r="expecting term, found '"+i.type+"'";throw new a.QueryParseError(r,i.start,i.end)}}},a.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(void 0!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(void 0!=n)switch(n.type){case a.QueryLexer.TERM:return t.nextClause(),a.QueryParser.parseTerm;case a.QueryLexer.FIELD:return t.nextClause(),a.QueryParser.parseField;case a.QueryLexer.EDIT_DISTANCE:return a.QueryParser.parseEditDistance;case a.QueryLexer.BOOST:return a.QueryParser.parseBoost;case a.QueryLexer.PRESENCE:return t.nextClause(),a.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new a.QueryParseError(r,n.start,n.end)}else t.nextClause()}},a.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(void 0!=e){var n=parseInt(e.str,10);if(isNaN(n))throw new a.QueryParseError(i="edit distance must be numeric",e.start,e.end);t.currentClause.editDistance=n;var r=t.peekLexeme();if(void 0!=r)switch(r.type){case a.QueryLexer.TERM:return t.nextClause(),a.QueryParser.parseTerm;case a.QueryLexer.FIELD:return t.nextClause(),a.QueryParser.parseField;case a.QueryLexer.EDIT_DISTANCE:return a.QueryParser.parseEditDistance;case a.QueryLexer.BOOST:return a.QueryParser.parseBoost;case a.QueryLexer.PRESENCE:return t.nextClause(),a.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new a.QueryParseError(i,r.start,r.end)}else t.nextClause()}},a.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(void 0!=e){var n=parseInt(e.str,10);if(isNaN(n))throw new a.QueryParseError(i="boost must be numeric",e.start,e.end);t.currentClause.boost=n;var r=t.peekLexeme();if(void 0!=r)switch(r.type){case a.QueryLexer.TERM:return t.nextClause(),a.QueryParser.parseTerm;case a.QueryLexer.FIELD:return t.nextClause(),a.QueryParser.parseField;case a.QueryLexer.EDIT_DISTANCE:return a.QueryParser.parseEditDistance;case a.QueryLexer.BOOST:return a.QueryParser.parseBoost;case a.QueryLexer.PRESENCE:return t.nextClause(),a.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new a.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(i="function"===typeof(r=function(){return a})?r.call(e,n,e,t):r)||(t.exports=i)}()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";var r=n(29).a.Symbol;e.a=r},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(167),i=n(154);var o=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=n[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a=0||!o&&e[a].toLowerCase().indexOf(n.toLowerCase())>=0))return!0;if(t.isArray(e[a])&&t.isStringFound(e[a],n,o))return!0;if(r.ObjectUtils.isObject(e[a])&&r.ObjectUtils.isStringFound(e[a],n,o))return!0}return!1},t.forceNonEmptyArray=function(t,e,n){if(void 0===e&&(e=""),void 0===n&&(n="must be a non empty array"),!this.isArray(t)||t.length<=0)throw new Error(e+" "+n)},t.removeElement=function(e,n){if(!t.isArray(e))throw new Error("parameter must be an array");var r=[];if(t.isArray(n))for(var i=0;i needs to exist in the component ancestry.")}var u=Object(r.__assign)(Object(r.__assign)({},a.a),{textComponent:i.Fragment});function l(t){return function(e){return t(i.Children.toArray(e))}}function c(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),i=n.length;if(r.length!==i)return!1;for(var o=0;o(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,l=e.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),a=0===(1&u)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==l?u:-u,n[0].push(a),s=0===(1&l)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==u?l:-l,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"===typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(100);e.a=function(t){if("string"==typeof t||Object(r.a)(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},function(t,e,n){"use strict";var r=n(239),i=n(41);var o=function(t,e){return function(n,r){if(null==n)return n;if(!Object(i.a)(n))return t(n,r);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a=0;h--){var d=a[h];"."===d?o(a,h):".."===d?(o(a,h),f++):f&&(o(a,h),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},l=n(61);function c(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function g(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,i):n.push(i),f({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=m(t,e,h(),w.location);c.confirmTransitionTo(i,r,n,(function(t){t&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=w.index+t;return e>=0&&e=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(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 n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u=0,l=e;return u+=(l=l+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,l){var c=0,f=e;return c+=(f=f+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,l){return e+r+o+s+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},function(t,e,n){"use strict";var r=n(65),i=n(222),o=n(159);e.a=function(t,e){return Object(o.a)(Object(i.a)(t,e,r.a),t+"")}},function(t,e,n){"use strict";var r=/^(?:0|[1-9]\d*)$/;e.a=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&te?1:t>=e?0:NaN}var y=n(9),w=n(141);function _(t){return function(){this.removeAttribute(t)}}function M(t){return function(){this.removeAttributeNS(t.space,t.local)}}function O(t,e){return function(){this.setAttribute(t,e)}}function E(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function S(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function k(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var x=n(213);function j(t){return function(){delete this[t]}}function A(t,e){return function(){this[t]=e}}function C(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function T(t){return t.trim().split(/^|\s+/)}function P(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=T(t.getAttribute("class")||"")}function N(t,e){for(var n=P(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function B(){this.textContent=""}function U(t){return function(){this.textContent=t}}function z(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function q(){this.innerHTML=""}function H(t){return function(){this.innerHTML=t}}function Z(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function V(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var K=n(95);function G(){return null}function Q(){var t=this.parentNode;t&&t.removeChild(this)}function Y(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function J(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=k&&(k=S+1);!(E=_[k])&&++k=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=b);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?j:"function"===typeof e?C:A)(t,e)):this.node()[t]},classed:function(t,e){var n=T(t+"");if(arguments.length<2){for(var r=P(this.node()),i=-1,o=n.length;++i=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}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 t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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 d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:c[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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]:this.length>2&&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("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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){var e;e=this.length>t.length?t:this;for(var n=0;nt.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){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.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&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],O=8191&M,E=M>>>13,S=0|a[5],k=8191&S,x=S>>>13,j=0|a[6],A=8191&j,C=j>>>13,T=0|a[7],P=8191&T,I=T>>>13,N=0|a[8],R=8191&N,L=N>>>13,D=0|a[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],Z=8191&H,V=H>>>13,W=0|s[2],K=8191&W,G=W>>>13,Q=0|s[3],Y=8191&Q,$=Q>>>13,X=0|s[4],J=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,V)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,K)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,$)|0;var wt=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,J)|0))<<13)|0;l=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;l=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;l=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Ot=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(h,ut)|0))<<13)|0;l=((o=o+Math.imul(h,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var Et=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ht)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((o=o+Math.imul(h,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,V))+Math.imul(B,Z)|0,o=Math.imul(B,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ht)|0;var kt=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var xt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,$))+Math.imul(B,Y)|0,o=Math.imul(B,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(E,ft)|0,o=o+Math.imul(E,ht)|0;var jt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,tt))+Math.imul(B,J)|0,o=Math.imul(B,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var At=(l+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;l=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(F,nt),i=(i=Math.imul(F,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ht)|0;var Ct=(l+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(B,ot)|0,o=Math.imul(B,at),r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Tt=(l+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(F,ut),i=(i=Math.imul(F,lt))+Math.imul(B,ut)|0,o=Math.imul(B,lt),r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Pt=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(B,ft)|0,o=Math.imul(B,ht);var It=(l+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Nt=(l+(r=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,mt))+Math.imul(B,pt)|0))<<13)|0;return l=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=Ot,u[8]=Et,u[9]=St,u[10]=kt,u[11]=xt,u[12]=jt,u[13]=At,u[14]=Ct,u[15]=Tt,u[16]=Pt,u[17]=It,u[18]=Nt,0!==l&&(u[19]=l,n.length++),n};function m(t,e,n){return(new v).mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=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()),n=0;n>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},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&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;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>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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);var i,a,s},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=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%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());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.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);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},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 O(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 g={k256:null,p224:null,p192:null,p25519:null};function b(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(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){O.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(y,b),y.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?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,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},O.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},O.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")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,O),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(118)(t))},function(t,e,n){"use strict";var r=n(182);e.a=function(t){var e=Object(r.a)(t),n=e%1;return e===e?n?e-n:e:0}},,function(t,e,n){"use strict";var r=n(2),i=n(11),o=n(6),a=n(13),s=n(3),u=(n(7),n(0)),l=n.n(u),c=n(18),f=n(164),h=n(163),d=n(187),p=n(4);function m(t){var e=t.children,n=t.className,i=t.content,o=t.size,a=Object(s.a)(o,"icons",n),u=Object(f.a)(m,t),c=Object(h.a)(m,t);return l.a.createElement(c,Object(r.a)({},u,{className:a}),p.a.isNil(e)?i:e)}m.handledProps=["as","children","className","content","size"],m.propTypes={},m.defaultProps={as:"i"};var v=m,g=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0||!o&&e[u].toLowerCase().indexOf(n.toLowerCase())>=0))return!0;if(r.ArrayUtils.isArray(e[u])&&r.ArrayUtils.isStringFound(e[u],n,o))return!0;if(t.isObject(e[u])&&t.isStringFound(e[u],n,o))return!0}return!1},t.merge=function(e,n){if(!t.isObject(e)||!t.isObject(n))throw new Error("destination and source must objects");for(var r=0,i=t.getKeys(n);r=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&u<=57343){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(t[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i},function(t,e,n){"use strict";e.a=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){"use strict";var r=n(40),i=n(32);e.a=function(t){return"symbol"==typeof t||Object(i.a)(t)&&"[object Symbol]"==Object(r.a)(t)}},function(t,e,n){"use strict";e.a=function(t,e){return t===e||t!==t&&e!==e}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n-1};var c=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++et.parent.data.generation?[t.data,t.parent.data]:[t.parent.data,t.data],n=e[0],r=e[1];return n.additionalMarriage?n.id+":A":r.id+":"+n.id}e.linkId=c,e.getChartInfo=function(t){var e=a.min(t,(function(t){return t.x-t.data.width/2}))-15,n=a.min(t,(function(t){return t.y-t.data.height/2}))-15;return{size:[a.max(t,(function(t){return t.x+t.data.width/2}))+15-e,a.max(t,(function(t){return t.y+t.data.height/2}))+15-n],origin:[-e,-n]}},e.getChartInfoWithoutMargin=function(t){var e=a.min(t,(function(t){return t.x-t.data.width/2})),n=a.min(t,(function(t){return t.y-t.data.height/2}));return{size:[a.max(t,(function(t){return t.x+t.data.width/2}))-e,a.max(t,(function(t){return t.y+t.data.height/2}))-n],origin:[-e,-n]}};var f=function(){function t(t){this.options=t}return t.prototype.linkHorizontal=function(t,e){var n=this.options.renderer.getFamilyAnchor(t.data),r=t.id===e.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(e.data):this.options.renderer.getIndiAnchor(e.data),i=[t.x+n[0],t.y+n[1]],o=i[0],a=i[1],s=[e.x+r[0],e.y+r[1]],u=s[0],l=s[1],c=(t.x+t.data.width/2+e.x-e.data.width/2)/2;return"M "+o+" "+a+"\n L "+c+" "+a+",\n "+c+" "+l+",\n "+u+" "+l},t.prototype.linkVertical=function(t,n){var r=this.options.renderer.getFamilyAnchor(t.data),i=t.id===n.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(n.data):this.options.renderer.getIndiAnchor(n.data),o=[t.x+r[0],t.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]],l=u[0],c=u[1],f=t.y+t.data.height/2+e.V_SPACING/2;return"M "+a+" "+s+"\n L "+a+" "+f+",\n "+l+" "+f+",\n "+l+" "+c},t.prototype.linkAdditionalMarriage=function(t){var e=t.parent.children.findIndex((function(e){return e.data.id===t.data.id})),n=t.parent.children[e-1],r=this.options.renderer.getIndiAnchor(t.data),i=this.options.renderer.getIndiAnchor(n.data),o=[t.x+r[0],t.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]];return"M "+a+", "+s+"\n L "+u[0]+", "+u[1]},t.prototype.updateSvgDimensions=function(t){var e=r.select(this.options.svgSelector).select("g");(this.options.animate?e.transition().delay(u).duration(l):e).attr("transform","translate("+t.origin[0]+", "+t.origin[1]+")")},t.prototype.layOutChart=function(t,n){var i=this;void 0===n&&(n={});var s=r.select(this.options.svgSelector);s.select("style").empty()&&s.append("style").text(this.options.renderer.getCss()+"\n.expander {\n fill: white;\n stroke: black;\n stroke-width: 2px;\n cursor: pointer;\n}"),t.each((function(t){t.data.generation=t.depth*(n.flipVertically?-1:1)+(i.options.baseGeneration||0)})),this.options.renderer.updateNodes(t.descendants());var u=new Map;t.each((function(t){var e=t.depth,n=a.max([i.options.horizontal?t.data.width:t.data.height,u.get(e)]);u.set(e,n)})),t.each((function(t){var e=u.get(t.depth);i.options.horizontal?t.data.width=e:t.data.height=e}));var l=void 0!==n.vSpacing?n.vSpacing:e.V_SPACING,c=void 0!==n.hSpacing?n.hSpacing:e.H_SPACING,f=o.flextree().nodeSize((function(t){if(i.options.horizontal){var e=a.max(t.children||[],(function(t){return t.data.width}))||0;return[t.data.height,(e+t.data.width)/2+l]}var n=a.max(t.children||[],(function(t){return t.data.height}))||0;return[t.data.width,(n+t.data.height)/2+l]})).spacing((function(t,e){return c}))(t).descendants();return f.forEach((function(t){var e;n.flipVertically&&(t.y=-t.y),i.options.horizontal&&(e=[t.y,t.x],t.x=e[0],t.y=e[1])})),f},t.prototype.renderChart=function(t){var e=this.getSvgForRendering(),n=this.renderNodes(t,e),r=this.renderLinks(t,e),i=this.renderControls(t,e);return Promise.all([n,r,i])},t.prototype.renderNodes=function(t,e){var n=this;return new Promise((function(r){var i=e.select("g").selectAll("g.node").data(t,(function(t){return t.id})),o=i.enter().append("g"),a=i.exit().size()+i.size()+o.size(),s=function(){0===--a&&r()};n.options.animate&&0!==a||r(),o.merge(i).attr("class",(function(t){return"node generation"+t.data.generation})),o.attr("transform",(function(t){return"translate("+(t.x-t.data.width/2)+", "+(t.y-t.data.height/2)+")"})),n.options.animate&&o.style("opacity",0).transition().delay(700).duration(u).style("opacity",1).on("end",s),(n.options.animate?i.transition().delay(u).duration(l).on("end",s):i).attr("transform",(function(t){return"translate("+(t.x-t.data.width/2)+", "+(t.y-t.data.height/2)+")"})),n.options.renderer.render(o,i),n.options.animate?i.exit().transition().duration(u).style("opacity",0).remove().on("end",s):i.exit().remove()}))},t.prototype.renderLinks=function(t,e){var n=this;return new Promise((function(r){var i=function(t,e){if(e.data.additionalMarriage)return n.linkAdditionalMarriage(e);var r=t.data.generation>e.data.generation;return n.options.horizontal?r?n.linkHorizontal(e,t):n.linkHorizontal(t,e):r?n.linkVertical(e,t):n.linkVertical(t,e)},o=t.filter((function(t){return!!t.parent||t.data.additionalMarriage})),a=e.select("g").selectAll("path.link").data(o,c),s=a.enter().insert("path","g").attr("class",(function(t){return t.data.additionalMarriage?"link additional-marriage":"link"})).attr("d",(function(t){return i(t.parent,t)})),f=a.exit().size()+a.size()+s.size(),h=function(){0===--f&&r()};n.options.animate&&0!==f||r(),(n.options.animate?a.transition().delay(u).duration(l).on("end",h):a).attr("d",(function(t){return i(t.parent,t)})),n.options.animate&&s.style("opacity",0).transition().delay(900).duration(0).style("opacity",1).on("end",h),n.options.animate?a.exit().transition().duration(0).style("opacity",0).remove().on("end",h):a.exit().remove()}))},t.prototype.renderExpander=function(t,e,n){(t=t.filter((function(t){return void 0!==e(t)}))).on("click",(function(t,e){null===n||void 0===n||n(e.id)})),t.append("rect").attr("width",12).attr("height",12),t.append("line").attr("x1",3).attr("y1",6).attr("x2",9).attr("y2",6).attr("stroke","black"),t.filter((function(t){return e(t)===i.ExpanderState.PLUS})).append("line").attr("x1",6).attr("y1",3).attr("x2",6).attr("y2",9).attr("stroke","black")},t.prototype.renderFamilyControls=function(t){var e=this,n=t.selectAll("g.familyExpander").data((function(t){var e;return void 0!==(null===(e=t.data.family)||void 0===e?void 0:e.expander)?[t]:[]})),r=n.enter().append("g").attr("class","familyExpander expander").merge(n);(this.options.animate?r.transition().delay(u).duration(l):r).attr("transform",(function(t){return"translate("+(e.options.renderer.getFamilyAnchor(t.data)[0]-6)+", "+(-t.data.height/2+s.getVSize(t.data,!!e.options.horizontal))+")"})),this.renderExpander(r,(function(t){var e;return null===(e=t.data.family)||void 0===e?void 0:e.expander}),(function(t){var n,r;return null===(r=(n=e.options).expanderCallback)||void 0===r?void 0:r.call(n,t,i.ExpanderDirection.FAMILY)})),n.exit().remove()},t.prototype.renderIndiControls=function(t){var e=this,n=t.selectAll("g.indiExpander").data((function(t){var e;return void 0!==(null===(e=t.data.indi)||void 0===e?void 0:e.expander)?[t]:[]})),r=n.enter().append("g").attr("class","indiExpander expander").merge(n);(this.options.animate?r.transition().delay(u).duration(l):r).attr("transform",(function(t){return"translate("+(e.options.renderer.getIndiAnchor(t.data)[0]-6)+", "+(-t.data.height/2-12)+")"})),this.renderExpander(r,(function(t){var e;return null===(e=t.data.indi)||void 0===e?void 0:e.expander}),(function(t){var n,r;return null===(r=(n=e.options).expanderCallback)||void 0===r?void 0:r.call(n,t,i.ExpanderDirection.INDI)})),n.exit().remove()},t.prototype.renderSpouseControls=function(t){var e=this,n=t.selectAll("g.spouseExpander").data((function(t){var e;return void 0!==(null===(e=t.data.spouse)||void 0===e?void 0:e.expander)?[t]:[]})),r=n.enter().append("g").attr("class","spouseExpander expander").merge(n);(this.options.animate?r.transition().delay(u).duration(l):r).attr("transform",(function(t){return"translate("+(e.options.renderer.getSpouseAnchor(t.data)[0]-6)+", "+(-t.data.height/2-12)+")"})),this.renderExpander(r,(function(t){var e;return null===(e=t.data.spouse)||void 0===e?void 0:e.expander}),(function(t){var n,r;return null===(r=(n=e.options).expanderCallback)||void 0===r?void 0:r.call(n,t,i.ExpanderDirection.SPOUSE)})),n.exit().remove()},t.prototype.renderControls=function(t,e){var n=this;return this.options.expanders?new Promise((function(r){var i=e.select("g").selectAll("g.controls").data(t,(function(t){return t.id})),o=i.enter().append("g").attr("class","controls");o.attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"}));var a=i.exit().size()+i.size()+o.size(),s=function(){0===--a&&r()};n.options.animate&&0!==a||r(),(n.options.animate?i.transition().delay(u).duration(l).on("end",s):i).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})),n.options.animate&&o.style("opacity",0).transition().delay(700).duration(u).style("opacity",1).on("end",s);var c=o.merge(i);n.renderFamilyControls(c),n.renderIndiControls(c),n.renderSpouseControls(c),n.options.animate?i.exit().transition().duration(u).style("opacity",0).remove().on("end",s):i.exit().remove()})):Promise.resolve()},t.prototype.getSvgForRendering=function(){var t=r.select(this.options.svgSelector);return t.select("g").empty()&&t.append("g"),t},t}();e.ChartUtil=f},function(t,e,n){"use strict";var r=n(199),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=Object.create(n(174));o.inherits=n(15);var a=n(326),s=n(260);o.inherits(f,a);for(var u=i(s.prototype),l=0;le?1:t>=e?0:NaN},i=function(t){var e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return r(t(e),n)}}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);var a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}};var o=n(8),a=n.n(o),s=n(9),u=a.a.mark(c),l=function(t){return null===t?NaN:+t};function c(t,e){var n,r,i,o,l,c,f;return a.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(void 0!==e){a.next=21;break}n=Object(s.a)(t),a.prev=2,n.s();case 4:if((r=n.n()).done){a.next=11;break}if(!(null!=(i=r.value)&&(i=+i)>=i)){a.next=9;break}return a.next=9,i;case 9:a.next=4;break;case 11:a.next=16;break;case 13:a.prev=13,a.t0=a.catch(2),n.e(a.t0);case 16:return a.prev=16,n.f(),a.finish(16);case 19:a.next=40;break;case 21:o=-1,l=Object(s.a)(t),a.prev=23,l.s();case 25:if((c=l.n()).done){a.next=32;break}if(f=c.value,!(null!=(f=e(f,++o,t))&&(f=+f)>=f)){a.next=30;break}return a.next=30,f;case 30:a.next=25;break;case 32:a.next=37;break;case 34:a.prev=34,a.t1=a.catch(23),l.e(a.t1);case 37:return a.prev=37,l.f(),a.finish(37);case 40:case"end":return a.stop()}}),u,null,[[2,13,16,19],[23,34,37,40]])}var f=i(r),h=f.right,d=f.left,p=i(l).center,m=h;function v(t,e){var n=0;if(void 0===e){var r,i=Object(s.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(o=+o)>=o&&++n}}catch(f){i.e(f)}finally{i.f()}}else{var a,u=-1,l=Object(s.a)(t);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=e(c,++u,t))&&(c=+c)>=c&&++n}}catch(f){l.e(f)}finally{l.f()}}return n}var g=n(28);function b(t){return 0|t.length}function y(t){return!(t>0)}function w(t){return"object"!==typeof t||"length"in t?t:Array.from(t)}function _(t){return function(e){return t.apply(void 0,Object(g.a)(e))}}function M(){for(var t=arguments.length,e=new Array(t),n=0;nt?1:e>=t?0:NaN};function S(t,e){var n,r=0,i=0,o=0;if(void 0===e){var a,u=Object(s.a)(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=l&&(l=+l)>=l&&(o+=(n=l-i)*(l-(i+=n/++r)))}}catch(p){u.e(p)}finally{u.f()}}else{var c,f=-1,h=Object(s.a)(t);try{for(h.s();!(c=h.n()).done;){var d=c.value;null!=(d=e(d,++f,t))&&(d=+d)>=d&&(o+=(n=d-i)*(d-(i+=n/++r)))}}catch(p){h.e(p)}finally{h.f()}}if(r>1)return o/(r-1)}function k(t,e){var n=S(t,e);return n?Math.sqrt(n):n}var x=function(t,e){var n,r;if(void 0===e){var i,o=Object(s.a)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(void 0===n?a>=a&&(n=r=a):(n>a&&(n=a),r=f&&(n=r=f):(n>f&&(n=f),r0){for(o=r[--i];i>0&&(t=o,!(n=(e=r[--i])-((o=t+e)-t))););i>0&&(n<0&&r[i-1]<0||n>0&&r[i-1]>0)&&(e=2*n)==(t=o+e)-o&&(o=t)}return o}}]),t}();function T(t,e){var n=new C;if(void 0===e){var r,i=Object(s.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=+o)&&n.add(o)}}catch(f){i.e(f)}finally{i.f()}}else{var a,u=-1,l=Object(s.a)(t);try{for(l.s();!(a=l.n()).done;){var c=a.value;(c=+e(c,++u,t))&&n.add(c)}}catch(f){l.e(f)}finally{l.f()}}return+n}function P(t,e){var n=new C,r=-1;return Float64Array.from(t,void 0===e?function(t){return n.add(+t||0)}:function(i){return n.add(+e(i,++r,t)||0)})}var I=n(12),N=n(70),R=n(53);function L(t,e,n){return(L="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(R.a)(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}var D=n(68),F=n(69),B=n(127),U=function(t){Object(D.a)(n,t);var e=Object(F.a)(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;if(Object(j.a)(this,n),r=e.call(this),Object.defineProperties(Object(N.a)(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var o,a=Object(s.a)(t);try{for(a.s();!(o=a.n()).done;){var u=Object(I.a)(o.value,2),l=u[0],c=u[1];r.set(l,c)}}catch(f){a.e(f)}finally{a.f()}}return r}return Object(A.a)(n,[{key:"get",value:function(t){return L(Object(R.a)(n.prototype),"get",this).call(this,q(this,t))}},{key:"has",value:function(t){return L(Object(R.a)(n.prototype),"has",this).call(this,q(this,t))}},{key:"set",value:function(t,e){return L(Object(R.a)(n.prototype),"set",this).call(this,H(this,t),e)}},{key:"delete",value:function(t){return L(Object(R.a)(n.prototype),"delete",this).call(this,Z(this,t))}}]),n}(Object(B.a)(Map)),z=function(t){Object(D.a)(n,t);var e=Object(F.a)(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;if(Object(j.a)(this,n),r=e.call(this),Object.defineProperties(Object(N.a)(r),{_intern:{value:new Map},_key:{value:i}}),null!=t){var o,a=Object(s.a)(t);try{for(a.s();!(o=a.n()).done;){var u=o.value;r.add(u)}}catch(l){a.e(l)}finally{a.f()}}return r}return Object(A.a)(n,[{key:"has",value:function(t){return L(Object(R.a)(n.prototype),"has",this).call(this,q(this,t))}},{key:"add",value:function(t){return L(Object(R.a)(n.prototype),"add",this).call(this,H(this,t))}},{key:"delete",value:function(t){return L(Object(R.a)(n.prototype),"delete",this).call(this,Z(this,t))}}]),n}(Object(B.a)(Set));function q(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function H(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function Z(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(e),n.delete(r)),e}function V(t){return null!==t&&"object"===typeof t?t.valueOf():t}var W=function(t){return t};function K(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r2?n-2:0),i=2;i2?n-2:0),i=2;i1?e-1:0),r=1;r1?e-1:0),r=1;r=r.length)return n(i);var a,u=new U,l=r[o++],c=-1,f=Object(s.a)(i);try{for(f.s();!(a=f.n()).done;){var h=a.value,d=l(h,++c,i),p=u.get(d);p?p.push(h):u.set(d,[h])}}catch(w){f.e(w)}finally{f.f()}var m,v=Object(s.a)(u);try{for(v.s();!(m=v.n()).done;){var g=Object(I.a)(m.value,2),b=g[0],y=g[1];u.set(b,t(y,o))}}catch(w){v.e(w)}finally{v.f()}return e(u)}(t,0)}var et=function(t,e){return Array.from(e,(function(e){return t[e]}))};function nt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var c=Uint32Array.from(t,(function(t,e){return e}));return n.length>1?(n=n.map((function(e){return t.map(e)})),c.sort((function(t,e){var i,o=Object(s.a)(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,u=r(a[t],a[e]);if(u)return u}}catch(l){o.e(l)}finally{o.f()}}))):(l=t.map(l),c.sort((function(t,e){return r(l[t],l[e])}))),et(t,c)}return t.sort(l)}function rt(t,e,n){return(1===e.length?nt(Q(t,e,n),(function(t,e){var n=Object(I.a)(t,2),i=n[0],o=n[1],a=Object(I.a)(e,2),s=a[0],u=a[1];return r(o,u)||r(i,s)})):nt(K(t,n),(function(t,n){var i=Object(I.a)(t,2),o=i[0],a=i[1],s=Object(I.a)(n,2),u=s[0],l=s[1];return e(a,l)||r(o,u)}))).map((function(t){return Object(I.a)(t,1)[0]}))}var it=Array.prototype,ot=it.slice,at=(it.map,function(t){return function(){return t}}),st=Math.sqrt(50),ut=Math.sqrt(10),lt=Math.sqrt(2),ct=function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0){var u=Math.round(t/a),l=Math.round(e/a);for(u*ae&&--l,o=new Array(i=l-u+1);++se&&--f,o=new Array(i=f-c+1);++s=0?(o>=st?10:o>=ut?5:o>=lt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=st?10:o>=ut?5:o>=lt?2:1)}function ht(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=st?i*=10:o>=ut?i*=5:o>=lt&&(i*=2),e0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}var pt=function(t){return Math.ceil(Math.log(v(t))/Math.LN2)+1},mt=function(){var t=W,e=x,n=pt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i=c)if(h>=c&&e===x){var g=ft(l,c,d);isFinite(g)&&(g>0?c=(Math.floor(c/g)+1)*g:g<0&&(c=(Math.ceil(c*-g)+1)/-g))}else f.pop()}for(var b=f.length;f[0]<=l;)f.shift(),--b;for(;f[b-1]>c;)f.pop(),--b;var y,w=new Array(b+1);for(i=0;i<=b;++i)(y=w[i]=[]).x0=i>0?f[i-1]:l,y.x1=i2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r;i>n;){if(i-n>600){var a=i-n+1,s=e-n+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1),f=Math.max(n,Math.floor(e-s*l/a+c)),h=Math.min(i,Math.floor(e+(a-s)*l/a+c));bt(t,e,f,h,o)}var d=t[e],p=n,m=i;for(yt(t,n,e),o(t[i],d)>0&&yt(t,n,i);p0;)--m}0===o(t[n],d)?yt(t,n,m):yt(t,++m,i),m<=e&&(n=m+1),e<=m&&(i=m-1)}return t}function yt(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function wt(t,e,n){if(r=(t=Float64Array.from(c(t,n))).length){if((e=+e)<=0||r<2)return Object(gt.a)(t);if(e>=1)return Object(vt.a)(t);var r,i=(r-1)*e,o=Math.floor(i),a=Object(vt.a)(bt(t,o).subarray(0,o+1));return a+(Object(gt.a)(t.subarray(o+1))-a)*(i-o)}}function _t(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}var Mt=function(t,e,n){return Math.ceil((n-e)/(2*(wt(t,.75)-wt(t,.25))*Math.pow(v(t),-1/3)))},Ot=function(t,e,n){return Math.ceil((n-e)/(3.5*k(t)*Math.pow(v(t),-1/3)))};function Et(t,e){var n,r=-1,i=-1;if(void 0===e){var o,a=Object(s.a)(t);try{for(a.s();!(o=a.n()).done;){var u=o.value;++i,null!=u&&(n=u)&&(n=u,r=i)}}catch(h){a.e(h)}finally{a.f()}}else{var l,c=Object(s.a)(t);try{for(c.s();!(l=c.n()).done;){var f=l.value;null!=(f=e(f,++i,t))&&(n=f)&&(n=f,r=i)}}catch(h){c.e(h)}finally{c.f()}}return r}function St(t,e){var n=0,r=0;if(void 0===e){var i,o=Object(s.a)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(a=+a)>=a&&(++n,r+=a)}}catch(h){o.e(h)}finally{o.f()}}else{var u,l=-1,c=Object(s.a)(t);try{for(c.s();!(u=c.n()).done;){var f=u.value;null!=(f=e(f,++l,t))&&(f=+f)>=f&&(++n,r+=f)}}catch(h){c.e(h)}finally{c.f()}}if(n)return r/n}var kt=function(t,e){return wt(t,.5,e)},xt=a.a.mark(jt);function jt(t){var e,n,r;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Object(s.a)(t),i.prev=1,e.s();case 3:if((n=e.n()).done){i.next=8;break}return r=n.value,i.delegateYield(r,"t0",6);case 6:i.next=3;break;case 8:i.next=13;break;case 10:i.prev=10,i.t1=i.catch(1),e.e(i.t1);case 13:return i.prev=13,e.f(),i.finish(13);case 16:case"end":return i.stop()}}),xt,null,[[1,10,13,16]])}function At(t){return Array.from(jt(t))}function Ct(t,e){var n,r=-1,i=-1;if(void 0===e){var o,a=Object(s.a)(t);try{for(a.s();!(o=a.n()).done;){var u=o.value;++i,null!=u&&(n>u||void 0===n&&u>=u)&&(n=u,r=i)}}catch(h){a.e(h)}finally{a.f()}}else{var l,c=Object(s.a)(t);try{for(c.s();!(l=c.n()).done;){var f=l.value;null!=(f=e(f,++i,t))&&(n>f||void 0===n&&f>=f)&&(n=f,r=i)}}catch(h){c.e(h)}finally{c.f()}}return r}function Tt(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,i=[],o=!1,a=Object(s.a)(t);try{for(a.s();!(n=a.n()).done;){var u=n.value;o&&i.push(r(e,u)),e=u,o=!0}}catch(l){a.e(l)}finally{a.f()}return i}function Pt(t,e){return[t,e]}var It=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r1&&void 0!==arguments[1]?arguments[1]:r,i=!1;if(1===n.length){var o,a,u=Object(s.a)(t);try{for(u.s();!(a=u.n()).done;){var l=a.value,c=n(l);(i?r(c,o)<0:0===r(c,c))&&(e=l,o=c,i=!0)}}catch(p){u.e(p)}finally{u.f()}}else{var f,h=Object(s.a)(t);try{for(h.s();!(f=h.n()).done;){var d=f.value;(i?n(d,e)<0:0===n(d,d))&&(e=d,i=!0)}}catch(p){h.e(p)}finally{h.f()}}return e}function Rt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(1===n.length)return Ct(t,n);var i,o=-1,a=-1,u=Object(s.a)(t);try{for(u.s();!(i=u.n()).done;){var l=i.value;++a,(o<0?0===n(l,l):n(l,e)<0)&&(e=l,o=a)}}catch(c){u.e(c)}finally{u.f()}return o}function Lt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i=!1;if(1===n.length){var o,a,u=Object(s.a)(t);try{for(u.s();!(a=u.n()).done;){var l=a.value,c=n(l);(i?r(c,o)>0:0===r(c,c))&&(e=l,o=c,i=!0)}}catch(p){u.e(p)}finally{u.f()}}else{var f,h=Object(s.a)(t);try{for(h.s();!(f=h.n()).done;){var d=f.value;(i?n(d,e)>0:0===n(d,d))&&(e=d,i=!0)}}catch(p){h.e(p)}finally{h.f()}}return e}function Dt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(1===n.length)return Et(t,n);var i,o=-1,a=-1,u=Object(s.a)(t);try{for(u.s();!(i=u.n()).done;){var l=i.value;++a,(o<0?0===n(l,l):n(l,e)>0)&&(e=l,o=a)}}catch(c){u.e(c)}finally{u.f()}return o}function Ft(t,e){var n=Rt(t,e);return n<0?void 0:n}var Bt=Ut(Math.random);function Ut(t){return function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=r-(n=+n);i;){var o=t()*i--|0,a=e[i+n];e[i+n]=e[o+n],e[o+n]=a}return e}}function zt(t,e){var n=0;if(void 0===e){var r,i=Object(s.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=+o)&&(n+=o)}}catch(f){i.e(f)}finally{i.f()}}else{var a,u=-1,l=Object(s.a)(t);try{for(l.s();!(a=l.n()).done;){var c=a.value;(c=+e(c,++u,t))&&(n+=c)}}catch(f){l.e(f)}finally{l.f()}}return n}var qt=function(t){if(!(i=t.length))return[];for(var e=-1,n=Object(gt.a)(t,Ht),r=new Array(n);++e1?e-1:0),r=1;r1?e-1:0),r=1;ra||void 0===n&&a>=a)&&(n=a)}}catch(f){o.e(f)}finally{o.f()}}else{var s,u=-1,l=Object(r.a)(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;null!=(c=e(c,++u,t))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(f){l.e(f)}finally{l.f()}}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"transition",(function(){return oe})),n.d(e,"active",(function(){return fe})),n.d(e,"interrupt",(function(){return C}));var r,i,o=n(84),a=n(708),s=0,u=0,l=0,c=0,f=0,h=0,d="object"===typeof performance&&performance.now?performance:Date,p="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m(){return f||(p(v),f=d.now()+h)}function v(){f=0}function g(){this._call=this._time=this._next=null}function b(t,e,n){var r=new g;return r.restart(t,e,n),r}function y(){f=(c=d.now())+h,s=u=0;try{!function(){m(),++s;for(var t,e=r;e;)(t=f-e._time)>=0&&e._call.call(null,t),e=e._next;--s}()}finally{s=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(o)}(),f=0}}function w(){var t=d.now(),e=t-c;e>1e3&&(h-=e,c=t)}function _(t){s||(u&&(u=clearTimeout(u)),t-f>24?(t<1/0&&(u=setTimeout(y,t-d.now()-h)),l&&(l=clearInterval(l))):(l||(c=d.now(),l=setInterval(w,1e3)),s=1,p(y)))}g.prototype=b.prototype={constructor:g,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?m():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}};var M=function(t,e,n){var r=new g;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},O=Object(a.a)("start","end","cancel","interrupt"),E=[],S=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,f,h;if(1!==n.state)return u();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return M(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function x(t,e){var n=j(t,e);if(n.state>3)throw new Error("too late; already running");return n}function j(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var A,C=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},T=n(14),P=n(91),I=180/Math.PI,N={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},R=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(P.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(P.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Object(P.a)(t,n)},{i:s-2,x:Object(P.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?lt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?lt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=X.exec(t))?new ht(e[1],e[2],e[3],1):(e=J.exec(t))?new ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tt.exec(t))?lt(e[1],e[2],e[3],e[4]):(e=et.exec(t))?lt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=nt.exec(t))?vt(e[1],e[2]/100,e[3]/100,1):(e=rt.exec(t))?vt(e[1],e[2]/100,e[3]/100,e[4]):it.hasOwnProperty(t)?ut(it[t]):"transparent"===t?new ht(NaN,NaN,NaN,0):null}function ut(t){return new ht(t>>16&255,t>>8&255,255&t,1)}function lt(t,e,n,r){return r<=0&&(t=e=n=NaN),new ht(t,e,n,r)}function ct(t){return t instanceof V||(t=st(t)),t?new ht((t=t.rgb()).r,t.g,t.b,t.opacity):new ht}function ft(t,e,n,r){return 1===arguments.length?ct(t):new ht(t,e,n,null==r?1:r)}function ht(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function dt(){return"#"+mt(this.r)+mt(this.g)+mt(this.b)}function pt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function mt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function vt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bt(t,e,n,r)}function gt(t){if(t instanceof bt)return new bt(t.h,t.s,t.l,t.opacity);if(t instanceof V||(t=st(t)),!t)return new bt;if(t instanceof bt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new bt(a,s,u,t.opacity)}function bt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function yt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function wt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}H(V,st,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ot,formatHex:ot,formatHsl:function(){return gt(this).formatHsl()},formatRgb:at,toString:at}),H(ht,ft,Z(V,{brighter:function(t){return t=null==t?K:Math.pow(K,t),new ht(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?W:Math.pow(W,t),new ht(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dt,formatHex:dt,formatRgb:pt,toString:pt})),H(bt,(function(t,e,n,r){return 1===arguments.length?gt(t):new bt(t,e,n,null==r?1:r)}),Z(V,{brighter:function(t){return t=null==t?K:Math.pow(K,t),new bt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?W:Math.pow(W,t),new bt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ht(yt(t>=240?t-240:t+120,i,r),yt(t,i,r),yt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var _t=function(t){return function(){return t}};function Mt(t,e){return function(n){return t+n*e}}function Ot(t){return 1===(t=+t)?Et:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):_t(isNaN(e)?n:e)}}function Et(t,e){var n=e-t;return n?Mt(t,n):_t(isNaN(t)?e:t)}var St=function t(e){var n=Ot(e);function r(t,e){var r=n((t=ft(t)).r,(e=ft(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Et(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function kt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Object(P.a)(n,r)})),o=jt.lastIndex;return o=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?k:x;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Gt=n(140),Qt=n(212),Yt=o.b.prototype.constructor,$t=n(213);function Xt(t){return function(){this.style.removeProperty(t)}}function Jt(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function te(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Jt(t,o,n)),r}return o._value=e,o}function ee(t){return function(e){this.textContent=t.call(this,e)}}function ne(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ee(r)),e}return r._value=t,r}var re=0;function ie(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function oe(t){return Object(o.b)().transition(t)}function ae(){return++re}var se=o.b.prototype;ie.prototype=oe.prototype=Object(T.a)({constructor:ie,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Object(Gt.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new ie([[t]],ce,e,+r);return null}},function(t,e,n){"use strict";(function(t){var r=n(29),i=n(396),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||i.a;e.a=u}).call(this,n(296)(t))},function(t,e,n){"use strict";var r=n(41),i=n(32);e.a=function(t){return Object(i.a)(t)&&Object(r.a)(t)}},function(t,e,n){"use strict";var r=n(55),i=Object(r.a)(Object,"create");var o=function(){this.__data__=i?i(null):{},this.size=0};var a=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s=Object.prototype.hasOwnProperty;var u=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0},l=Object.prototype.hasOwnProperty;var c=function(t){var e=this.__data__;return i?void 0!==e[t]:l.call(e,t)};var f=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1?i(n):n}},function(t,e,n){"use strict";(function(e,r){var i=65536,o=4294967295;var a=n(19).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=function(t,e){if(t>o)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(t);if(t>0)if(t>i)for(var u=0;u2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i,a,s;if("string"===typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))s="The ".concat(t," ").concat(r," ").concat(o(e,"type"));else{var u=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(r," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var i=n(337),o=n(341);n(15)(l,i);for(var a=r(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function i(t){var e=typeof t;return"string"===e||"number"===e?r[t]||t:""}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";var r=n(104);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(17),i=n(100),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.a=function(t,e){if(Object(r.a)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Object(i.a)(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){"use strict";e.a=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){"use strict";e.a=function(t,e){return t.has(e)}},function(t,e,n){"use strict";e.a=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){"use strict";var r=n(40),i=n(17),o=n(32);e.a=function(t){return"string"==typeof t||!Object(i.a)(t)&&Object(o.a)(t)&&"[object String]"==Object(r.a)(t)}},function(t,e,n){"use strict";var r=n(240);e.a=function(t,e){return!!(null==t?0:t.length)&&Object(r.a)(t,e,0)>-1}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},function(t,e,n){"use strict";var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.a=function(t){return r.test(t)}},function(t,e,n){"use strict";var r=n(167),i=n(156),o=n(224),a=n(147);var s=function(t,e,n,r,s,u){var l=1&n,c=t.length,f=e.length;if(c!=f&&!(l&&f>c))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,m=!0,v=2&n?new i.a:void 0;for(u.set(t,e),u.set(e,t);++p-1?s[u?e[l]:l]:void 0}}(n(183).a);e.a=a},function(t,e,n){"use strict";var r=n(221),i=n(162),o=n(65),a=i.a?function(t,e){return Object(i.a)(t,"toString",{configurable:!0,enumerable:!1,value:Object(r.a)(e),writable:!0})}:o.a,s=n(219),u=Object(s.a)(a);e.a=u},function(t,e,n){"use strict";var r=n(40),i=n(146),o=n(32),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=function(t){return Object(o.a)(t)&&Object(i.a)(t.length)&&!!a[Object(r.a)(t)]},u=n(225),l=n(284),c=l.a&&l.a.isTypedArray,f=c?Object(u.a)(c):s;e.a=f},function(t,e,n){"use strict";var r=n(229),i=n(52),o=n(108),a=n(17),s=i.a?i.a.isConcatSpreadable:void 0;var u=function(t){return Object(a.a)(t)||Object(o.a)(t)||!!(s&&t&&t[s])};e.a=function t(e,n,i,o,a){var s=-1,l=e.length;for(i||(i=u),a||(a=[]);++s0&&i(c)?n>1?t(c,n-1,i,o,a):Object(r.a)(a,c):o||(a[a.length]=c)}return a}},function(t,e,n){"use strict";var r=n(55),i=function(){try{var t=Object(r.a)(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();e.a=i},function(t,e,n){"use strict";e.a=function(t,e,n){var r=t.defaultProps,i=void 0===r?{}:r;if(e.as&&e.as!==i.as)return e.as;if(n){var o=n();if(o)return o}return e.href?"a":i.as||"div"}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.handledProps,r=void 0===n?[]:n;return Object.keys(e).reduce((function(t,n){return"childKey"===n||-1===r.indexOf(n)&&(t[n]=e[n]),t}),{})}},function(t,e){function n(t,e,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=e.get(o);return"undefined"===typeof a&&(a=t.call(this,r),e.set(o,a)),a}function r(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return"undefined"===typeof o&&(o=t.apply(this,r),e.set(i,o)),o}function i(t,e,n,r,i){return n.bind(e,t,r,i)}function o(t,e){return i(t,this,1===t.length?n:r,e.cache.create(),e.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(t){return t in this.cache},s.prototype.get=function(t){return this.cache[t]},s.prototype.set=function(t,e){this.cache[t]=e};var u={create:function(){return new s}};t.exports=function(t,e){var n=e&&e.cache?e.cache:u,r=e&&e.serializer?e.serializer:a;return(e&&e.strategy?e.strategy:o)(t,{cache:n,serializer:r})},t.exports.strategies={variadic:function(t,e){return i(t,this,r,e.cache.create(),e.serializer)},monadic:function(t,e){return i(t,this,n,e.cache.create(),e.serializer)}}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=(n(7),n(0)),a=n.n(o),s=n(18),u=n(164),l=n(163),c=n(187);function f(t){var e=t.children,n=t.className,o=t.computer,c=t.color,h=t.floated,d=t.largeScreen,p=t.mobile,m=t.only,v=t.stretched,g=t.tablet,b=t.textAlign,y=t.verticalAlign,w=t.widescreen,_=t.width,M=Object(i.a)(c,Object(s.a)(v,"stretched"),Object(s.c)(m,"only"),Object(s.d)(b),Object(s.e)(h,"floated"),Object(s.f)(y),Object(s.g)(o,"wide computer"),Object(s.g)(d,"wide large screen"),Object(s.g)(p,"wide mobile"),Object(s.g)(g,"wide tablet"),Object(s.g)(w,"wide widescreen"),Object(s.g)(_,"wide"),"column",n),O=Object(u.a)(f,t),E=Object(l.a)(f,t);return a.a.createElement(E,Object(r.a)({},O,{className:M}),e)}f.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"],f.propTypes={},f.create=Object(c.g)(f,(function(t){return{children:t}})),e.a=f},function(t,e,n){"use strict";var r=n(105);var i=function(){this.__data__=new r.a,this.size=0};var o=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var a=function(t){return this.__data__.get(t)};var s=function(t){return this.__data__.has(t)},u=n(110),l=n(126);var c=function(t,e){var n=this.__data__;if(n instanceof r.a){var i=n.__data__;if(!u.a||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new l.a(i)}return n.set(t,e),this.size=n.size,this};function f(t){var e=this.__data__=new r.a(t);this.size=e.size}f.prototype.clear=i,f.prototype.delete=o,f.prototype.get=a,f.prototype.has=s,f.prototype.set=c;e.a=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return v}));var r=n(708),i=n(211);var o=function(t){t.preventDefault(),t.stopImmediatePropagation()},a=function(t){var e=t.document.documentElement,n=Object(i.a)(t).on("dragstart.drag",o,!0);"onselectstart"in e?n.on("selectstart.drag",o,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function s(t,e){var n=t.document.documentElement,r=Object(i.a)(t).on("dragstart.drag",null);e&&(r.on("click.drag",o,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function u(t){return((t=Math.exp(t))+1/t)/2}var l=function t(e,n,r){function i(t,i){var o,a,s=t[0],l=t[1],c=t[2],f=i[0],h=i[1],d=i[2],p=f-s,m=h-l,v=p*p+m*m;if(v<1e-12)a=Math.log(d/c)/e,o=function(t){return[s+t*p,l+t*m,c*Math.exp(e*t*a)]};else{var g=Math.sqrt(v),b=(d*d-c*c+r*v)/(2*c*n*g),y=(d*d-c*c-r*v)/(2*d*n*g),w=Math.log(Math.sqrt(b*b+1)-b),_=Math.log(Math.sqrt(y*y+1)-y);a=(_-w)/e,o=function(t){var r,i=t*a,o=u(w),f=c/(n*g)*(o*(r=e*i+w,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(w));return[s+f*p,l+f*m,c*o/u(e*i+w)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(214),f=n(123),h=function(t){return function(){return t}};function d(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function p(t,e,n){this.k=t,this.x=e,this.y=n}p.prototype={constructor:p,scale:function(t){return 1===t?this:new p(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new p(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var m=new p(1,0,0);function v(t){for(;!t.__zoom;)if(!(t=t.parentNode))return m;return t.__zoom}function g(t){t.stopImmediatePropagation()}v.prototype=p.prototype;var b=function(t){t.preventDefault(),t.stopImmediatePropagation()};function y(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function w(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function _(){return this.__zoom||m}function M(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function O(){return navigator.maxTouchPoints||"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var S=function(){var t,e,n,o=y,u=w,v=E,S=M,k=O,x=[0,1/0],j=[[-1/0,-1/0],[1/0,1/0]],A=250,C=l,T=Object(r.a)("start","zoom","end"),P=500,I=0,N=10;function R(t){t.property("__zoom",_).on("wheel.zoom",q).on("mousedown.zoom",H).on("dblclick.zoom",Z).filter(k).on("touchstart.zoom",V).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",K).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(t,e){return(e=Math.max(x[0],Math.min(x[1],e)))===t.k?t:new p(e,t.x,t.y)}function D(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new p(t.k,r,i)}function F(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function B(t,e,n,r){t.on("start.zoom",(function(){U(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){U(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,i=arguments,o=U(t,i).event(r),a=u.apply(t,i),s=null==n?F(a):"function"===typeof n?n.apply(t,i):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=t.__zoom,f="function"===typeof e?e.apply(t,i):e,h=C(c.invert(s).concat(l/c.k),f.invert(s).concat(l/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=l/e[2];t=new p(n,s[0]-e[0]*n,s[1]-e[1]*n)}o.zoom(null,t)}}))}function U(t,e,n){return!n&&t.__zooming||new z(t,e)}function z(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=u.apply(t,e),this.taps=0}function q(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?e-1:0),u=1;uI}l.event(t).zoom("mouse",v(D(l.that.__zoom,l.mouse[0]=Object(c.a)(t,p),l.mouse[1]),l.extent,j))}function _(t){h.on("mousemove.zoom mouseup.zoom",null),s(t.view,l.moved),b(t),l.event(t).end()}}function Z(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?Object(i.a)(this).transition().duration(A).call(B,h,s,t):Object(i.a)(this).call(R.transform,h,s,t)}}function V(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a1?e-1:0),r=1;r1?r-1:0),a=1;a0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var l=u.length,c=v(u,l);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(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]"===n(t)},e.isObject=function(t){return"object"===typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(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||"undefined"===typeof t},e.isBuffer=t.isBuffer}).call(this,n(27).Buffer)},function(t,e,n){"use strict";var r=n(19).Buffer,i=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===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=f,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},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,n){"use strict";var r=n(15),i=n(261),o=n(263),a=n(264),s=n(92);function u(t){s.call(this,"digest"),this._hash=t}r(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},function(t,e,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o=a)&&(n=a)}}catch(f){o.e(f)}finally{o.f()}}else{var s,u=-1,l=Object(r.a)(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;null!=(c=e(c,++u,t))&&(n=c)&&(n=c)}}catch(f){l.e(f)}finally{l.f()}}return n}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na&&r.push(t.substring(a,o.index));var u={href:o.url,key:"parse"+n.parseCounter+"match"+s};for(var l in n.props.properties){var c=n.props.properties[l];c===e.MATCH&&(c=o.url),u[l]=c}r.push(i.default.createElement(n.props.component,u,o.text)),a=o.lastIndex})),a=i(e,n)&&t=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(t,e,n){"use strict";var r=n(25)("%TypeError%"),i=n(465),o=n(133),a=n(62);t.exports=function(t,e){if("Object"!==a(t))throw new r("Assertion failed: Type(O) is not Object");if(!o(e))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+i(e));return t[e]}},function(t,e,n){"use strict";var r=n(25)("%Array%"),i=!r.isArray&&n(134)("Object.prototype.toString");t.exports=r.isArray||function(t){return"[object Array]"===i(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getVSize=e.getFamPositionHorizontal=e.getFamPositionVertical=e.CompositeRenderer=void 0;var r=n(120),i=function(){function t(t){this.options=t}return t.prototype.getPreferredFamSize=function(t){return[0,0]},t.prototype.setPreferredIndiSize=function(t){var e;t&&(e=this.getPreferredIndiSize(t.id),t.width=e[0],t.height=e[1])},t.prototype.updateNodes=function(t){var e=this,n=new Map;t.forEach((function(t){var i;e.setPreferredIndiSize(t.data.indi),e.setPreferredIndiSize(t.data.spouse);var o=t.data.family;o&&(i=e.getPreferredFamSize(o.id),o.width=i[0],o.height=i[1]);var a=t.depth,u=r.max([s(t.data,!!e.options.horizontal),n.get(a)]);n.set(a,u)})),t.forEach((function(t){var i;e.options.horizontal?(t.data.indi&&(t.data.indi.width=n.get(t.depth)),t.data.spouse&&(t.data.spouse.width=n.get(t.depth))):(t.data.indi&&(t.data.indi.height=n.get(t.depth)),t.data.spouse&&(t.data.spouse.height=n.get(t.depth)));var o=u(t.data,!!e.options.horizontal),a=function(t,e){if(e)return(t.indi?t.indi.height:0)+(t.spouse?t.spouse.height:0);var n=(t.indi?t.indi.width:0)+(t.spouse?t.spouse.width:0);return r.max([n,t.family?t.family.width:0])}(t.data,!!e.options.horizontal);i=e.options.horizontal?[o,a]:[a,o],t.data.width=i[0],t.data.height=i[1]}))},t.prototype.getFamilyAnchor=function(t){if(this.options.horizontal){var e=-t.width/2+s(t,this.options.horizontal)/2,n=t.family?r.max([-a(t),0]):0;return[e,-(t.indi&&t.spouse?t.height/2-t.indi.height:0)+n]}var i=t.family?r.max([-o(t),0]):0;return[-(t.indi&&t.spouse?t.width/2-t.indi.width:0)+i,-t.height/2+s(t,this.options.horizontal)/2]},t.prototype.getSpouseAnchor=function(t){return this.options.horizontal?[-t.width/2+s(t,this.options.horizontal)/2,t.indi?t.indi.height/2:0]:[t.indi?t.indi.width/2:0,-t.height/2+s(t,!!this.options.horizontal)/2]},t.prototype.getIndiAnchor=function(t){return this.options.horizontal?[-t.width/2+s(t,this.options.horizontal)/2,t.spouse?-t.spouse.height/2:0]:[t.spouse?-t.spouse.width/2:0,-t.height/2+s(t,!!this.options.horizontal)/2]},t}();function o(t){var e=t.indi?t.indi.width:0,n=t.spouse?t.spouse.width:0,r=t.family.width;return!t.indi||!t.spouse||e+n<=r?(e+n-r)/2:r/2>=n?e+n-r:r/2>=e?0:e-r/2}function a(t){var e=t.indi?t.indi.height:0,n=t.spouse?t.spouse.height:0,r=t.family.height;return t.indi&&t.spouse?e-r/2:(e+n-r)/2}function s(t,e){return e?r.max([t.indi?t.indi.width:0,t.spouse?t.spouse.width:0]):r.max([t.indi?t.indi.height:0,t.spouse?t.spouse.height:0])}function u(t,e){return s(t,e)+function(t,e){return e?t.family?t.family.width:0:t.family?t.family.height:0}(t,e)}e.CompositeRenderer=i,e.getFamPositionVertical=o,e.getFamPositionHorizontal=a,e.getVSize=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IdGenerator=void 0;var r=function(){function t(){this.ids=new Map}return t.prototype.getId=function(t){if(this.ids.has(t)){var e=this.ids.get(t);return this.ids.set(t,e+1),t+":"+e}return this.ids.set(t,1),t},t}();e.IdGenerator=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DescendantChart=e.layOutDescendants=e.DUMMY_ROOT_NODE_ID=void 0;var r=n(281),i=n(170),o=n(116),a=n(197);function s(t){if(t[0].id!==e.DUMMY_ROOT_NODE_ID)return t;var n=t.slice(1),r=-n[0].x,i=-n[0].y;return n.forEach((function(t){t.parent&&t.parent.id===e.DUMMY_ROOT_NODE_ID&&!t.data.additionalMarriage&&(t.parent=null),t.x+=r,t.y+=i,t.data.generation--})),n}e.DUMMY_ROOT_NODE_ID="DUMMY_ROOT_NODE",e.layOutDescendants=function(t,e){void 0===e&&(e={});var n=new u(t).createHierarchy();return s(new o.ChartUtil(t).layOutChart(n,e))};var u=function(){function t(t){this.options=t,this.util=new o.ChartUtil(t)}return t.prototype.getNodes=function(t){var e=this,n=this.options.data.getIndi(t).getFamiliesAsSpouse();if(!n.length)return[{id:t,indi:{id:t}}];var r=n.map((function(n){var r={id:n,indi:{id:t},family:{id:n}},i=e.options.data.getFam(n),o=function(t,e){return e.getFather()===t?e.getMother():e.getFather()}(t,i);return o&&(r.spouse={id:o}),r}));return r.slice(1).forEach((function(t){t.additionalMarriage=!0})),r},t.prototype.getFamNode=function(t){var e={id:t,family:{id:t}},n=this.options.data.getFam(t),r=n.getFather();r&&(e.indi={id:r});var i=n.getMother();return i&&(e.spouse={id:i}),e},t.prototype.createHierarchy=function(){var t,n=this,o=[],s=this.options.startIndi?this.getNodes(this.options.startIndi):[this.getFamNode(this.options.startFam)],u=this.options.idGenerator||new a.IdGenerator;if(s.forEach((function(t){return t.id=u.getId(t.id)})),s.length>1){var l={id:e.DUMMY_ROOT_NODE_ID,height:1,width:1};o.push(l),s.forEach((function(t){return t.parentId=l.id}))}o.push.apply(o,s);var c=[];s.forEach((function(t){t.family&&c.push(t)}));for(var f=function(){var e=c.pop(),r=h.options.data.getFam(e.family.id).getChildren(),a=null===(t=h.options.collapsedFamily)||void 0===t?void 0:t.has(e.id);r.length&&(e.family.expander=a?i.ExpanderState.PLUS:i.ExpanderState.MINUS),a||r.forEach((function(t){var r=n.getNodes(t);r.forEach((function(t){t.parentId=e.id,t.family&&(t.id=""+u.getId(t.family.id),c.push(t))})),o.push.apply(o,r)}))},h=this;c.length;)f();return r.stratify()(o)},t.prototype.render=function(){var t=this.createHierarchy(),e=s(this.util.layOutChart(t)),n=this.util.renderChart(e),r=o.getChartInfo(e);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},t}();e.DescendantChart=u},function(t,e,n){"use strict";(function(e){"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a>>24]^c[p>>>16&255]^f[m>>>8&255]^h[255&v]^e[g++],a=l[p>>>24]^c[m>>>16&255]^f[v>>>8&255]^h[255&d]^e[g++],s=l[m>>>24]^c[v>>>16&255]^f[d>>>8&255]^h[255&p]^e[g++],u=l[v>>>24]^c[d>>>16&255]^f[p>>>8&255]^h[255&m]^e[g++],d=o,p=a,m=s,v=u;return o=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&v])^e[g++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[v>>>8&255]<<8|r[255&d])^e[g++],s=(r[m>>>24]<<24|r[v>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^e[g++],u=(r[v>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var c=t[a],f=t[c],h=t[f],d=257*t[l]^16843008*l;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*f^257*c^16843008*a,o[0][l]=d<<24|d>>>8,o[1][l]=d<<16|d>>>16,o[2][l]=d<<8|d>>>24,o[3][l]=d,0===a?a=s=1:(a=c^t[t[t[h^c]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function l(t){this._key=i(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var l=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=l},function(t,e,n){var r=n(19).Buffer,i=n(261);t.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),l=r.alloc(0);a>0||o>0;){var c=new i;c.update(l),c.update(t),e&&c.update(e),l=c.digest();var f=0;if(a>0){var h=s.length-a;f=Math.min(a,l.length),l.copy(s,h,0,f),a-=f}if(f0){var d=u.length-o,p=Math.min(o,l.length-f);l.copy(u,d,f,f+p),o-=p}}return l.fill(0),{key:s,iv:u}}},function(t,e,n){"use strict";var r=n(86),i=n(64),o=i.getNAF,a=i.getJSF,s=i.assert;function u(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;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<=a;c--)u=(u<<1)+r[c];l.push(u)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a=0;l--){for(var c=0;l>=0&&0===a[l];l--)c++;if(l>=0&&c++,u=u.dblp(c),l<0)break;var f=a[l];s(0!==f),u="affine"===t.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){var s,u,l,c=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0;for(s=0;s=1;s-=2){var m=s-1,v=s;if(1===c[m]&&1===c[v]){var g=[e[m],null,null,e[v]];0===e[m].y.cmp(e[v].y)?(g[1]=e[m].add(e[v]),g[2]=e[m].toJ().mixedAdd(e[v].neg())):0===e[m].y.cmp(e[v].y.redNeg())?(g[1]=e[m].toJ().mixedAdd(e[v]),g[2]=e[m].add(e[v].neg())):(g[1]=e[m].toJ().mixedAdd(e[v]),g[2]=e[m].toJ().mixedAdd(e[v].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[m],n[v]);for(d=Math.max(y[0].length,d),h[m]=new Array(d),h[v]=new Array(d),u=0;u=0;s--){for(var E=0;s>=0;){var S=!0;for(u=0;u=0&&E++,M=M.dblp(E),s<0)break;for(u=0;u0?l=f[u][k-1>>1]:k<0&&(l=f[u][-k-1>>1].neg()),M="affine"===l.type?M.mixedAdd(l):M.add(l))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0})):r(t)},e.createRuleSet=function(t,e){return"@media ".concat(e,"{.").concat(t,"{display:none!important;}}")},e.createClassName=function(){for(var t=arguments.length,e=new Array(t),n=0;n=0)&&a.status>e&&(e=a.status)}return e},t.prototype.ok=function(e){return void 0===e&&(e=""),this.getStatus(e)===t.OK},t.prototype.notOk=function(e){return void 0===e&&(e=""),this.getStatus(e)!==t.OK},t.prototype.getFirstMessage=function(t){void 0===t&&(t="");for(var e=o.ArrayUtils.isArray(t)?t:[t],n=0,r=this._failedMessages;n=0)return i.message}return""},t.prototype.getLastMessage=function(t){void 0===t&&(t="");for(var e=o.ArrayUtils.isArray(t)?t:[t],n=this._failedMessages.length-1;n>=0;n--)if(""===t||null===t||o.ArrayUtils.isArray(t)&&0===t.length||e.indexOf(this._failedMessages[n].tag)>=0)return this._failedMessages[n].message;return""},t.prototype.isTrue=function(t,e,n,r){return void 0===e&&(e="value is not true"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(!0===t,e,n,r)},t.prototype.isBoolean=function(t,e,n,r){return void 0===e&&(e="value is not a boolean"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus("boolean"==typeof t,e,n,r)},t.prototype.isNumeric=function(t,e,n,r){return void 0===e&&(e="value is not a number"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(i.NumericUtils.isNumeric(t),e,n,r)},t.prototype.isNumericBetween=function(t,e,n,r,o,a){return void 0===r&&(r="value is not between min and max"),void 0===o&&(o=""),void 0===a&&(a=!1),this._updateValidationStatus(i.NumericUtils.isNumeric(t)&&t>=e&&t<=n,r,o,a)},t.prototype.isString=function(t,e,n,i){return void 0===e&&(e="value is not a string"),void 0===n&&(n=""),void 0===i&&(i=!1),this._updateValidationStatus(r.StringUtils.isString(t),e,n,i)},t.prototype.isUrl=function(t,e,n,i){return void 0===e&&(e="value is not an URL"),void 0===n&&(n=""),void 0===i&&(i=!1),this._updateValidationStatus(r.StringUtils.isUrl(t),e,n,i)},t.prototype.isArray=function(t,e,n,r){return void 0===e&&(e="value is not an array"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(o.ArrayUtils.isArray(t),e,n,r)},t.prototype.isObject=function(t,e,n,r){return void 0===e&&(e="value is not an object"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(a.ObjectUtils.isObject(t),e,n,r)},t.prototype.isFilledIn=function(t,e,n,i,o){return void 0===e&&(e=[]),void 0===n&&(n="value is required"),void 0===i&&(i=""),void 0===o&&(o=!1),this._updateValidationStatus(!r.StringUtils.isEmpty(t,e),n,i,o)},t.prototype.isDate=function(){return!1},t.prototype.isMail=function(){return!1},t.prototype.isEqualTo=function(t,e,n,r,i){void 0===n&&(n="values are not equal"),void 0===r&&(r=""),void 0===i&&(i=!1);var s=!1;return o.ArrayUtils.isArray(t)&&o.ArrayUtils.isArray(e)?s=o.ArrayUtils.isEqualTo(t,e):a.ObjectUtils.isObject(t)&&a.ObjectUtils.isObject(e)?s=a.ObjectUtils.isEqualTo(t,e):t===e&&(s=!0),this._updateValidationStatus(s,n,r,i)},t.prototype.isMinimumWords=function(t){return""===t},t.prototype.isNIF=function(t){return""===t},t.prototype.isMinimumLength=function(t){return""===t},t.prototype.isMaximumLength=function(t){return""===t},t.prototype.isPostalCode=function(t){return""===t},t.prototype.isPhone=function(t){return""===t},t.prototype.isHtmlFormValid=function(t){return""===t},t.prototype.reset=function(){this._validationStatus=[{tag:"",status:t.OK}],this._failedMessages=[]},t.prototype._updateValidationStatus=function(e,n,r,i){if(void 0===r&&(r=""),!e){for(var a=o.ArrayUtils.isArray(r)?r:[r],s=0,u=a;sget: key does not exist or is invalid")},t.prototype.getAt=function(t){if("number"==typeof t&&a.NumericUtils.isInteger(t)&&t>=0&&tgetAt: index does not exist or is invalid")},t.prototype.getKeys=function(){return this._keys},t.prototype.getValues=function(){for(var t=[],e=0;erename: key does not exist "+t)},t.prototype.rename=function(t,e){if(this._validateKeyFormat(t),this._validateKeyFormat(e),this.isKey(e))throw new Error("HashMapObject->rename: newKey "+e+" already exists");if(this.isKey(t)){for(var n={},r=0;rrename: key does not exist "+t)},t.prototype.swap=function(t,e){if(this._validateKeyFormat(t),this._validateKeyFormat(e),!this.isKey(t))throw new Error("HashMapObject->swap: key1 does not exist "+t);if(!this.isKey(e))throw new Error("HashMapObject->swap: key2 does not exist "+e);for(var n={},r=this.get(t),i=this.get(e),o=0;osortByKey: Unknown sort method or order")}return!0},t.prototype.shift=function(){if(this._length<=0)throw new Error("HashMapObject->shift: No elements");this._length--;var t=this._data[this._keys[0]];return delete this._data[this._keys[0]],this._keys.shift(),t},t.prototype.pop=function(){if(this._length<=0)throw new Error("HashMapObject->pop: No elements");this._length--;var t=this._data[this._keys[this._length]];return delete this._data[this._keys[this._length]],this._keys.pop(),t},t.prototype.reverse=function(){return this._keys.reverse(),!0},t.prototype._validateKeyFormat=function(t){if(!r.StringUtils.isString(t)||""==t.replace(/ |\n|\r|\t/gi,""))throw new Error("HashMapObject: key must be a non empty string")},t.SORT_METHOD_STRING="SORT_METHOD_STRING",t.SORT_METHOD_NUMERIC="SORT_METHOD_NUMERIC",t.SORT_ORDER_ASCENDING="SORT_ORDER_ASCENDING",t.SORT_ORDER_DESCENDING="SORT_ORDER_DESCENDING",t}();e.HashMapObject=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(e,n,r){void 0===n&&(n="STRING"),void 0===r&&(r=0),this.resultFormat=t.STRING,this.ignoreGlobalPostParams=!1,this.successCallback=function(){},this.errorCallback=function(){},this.finallyCallback=function(){},this.url=e,this.resultFormat=n,this.timeout=r}return t.STRING="STRING",t.JSON="JSON",t}();e.HTTPManagerBaseRequest=r},function(t,e,n){"use strict";var r=n(13),i="object"===typeof document&&null!==document,o="object"===typeof window&&null!==window&&window.self===window;e.a=function t(){return Object(r.a)(t.override)?i&&o:t.override}},function(t,e,n){"use strict";t.exports=n(453)},function(t,e,n){"use strict";var r=n(84);e.a=function(t){return"string"===typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s}));var r=n(142);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function s(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"===typeof e?a:o)(t,e,null==n?"":n)):s(this.node(),t)}},function(t,e,n){"use strict";var r=n(237);e.a=function(t,e){if(t=Object(r.a)(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=Date.now;e.a=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(50))},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(99),i=Math.max;e.a=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a=200&&(f=u.a,h=!1,e=new r.a(e));t:for(;++c=200){var m=e?null:c(t);if(m)return Object(l.a)(m);h=!1,u=a.a,p=new r.a}else p=e?[]:d;t:for(;++s1&&i.children&&i.children.length>1&&(i.children.pop(),i.data.spouseParentNodeId=void 0),i};var u=function(){function t(t){this.options=t,this.util=new o.ChartUtil(t)}return t.prototype.createHierarchy=function(){var t,e,n=[],r=[],o=this.options.idGenerator||new s.IdGenerator;if(this.options.startIndi){var u=(p=this.options.data.getIndi(this.options.startIndi).getFamilyAsChild())?o.getId(p):void 0;p&&r.push({id:p,parentId:this.options.startIndi,family:{id:p}}),n.push({id:this.options.startIndi,indi:{id:this.options.startIndi},indiParentNodeId:u})}else r.push({id:o.getId(this.options.startFam),family:{id:this.options.startFam}});for(;r.length;){var l=r.pop(),c=this.options.data.getFam(l.family.id);if(c){var f=l.family.id===this.options.startFam&&this.options.swapStartSpouses?[c.getMother(),c.getFather()]:[c.getFather(),c.getMother()],h=f[0],d=f[1];if(h||d){var p;if(d)if(l.spouse={id:d},p=this.options.data.getIndi(d).getFamilyAsChild())if(null===(t=this.options.collapsedSpouse)||void 0===t?void 0:t.has(l.id))l.spouse.expander=i.ExpanderState.PLUS;else{u=o.getId(p);l.spouseParentNodeId=u,l.spouse.expander=i.ExpanderState.MINUS,r.push({id:u,parentId:l.id,family:{id:p}})}if(h)if(l.indi={id:h},p=this.options.data.getIndi(h).getFamilyAsChild())if(null===(e=this.options.collapsedIndi)||void 0===e?void 0:e.has(l.id))l.indi.expander=i.ExpanderState.PLUS;else{u=o.getId(p);l.indiParentNodeId=u,l.indi.expander=i.ExpanderState.MINUS,r.push({id:u,parentId:l.id,family:{id:p}})}n.push(l)}}}return a.stratify()(n)},t.prototype.render=function(){var t=this.createHierarchy(),e=this.util.layOutChart(t,{flipVertically:!0}),n=this.util.renderChart(e),r=o.getChartInfo(e);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},t}();e.AncestorChart=u},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(35))},function(t,e,n){(e=t.exports=n(326)).Stream=e,e.Readable=e,e.Writable=n(260),e.Duplex=n(117),e.Transform=n(330),e.PassThrough=n(545)},function(t,e,n){var r=n(27),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,r,i){var o=n(199);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=b;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:o.nextTick;b.WritableState=g;var l=Object.create(n(174));l.inherits=n(15);var c={deprecate:n(329)},f=n(327),h=n(259).Buffer,d=i.Uint8Array||function(){};var p,m=n(328);function v(){}function g(t,e){s=s||n(117),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}(t,n,r,e,i);else{var a=M(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?u(w,t,n,a,i):w(t,n,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||n(117),!p.call(b,this)&&!(this instanceof s))return new b(t);this._writableState=new g(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 y(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(y(t,e,!1,e.objectMode?1:l.length,l,c,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function E(t,e){var n=M(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(O,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(b,f),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===b&&(t&&t._writableState instanceof g)}})):p=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,h.isBuffer(r)||r instanceof d);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"===typeof e&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!==typeof n&&(n=v),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=h.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,n){var r=this._writableState;"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(35),n(543).setImmediate,n(50))},function(t,e,n){"use strict";var r=n(15),i=n(335),o=n(19).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<>>32-e}function l(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function c(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function h(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=l(n,r,i,o,t[0],3614090360,7),o=l(o,n,r,i,t[1],3905402710,12),i=l(i,o,n,r,t[2],606105819,17),r=l(r,i,o,n,t[3],3250441966,22),n=l(n,r,i,o,t[4],4118548399,7),o=l(o,n,r,i,t[5],1200080426,12),i=l(i,o,n,r,t[6],2821735955,17),r=l(r,i,o,n,t[7],4249261313,22),n=l(n,r,i,o,t[8],1770035416,7),o=l(o,n,r,i,t[9],2336552879,12),i=l(i,o,n,r,t[10],4294925233,17),r=l(r,i,o,n,t[11],2304563134,22),n=l(n,r,i,o,t[12],1804603682,7),o=l(o,n,r,i,t[13],4254626195,12),i=l(i,o,n,r,t[14],2792965006,17),n=c(n,r=l(r,i,o,n,t[15],1236535329,22),i,o,t[1],4129170786,5),o=c(o,n,r,i,t[6],3225465664,9),i=c(i,o,n,r,t[11],643717713,14),r=c(r,i,o,n,t[0],3921069994,20),n=c(n,r,i,o,t[5],3593408605,5),o=c(o,n,r,i,t[10],38016083,9),i=c(i,o,n,r,t[15],3634488961,14),r=c(r,i,o,n,t[4],3889429448,20),n=c(n,r,i,o,t[9],568446438,5),o=c(o,n,r,i,t[14],3275163606,9),i=c(i,o,n,r,t[3],4107603335,14),r=c(r,i,o,n,t[8],1163531501,20),n=c(n,r,i,o,t[13],2850285829,5),o=c(o,n,r,i,t[2],4243563512,9),i=c(i,o,n,r,t[7],1735328473,14),n=f(n,r=c(r,i,o,n,t[12],2368359562,20),i,o,t[5],4294588738,4),o=f(o,n,r,i,t[8],2272392833,11),i=f(i,o,n,r,t[11],1839030562,16),r=f(r,i,o,n,t[14],4259657740,23),n=f(n,r,i,o,t[1],2763975236,4),o=f(o,n,r,i,t[4],1272893353,11),i=f(i,o,n,r,t[7],4139469664,16),r=f(r,i,o,n,t[10],3200236656,23),n=f(n,r,i,o,t[13],681279174,4),o=f(o,n,r,i,t[0],3936430074,11),i=f(i,o,n,r,t[3],3572445317,16),r=f(r,i,o,n,t[6],76029189,23),n=f(n,r,i,o,t[9],3654602809,4),o=f(o,n,r,i,t[12],3873151461,11),i=f(i,o,n,r,t[15],530742520,16),n=h(n,r=f(r,i,o,n,t[2],3299628645,23),i,o,t[0],4096336452,6),o=h(o,n,r,i,t[7],1126891415,10),i=h(i,o,n,r,t[14],2878612391,15),r=h(r,i,o,n,t[5],4237533241,21),n=h(n,r,i,o,t[12],1700485571,6),o=h(o,n,r,i,t[3],2399980690,10),i=h(i,o,n,r,t[10],4293915773,15),r=h(r,i,o,n,t[1],2240044497,21),n=h(n,r,i,o,t[8],1873313359,6),o=h(o,n,r,i,t[15],4264355552,10),i=h(i,o,n,r,t[6],2734768916,15),r=h(r,i,o,n,t[13],1309151649,21),n=h(n,r,i,o,t[4],4149444226,6),o=h(o,n,r,i,t[11],3174756917,10),i=h(i,o,n,r,t[2],718787259,15),r=h(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=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=s},function(t,e,n){"use strict";var r=n(136).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"===typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i>>32-e}function m(t,e,n,r,i,o,a,s){return p(t+(e^n^r)+o+a|0,s)+i|0}function v(t,e,n,r,i,o,a,s){return p(t+(e&n|~e&r)+o+a|0,s)+i|0}function g(t,e,n,r,i,o,a,s){return p(t+((e|~n)^r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return p(t+(e&r|n&~r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return p(t+(e^(n|~r))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,M=0|this._c,O=0|this._d,E=0|this._e,S=0;S<80;S+=1){var k,x;S<16?(k=m(n,r,i,o,d,t[s[S]],f[0],l[S]),x=y(w,_,M,O,E,t[u[S]],h[0],c[S])):S<32?(k=v(n,r,i,o,d,t[s[S]],f[1],l[S]),x=b(w,_,M,O,E,t[u[S]],h[1],c[S])):S<48?(k=g(n,r,i,o,d,t[s[S]],f[2],l[S]),x=g(w,_,M,O,E,t[u[S]],h[2],c[S])):S<64?(k=b(n,r,i,o,d,t[s[S]],f[3],l[S]),x=v(w,_,M,O,E,t[u[S]],h[3],c[S])):(k=y(n,r,i,o,d,t[s[S]],f[4],l[S]),x=m(w,_,M,O,E,t[u[S]],h[4],c[S])),n=d,d=o,o=p(i,10),i=r,r=k,w=E,E=O,O=p(M,10),M=_,_=x}var j=this._b+i+O|0;this._b=this._c+o+E|0,this._c=this._d+d+w|0,this._d=this._e+n+_|0,this._e=this._a+r+M|0,this._a=j},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=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=d},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(571),e.sha1=n(572),e.sha224=n(573),e.sha256=n(343),e.sha384=n(574),e.sha512=n(344)},function(t,e,n){"use strict";var r=n(63);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,n){var i=function(t){var e=o(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),a=n.modulus.byteLength(),s=new r(t).mul(i.blinder).umod(n.modulus),u=s.toRed(r.mont(n.prime1)),l=s.toRed(r.mont(n.prime2)),c=n.coefficient,f=n.prime1,h=n.prime2,d=u.redPow(n.exponent1).fromRed(),p=l.redPow(n.exponent2).fromRed(),m=d.isub(p).imul(c).umod(f).imul(h);return p.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(e,"be",a)}a.getr=o,t.exports=a}).call(this,n(27).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(602).Buffer}catch(j){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&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")]=f}catch(j){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var h=["","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"],d=[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];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],c=p[t];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(t);n=(f=f.idivn(c)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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]:this.length>2&&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)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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){var e;e=this.length>t.length?t:this;for(var n=0;nt.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){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.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&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],O=8191&M,E=M>>>13,S=0|a[5],k=8191&S,x=S>>>13,j=0|a[6],A=8191&j,C=j>>>13,T=0|a[7],P=8191&T,I=T>>>13,N=0|a[8],R=8191&N,L=N>>>13,D=0|a[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],Z=8191&H,V=H>>>13,W=0|s[2],K=8191&W,G=W>>>13,Q=0|s[3],Y=8191&Q,$=Q>>>13,X=0|s[4],J=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,V)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,K)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,$)|0;var wt=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,J)|0))<<13)|0;l=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;l=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;l=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Ot=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(h,ut)|0))<<13)|0;l=((o=o+Math.imul(h,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var Et=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ht)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((o=o+Math.imul(h,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,V))+Math.imul(B,Z)|0,o=Math.imul(B,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ht)|0;var kt=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var xt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,$))+Math.imul(B,Y)|0,o=Math.imul(B,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(E,ft)|0,o=o+Math.imul(E,ht)|0;var jt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,tt))+Math.imul(B,J)|0,o=Math.imul(B,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var At=(l+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;l=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(F,nt),i=(i=Math.imul(F,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ht)|0;var Ct=(l+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(B,ot)|0,o=Math.imul(B,at),r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Tt=(l+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(F,ut),i=(i=Math.imul(F,lt))+Math.imul(B,ut)|0,o=Math.imul(B,lt),r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Pt=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(B,ft)|0,o=Math.imul(B,ht);var It=(l+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Nt=(l+(r=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,mt))+Math.imul(B,pt)|0))<<13)|0;return l=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=Ot,u[8]=Et,u[9]=St,u[10]=kt,u[11]=xt,u[12]=jt,u[13]=At,u[14]=Ct,u[15]=Tt,u[16]=Pt,u[17]=It,u[18]=Nt,0!==l&&(u[19]=l,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(t,e,n){return g(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(v=m),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):n<63?m(this,t,e):n<1024?g(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},y.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,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()),n=0;n>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},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&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;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>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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);var i,a,s},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=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=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());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.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);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},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 k(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 w={k256:null,p224:null,p192:null,p25519:null};function _(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(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){k.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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(M,_),M.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?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,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new O;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return w[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.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")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,k),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(118)(t))},function(t,e,n){"use strict";var r=e;r.version=n(603).version,r.utils=n(64),r.rand=n(268),r.curve=n(364),r.curves=n(272),r.ec=n(615),r.eddsa=n(619)},function(t,e,n){"use strict";var r,i=e,o=n(273),a=n(364),s=n(64).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.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 l(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(614)}catch(c){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,n){var r=e;r.utils=n(75),r.common=n(178),r.sha=n(608),r.ripemd=n(612),r.hmac=n(613),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(t,e,n){"use strict";(function(e){var r,i=n(27),o=i.Buffer,a={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=i[r]);var s=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=o[r]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,n){if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&"undefined"===typeof t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,e,n)}),s.alloc||(s.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=o(t);return e&&0!==e.length?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(u){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,n(35))},function(t,e,n){"use strict";var r=n(276).Reporter,i=n(179).EncoderBuffer,o=n(179).DecoderBuffer,a=n(63),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(t,e,n){var r={};this._baseState=r,r.name=n,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(n){e[n]=t[n]}));var n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},l.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){var e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){l.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){l.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),l.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(t,u,n.any),t.isError(a))return a}else{var l=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(m){a=!1}t.restore(l)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){var c=this._decodeTag(t,n.explicit);if(t.isError(c))return c;t=c}var f=t.offset;if(null===n.use&&null===n.choice){var h;n.any&&(h=t.save());var d=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(d))return d;n.any?i=t.raw(h):t=d}if(e&&e.track&&null!==n.tag&&e.track(t.path(),f,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(p,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(t,e,n){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=t.save(),s=n.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;r={type:o,value:u},i=!0}catch(l){return t.restore(a),!1}return!0}),this),i?r:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},l.prototype._encode=function(t,e,n){var r=this._baseState;if(null===r.default||r.default!==t){var i=this._encodeValue(t,e,n);if(void 0!==i&&!this._skipDefault(i,e,n))return i}},l.prototype._encodeValue=function(t,e,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var r=e.enterKey(n._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){var r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)}),u))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===l?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(l,s,c,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(t,e){var n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.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,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,n){"use strict";var r=n(15);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(t,e,n){"use strict";function r(t){var e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);var r=t[n];e[r]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(638).Buffer}catch(S){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}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 t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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 d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:c[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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]:this.length>2&&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("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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){var e;e=this.length>t.length?t:this;for(var n=0;nt.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){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.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&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],O=8191&M,E=M>>>13,S=0|a[5],k=8191&S,x=S>>>13,j=0|a[6],A=8191&j,C=j>>>13,T=0|a[7],P=8191&T,I=T>>>13,N=0|a[8],R=8191&N,L=N>>>13,D=0|a[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],Z=8191&H,V=H>>>13,W=0|s[2],K=8191&W,G=W>>>13,Q=0|s[3],Y=8191&Q,$=Q>>>13,X=0|s[4],J=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,V)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,K)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,$)|0;var wt=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,J)|0))<<13)|0;l=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;l=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;l=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Ot=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(h,ut)|0))<<13)|0;l=((o=o+Math.imul(h,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var Et=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ht)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((o=o+Math.imul(h,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,V))+Math.imul(B,Z)|0,o=Math.imul(B,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ht)|0;var kt=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var xt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,$))+Math.imul(B,Y)|0,o=Math.imul(B,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(E,ft)|0,o=o+Math.imul(E,ht)|0;var jt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,tt))+Math.imul(B,J)|0,o=Math.imul(B,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var At=(l+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;l=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(F,nt),i=(i=Math.imul(F,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ht)|0;var Ct=(l+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(B,ot)|0,o=Math.imul(B,at),r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Tt=(l+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(F,ut),i=(i=Math.imul(F,lt))+Math.imul(B,ut)|0,o=Math.imul(B,lt),r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Pt=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(B,ft)|0,o=Math.imul(B,ht);var It=(l+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Nt=(l+(r=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,mt))+Math.imul(B,pt)|0))<<13)|0;return l=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=Ot,u[8]=Et,u[9]=St,u[10]=kt,u[11]=xt,u[12]=jt,u[13]=At,u[14]=Ct,u[15]=Tt,u[16]=Pt,u[17]=It,u[18]=Nt,0!==l&&(u[19]=l,n.length++),n};function m(t,e,n){return(new v).mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=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()),n=0;n>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},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&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;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>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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);var i,a,s},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=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%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());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.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);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},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 O(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 g={k256:null,p224:null,p192:null,p25519:null};function b(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(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){O.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(y,b),y.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?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,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},O.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},O.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")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,O),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(118)(t))},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(207),o=n(46),a=n(58),s=n(206),u=n(383),l=function(t){function e(e){void 0===e&&(e="");var n=t.call(this)||this;if(!o.StringUtils.isString(e))throw new Error("value must be a string");if(""===e)return n;if(e.length<2||"="===e.substr(0,1)||e.indexOf("=")<0&&e.indexOf(":")<0)throw new Error("invalid properties format");for(var r="",i="",a=!1,s=0,l=o.StringUtils.getLines(e,[/\s+/g,/ *#.*| *!.*/g]);s=0}catch(n){try{return null!=t&&t instanceof e}catch(t){return!1}}},e.prototype.isEqualTo=function(t,n){void 0===n&&(n=!1);var r=null;try{r=new e(t)}catch(n){try{t instanceof e&&(r=t)}catch(t){}}if(null==r)throw new Error("properties does not contain valid java properties data");var i=this.getKeys(),o=r.getKeys();if(i.length!=o.length||n&&!a.ArrayUtils.isEqualTo(i,o))return!1;for(var u=new s.ValidationManager,l=0,c=i;l=0;)e+=n[r].value;else e=1;t.value=e}var l=n(9);var c=n(8),f=n.n(c),h=f.a.mark(d);function d(){var t,e,n,r,i,o;return f.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){a.next=8;break}return a.next=5,t;case 5:if(r=t.children)for(i=0,o=r.length;i=0;--o)u.push(r=i[o]=new y(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(b)}function m(t){return t.children}function v(t){return Array.isArray(t)?t[1]:null}function g(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function b(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function y(t){this.data=t,this.depth=this.height=0,this.parent=null}y.prototype=p.prototype=Object(s.a)({constructor:y,count:function(){return this.eachAfter(u)},each:function(t,e){var n,r=-1,i=Object(l.a)(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.call(e,o,++r,this)}}catch(a){i.e(a)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=Object(l.a)(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return p(this).eachBefore(g)}},Symbol.iterator,d);var w=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];r0&&n*n>r*r+i*i}function E(t,e){for(var n=0;n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function A(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function C(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function T(t){this._=t,this.next=null,this.previous=null}function P(t){if(!(o=(e=t,t="object"===typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,o,a,s,u,l,c,f,h;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;j(r,n,i=t[2]),n=new T(n),r=new T(r),i=new T(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=R(e),n):t},n.parentId=function(t){return arguments.length?(e=R(t),n):e},n};function $(t,e){return t.parent===e.parent?1:2}function X(t){var e=t.children;return e?e[0]:t.t}function J(t){var e=t.children;return e?e[e.length-1]:t.t}function tt(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function et(t,e,n){return t.a.parent===e.parent?t.a:n}function nt(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}nt.prototype=Object.create(y.prototype);var rt=function(){var t=$,e=1,n=1,r=null;function i(i){var u=function(t){for(var e,n,r,i,o,a=new nt(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new nt(r[i],i)),n.parent=e;return(a.parent=new nt(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,p=e/(c.x+h+d),m=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*m}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,h=u.m;s=J(s),o=X(o),s&&o;)u=X(u),(a=J(a)).a=e,(i=s.z+f-o.z-l+t(s._,o._))>0&&(tt(et(s,e,r),e,i),l+=i,c+=i),f+=s.m,l+=o.m,h+=u.m,c+=a.m;s&&!J(a)&&(a.t=s,a.m+=f-c),o&&!X(u)&&(u.t=o,u.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},it=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(i-n)/t.value;++sh&&(h=s),v=c*c*m,(d=Math.max(h/v,v/f))>p){c-=s;break}p=d}g.push(a={value:c,dice:u1?e:1)},n}(ot),ut=function(){var t=st,e=!1,n=1,r=1,i=[0],o=L,a=L,s=L,u=L,l=L;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(H),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f=n-1){var c=s[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;l[m]u-o){var b=r?(i*g+a*v)/r:a;t(e,d,v,i,o,b,u),t(d,n,g,b,o,a,u)}else{var y=r?(o*g+u*v)/r:u;t(e,d,v,i,o,a,y),t(d,n,g,i,y,a,u)}}(0,u,t.value,e,n,r,i)},ct=function(t,e,n,r,i){(1&t.depth?it:Z)(t,e,n,r,i)},ft=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,l,c,f=-1,h=a.length,d=t.value;++f1?e:1)},n}(ot)},function(t,e,n){var r=n(506),i=/\s*(0|[1-9]+[0-9]*) (@[^@]+@ |)([A-Za-z0-9_]+)( [^\n\r]*|)/;t.exports.parse=function(t){var e={root:{tree:[]},level:0};e.pointer=e.root;var n=t.split("\n").map((function(t){var e=t.match(i);return e?{level:parseInt(e[1],10),pointer:e[2].trim(),tag:e[3].trim(),data:e[4].trimLeft(),tree:[]}:null})).filter((function(t){return t})).reduce((function(t,e){if(e.level===t.level)t.pointer.tree.push(e);else if(e.level>t.level){var n=t.pointer;t.pointer=t.pointer.tree[t.pointer.tree.length-1],t.pointer.tree.push(e),t.pointer.up=n,t.level=e.level}else if(e.level>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[u>>>5]|=128<>>9<<4)]=u;var p=t._ff,m=t._gg,v=t._hh,g=t._ii;for(d=0;d>>0,c=c+y>>>0,f=f+w>>>0,h=h+_>>>0}return e.endian([l,c,f,h])};a._ff=function(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+(i>>>0)+a;return(s<>>32-o)+e},a._gg=function(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+e},a._hh=function(t,e,n,r,i,o,a){var s=t+(e^n^r)+(i>>>0)+a;return(s<>>32-o)+e},a._ii=function(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+(i>>>0)+a;return(s<>>32-o)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):e.bytesToHex(r)}}()},function(t,e,n){(function(n){var r,i,o;i=[],void 0===(o="function"===typeof(r=function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){u(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=a.URL||a.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?o(u):i(u.href)?r(t,e,n):o(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var f=a.URL||a.webkitURL,h=f.createObjectURL(t);i?i.location=h:location.href=h,i=null,setTimeout((function(){f.revokeObjectURL(h)}),4e4)}});a.saveAs=u.saveAs=u,t.exports=u})?r.apply(e,i):r)||(t.exports=o)}).call(this,n(50))},,,,,,function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(464),i=n(476),o=n(194),a=n(308),s=n(312),u=n(502);t.exports=function(t){var e,n=u(this),l=s(o(n,"length"));if(!a(t))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(e=arguments[1]);var c=r(n,0);return i(c,n,l,0,1,t,e),c}},function(t,e,n){"use strict";var r=n(25)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(o){r=null}var i=n(134)("Object.prototype.propertyIsEnumerable");t.exports=function(t,e,n,o,a,s){if(!r){if(!t(s))return!1;if(!s["[[Configurable]]"]||!s["[[Writable]]"])return!1;if(a in o&&i(o,a)!==!!s["[[Enumerable]]"])return!1;var u=s["[[Value]]"];return o[a]=u,e(o[a],u)}return r(o,a,n(s)),!0}},function(t,e,n){"use strict";var r=n(253),i=n(62);t.exports=function(t){if("undefined"===typeof t)return t;r(i,"Property Descriptor","Desc",t);var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=t["[[Configurable]]"]),e}},function(t,e,n){"use strict";var r=n(115),i=n(253),o=n(62);t.exports=function(t){return"undefined"!==typeof t&&(i(o,"Property Descriptor","Desc",t),!(!r(t,"[[Value]]")&&!r(t,"[[Writable]]")))}},function(t,e,n){"use strict";var r=n(254);t.exports=function(t,e){return t===e?0!==t||1/t===1/e:r(t)&&r(e)}},function(t,e,n){"use strict";var r=n(115),i=n(25)("%TypeError%"),o=n(62),a=n(307),s=n(308);t.exports=function(t){if("Object"!==o(t))throw new i("ToPropertyDescriptor requires an object");var e={};if(r(t,"enumerable")&&(e["[[Enumerable]]"]=a(t.enumerable)),r(t,"configurable")&&(e["[[Configurable]]"]=a(t.configurable)),r(t,"value")&&(e["[[Value]]"]=t.value),r(t,"writable")&&(e["[[Writable]]"]=a(t.writable)),r(t,"get")){var n=t.get;if("undefined"!==typeof n&&!s(n))throw new i("getter must be a function");e["[[Get]]"]=n}if(r(t,"set")){var u=t.set;if("undefined"!==typeof u&&!s(u))throw new i("setter must be a function");e["[[Set]]"]=u}if((r(e,"[[Get]]")||r(e,"[[Set]]"))&&(r(e,"[[Value]]")||r(e,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}},function(t,e,n){"use strict";t.exports=function(t){return!!t}},function(t,e,n){"use strict";t.exports=n(255)},function(t,e,n){"use strict";var r=Number.isNaN||function(t){return t!==t};t.exports=Number.isFinite||function(t){return"number"===typeof t&&!r(t)&&t!==1/0&&t!==-1/0}},function(t,e,n){"use strict";var r=n(25),i=r("%Math%"),o=r("%Number%");t.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},function(t,e,n){"use strict";t.exports=function(t){return null===t||"function"!==typeof t&&"object"!==typeof t}},function(t,e,n){"use strict";var r=n(310),i=n(487);t.exports=function(t){var e=i(t);return e<=0?0:e>r?r:e}},function(t,e,n){"use strict";t.exports=function(t){return null===t||"function"!==typeof t&&"object"!==typeof t}},function(t,e,n){"use strict";var r=n(301);t.exports=function(){return Array.prototype.flatMap||r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDataProvider=void 0;var r=function(){function t(t){this.json=t}return t.prototype.getId=function(){return this.json.id},t.prototype.getFamiliesAsSpouse=function(){return this.json.fams||[]},t.prototype.getFamilyAsChild=function(){return this.json.famc||null},t.prototype.getFirstName=function(){return this.json.firstName||null},t.prototype.getLastName=function(){return this.json.lastName||null},t.prototype.getBirthDate=function(){return this.json.birth||null},t.prototype.getMaidenName=function(){return this.json.maidenName||null},t.prototype.getNumberOfChildren=function(){return this.json.numberOfChildren||null},t.prototype.getNumberOfMarriages=function(){return this.json.numberOfMarriages||null},t.prototype.getBirthPlace=function(){return this.json.birth&&this.json.birth.place||null},t.prototype.getDeathDate=function(){return this.json.death||null},t.prototype.getDeathPlace=function(){return this.json.death&&this.json.death.place||null},t.prototype.isConfirmedDeath=function(){return!!this.json.death&&!!this.json.death.confirmed},t.prototype.getSex=function(){return this.json.sex||null},t.prototype.getImageUrl=function(){return this.json.images&&this.json.images.length>0&&this.json.images[0].url||null},t.prototype.getImages=function(){return this.json.images||null},t.prototype.getNotes=function(){return this.json.notes||null},t.prototype.getEvents=function(){return this.json.events||null},t.prototype.showId=function(){return!this.json.hideId},t.prototype.showSex=function(){return!this.json.hideSex},t}(),i=function(){function t(t){this.json=t}return t.prototype.getId=function(){return this.json.id},t.prototype.getFather=function(){return this.json.husb||null},t.prototype.getMother=function(){return this.json.wife||null},t.prototype.getChildren=function(){return this.json.children||[]},t.prototype.getMarriageDate=function(){return this.json.marriage||null},t.prototype.getMarriagePlace=function(){return this.json.marriage&&this.json.marriage.place||null},t}(),o=function(){function t(t){var e=this;this.json=t,this.indis=new Map,this.fams=new Map,t.indis.forEach((function(t){return e.indis.set(t.id,new r(t))})),t.fams.forEach((function(t){return e.fams.set(t.id,new i(t))}))}return t.prototype.getIndi=function(t){return this.indis.get(t)||null},t.prototype.getFam=function(t){return this.fams.get(t)||null},t}();e.JsonDataProvider=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatDateOrRange=e.formatDate=void 0;var r=new Map([[1,"Jan"],[2,"Feb"],[3,"Mar"],[4,"Apr"],[5,"May"],[6,"Jun"],[7,"Jul"],[8,"Aug"],[9,"Sep"],[10,"Oct"],[11,"Nov"],[12,"Dec"]]),i=new Map([["cs",new Map([["cal","vypo\u010dt."],["abt","okolo"],["est","odhadem"],["before","p\u0159ed"],["after","po"]])],["de",new Map([["cal","errech."],["abt","etwa"],["est","gesch\xe4t."],["before","vor"],["after","nach"]])],["fr",new Map([["cal","calc."],["abt","vers"],["est","est."],["before","avant"],["after","apr\xe8s"]])],["it",new Map([["cal","calc."],["abt","circa il"],["est","stim."],["before","prima del"],["after","dopo del"]])],["pl",new Map([["cal","wyl."],["abt","ok."],["est","szac."],["before","przed"],["after","po"]])],["ru",new Map([["cal","\u0432\u044b\u0447."],["abt","\u043e\u043a."],["est","\u043e\u0446\u0435\u043d."],["before","\u0434\u043e"],["after","\u043f\u043e\u0441\u043b\u0435"]])]]),o=new Map;function a(t,e){if(!Intl||!Intl.DateTimeFormat)return r.get(t);var n=t+"|"+(e||"");if(o.has(n))return o.get(n);var i=new Intl.DateTimeFormat(e,{month:"short"}).format(new Date(2e3,t-1));return o.set(n,i),i}function s(t,e){var n=e&&e.split(/[-_]/)[0],r=n&&i.get(n);return r?r.get(t):t}function u(t,e,n,r){if(!t&&!e&&!n)return"";if(!Intl||!Intl.DateTimeFormat||!r||"en"===r)return[t,e&&a(e,r),n].join(" ");var i={day:t?"numeric":void 0,month:e?"short":void 0,year:n?"numeric":void 0};return new Intl.DateTimeFormat(r,i).format(new Date(null!==n&&void 0!==n?n:2e3,e?e-1:1,null!==t&&void 0!==t?t:1))}function l(t,e){return[t.qualifier&&s(t.qualifier,e),u(t.day,t.month,t.year,e),t.text].join(" ")}e.formatDate=l,e.formatDateOrRange=function(t,e){if(t.date)return l(t.date,e);if(!t.dateRange)return"";var n=t.dateRange.from&&l(t.dateRange.from,e),r=t.dateRange.to&&l(t.dateRange.to,e);return n&&r?n+" .. "+r:n?s("after",e)+" "+n:r?s("before",e)+" "+r:""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.otherSideLinkType=e.LinkType=e.ChildNodes=void 0;var r,i=function(){function t(t){void 0===t&&(t={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,t)}return t.prototype.get=function(t){switch(t){case r.IndiParents:return this.indiParents;case r.IndiSiblings:return this.indiSiblings;case r.SpouseParents:return this.spouseParents;case r.SpouseSiblings:return this.spouseSiblings;case r.Children:return this.children}},t.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},t.EMPTY=new t,t}();e.ChildNodes=i,function(t){t[t.IndiParents=0]="IndiParents",t[t.IndiSiblings=1]="IndiSiblings",t[t.SpouseParents=2]="SpouseParents",t[t.SpouseSiblings=3]="SpouseSiblings",t[t.Children=4]="Children"}(r=e.LinkType||(e.LinkType={})),e.otherSideLinkType=function(t){switch(t){case r.IndiParents:return r.Children;case r.IndiSiblings:return r.IndiSiblings;case r.SpouseParents:return r.Children;case r.SpouseSiblings:return r.IndiSiblings;case r.Children:return r.IndiParents}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.points2pathd=e.zip=e.last=e.nonEmpty=void 0,e.nonEmpty=function(t){return!(!t||!t.length)},e.last=function(t){return t[t.length-1]},e.zip=function(t,e){return t.map((function(t,n){return[t,e[n]]}))},e.points2pathd=function(t){for(var e="M "+t[0].x+" "+t[0].y+" L",n=0,r=t.slice(1);n0)return e}catch(r){}return n(172)}}).call(this,n(35))},function(t,e){t.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}},function(t,e){t.exports={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"}},function(t,e,n){(function(e){var r=n(171),i=n(323),o=r.Constants,a=n(537);t.exports=function(t){var n=new i.EntryHeader,s=e.alloc(0),u=e.alloc(0),l=!1,c=null,f=e.alloc(0);function h(){return t&&e.isBuffer(t)?(n.loadDataHeaderFromBinary(t),t.slice(n.realDataOffset,n.realDataOffset+n.compressedSize)):e.alloc(0)}function d(t){return 8===(8&n.flags)||r.crc32(t)===n.dataHeader.crc}function p(t,i,o){if("undefined"===typeof i&&"string"===typeof t&&(o=t,t=void 0),l)return t&&i&&i(e.alloc(0),r.Errors.DIRECTORY_CONTENT_ERROR),e.alloc(0);var u=h();if(0===u.length)return t&&i&&i(u),u;if(n.encripted){if("string"!==typeof o&&!e.isBuffer(o))throw new Error("ADM-ZIP: Incompatible password parameter");u=a.ZipCrypto.decrypt(u,n,o)}var c=e.alloc(n.size);switch(n.method){case r.Constants.STORED:if(u.copy(c),d(c))return t&&i&&i(c),c;throw t&&i&&i(c,r.Errors.BAD_CRC),new Error(r.Errors.BAD_CRC);case r.Constants.DEFLATED:var f=new a.Inflater(u);if(!t){if(f.inflate(c).copy(c,0),!d(c))throw new Error(r.Errors.BAD_CRC+" "+s.toString());return c}f.inflateAsync((function(t){t.copy(t,0),i&&(d(t)?i(t):i(t,r.Errors.BAD_CRC))}));break;default:throw t&&i&&i(e.alloc(0),r.Errors.UNKNOWN_METHOD),new Error(r.Errors.UNKNOWN_METHOD)}}function m(i,o){if((!c||!c.length)&&e.isBuffer(t))return i&&o&&o(h()),h();if(c.length&&!l){var s;switch(n.method){case r.Constants.STORED:return n.compressedSize=n.size,s=e.alloc(c.length),c.copy(s),i&&o&&o(s),s;default:case r.Constants.DEFLATED:var u=new a.Deflater(c);if(!i){var f=u.deflate();return n.compressedSize=f.length,f}u.deflateAsync((function(t){s=e.alloc(t.length),n.compressedSize=t.length,t.copy(s),o&&o(s)})),u=null}}else{if(!i||!o)return e.alloc(0);o(e.alloc(0))}}function v(t,e){return(t.readUInt32LE(e+4)<<4)+t.readUInt32LE(e)}function g(t){var e,r,i,a;t.length>=o.EF_ZIP64_SCOMP&&(e=v(t,o.EF_ZIP64_SUNCOMP),n.size===o.EF_ZIP64_OR_32&&(n.size=e)),t.length>=o.EF_ZIP64_RHO&&(r=v(t,o.EF_ZIP64_SCOMP),n.compressedSize===o.EF_ZIP64_OR_32&&(n.compressedSize=r)),t.length>=o.EF_ZIP64_DSN&&(i=v(t,o.EF_ZIP64_RHO),n.offset===o.EF_ZIP64_OR_32&&(n.offset=i)),t.length>=o.EF_ZIP64_DSN+4&&(a=t.readUInt32LE(o.EF_ZIP64_DSN),n.diskNumStart===o.EF_ZIP64_OR_16&&(n.diskNumStart=a))}return{get entryName(){return s.toString()},get rawEntryName(){return s},set entryName(t){var e=(s=r.toBuffer(t))[s.length-1];l=47===e||92===e,n.fileNameLength=s.length},get extra(){return f},set extra(t){f=t,n.extraLength=t.length,function(t){for(var e,n,r,i=0;i"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:n.toJSON(),compressedData:e(t),data:e(c)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}}).call(this,n(27).Buffer)},function(t,e,n){e.EntryHeader=n(535),e.MainHeader=n(536)},function(t,e,n){"use strict";(function(t){var r=n(27).Buffer,i=n(325).Transform,o=n(550),a=n(332),s=n(331).ok,u=n(27).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f=u?a=new RangeError(l):e=r.concat(i,o),i=[],t.close(),n(a,e)}t.on("error",(function(e){t.removeListener("end",s),t.removeListener("readable",a),n(e)})),t.on("end",s),t.end(e),a()}function b(t,e){if("string"===typeof e&&(e=r.from(e)),!r.isBuffer(e))throw new TypeError("Not a string or buffer");var n=t._finishFlushFlag;return t._processChunk(e,n)}function y(t){if(!(this instanceof y))return new y(t);x.call(this,t,o.DEFLATE)}function w(t){if(!(this instanceof w))return new w(t);x.call(this,t,o.INFLATE)}function _(t){if(!(this instanceof _))return new _(t);x.call(this,t,o.GZIP)}function M(t){if(!(this instanceof M))return new M(t);x.call(this,t,o.GUNZIP)}function O(t){if(!(this instanceof O))return new O(t);x.call(this,t,o.DEFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);x.call(this,t,o.INFLATERAW)}function S(t){if(!(this instanceof S))return new S(t);x.call(this,t,o.UNZIP)}function k(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function x(t,n){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!k(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!k(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag="undefined"!==typeof t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(t,n){j(s),s._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],s.emit("error",r)};var u=e.Z_DEFAULT_COMPRESSION;"number"===typeof t.level&&(u=t.level);var l=e.Z_DEFAULT_STRATEGY;"number"===typeof t.strategy&&(l=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,l,t.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function j(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function A(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(d),writable:!1}),e.Deflate=y,e.Inflate=w,e.Gzip=_,e.Gunzip=M,e.DeflateRaw=O,e.InflateRaw=E,e.Unzip=S,e.createDeflate=function(t){return new y(t)},e.createInflate=function(t){return new w(t)},e.createDeflateRaw=function(t){return new O(t)},e.createInflateRaw=function(t){return new E(t)},e.createGzip=function(t){return new _(t)},e.createGunzip=function(t){return new M(t)},e.createUnzip=function(t){return new S(t)},e.deflate=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new y(e),t,n)},e.deflateSync=function(t,e){return b(new y(e),t)},e.gzip=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new _(e),t,n)},e.gzipSync=function(t,e){return b(new _(e),t)},e.deflateRaw=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new O(e),t,n)},e.deflateRawSync=function(t,e){return b(new O(e),t)},e.unzip=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new S(e),t,n)},e.unzipSync=function(t,e){return b(new S(e),t)},e.inflate=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new w(e),t,n)},e.inflateSync=function(t,e){return b(new w(e),t)},e.gunzip=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new M(e),t,n)},e.gunzipSync=function(t,e){return b(new M(e),t)},e.inflateRaw=function(t,e,n){return"function"===typeof e&&(n=e,e={}),g(new E(e),t,n)},e.inflateRawSync=function(t,e){return b(new E(e),t)},a.inherits(x,i),x.prototype.params=function(n,r,i){if(ne.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else t.nextTick(i)},x.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},x.prototype._flush=function(t){this._transform(r.alloc(0),"",t)},x.prototype.flush=function(e,n){var i=this,a=this._writableState;("function"===typeof e||void 0===e&&!n)&&(n=e,e=o.Z_FULL_FLUSH),a.ended?n&&t.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(e,n)})):(this._flushFlag=e,this.write(r.alloc(0),"",n))},x.prototype.close=function(e){j(this,e),t.nextTick(A,this)},x.prototype._transform=function(t,e,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||r.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},x.prototype._processChunk=function(t,e,n){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,c=this,f="function"===typeof n;if(!f){var h,d=[],p=0;this.on("error",(function(t){h=t})),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(m[0],m[1]));if(this._hadError)throw h;if(p>=u)throw j(this),new RangeError(l);var v=r.concat(d,p);return j(this),v}s(this._handle,"zlib binding closed");var g=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function b(u,l){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var h=o-l;if(s(h>=0,"have should not go down"),h>0){var m=c._buffer.slice(c._offset,c._offset+h);c._offset+=h,f?c.push(m):(d.push(m),p+=m.length)}if((0===l||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=r.allocUnsafe(c._chunkSize)),0===l){if(a+=i-u,i=u,!f)return!0;var v=c._handle.write(e,t,a,i,c._buffer,c._offset,c._chunkSize);return v.callback=b,void(v.buffer=t)}if(!f)return!1;n()}}g.buffer=t,g.callback=b},a.inherits(y,x),a.inherits(w,x),a.inherits(_,x),a.inherits(M,x),a.inherits(O,x),a.inherits(E,x),a.inherits(S,x)}).call(this,n(35))},function(t,e,n){t.exports=i;var r=n(173).EventEmitter;function i(){r.call(this)}n(15)(i,r),i.Readable=n(258),i.Writable=n(546),i.Duplex=n(547),i.Transform=n(548),i.PassThrough=n(549),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"===typeof t.destroy&&t.destroy())}function l(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},function(t,e,n){"use strict";(function(e,r){var i=n(199);t.exports=y;var o,a=n(539);y.ReadableState=b;n(173).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=n(327),l=n(259).Buffer,c=e.Uint8Array||function(){};var f=Object.create(n(174));f.inherits=n(15);var h=n(540),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(541),v=n(328);f.inherits(y,u);var g=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var r=e instanceof(o=o||n(117));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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&&(p||(p=n(175).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(o=o||n(117),!(this instanceof y))return new y(t);this._readableState=new b(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 w(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,E(t)}(t,a)):(i||(o=function(t,e){var n;r=e,l.isBuffer(r)||r instanceof c||"string"===typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):k(t,a)):_(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){d("emit readable"),t.emit("readable"),C(t)}function k(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(x,t,e))}function x(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=l.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function N(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):E(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t0?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var n=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)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:y;function l(e,r){d("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",v),t.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",m),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function c(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",l);var f=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,C(t))}}(n);t.on("drain",f);var h=!1;var p=!1;function m(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==N(o.pipes,t))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(e){d("onerror",e),y(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",b),y()}function b(){d("onfinish"),t.removeListener("close",g),y()}function y(){d("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",v),t.once("close",g),t.once("finish",b),t.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(!y(t[s=c[l]],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function w(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(n){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function M(t,e,n,r){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(n){e=n}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&g(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&_(i,n)||s)&&g(i,n,"Got unwanted exception"+r),t&&i&&n&&!_(i,n)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return m(v(t.actual),128)+" "+t.operator+" "+m(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=p(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(h.AssertionError,Error),h.fail=g,h.ok=b,h.equal=function(t,e,n){t!=e&&g(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&g(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){y(t,e,!1)||g(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){y(t,e,!0)||g(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){y(t,e,!1)&&g(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){y(e,n,!0)&&g(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&g(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&g(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){M(!0,t,e,n)},h.doesNotThrow=function(t,e,n){M(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r((function t(e,n){e||g(e,!0,n,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var O=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n(50))},function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,t,r.depth)}function u(t,e){var n=s.styles[e];return n?"\x1b["+s.colors[n][0]+"m"+t+"\x1b["+s.colors[n][1]+"m":t}function l(t,e){return t}function c(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return g(i)||(i=c(t,i,r)),i}var o=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(v(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),M(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(O(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return t.stylize(Date.prototype.toString.call(n),"date");if(M(n))return f(n)}var l,w="",E=!1,S=["{","}"];(d(n)&&(E=!0,S=["[","]"]),O(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return y(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),M(n)&&(w=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=E?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(l,w,S)):S[0]+w+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(n)?c(t,u.value,null):c(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"===typeof t}function m(t){return null===t}function v(t){return"number"===typeof t}function g(t){return"string"===typeof t}function b(t){return void 0===t}function y(t){return w(t)&&"[object RegExp]"===E(t)}function w(t){return"object"===typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===E(t)}function M(t){return w(t)&&("[object Error]"===E(t)||t instanceof Error)}function O(t){return"function"===typeof t}function E(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(b(o)&&(o=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CHANGELOG:'# Changelog\n\n## 2023-08-25\n\n- Added support for loading gedzip files\n\n## 2023-07-21\n\n- Display images, notes, sources for events as collapsible tabs (by czifumasa)\n\n## 2023-07-20\n\n- Fixed search for Hebrew names (by czifumasa)\n\n## 2023-02-01\n\n- Added option to hide sex indicators (by Kent Grigo)\n- Empty family boxes are now not shown (by Kent Grigo)\n\n## 2023-01-08\n\n- Added option to hide profile identifiers by Kent Grigo\n\n## 2022-12-08\n\n- French translation updated by Olivier Berten\n\n## 2022-08-30\n\n- Added displaying name types in details panel\n\n## 2022-05-13\n\n- Added displaying images in the details panel\n\n## 2022-04-06\n\n- Fixed logging in to WikiTree\n\n## 2021-10-31\n\n- Show changelog in intro page and when an upgraded version is loaded\n\n## 2021-10-27\n\n- Show events in details panel for WikiTree profiles\n\n## 2021-10-26\n\n- Added family events to details panel\n- Improved details panel layout\n\n## 2021-10-25\n\n- Added "Settings" tab in side panel\n- Added color settings (none, by generation, by sex)',REACT_APP_GIT_SHA:"b4a6255",REACT_APP_GIT_TIME:"2025-01-01 20:11:38 +0100"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=g,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=b,e.isRegExp=y,e.isObject=w,e.isDate=_,e.isError=M,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n(551);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",x(),e.format.apply(e,arguments))},e.inherits=n(552),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var A="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(A&&t[A]){var e;if("function"!==typeof(e=t[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(19).Buffer,i=n(336).Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(15)(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(i){r=i}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,n){(e=t.exports=n(337)).Stream=e,e.Readable=e,e.Writable=n(341),e.Duplex=n(137),e.Transform=n(342),e.PassThrough=n(569),e.finished=n(262),e.pipeline=n(570)},function(t,e,n){"use strict";(function(e,r){var i;t.exports=S,S.ReadableState=E;n(173).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n(338),s=n(27).Buffer,u=e.Uint8Array||function(){};var l,c=n(564);l=c&&c.debuglog?c.debuglog("stream"):function(){};var f,h,d,p=n(565),m=n(339),v=n(340).getHighWaterMark,g=n(136).codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(15)(S,a);var M=m.errorOrDestroy,O=["error","close","destroy","pause","resume"];function E(t,e,r){i=i||n(137),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),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.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&&(f||(f=n(175).StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||n(137),!(this instanceof S))return new S(t);var e=this instanceof i;this._readableState=new E(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function k(t,e,n,r,i){l("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?C(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}(t,a);else if(i||(o=function(t,e){var n;r=e,s.isBuffer(r)||r instanceof u||"string"===typeof e||void 0===e||t.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],e));var r;return n}(a,e)),o)M(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),r)a.endEmitted?M(t,new _):x(t,a,e,!0);else if(a.ended)M(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?x(t,a,e,!1):P(t,a)):x(t,a,e,!1)}else r||(a.reading=!1,P(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(T,t))}function T(t){var e=t._readableState;l("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,D(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){l("readable nexttick read 0"),t.read(0)}function L(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function B(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(U,e,t))}function U(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function z(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):C(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(t){M(this,new w("_read()"))},S.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:v;function s(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",h),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){l("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,D(t))}}(n);t.on("drain",c);var f=!1;function h(e){l("ondata");var r=t.write(e);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==z(i.pipes,t))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(e){l("onerror",e),v(),t.removeListener("error",d),0===o(t,"error")&&M(t,e)}function p(){t.removeListener("finish",m),v()}function m(){l("onfinish"),t.removeListener("close",p),v()}function v(){l("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",p),t.once("finish",m),t.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?C(this):i.reading||r.nextTick(R,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(N,this),n},S.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(N,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(L,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var i=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,T(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(t,e){e(t)}}).call(this,n(50),n(35))},function(t,e,n){"use strict";t.exports=c;var r=n(136).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(137);function l(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(u,i),u.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},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+d(n[g-15])+n[g-16];for(var b=0;b<64;++b){var y=v+h(u)+l(u,p,m)+a[b]+n[b]|0,w=f(r)+c(r,i,o)|0;v=m,m=p,p=u,u=s+y|0,s=o,o=i,i=r,r=y+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},u.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=u},function(t,e,n){var r=n(15),i=n(138),o=n(19).Buffer,a=[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],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}r(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,M=0|this._cl,O=0|this._dl,E=0|this._el,S=0|this._fl,k=0|this._gl,x=0|this._hl,j=0;j<32;j+=2)e[j]=t.readInt32BE(4*j),e[j+1]=t.readInt32BE(4*j+4);for(;j<160;j+=2){var A=e[j-30],C=e[j-30+1],T=d(A,C),P=p(C,A),I=m(A=e[j-4],C=e[j-4+1]),N=v(C,A),R=e[j-14],L=e[j-14+1],D=e[j-32],F=e[j-32+1],B=P+L|0,U=T+R+g(B,P)|0;U=(U=U+I+g(B=B+N|0,N)|0)+D+g(B=B+F|0,F)|0,e[j]=U,e[j+1]=B}for(var z=0;z<160;z+=2){U=e[z],B=e[z+1];var q=c(n,r,i),H=c(w,_,M),Z=f(n,w),V=f(w,n),W=h(s,E),K=h(E,s),G=a[z],Q=a[z+1],Y=l(s,u,b),$=l(E,S,k),X=x+K|0,J=y+W+g(X,x)|0;J=(J=(J=J+Y+g(X=X+$|0,$)|0)+G+g(X=X+Q|0,Q)|0)+U+g(X=X+B|0,B)|0;var tt=V+H|0,et=Z+q+g(tt,V)|0;y=b,x=k,b=u,k=S,u=s,S=E,s=o+J+g(E=O+X|0,O)|0,o=i,O=M,i=r,M=_,r=n,_=w,n=J+et+g(w=X+tt|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+M|0,this._dl=this._dl+O|0,this._el=this._el+E|0,this._fl=this._fl+S|0,this._gl=this._gl+k|0,this._hl=this._hl+x|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,M)|0,this._dh=this._dh+o+g(this._dl,O)|0,this._eh=this._eh+s+g(this._el,E)|0,this._fh=this._fh+u+g(this._fl,S)|0,this._gh=this._gh+b+g(this._gl,k)|0,this._hh=this._hh+y+g(this._hl,x)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,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=u},function(t,e,n){"use strict";var r=n(15),i=n(575),o=n(92),a=n(19).Buffer,s=n(346),u=n(263),l=n(264),c=a.alloc(128);function f(t,e){o.call(this,"digest"),"string"===typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new u:l(t)).update(e).digest():e.lengthn||e!==e)throw new TypeError("Bad key length")}},function(t,e,n){(function(e){var n;if(e.browser)n="utf-8";else if(e.version){n=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,n(35))},function(t,e,n){var r=n(346),i=n(263),o=n(264),a=n(19).Buffer,s=n(349),u=n(350),l=n(352),c=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(t,e,n){var s=function(t){function e(e){return o(t).update(e).digest()}function n(t){return(new i).update(t).digest()}return"rmd160"===t||"ripemd160"===t?n:"md5"===t?r:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return 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];e.pc2=function(t,e,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u>>r[u]&1;for(u=s;u>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(t>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(e>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},u.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,a=h}o.rip(s,a,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,u=t.keys.length-2;u>=0;u-=2){var l=t.keys[u],c=t.keys[u+1];o.expand(a,t.tmp,0),l^=t.tmp[0],c^=t.tmp[1];var f=o.substitute(l,c),h=a;a=(s^o.permute(f))>>>0,s=h}o.rip(a,s,r,i)}},function(t,e,n){var r=n(177),i=n(19).Buffer,o=n(356);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*n)]);for(var s=0;st;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),e.cmp(u)){if(!e.cmp(l))for(;n.mod(c).cmp(f);)n.iadd(d)}else for(;n.mod(o).cmp(h);)n.iadd(d);if(v(p=n.shrn(1))&&v(n)&&g(p)&&g(n)&&a.test(p)&&a.test(n))return n}}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(594).Buffer}catch(S){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}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 t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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 d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:c[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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]:this.length>2&&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("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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){var e;e=this.length>t.length?t:this;for(var n=0;nt.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){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.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&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],O=8191&M,E=M>>>13,S=0|a[5],k=8191&S,x=S>>>13,j=0|a[6],A=8191&j,C=j>>>13,T=0|a[7],P=8191&T,I=T>>>13,N=0|a[8],R=8191&N,L=N>>>13,D=0|a[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],Z=8191&H,V=H>>>13,W=0|s[2],K=8191&W,G=W>>>13,Q=0|s[3],Y=8191&Q,$=Q>>>13,X=0|s[4],J=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,V)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,K)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,$)|0;var wt=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,J)|0))<<13)|0;l=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;l=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;l=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Ot=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(h,ut)|0))<<13)|0;l=((o=o+Math.imul(h,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var Et=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ht)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((o=o+Math.imul(h,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,V))+Math.imul(B,Z)|0,o=Math.imul(B,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ht)|0;var kt=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var xt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,$))+Math.imul(B,Y)|0,o=Math.imul(B,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(E,ft)|0,o=o+Math.imul(E,ht)|0;var jt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,tt))+Math.imul(B,J)|0,o=Math.imul(B,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var At=(l+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;l=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(F,nt),i=(i=Math.imul(F,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ht)|0;var Ct=(l+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(B,ot)|0,o=Math.imul(B,at),r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Tt=(l+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(F,ut),i=(i=Math.imul(F,lt))+Math.imul(B,ut)|0,o=Math.imul(B,lt),r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Pt=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(B,ft)|0,o=Math.imul(B,ht);var It=(l+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Nt=(l+(r=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,mt))+Math.imul(B,pt)|0))<<13)|0;return l=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=Ot,u[8]=Et,u[9]=St,u[10]=kt,u[11]=xt,u[12]=jt,u[13]=At,u[14]=Ct,u[15]=Tt,u[16]=Pt,u[17]=It,u[18]=Nt,0!==l&&(u[19]=l,n.length++),n};function m(t,e,n){return(new v).mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=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()),n=0;n>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},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&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;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>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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);var i,a,s},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=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%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());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.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);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},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 O(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 g={k256:null,p224:null,p192:null,p25519:null};function b(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(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){O.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(y,b),y.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?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,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},O.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},O.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")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,O),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(118)(t))},function(t,e,n){var r=n(595),i=n(268);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var l=t.shrn(u),c=s.toRed(o);e>0;e--){var f=this._randrange(new r(2),s);n&&n(f);var h=f.toRed(o).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var d=1;d0;e--){var c=this._randrange(new r(2),a),f=t.gcd(c);if(0!==f.cmpn(1))return f;var h=c.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp(l)){for(var d=1;d>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,n){"use strict";var r=e;r.base=n(203),r.short=n(605),r.mont=n(606),r.edwards=n(607)},function(t,e,n){"use strict";var r=n(75).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=a,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,n){"use strict";var r=n(75),i=n(178),o=n(365),a=n(63),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,v),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}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 t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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 d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:c[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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]:this.length>2&&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("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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){var e;e=this.length>t.length?t:this;for(var n=0;nt.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){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.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&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,M=0|a[4],O=8191&M,E=M>>>13,S=0|a[5],k=8191&S,x=S>>>13,j=0|a[6],A=8191&j,C=j>>>13,T=0|a[7],P=8191&T,I=T>>>13,N=0|a[8],R=8191&N,L=N>>>13,D=0|a[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],Z=8191&H,V=H>>>13,W=0|s[2],K=8191&W,G=W>>>13,Q=0|s[3],Y=8191&Q,$=Q>>>13,X=0|s[4],J=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,q))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,z),i=(i=Math.imul(g,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,V)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,K)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,$)|0;var wt=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,J)|0))<<13)|0;l=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;l=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;l=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Ot=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(h,ut)|0))<<13)|0;l=((o=o+Math.imul(h,lt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var Et=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ht)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((o=o+Math.imul(h,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(F,Z),i=(i=Math.imul(F,V))+Math.imul(B,Z)|0,o=Math.imul(B,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ht)|0;var kt=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,ht)|0;var xt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,$))+Math.imul(B,Y)|0,o=Math.imul(B,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(E,ft)|0,o=o+Math.imul(E,ht)|0;var jt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,tt))+Math.imul(B,J)|0,o=Math.imul(B,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var At=(l+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;l=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(F,nt),i=(i=Math.imul(F,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ht)|0;var Ct=(l+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(B,ot)|0,o=Math.imul(B,at),r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Tt=(l+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(F,ut),i=(i=Math.imul(F,lt))+Math.imul(B,ut)|0,o=Math.imul(B,lt),r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,ht)|0;var Pt=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(B,ft)|0,o=Math.imul(B,ht);var It=(l+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Nt=(l+(r=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,mt))+Math.imul(B,pt)|0))<<13)|0;return l=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=Mt,u[7]=Ot,u[8]=Et,u[9]=St,u[10]=kt,u[11]=xt,u[12]=jt,u[13]=At,u[14]=Ct,u[15]=Tt,u[16]=Pt,u[17]=It,u[18]=Nt,0!==l&&(u[19]=l,n.length++),n};function m(t,e,n){return(new v).mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=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()),n=0;n>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},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&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;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>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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);var i,a,s},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=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%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());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.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);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},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 O(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 g={k256:null,p224:null,p192:null,p25519:null};function b(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(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){O.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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(y,b),y.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?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,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},O.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},O.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")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,O),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(118)(t))},function(t,e,n){"use strict";var r=e;r.der=n(371),r.pem=n(625)},function(t,e,n){"use strict";var r=n(15),i=n(274).Buffer,o=n(275),a=n(277);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function l(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(u,o),u.prototype._encodeComposite=function(t,e,n,r){var o=function(t,e,n,r){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}if(i>=31)return r.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=a.tagClassByName[n||"universal"]<<6}(t,e,n,this.reporter);if(r.length<128){var s=i.alloc(2);return s[0]=o,s[1]=r.length,this._createEncoderBuffer([s,r])}for(var u=1,l=r.length;l>=256;l>>=8)u++;var c=i.alloc(2+u);c[0]=o,c[1]=128|u;for(var f=1+u,h=r.length;h>0;f--,h>>=8)c[f]=255&h;return this._createEncoderBuffer([c,r])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=i.alloc(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var a=0,s=0;s=128;u>>=7)a++}for(var l=i.alloc(a),c=l.length-1,f=t.length-1;f>=0;f--){var h=t[f];for(l[c--]=127&h;(h>>=7)>0;)l[c--]=128|127&h}return this._createEncoderBuffer(l)},u.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!i.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=i.from(n)}if(i.isBuffer(t)){var r=t.length;0===t.length&&r++;var o=i.alloc(r);return 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 a=1,s=t;s>=256;s>>=8)a++;for(var u=new Array(a),l=u.length-1;l>=0;l--)u[l]=255&t,t>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(i.from(u))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r>6],i=0===(32&n);if(31===(31&n)){var o=n;for(n=0;128===(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0===(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o=i._breakpoints[e]&&t=i._breakpoints[e]}))})),l(this,"valuesWithBreakpointProps",(function(t){var e,n=t.length,r=[];return i._sortedBreakpoints.forEach((function(i,o){var a=t[o];o0&&void 0!==arguments[0]?arguments[0]:t.validKeys(),r=n.reduce((function(t,n){return t[n]=e._mediaQueries[n],t}),{});return Object.entries(r).reduce((function(t,e){var n=a(e,2),r=n[0];return n[1].forEach((function(e,n){t.push((0,i.createRuleSet)((0,i.createClassName)(r,n),"not all and ".concat(e)))})),t}),[])}},{key:"shouldRenderMediaQuery",value:function(t,e){var n=this;if((t=this._normalizeProps(t)).lessThan){var r=this._breakpoints[t.lessThan];return Math.min.apply(Math,o(e.map((function(t){return n._breakpoints[t]}))))=i}if(t.greaterThanOrEqual){var a=this._breakpoints[t.greaterThanOrEqual];return Math.max.apply(Math,o(e.map((function(t){return n._breakpoints[t]}))))>=a}if(t.between){var s=this._breakpoints[t.between[0]],u=this._breakpoints[t.between[1]],l=e.map((function(t){return n._breakpoints[t]}));return!(Math.max.apply(Math,o(l))=u)}return!1}},{key:"_normalizeProps",value:function(t){if(t.at){var e=this._sortedBreakpoints.indexOf(t.at),n=this._sortedBreakpoints[e+1];return n?{between:[t.at,n]}:{greaterThanOrEqual:t.at}}return t}},{key:"_createBreakpointQuery",value:function(t){if((t=this._normalizeProps(t)).lessThan){var e=this._breakpoints[t.lessThan];return"(max-width:".concat(e-1,"px)")}if(t.greaterThan){var n=this._breakpoints[this._findNextBreakpoint(t.greaterThan)];return"(min-width:".concat(n,"px)")}if(t.greaterThanOrEqual){var r=this._breakpoints[t.greaterThanOrEqual];return"(min-width:".concat(r,"px)")}if(t.between){var i=this._breakpoints[t.between[0]],o=this._breakpoints[t.between[1]];return"(min-width:".concat(i,"px) and (max-width:").concat(o-1,"px)")}throw new Error("Unexpected breakpoint props: ".concat(JSON.stringify(t)))}},{key:"_createBreakpointQueries",value:function(t,e){var n=this;return e.reduce((function(e,r){return e.set(function(t){return Array.isArray(t)?t.join("-"):t}(r),n._createBreakpointQuery(l({},t,r))),e}),new Map)}},{key:"_findNextBreakpoint",value:function(t){var e=this._sortedBreakpoints[this._sortedBreakpoints.indexOf(t)+1];if(!e)throw new Error("There is no breakpoint larger than ".concat(t));return e}},{key:"sortedBreakpoints",get:function(){return this._sortedBreakpoints}},{key:"dynamicResponsiveMediaQueries",get:function(){return Array.from(this._mediaQueries[r.at].entries()).reduce((function(t,e){var n=a(e,2);return function(t){for(var e=1;e=0))throw new Error("constructor rows must be a positive integer");if(this._rowsCount=t,o.NumericUtils.isInteger(e)&&e>=0)this._columnsCount=Number(e);else{if(!i.ArrayUtils.isArray(e))throw new Error("constructor columns must be an integer or an array of strings");this._columnsCount=e.length,this.setColumnNames(e)}if(this._columnsCount+this._rowsCount>0&&(0==this._columnsCount||0==this._rowsCount))throw new Error("constructor columns cannot be empty if rows are positive and vice versa");this._columnNames=new a.HashMapObject,this._cells=new a.HashMapObject}return t.prototype.setColumnName=function(t,e){var n=this._validateColumnIndex(t);if(!r.StringUtils.isString(e))throw new Error("name must be a string");return this._columnNames.set(String(n),e),!0},t.prototype.setColumnNames=function(t){if(this._columnsCount==t.length){if(i.ArrayUtils.hasDuplicateElements(t))throw new Error("array must not contain duplicate elements");var e=t.length;this._columnNames=new a.HashMapObject;for(var n=0;n=this._columnsCount)throw new Error("at must be a valid column index");if(n>=0)for(var r=this._columnsCount-1;r>=n;r--){this._columnNames.isKey(String(r))&&this._columnNames.rename(String(r),String(r+t));for(var a=0;a0){if(u!=t)throw new Error("names length must be the same as number");var l=n<0?this._columnsCount:n;for(r=0;r=this._rowsCount)throw new Error("at must be a valid row index");if(e>=0)for(var n=this._rowsCount-1;n>=e;n--)for(var r=0;r=this._columnsCount)throw new Error("Invalid column value");return e},t.prototype._validateRowIndex=function(t){var e=o.NumericUtils.isInteger(t)?t:-1;if(e<0||e>=this._rowsCount)throw new Error("Invalid row value");return e},t}();e.TableObject=s},function(t,e,n){"use strict";var r=n(190);var i=function(t){return t&&t.length?t[0]:void 0},o=n(6),a=n(13),s=n(111);e.a=function(t,e){if(Object(s.a)([e,t],a.a))return!1;if(e.target&&(Object(o.a)(e.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return Object(o.a)(e.target,"removeAttribute","data-suir-click-target"),t.contains(e.target);var n=e.clientX,u=e.clientY;if(Object(s.a)([n,u],a.a))return!1;var l=t.getClientRects();if(!t.offsetWidth||!t.offsetHeight||!l||!l.length)return!1;var c=i(l),f=c.top,h=c.bottom,d=c.left,p=c.right;return!Object(s.a)([f,h,d,p],a.a)&&(Object(r.a)(u,f,h+.001)&&Object(r.a)(n,d,p+.001))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2);function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var o=n(11),a=n(78),s=n(6),u=n(0),l=function(t,e,n,r){void 0===r&&(r=!1);var i,o=e[t];if(void 0!==o)return o;if(r){var a=e[(i=t,"default"+(i[0].toUpperCase()+i.slice(1)))];if(void 0!==a)return a;if(n){var s=n[t];if(void 0!==s)return s}}return"checked"!==t&&("value"===t?e.multiple?[]:"":void 0)},c=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),a=0;a0&&n.indexOf(t)===e}))):[]}(e),r=function(t,e){return[e.filter((function(e){return-1===t.indexOf(e)})),t.filter((function(t){return-1===e.indexOf(t)}))]}(l.get(t)||[],n),i=r[0],o=r[1];t&&(i.forEach((function(e){return t.classList.add(e)})),o.forEach((function(e){return t.classList.remove(e)}))),l.set(t,n)},f=new function(){var t=this;this.add=function(e,n){if(t.nodes.has(e)){t.nodes.get(e).add(n)}else{var r=new Set;r.add(n),t.nodes.set(e,r)}},this.del=function(e,n){if(t.nodes.has(e)){var r=t.nodes.get(e);1!==r.size?r.delete(n):t.nodes.delete(e)}},this.emit=function(e,n){n(e,t.nodes.get(e))},this.nodes=new Map};function h(t,e){var n=o.a.useRef(),i=o.a.useRef(!1);s((function(){if(n.current=e,i.current){var o=Object(r.b)(t)?t.current:t;f.emit(o,c)}i.current=!0}),[e]),s((function(){var e=Object(r.b)(t)?t.current:t;return f.add(e,n),f.emit(e,c),function(){f.del(e,n),f.emit(e,c)}}),[t])}},,,,,,,function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(236),o=n(60);function a(){var t=r.useContext(i.a);return Object(o.c)(t),t}},function(t){t.exports=JSON.parse('{"a":"2.1.1"}')},function(t,e){var n="undefined"!==typeof Element,r="function"===typeof Map,i="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var s,u,l,c;if(Array.isArray(t)){if((s=t.length)!=e.length)return!1;for(u=s;0!==u--;)if(!a(t[u],e[u]))return!1;return!0}if(r&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!e.has(u.value[0]))return!1;for(c=t.entries();!(u=c.next()).done;)if(!a(u.value[1],e.get(u.value[0])))return!1;return!0}if(i&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!e.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if((s=t.length)!=e.length)return!1;for(u=s;0!==u--;)if(t[u]!==e[u])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if((s=(l=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(e,l[u]))return!1;if(n&&t instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!t.$$typeof)&&!a(t[l[u]],e[l[u]]))return!1;return!0}return t!==t&&e!==e}t.exports=function(t,e){try{return a(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},function(t,e,n){(function(e,r){var i=n(193),o=n(171),a=n(257),s=n(322),u=n(641),l=function(t,e){return"boolean"===typeof t?t:e},c=function(t,e){return"string"===typeof t?t:e},f={noSort:!1,readEntries:!1,method:o.Constants.NONE,fs:null};t.exports=function(t,n){var h=null,d=Object.assign(Object.create(null),f);t&&"object"===typeof t&&(t instanceof Uint8Array||(Object.assign(d,t),t=d.input?d.input:void 0,d.input&&delete d.input),e.isBuffer(t)&&(h=t,d.method=o.Constants.BUFFER,t=void 0)),Object.assign(d,n);var p=new o(d);if(t&&"string"===typeof t){if(!p.fs.existsSync(t))throw new Error(o.Errors.INVALID_FILENAME);d.method=o.Constants.FILE,d.filename=t,h=p.fs.readFileSync(t)}var m=new u(h,d),v=o.canonical,g=o.sanitize;function b(t){var e;if(t&&m&&("string"===typeof t&&(e=m.getEntry(t)),"object"===typeof t&&"undefined"!==typeof t.entryName&&"undefined"!==typeof t.header&&(e=m.getEntry(t.entryName)),e))return e;return null}function y(t){var e=a.posix,n=e.join,r=e.normalize,i=e.sep;return n(".",r(i+t.split("\\").join(i)+i))}return{readFile:function(t,e){var n=b(t);return n&&n.getData(e)||null},readFileAsync:function(t,e){var n=b(t);n?n.getDataAsync(e):e(null,"getEntry failed for:"+t)},readAsText:function(t,e){var n=b(t);if(n){var r=n.getData();if(r&&r.length)return r.toString(e||"utf8")}return""},readAsTextAsync:function(t,e,n){var r=b(t);r?r.getDataAsync((function(t,r){r?e(t,r):t&&t.length?e(t.toString(n||"utf8")):e("")})):e("")},deleteFile:function(t){var e=b(t);e&&m.deleteEntry(e.entryName)},addZipComment:function(t){m.comment=t},getZipComment:function(){return m.comment||""},addZipEntryComment:function(t,e){var n=b(t);n&&(n.comment=e)},getZipEntryComment:function(t){var e=b(t);return e&&e.comment||""},updateFile:function(t,e){var n=b(t);n&&n.setData(e)},addLocalFile:function(t,e,n,r){if(!p.fs.existsSync(t))throw new Error(o.Errors.FILE_NOT_FOUND.replace("%s",t));e=e?y(e):"";var i=t.split("\\").join("/").split("/").pop();e+=n||i;var a=p.fs.statSync(t);this.addFile(e,p.fs.readFileSync(t),r,a)},addLocalFolder:function(t,n,r,i){var s;if(r instanceof RegExp?(s=r,r=function(t){return s.test(t)}):"function"!==typeof r&&(r=function(){return!0}),n=n?y(n):"",t=a.normalize(t),!p.fs.existsSync(t))throw new Error(o.Errors.FILE_NOT_FOUND.replace("%s",t));var u=p.findFiles(t),l=this;u.length&&u.forEach((function(o){var s=a.relative(t,o).split("\\").join("/");if(r(s)){var u=p.fs.statSync(o);u.isFile()?l.addFile(n+s,p.fs.readFileSync(o),"",i||u):l.addFile(n+s+"/",e.alloc(0),"",i||u)}}))},addLocalFolderAsync:function(t,n,i,s){var u;s instanceof RegExp?(u=s,s=function(t){return u.test(t)}):"function"!==typeof s&&(s=function(){return!0}),i=i?y(i):"",t=a.normalize(t);var l=this;p.fs.open(t,"r",(function(u){if(u&&"ENOENT"===u.code)n(void 0,o.Errors.FILE_NOT_FOUND.replace("%s",t));else if(u)n(void 0,u);else{var c=p.findFiles(t),f=-1;!function o(){if((f+=1)>>0,i.attr=u,i.setData(e),o||m.setEntry(i)},getEntries:function(){return m?m.entries:[]},getEntry:function(t){return b(t)},getEntryCount:function(){return m.getEntryCount()},forEach:function(t){return m.forEach(t)},extractEntryTo:function(t,e,n,r,i,s){r=l(r,!1),i=l(i,!1),n=l(n,!0),s=c(s,c(i,void 0));var u=b(t);if(!u)throw new Error(o.Errors.NO_ENTRY);var f=v(u.entryName),h=g(e,s&&!u.isDirectory?s:n?f:a.basename(f));if(u.isDirectory)return m.getEntryChildren(u).forEach((function(t){if(!t.isDirectory){var s=t.getData();if(!s)throw new Error(o.Errors.CANT_EXTRACT_FILE);var u=v(t.entryName),l=g(e,n?u:a.basename(u)),c=i?t.header.fileAttr:void 0;p.writeFileTo(l,s,r,c)}})),!0;var d=u.getData();if(!d)throw new Error(o.Errors.CANT_EXTRACT_FILE);if(p.fs.existsSync(h)&&!r)throw new Error(o.Errors.CANT_OVERRIDE);var y=i?t.header.fileAttr:void 0;return p.writeFileTo(h,d,r,y),!0},test:function(t){if(!m)return!1;for(var e in m.entries)try{if(e.isDirectory)continue;if(!m.entries[e].getData(t))return!1}catch(n){return!1}return!0},extractAllTo:function(t,e,n,r){if(e=l(e,!1),r=c(n,r),n=l(n,!1),!m)throw new Error(o.Errors.NO_ZIP);m.entries.forEach((function(i){var a=g(t,v(i.entryName.toString()));if(i.isDirectory)p.makeDir(a);else{var s=i.getData(r);if(!s)throw new Error(o.Errors.CANT_EXTRACT_FILE);var u=n?i.header.fileAttr:void 0;p.writeFileTo(a,s,e,u);try{p.fs.utimesSync(a,i.header.time,i.header.time)}catch(l){throw new Error(o.Errors.CANT_EXTRACT_FILE)}}}))},extractAllToAsync:function(t,e,n,r){if(e=l(e,!1),"function"!==typeof n||r||(r=n),n=l(n,!1),r||(r=function(t){throw new Error(t)}),m){t=a.resolve(t);var s=function(e){return g(t,a.normalize(v(e.entryName.toString())))},u=function(t,e){return new Error(t+': "'+e+'"')},c=[],f=new Set;m.entries.forEach((function(t){t.isDirectory?c.push(t):f.add(t)}));for(var h=0,d=c;h=0?r=setTimeout(u,e-l):(r=null,n||(s=t.apply(o,i),o=i=null))}null==e&&(e=100);var l=function(){o=this,i=arguments,a=Date.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(s=t.apply(o,i),o=i=null),s};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(s=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},l}n.debounce=n,t.exports=n},function(t,e){t.exports=function t(e,n){"use strict";var r,i,o=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0x[0-9a-f]+$/i,l=/^0/,c=function(e){return t.insensitive&&(""+e).toLowerCase()||""+e},f=c(e).replace(a,"")||"",h=c(n).replace(a,"")||"",d=f.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=h.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(f.match(u),16)||1!==d.length&&f.match(s)&&Date.parse(f),v=parseInt(h.match(u),16)||m&&h.match(s)&&Date.parse(h)||null;if(v){if(mv)return 1}for(var g=0,b=Math.max(d.length,p.length);gi)return 1}return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(668);e.BrowserManager=r.BrowserManager;var i=n(669);e.HTTPManager=i.HTTPManager;var o=n(208);e.HTTPManagerBaseRequest=o.HTTPManagerBaseRequest;var a=n(382);e.HTTPManagerGetRequest=a.HTTPManagerGetRequest;var s=n(670);e.HTTPManagerPostRequest=s.HTTPManagerPostRequest;var u=n(671);e.LocalizationManager=u.LocalizationManager;var l=n(672);e.ModelHistoryManager=l.ModelHistoryManager;var c=n(673);e.SerializationManager=c.SerializationManager;var f=n(206);e.ValidationManager=f.ValidationManager;var h=n(674);e.BaseStrictClass=h.BaseStrictClass;var d=n(675);e.CSVObject=d.CSVObject;var p=n(676);e.DateTimeObject=p.DateTimeObject;var m=n(207);e.HashMapObject=m.HashMapObject;var v=n(280);e.JavaPropertiesObject=v.JavaPropertiesObject;var g=n(384);e.TableObject=g.TableObject;var b=n(58);e.ArrayUtils=b.ArrayUtils;var y=n(677);e.ConversionUtils=y.ConversionUtils;var w=n(383);e.EncodingUtils=w.EncodingUtils;var _=n(119);e.NumericUtils=_.NumericUtils;var M=n(93);e.ObjectUtils=M.ObjectUtils;var O=n(46);e.StringUtils=O.StringUtils},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=function(){for(var t=0,e=0,n=arguments.length;eo?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(e,n),[].splice.apply(t,i);else for(n&&[].splice.apply(t,[e,n]);a0?(u(t,t.length,0,e),t):e}var c={}.hasOwnProperty;function f(t){for(var e={},n=-1;++nr))return;for(var c,f,h=i.events.length,d=h;d--;)if("exit"===i.events[d][0]&&"chunkFlow"===i.events[d][1].type){if(c){f=i.events[d][1].end;break}c=!0}for(w(a),l=h;le;){var r=o[n];i.containerState=r[1],r[0].exit.call(i,t)}o.length=e}function _(){e.write([null]),n=void 0,e=void 0,i.containerState._closeFlow=void 0}}},b={tokenize:function(t,e,n){return m(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var y={tokenize:function(t,e,n){return m(t,(function(t){return null===t||Object(p.h)(t)?e(t):n(t)}),"linePrefix")},partial:!0};function w(t){for(var e,n,r,i,o,a,s,l={},c=-1;++c=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}},partial:!0};var E={tokenize:function(t){var e=this,n=t.attempt(y,(function(r){if(null===r)return void t.consume(r);return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}),t.attempt(this.parser.constructs.flowInitial,r,m(t,t.attempt(this.parser.constructs.flow,r,t.attempt(M,r)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}};var S={resolveAll:A()},k=j("string"),x=j("text");function j(t){return{tokenize:function(e){var n=this,r=this.parser.constructs[t],i=e.attempt(r,o,a);return o;function o(t){return u(t)?i(t):a(t)}function a(t){if(null!==t)return e.enter("data"),e.consume(t),s;e.consume(t)}function s(t){return u(t)?(e.exit("data"),i(t)):(e.consume(t),s)}function u(t){if(null===t)return!0;var e=r[t],i=-1;if(e)for(;++i-1&&(n[0]=n[0].slice(i)),a>0&&n.push(t[o].slice(0,a)));return n}(s,t)}function v(){return Object.assign({},r)}function g(){for(var t;r._indexl?n(i):(t.consume(i),m):41===i?c--?(t.consume(i),m):(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(i)):null===i||Object(p.i)(i)?c?n(i):(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(i)):Object(p.d)(i)?n(i):(t.consume(i),92===i?v:m)}function v(e){return 40===e||41===e||92===e?(t.consume(e),m):m(e)}}function U(t,e,n,r,i,o){var a,s=this,u=0;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(o),l};function l(f){return null===f||91===f||93===f&&!a||94===f&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?n(f):93===f?(t.exit(o),t.enter(i),t.consume(f),t.exit(i),t.exit(r),e):Object(p.h)(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),l):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(e){return null===e||91===e||93===e||Object(p.h)(e)||u++>999?(t.exit("chunkString"),l(e)):(t.consume(e),a=a||!Object(p.j)(e),92===e?f:c)}function f(e){return 91===e||92===e||93===e?(t.consume(e),u++,c):c(e)}}function z(t,e,n,r,i,o){var a;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),a=40===e?41:e,s};function s(n){return n===a?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(o),u(n))}function u(e){return e===a?(t.exit(o),s(a)):null===e?n(e):Object(p.h)(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),m(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),l(e))}function l(e){return e===a||null===e||Object(p.h)(e)?(t.exit("chunkString"),u(e)):(t.consume(e),92===e?c:l)}function c(e){return e===a||92===e?(t.consume(e),l):l(e)}}function q(t,e){var n;return function r(i){if(Object(p.h)(i))return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r;if(Object(p.j)(i))return m(t,r,n?"linePrefix":"lineSuffix")(i);return e(i)}}function H(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Z={name:"definition",tokenize:function(t,e,n){var r,i=this;return function(e){return t.enter("definition"),U.call(i,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)};function o(e){return r=H(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),q(t,B(t,t.attempt(V,m(t,a,"whitespace"),m(t,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(e)}function a(o){return null===o||Object(p.h)(o)?(t.exit("definition"),i.parser.defined.includes(r)||i.parser.defined.push(r),e(o)):n(o)}}},V={tokenize:function(t,e,n){return function(e){return Object(p.i)(e)?q(t,r)(e):n(e)};function r(e){return 34===e||39===e||40===e?z(t,m(t,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e):n(e)}function i(t){return null===t||Object(p.h)(t)?e(t):n(t)}},partial:!0};var W={name:"codeIndented",tokenize:function(t,e,n){var r=this;return function(e){return t.enter("codeIndented"),m(t,i,"linePrefix",5)(e)};function i(t){var e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?s(e):Object(p.h)(e)?t.attempt(K,o,s)(e):(t.enter("codeFlowValue"),a(e))}function a(e){return null===e||Object(p.h)(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),a)}function s(n){return t.exit("codeIndented"),e(n)}}},K={tokenize:function(t,e,n){var r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):Object(p.h)(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):m(t,o,"linePrefix",5)(e)}function o(t){var o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):Object(p.h)(t)?i(t):n(t)}},partial:!0};var G={name:"headingAtx",tokenize:function(t,e,n){var r=this,i=0;return function(e){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),o(e)};function o(s){return 35===s&&i++<6?(t.consume(s),o):null===s||Object(p.i)(s)?(t.exit("atxHeadingSequence"),r.interrupt?e(s):a(s)):n(s)}function a(n){return 35===n?(t.enter("atxHeadingSequence"),s(n)):null===n||Object(p.h)(n)?(t.exit("atxHeading"),e(n)):Object(p.j)(n)?m(t,a,"whitespace")(n):(t.enter("atxHeadingText"),u(n))}function s(e){return 35===e?(t.consume(e),s):(t.exit("atxHeadingSequence"),a(e))}function u(e){return null===e||35===e||Object(p.i)(e)?(t.exit("atxHeadingText"),a(e)):(t.consume(e),u)}},resolve:function(t,e){var n,r,i=t.length-2,o=3;"whitespace"===t[o][1].type&&(o+=2);i-2>o&&"whitespace"===t[i][1].type&&(i-=2);"atxHeadingSequence"===t[i][1].type&&(o===i-1||i-4>o&&"whitespace"===t[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},r={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},u(t,o,i-o+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]]));return t}};var Q={name:"setextUnderline",tokenize:function(t,e,n){var r,i,o=this,a=o.events.length;for(;a--;)if("lineEnding"!==o.events[a][1].type&&"linePrefix"!==o.events[a][1].type&&"content"!==o.events[a][1].type){i="paragraph"===o.events[a][1].type;break}return function(e){if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),r=e,s(e);return n(e)};function s(e){return e===r?(t.consume(e),s):(t.exit("setextHeadingLineSequence"),m(t,u,"lineSuffix")(e))}function u(r){return null===r||Object(p.h)(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}},resolveTo:function(t,e){var n,r,i,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){n=o;break}"paragraph"===t[o][1].type&&(r=o)}else"content"===t[o][1].type&&t.splice(o,1),i||"definition"!==t[o][1].type||(i=o);var a={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",a,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=a;return t.push(["exit",a,e]),t}};var Y=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$=["pre","script","style","textarea"],X={name:"htmlFlow",tokenize:function(t,e,n){var r,i,o,a,s,u=this;return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),l};function l(a){return 33===a?(t.consume(a),c):47===a?(t.consume(a),d):63===a?(t.consume(a),r=3,u.interrupt?e:R):Object(p.a)(a)?(t.consume(a),o=String.fromCharCode(a),i=!0,m):n(a)}function c(i){return 45===i?(t.consume(i),r=2,f):91===i?(t.consume(i),r=5,o="CDATA[",a=0,h):Object(p.a)(i)?(t.consume(i),r=4,u.interrupt?e:R):n(i)}function f(r){return 45===r?(t.consume(r),u.interrupt?e:R):n(r)}function h(r){return r===o.charCodeAt(a++)?(t.consume(r),a===o.length?u.interrupt?e:x:h):n(r)}function d(e){return Object(p.a)(e)?(t.consume(e),o=String.fromCharCode(e),m):n(e)}function m(a){return null===a||47===a||62===a||Object(p.i)(a)?47!==a&&i&&$.includes(o.toLowerCase())?(r=1,u.interrupt?e(a):x(a)):Y.includes(o.toLowerCase())?(r=6,47===a?(t.consume(a),v):u.interrupt?e(a):x(a)):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(a):i?b(a):g(a)):45===a||Object(p.b)(a)?(t.consume(a),o+=String.fromCharCode(a),m):n(a)}function v(r){return 62===r?(t.consume(r),u.interrupt?e:x):n(r)}function g(e){return Object(p.j)(e)?(t.consume(e),g):S(e)}function b(e){return 47===e?(t.consume(e),S):58===e||95===e||Object(p.a)(e)?(t.consume(e),y):Object(p.j)(e)?(t.consume(e),b):S(e)}function y(e){return 45===e||46===e||58===e||95===e||Object(p.b)(e)?(t.consume(e),y):w(e)}function w(e){return 61===e?(t.consume(e),_):Object(p.j)(e)?(t.consume(e),w):b(e)}function _(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),s=e,M):Object(p.j)(e)?(t.consume(e),_):(s=null,O(e))}function M(e){return null===e||Object(p.h)(e)?n(e):e===s?(t.consume(e),E):(t.consume(e),M)}function O(e){return null===e||34===e||39===e||60===e||61===e||62===e||96===e||Object(p.i)(e)?w(e):(t.consume(e),O)}function E(t){return 47===t||62===t||Object(p.j)(t)?b(t):n(t)}function S(e){return 62===e?(t.consume(e),k):n(e)}function k(e){return Object(p.j)(e)?(t.consume(e),k):null===e||Object(p.h)(e)?x(e):n(e)}function x(e){return 45===e&&2===r?(t.consume(e),T):60===e&&1===r?(t.consume(e),P):62===e&&4===r?(t.consume(e),L):63===e&&3===r?(t.consume(e),R):93===e&&5===r?(t.consume(e),N):!Object(p.h)(e)||6!==r&&7!==r?null===e||Object(p.h)(e)?j(e):(t.consume(e),x):t.check(J,L,j)(e)}function j(e){return t.exit("htmlFlowData"),A(e)}function A(e){return null===e?D(e):Object(p.h)(e)?t.attempt({tokenize:C,partial:!0},A,D)(e):(t.enter("htmlFlowData"),x(e))}function C(t,e,n){return function(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r};function r(t){return u.parser.lazy[u.now().line]?n(t):e(t)}}function T(e){return 45===e?(t.consume(e),R):x(e)}function P(e){return 47===e?(t.consume(e),o="",I):x(e)}function I(e){return 62===e&&$.includes(o.toLowerCase())?(t.consume(e),L):Object(p.a)(e)&&o.length<8?(t.consume(e),o+=String.fromCharCode(e),I):x(e)}function N(e){return 93===e?(t.consume(e),R):x(e)}function R(e){return 62===e?(t.consume(e),L):45===e&&2===r?(t.consume(e),R):x(e)}function L(e){return null===e||Object(p.h)(e)?(t.exit("htmlFlowData"),D(e)):(t.consume(e),L)}function D(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){var e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2));return t},concrete:!0},J={tokenize:function(t,e,n){return function(r){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),t.attempt(y,e,n)}},partial:!0};var tt={name:"codeFenced",tokenize:function(t,e,n){var r,i=this,o={tokenize:function(t,e,n){var i=0;return m(t,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(e){return t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),a(e)}function a(e){return e===r?(t.consume(e),i++,a):i1&&t[h][1].end.offset-t[h][1].start.offset>1?2:1;var d=Object.assign({},t[n][1].end),p=Object.assign({},t[h][1].start);dt(d,-s),dt(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},t[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[h][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[h][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},t[n][1].end=Object.assign({},o.start),t[h][1].start=Object.assign({},a.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=l(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=l(c,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",i,e]]),c=l(c,T(e.parser.constructs.insideSpan.null,t.slice(n+1,h),e)),c=l(c,[["exit",i,e],["enter",a,e],["exit",a,e],["exit",r,e]]),t[h][1].end.offset-t[h][1].start.offset?(f=2,c=l(c,[["enter",t[h][1],e],["exit",t[h][1],e]])):f=0,u(t,n-1,h-n+3,c),h=n+c.length-f-2;break}h=-1;for(;++h13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var Rt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lt(t){return t.replace(Rt,Dt)}function Dt(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),i=120===r||88===r;return Nt(n.slice(i?2:1),i?16:10)}return nt(n)||t}var Ft=n(129),Bt={}.hasOwnProperty,Ut=function(t,e,n){return"string"!==typeof e&&(n=e,e=void 0),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=zt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(at),autolinkProtocol:A,autolinkEmail:A,atxHeading:l(et),blockQuote:l(Y),characterEscape:A,characterReference:A,codeFenced:l($),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l($,c),codeText:l(X,c),codeTextData:A,data:A,codeFlowValue:A,definition:l(J),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(tt),hardBreakEscape:l(rt),hardBreakTrailing:l(rt),htmlFlow:l(it,c),htmlFlowData:A,htmlText:l(it,c),htmlTextData:A,image:l(ot),label:c,link:l(at),listItem:l(ut),listItemValue:v,listOrdered:l(st,m),listUnordered:l(st),paragraph:l(lt),reference:Z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(et),strong:l(ct),thematicBreak:l(ht)},exit:{atxHeading:h(),atxHeadingSequence:S,autolink:h(),autolinkEmail:Q,autolinkProtocol:G,blockQuote:h(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:K,codeFenced:h(w),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:C,codeIndented:h(_),codeText:h(R),codeTextData:C,data:C,definition:h(),definitionDestinationString:E,definitionLabelString:M,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(P),hardBreakTrailing:h(P),htmlFlow:h(I),htmlFlowData:C,htmlText:h(N),htmlTextData:C,image:h(D),label:B,labelText:F,lineEnding:T,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:V,resourceDestinationString:U,resourceTitleString:z,resource:q,setextHeading:h(j),setextHeadingLineSequence:x,setextHeadingText:k,strong:h(),thematicBreak:h()}},t.mdastExtensions||[]),n={};return r;function r(t){for(var n={type:"root",children:[]},r=[],o=[],l={stack:[n],tokenStack:r,config:e,enter:f,exit:d,buffer:c,resume:p,setData:a,getData:s},h=-1;++h0)throw new Error("Cannot close document, a token (`"+r[r.length-1].type+"`, "+Object(Ft.a)({start:r[r.length-1].start,end:r[r.length-1].end})+") is still open");for(n.position={start:u(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:u(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h0&&void 0!==arguments[0]?arguments[0]:{}).extensions||[])),content:e(v),document:e(g),flow:e(E),string:e(k),text:e(x)};return t;function e(e){return function(n){return P(t,e,n)}}}(n).document().write(function(){var t,e=1,n="",r=!0;return function(i,o,a){var s,u,l,c,f,h=[];for(i=n+i.toString(o),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l1?n-1:0),i=1;i0},body:function(t){var e=V(t,-1,!0);return!e||!H(e)&&!Q(e)&&!D(e,["meta","link","script","style","template"])},colgroup:function(t,e,n){var r=W(n,e),i=V(t,-1,!0);if(D(r,"colgroup")&&X(r,n.children.indexOf(r),n))return!1;return i&&D(i,"col")},tbody:function(t,e,n){var r=W(n,e),i=V(t,-1);if(D(r,["thead","tbody"])&&X(r,n.children.indexOf(r),n))return!1;return i&&D(i,"tr")}}),closing:X},rt=/^data[-\w.:]+$/i,it=/-[a-z]/g,ot=/[A-Z]/g;function at(t,e){var n=s(e),r=e,i=f;return n in t.normal?t.property[t.normal[n]]:(n.length>4&&"data"===n.slice(0,4)&&rt.test(e)&&("-"===e.charAt(4)?r=function(t){var e=t.slice(5).replace(it,ut);return"data"+e.charAt(0).toUpperCase()+e.slice(1)}(e):e=function(t){var e=t.slice(4);if(it.test(e))return t;"-"!==(e=e.replace(ot,st)).charAt(0)&&(e="-"+e);return"data"+e}(e),i=M),new i(r,e))}function st(t){return"-"+t.toLowerCase()}function ut(t){return t.charAt(1).toUpperCase()}function lt(t){return t.join(" ").trim()}function ct(t,e){var n=e||{};return""===t[t.length-1]&&(t=t.concat("")),t.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function ft(t,e){return t=t.replace(e.subset?function(t){var e=[],n=-1;for(;++n`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(t,n,r){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),e)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,r){return e.format(t.charCodeAt(0),r.charCodeAt(n+1),e)}}var ht,dt={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"},pt={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},mt={},vt={}.hasOwnProperty;for(ht in pt)vt.call(pt,ht)&&(mt[pt[ht]]=ht);var gt=["cent","copy","divide","gt","lt","not","para","times"],bt={}.hasOwnProperty;function yt(t,e,n){var r,i,o;return(n.useNamedReferences||n.useShortestReferences)&&(r=function(t,e,n,r){var i,o,a=String.fromCharCode(t);return bt.call(mt,a)?(o="&"+(i=mt[a]),n&&bt.call(dt,i)&&!gt.includes(i)&&(!r||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"):""}(t,e,n.omitOptionalSemicolons,n.attribute)),!n.useShortestReferences&&r||(i=function(t,e,n){var r="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?r:r+";"}(t,e,n.omitOptionalSemicolons),n.useShortestReferences&&(o=function(t,e,n){var r="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?r:r+";"}(t,e,n.omitOptionalSemicolons)).length".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ot(t,e,n,r){return!r||"element"!==r.type||"script"!==r.tagName&&"style"!==r.tagName?wt(e.value,Object.assign({},t.entities,{subset:["<","&"]})):e.value}var Et={comment:function(t,e){return t.bogusComments?""]}))+">":"\x3c!--"+e.value.replace(/^>|^->||--!>|"]}))}))+"--\x3e"},doctype:function(t){return""},element:function(t,e,n,r){var i,o=t.schema,a="svg"===o.space?void 0:t.omit,s="svg"===o.space?t.closeEmpty:t.voids.includes(e.tagName.toLowerCase()),u=[];"html"===o.space&&"svg"===e.tagName&&(t.schema=R);var l=function(t,e){var n,r,i,o=[],a=-1;for(n in e)void 0!==e[n]&&null!==e[n]&&(r=jt(t,n,e[n]))&&o.push(r);for(;++a"));u.push(c),s||a&&a.closing(e,n,r)||u.push("");return u.join("")},raw:function(t,e,n,r){return t.dangerous?e.value:Ot(t,e,0,r)},root:xt,text:Ot},St={}.hasOwnProperty;function kt(t,e,n,r){if(!e||!e.type)throw new Error("Expected node, not `"+e+"`");if(!St.call(Et,e.type))throw new Error("Cannot compile unknown node `"+e.type+"`");return Et[e.type](t,e,n,r)}function xt(t,e){for(var n=[],r=e&&e.children||[],i=-1;++i_t(n,t.alternative)&&(o=t.alternative),r=o+wt(n,Object.assign({},t.entities,{subset:("'"===o?Mt.single:Mt.double)["html"===t.schema.space?t.valid:1][t.safe],attribute:!0}))+o),a+(r?"="+r:r)))}e.a=function(t){var e=this.data("settings"),n=Object.assign({},e,t);Object.assign(this,{Compiler:function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.quote||'"',r='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return kt({valid:e.allowParseErrors?0:1,safe:e.allowDangerousCharacters?0:1,schema:"svg"===e.space?R:N,omit:e.omitOptionalTags?nt:void 0,quote:n,alternative:r,smart:e.quoteSmart,unquoted:e.preferUnquoted,tight:e.tightAttributes,upperDoctype:e.upperDoctype,tightDoctype:e.tightDoctype,bogusComments:e.bogusComments,tightLists:e.tightCommaSeparatedLists,tightClose:e.tightSelfClosing,collapseEmpty:e.collapseEmptyAttributes,dangerous:e.allowDangerousHtml,voids:e.voids||L.concat(),entities:e.entities||{},close:e.closeSelfClosing,closeEmpty:e.closeEmptyElements},Array.isArray(t)?{type:"root",children:t}:t,null,null)}(t,n)}})}},function(t,e,n){"use strict";var r=n(16),i=function(t,e,n){var r={type:String(t)};return void 0!==n&&null!==n||"string"!==typeof e&&!Array.isArray(e)?Object.assign(r,e):n=e,Array.isArray(n)?r.children=n:void 0!==n&&null!==n&&(r.value=String(n)),r},o=n(97);var a=function(t,e,n,r){"function"===typeof e&&"function"!==typeof n&&(r=n,n=e,e=null);var i=Object(o.a)(e),a=r?-1:1;!function t(o,s,u){var l,c="object"===typeof o&&null!==o?o:{};"string"===typeof c.type&&(l="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(l?"<"+l+">":"")+")"}));return f;function f(){var l,c,f,h=[];if((!e||i(o,s,u[u.length-1]||null))&&false===(h=function(t){if(Array.isArray(t))return t;if("number"===typeof t)return[true,t];return[t]}(n(o,u)))[0])return h;if(o.children&&"skip"!==h[0])for(c=(r?o.children.length:-1)+a,f=u.concat(o);c>-1&&c-1?n.offset:null}}}var c=function(t,e,n,r){"function"===typeof e&&"function"!==typeof n&&(r=n,n=e,e=null);var i=Object(o.a)(e),a=r?-1:1;!function t(o,s,u){var l,c="object"===typeof o&&null!==o?o:{};"string"===typeof c.type&&(l="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(l?"<"+l+">":"")+")"}));return f;function f(){var l,c,f,h=[];if((!e||i(o,s,u[u.length-1]||null))&&false===(h=function(t){if(Array.isArray(t))return t;if("number"===typeof t)return[true,t];return[t]}(n(o,u)))[0])return h;if(o.children&&"skip"!==h[0])for(c=(r?o.children.length:-1)+a,f=u.concat(o);c>-1&&c":"gt"};function M(t,e){var n=function(t){return t.replace(/["&<>]/g,(function(t){return"&"+_[t]+";"}))}(function(t){var e=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){var s=t.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}(t||""));if(!e)return n;var r=n.indexOf(":"),i=n.indexOf("?"),o=n.indexOf("#"),a=n.indexOf("/");return r<0||a>-1&&r>a||i>-1&&r>i||o>-1&&r>o||e.test(n.slice(0,r))?n:""}function O(t,e){var n=[],r=-1;for(e&&n.push(i("text","\n"));++r0&&n.push(i("text","\n")),n}function E(t,e){var n,r=String(e.identifier),o=M(r.toLowerCase()),a=t.footnoteOrder.indexOf(r);-1===a?(t.footnoteOrder.push(r),t.footnoteCounts[r]=1,n=t.footnoteOrder.length):(t.footnoteCounts[r]++,n=a+1);var s=t.footnoteCounts[r];return t(e,"sup",[t(e.position,"a",{href:"#"+t.clobberPrefix+"fn-"+o,id:t.clobberPrefix+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[i("text",String(n))])])}var S=n(98),k=n.n(S);function x(t,e){var n=e.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(e.label||e.identifier)+"]"),"imageReference"===e.type)return i("text","!["+e.alt+r);var o=y(t,e),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift(i("text","["));var s=o[o.length-1];return s&&"text"===s.type?s.value+=r:o.push(i("text",r)),o}function j(t){var e=t.spread;return void 0===e||null===e?t.children.length>1:e}var A={blockquote:function(t,e){return t(e,"blockquote",O(y(t,e),!0))},break:function(t,e){return[t(e,"br"),i("text","\n")]},code:function(t,e){var n=e.value?e.value+"\n":"",r=e.lang&&e.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);var a=t(e,"code",o,[i("text",n)]);return e.meta&&(a.data={meta:e.meta}),t(e.position,"pre",[a])},delete:function(t,e){return t(e,"del",y(t,e))},emphasis:function(t,e){return t(e,"em",y(t,e))},footnoteReference:E,footnote:function(t,e){for(var n=t.footnoteById,r=1;r in n;)r++;var i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:e.children}],position:e.position},E(t,{type:"footnoteReference",identifier:i,position:e.position})},heading:function(t,e){return t(e,"h"+e.depth,y(t,e))},html:function(t,e){return t.dangerous?t.augment(e,i("raw",e.value)):null},imageReference:function(t,e){var n=t.definition(e.identifier);if(!n)return x(t,e);var r={src:k()(n.url||""),alt:e.alt};return null!==n.title&&void 0!==n.title&&(r.title=n.title),t(e,"img",r)},image:function(t,e){var n={src:k()(e.url),alt:e.alt};return null!==e.title&&void 0!==e.title&&(n.title=e.title),t(e,"img",n)},inlineCode:function(t,e){return t(e,"code",[i("text",e.value.replace(/\r?\n|\r/g," "))])},linkReference:function(t,e){var n=t.definition(e.identifier);if(!n)return x(t,e);var r={href:k()(n.url||"")};return null!==n.title&&void 0!==n.title&&(r.title=n.title),t(e,"a",r,y(t,e))},link:function(t,e){var n={href:k()(e.url)};return null!==e.title&&void 0!==e.title&&(n.title=e.title),t(e,"a",n,y(t,e))},listItem:function(t,e,n){var r,o=y(t,e),a=n?function(t){var e=t.spread,n=t.children,r=-1;for(;!e&&++r0&&r.children.unshift(i("text"," ")),r.children.unshift(t(null,"input",{type:"checkbox",checked:e.checked,disabled:!0})),s.className=["task-list-item"]);for(var l=-1;++l1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&c.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(c)}var f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){var h,d=f.children[f.children.length-1];d&&"text"===d.type?d.value+=" ":f.children.push({type:"text",value:" "}),(h=f.children).push.apply(h,l)}else o.push.apply(o,l);var p={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+s},children:O(o,!0)};r.position&&(p.position=r.position),n.push(p)}}return 0===n.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[i("text",t.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:O(n,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push(i("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}e.a=function(t,e){return t&&"run"in t?function(t,e){return function(n,r,i){t.run(I(n,e),r,(function(t){i(t)}))}}(t,e):function(t){return function(e){return I(e,t)}}(t||e)}},function(t,e,n){"use strict";var r=n(2),i=n(11),o=n(30),a=n(6),s=n(3),u=(n(7),n(0)),l=n.n(u),c=n(18),f=n(164),h=n(163),d=n(4),p=n(386),m=n(187);function v(t){var e=t.children,n=t.className,i=t.content,o=Object(s.a)("header",n),a=Object(f.a)(v,t),u=Object(h.a)(v,t);return l.a.createElement(u,Object(r.a)({},a,{className:o}),d.a.isNil(e)?i:e)}v.handledProps=["as","children","className","content"],v.propTypes={};var g=v,b=n(235),y=n(189),w=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var _=function(t){return t.match(w)||[]},M=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var O=function(t){return M.test(t)},E=n(81),S="\\u2700-\\u27bf",k="a-z\\xdf-\\xf6\\xf8-\\xff",x="A-Z\\xc0-\\xd6\\xd8-\\xde",j="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",A="["+j+"]",C="\\d+",T="[\\u2700-\\u27bf]",P="["+k+"]",I="[^\\ud800-\\udfff"+j+C+S+k+x+"]",N="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",L="["+x+"]",D="(?:"+P+"|"+I+")",F="(?:"+L+"|"+I+")",B="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",U="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",z="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",q="[\\ufe0e\\ufe0f]?",H=q+z+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",N,R].join("|")+")"+q+z+")*"),Z="(?:"+[T,N,R].join("|")+")"+H,V=RegExp([L+"?"+P+"+"+B+"(?="+[A,L,"$"].join("|")+")",F+"+"+U+"(?="+[A,L+D,"$"].join("|")+")",L+"?"+D+"+"+B,L+"+"+U,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C,Z].join("|"),"g");var W=function(t){return t.match(V)||[]};var K=function(t,e,n){return t=Object(E.a)(t),void 0===(e=n?void 0:e)?O(t)?W(t):_(t):t.match(e)||[]},G=RegExp("['\u2019]","g");var Q=function(t){return function(e){return Object(b.a)(K(Object(y.a)(e).replace(G,"")),t,"")}},Y=n(145);var $=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Object(Y.a)(t,e,n)},X=n(153);var J=function(t){return t.split("")},tt="[\\ud800-\\udfff]",et="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nt="[^\\ud800-\\udfff]",rt="(?:\\ud83c[\\udde6-\\uddff]){2}",it="[\\ud800-\\udbff][\\udc00-\\udfff]",ot="(?:"+et+"|"+"\\ud83c[\\udffb-\\udfff])"+"?",at="[\\ufe0e\\ufe0f]?",st=at+ot+("(?:\\u200d(?:"+[nt,rt,it].join("|")+")"+at+ot+")*"),ut="(?:"+[nt+et+"?",et,rt,it,tt].join("|")+")",lt=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+ut+st,"g");var ct=function(t){return t.match(lt)||[]};var ft=function(t){return Object(X.a)(t)?ct(t):J(t)};var ht=function(t){return function(e){e=Object(E.a)(e);var n=Object(X.a)(e)?ft(e):void 0,r=n?n[0]:e.charAt(0),i=n?$(n,1).join(""):e.slice(1);return r[t]()+i}}("toUpperCase"),dt=Q((function(t,e,n){return t+(n?" ":"")+ht(e)})),pt=n(89),mt=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(192),i=60103,o=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var a=60109,s=60110,u=60112;e.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),e.Fragment=f("react.fragment"),e.StrictMode=f("react.strict_mode"),e.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),e.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function d(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n