diff --git a/007a14b8b2bbc6a854c5.svg b/007a14b8b2bbc6a854c5.svg
new file mode 100644
index 0000000..d53c4c8
--- /dev/null
+++ b/007a14b8b2bbc6a854c5.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/01849ee091e1762a5dd5.ttf b/01849ee091e1762a5dd5.ttf
new file mode 100644
index 0000000..df70936
Binary files /dev/null and b/01849ee091e1762a5dd5.ttf differ
diff --git a/0d90cac54350b3631a2b.svg b/0d90cac54350b3631a2b.svg
new file mode 100644
index 0000000..cb57f63
--- /dev/null
+++ b/0d90cac54350b3631a2b.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/1e08c7f04f4855050724.eot b/1e08c7f04f4855050724.eot
new file mode 100644
index 0000000..2bb271e
Binary files /dev/null and b/1e08c7f04f4855050724.eot differ
diff --git a/2185c437d9db32386425.ttf b/2185c437d9db32386425.ttf
new file mode 100644
index 0000000..69b63bb
Binary files /dev/null and b/2185c437d9db32386425.ttf differ
diff --git a/2318786d81923a2a0398.png b/2318786d81923a2a0398.png
new file mode 100644
index 0000000..2e12b44
Binary files /dev/null and b/2318786d81923a2a0398.png differ
diff --git a/247c7159ff708fcea332.png b/247c7159ff708fcea332.png
new file mode 100644
index 0000000..43994f8
Binary files /dev/null and b/247c7159ff708fcea332.png differ
diff --git a/26b129ebbf99cd63da7a.svg b/26b129ebbf99cd63da7a.svg
new file mode 100644
index 0000000..b0e5ced
--- /dev/null
+++ b/26b129ebbf99cd63da7a.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/2a71880a5d8c0edcd943.png b/2a71880a5d8c0edcd943.png
new file mode 100644
index 0000000..e796a16
Binary files /dev/null and b/2a71880a5d8c0edcd943.png differ
diff --git a/2de41d37b7115877d5b6.png b/2de41d37b7115877d5b6.png
new file mode 100644
index 0000000..d0ae38f
Binary files /dev/null and b/2de41d37b7115877d5b6.png differ
diff --git a/324a9a105daaf65a97ce.svg b/324a9a105daaf65a97ce.svg
new file mode 100644
index 0000000..c2866c1
--- /dev/null
+++ b/324a9a105daaf65a97ce.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/333cb30c20e31999802a.ttf b/333cb30c20e31999802a.ttf
new file mode 100644
index 0000000..e76ec69
Binary files /dev/null and b/333cb30c20e31999802a.ttf differ
diff --git a/3524ffc3226f4578e5c5.ttf b/3524ffc3226f4578e5c5.ttf
new file mode 100644
index 0000000..3e6c942
Binary files /dev/null and b/3524ffc3226f4578e5c5.ttf differ
diff --git a/35c26b06df90f45f6c0e.png b/35c26b06df90f45f6c0e.png
new file mode 100644
index 0000000..3d33f76
Binary files /dev/null and b/35c26b06df90f45f6c0e.png differ
diff --git a/35d26b781dc5fda684cc.ttf b/35d26b781dc5fda684cc.ttf
new file mode 100644
index 0000000..9f0c71b
Binary files /dev/null and b/35d26b781dc5fda684cc.ttf differ
diff --git a/3c622a812a32e90d9a9b.png b/3c622a812a32e90d9a9b.png
new file mode 100644
index 0000000..a9c2ea3
Binary files /dev/null and b/3c622a812a32e90d9a9b.png differ
diff --git a/3ebfb41b2f65bd2855c2.svg b/3ebfb41b2f65bd2855c2.svg
new file mode 100644
index 0000000..e05db51
--- /dev/null
+++ b/3ebfb41b2f65bd2855c2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/4131672cef0cfa987695.svg b/4131672cef0cfa987695.svg
new file mode 100644
index 0000000..783a361
--- /dev/null
+++ b/4131672cef0cfa987695.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/41a9daeb541338b469fa.svg b/41a9daeb541338b469fa.svg
new file mode 100644
index 0000000..22ebcb5
--- /dev/null
+++ b/41a9daeb541338b469fa.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/4a7d59f898225cc2f2e7.ttf b/4a7d59f898225cc2f2e7.ttf
new file mode 100644
index 0000000..9e70be6
Binary files /dev/null and b/4a7d59f898225cc2f2e7.ttf differ
diff --git a/52672ddfc0b2472f8310.png b/52672ddfc0b2472f8310.png
new file mode 100644
index 0000000..859e266
Binary files /dev/null and b/52672ddfc0b2472f8310.png differ
diff --git a/556d108e74d43f559161.png b/556d108e74d43f559161.png
new file mode 100644
index 0000000..0786f47
Binary files /dev/null and b/556d108e74d43f559161.png differ
diff --git a/563eda3d3407af0fb581.ttf b/563eda3d3407af0fb581.ttf
new file mode 100644
index 0000000..7aeb58b
Binary files /dev/null and b/563eda3d3407af0fb581.ttf differ
diff --git a/57531072a966f65a2305.png b/57531072a966f65a2305.png
new file mode 100644
index 0000000..3c397fa
Binary files /dev/null and b/57531072a966f65a2305.png differ
diff --git a/58cc2e4dfa1880e72951.png b/58cc2e4dfa1880e72951.png
new file mode 100644
index 0000000..fc41281
Binary files /dev/null and b/58cc2e4dfa1880e72951.png differ
diff --git a/59ff6a729e30c99b478e.ttf b/59ff6a729e30c99b478e.ttf
new file mode 100644
index 0000000..03e7366
Binary files /dev/null and b/59ff6a729e30c99b478e.ttf differ
diff --git a/5d29fd86fba153c1025d.svg b/5d29fd86fba153c1025d.svg
new file mode 100644
index 0000000..cd51e8a
--- /dev/null
+++ b/5d29fd86fba153c1025d.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/65cf2841f6551c4233c9.png b/65cf2841f6551c4233c9.png
new file mode 100644
index 0000000..fbba19e
Binary files /dev/null and b/65cf2841f6551c4233c9.png differ
diff --git a/673ed42382ab264e0bf5.ttf b/673ed42382ab264e0bf5.ttf
new file mode 100644
index 0000000..6bcdcc2
Binary files /dev/null and b/673ed42382ab264e0bf5.ttf differ
diff --git a/6a0bf4e5c677b095e328.png b/6a0bf4e5c677b095e328.png
new file mode 100644
index 0000000..9d57438
Binary files /dev/null and b/6a0bf4e5c677b095e328.png differ
diff --git a/6c8297b1515dcd712777.svg b/6c8297b1515dcd712777.svg
new file mode 100644
index 0000000..7798c38
--- /dev/null
+++ b/6c8297b1515dcd712777.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/73d4495be63ad83b25cc.ttf b/73d4495be63ad83b25cc.ttf
new file mode 100644
index 0000000..14d2b37
Binary files /dev/null and b/73d4495be63ad83b25cc.ttf differ
diff --git a/7547ed76b90d5776991c.svg b/7547ed76b90d5776991c.svg
new file mode 100644
index 0000000..c7d8f0a
--- /dev/null
+++ b/7547ed76b90d5776991c.svg
@@ -0,0 +1,22 @@
+
+
+
diff --git a/7641a0f76ca9ef6c252c.ttf b/7641a0f76ca9ef6c252c.ttf
new file mode 100644
index 0000000..bc36bcc
Binary files /dev/null and b/7641a0f76ca9ef6c252c.ttf differ
diff --git a/86b906ee82b391bdc09a.svg b/86b906ee82b391bdc09a.svg
new file mode 100644
index 0000000..217e497
--- /dev/null
+++ b/86b906ee82b391bdc09a.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/8809b45a3f0566911799.woff b/8809b45a3f0566911799.woff
new file mode 100644
index 0000000..64b6b03
Binary files /dev/null and b/8809b45a3f0566911799.woff differ
diff --git a/89e040c6a64d18f620dc.ttf b/89e040c6a64d18f620dc.ttf
new file mode 100644
index 0000000..be67410
Binary files /dev/null and b/89e040c6a64d18f620dc.ttf differ
diff --git a/9a37b4e9b7769fb9e083.png b/9a37b4e9b7769fb9e083.png
new file mode 100644
index 0000000..72f6fcf
Binary files /dev/null and b/9a37b4e9b7769fb9e083.png differ
diff --git a/9c989372615cb2cfbaa6.woff2 b/9c989372615cb2cfbaa6.woff2
new file mode 100644
index 0000000..52ef126
Binary files /dev/null and b/9c989372615cb2cfbaa6.woff2 differ
diff --git a/9d5e661e645ce9a32fe6.ttf b/9d5e661e645ce9a32fe6.ttf
new file mode 100644
index 0000000..e26db5d
Binary files /dev/null and b/9d5e661e645ce9a32fe6.ttf differ
diff --git a/a3add48e0c2437e3b88d.png b/a3add48e0c2437e3b88d.png
new file mode 100644
index 0000000..c20eed2
Binary files /dev/null and b/a3add48e0c2437e3b88d.png differ
diff --git a/ac8d04b620e54be9b0f0.ttf b/ac8d04b620e54be9b0f0.ttf
new file mode 100644
index 0000000..74c726e
Binary files /dev/null and b/ac8d04b620e54be9b0f0.ttf differ
diff --git a/b53376cd3ae8f3c426ab.png b/b53376cd3ae8f3c426ab.png
new file mode 100644
index 0000000..3f49fc7
Binary files /dev/null and b/b53376cd3ae8f3c426ab.png differ
diff --git a/b8844d260be87e87ad10.svg b/b8844d260be87e87ad10.svg
new file mode 100644
index 0000000..76ab687
--- /dev/null
+++ b/b8844d260be87e87ad10.svg
@@ -0,0 +1,22 @@
+
+
+
diff --git a/b8dbe7c879da3b9be4ca.png b/b8dbe7c879da3b9be4ca.png
new file mode 100644
index 0000000..89b3481
Binary files /dev/null and b/b8dbe7c879da3b9be4ca.png differ
diff --git a/be027ddaf24e9820054a.svg b/be027ddaf24e9820054a.svg
new file mode 100644
index 0000000..c76431c
--- /dev/null
+++ b/be027ddaf24e9820054a.svg
@@ -0,0 +1,2 @@
+
+
diff --git a/bundle.74d7d3b8bacd4d384b45.js b/bundle.74d7d3b8bacd4d384b45.js
new file mode 100644
index 0000000..9b40018
--- /dev/null
+++ b/bundle.74d7d3b8bacd4d384b45.js
@@ -0,0 +1,8 @@
+/*! For license information please see bundle.74d7d3b8bacd4d384b45.js.LICENSE.txt */
+(()=>{var t={6533:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const i=n(7159),r=n(3924),o=n(6121),a=n(1448),s=n(808),c=n(1240),h=n(2500),u="https://json-schema.org/draft/2019-09/schema";class l extends i.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),r.default.forEach((t=>this.addVocabulary(t))),this.addVocabulary(a.default),this.addVocabulary(s.default),this.opts.discriminator&&this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:t,meta:e}=this.opts;e&&(h.default.call(this,t),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}t.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var d=n(4815);Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var p=n(3487);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var f=n(7426);Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=n(6646);Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})},7023:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class n{}e._CodeOrName=n,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends n{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=i;class r extends n{constructor(t){super(),this._items="string"==typeof t?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const t=this._items[0];return""===t||'""'===t}get str(){var t;return null!==(t=this._str)&&void 0!==t?t:this._str=this._items.reduce(((t,e)=>`${t}${e}`),"")}get names(){var t;return null!==(t=this._names)&&void 0!==t?t:this._names=this._items.reduce(((t,e)=>(e instanceof i&&(t[e.str]=(t[e.str]||0)+1),t)),{})}}function o(t,...e){const n=[t[0]];let i=0;for(;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const i=n(7023),r=n(8490);var o=n(7023);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(8490);Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new i._Code(">"),GTE:new i._Code(">="),LT:new i._Code("<"),LTE:new i._Code("<="),EQ:new i._Code("==="),NEQ:new i._Code("!=="),NOT:new i._Code("!"),OR:new i._Code("||"),AND:new i._Code("&&"),ADD:new i._Code("+")};class s{optimizeNodes(){return this}optimizeNames(t,e){return this}}class c extends s{constructor(t,e,n){super(),this.varKind=t,this.name=e,this.rhs=n}render({es5:t,_n:e}){const n=t?r.varKinds.var:this.varKind,i=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+e}optimizeNames(t,e){if(t[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,t,e)),this}get names(){return this.rhs instanceof i._CodeOrName?this.rhs.names:{}}}class h extends s{constructor(t,e,n){super(),this.lhs=t,this.rhs=e,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,e){if(!(this.lhs instanceof i.Name)||t[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,t,e),this}get names(){return j(this.lhs instanceof i.Name?{}:{...this.lhs.names},this.rhs)}}class u extends h{constructor(t,e,n,i){super(t,n,i),this.op=e}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class l extends s{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}}class d extends s{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}}class p extends s{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class f extends s{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,e){return this.code=O(this.code,t,e),this}get names(){return this.code instanceof i._CodeOrName?this.code.names:{}}}class m extends s{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce(((e,n)=>e+n.render(t)),"")}optimizeNodes(){const{nodes:t}=this;let e=t.length;for(;e--;){const n=t[e].optimizeNodes();Array.isArray(n)?t.splice(e,1,...n):n?t[e]=n:t.splice(e,1)}return t.length>0?this:void 0}optimizeNames(t,e){const{nodes:n}=this;let i=n.length;for(;i--;){const r=n[i];r.optimizeNames(t,e)||(P(t,r.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((t,e)=>C(t,e.names)),{})}}class y extends m{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(t,e){super(e),this.condition=t}render(t){let e=`if(${this.condition})`+super.render(t);return this.else&&(e+="else "+this.else.render(t)),e}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(!0===t)return this.nodes;let e=this.else;if(e){const t=e.optimizeNodes();e=this.else=Array.isArray(t)?new v(t):t}return e?!1===t?e instanceof b?e:e.nodes:this.nodes.length?this:new b(I(t),e instanceof b?[e]:e.nodes):!1!==t&&this.nodes.length?this:void 0}optimizeNames(t,e){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(t,e),super.optimizeNames(t,e)||this.else)return this.condition=O(this.condition,t,e),this}get names(){const t=super.names;return j(t,this.condition),this.else&&C(t,this.else.names),t}}b.kind="if";class _ extends y{}_.kind="for";class w extends _{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iteration=O(this.iteration,t,e),this}get names(){return C(super.names,this.iteration.names)}}class x extends _{constructor(t,e,n,i){super(),this.varKind=t,this.name=e,this.from=n,this.to=i}render(t){const e=t.es5?r.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${e} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){const t=j(super.names,this.from);return j(t,this.to)}}class M extends _{constructor(t,e,n,i){super(),this.loop=t,this.varKind=e,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iterable=O(this.iterable,t,e),this}get names(){return C(super.names,this.iterable.names)}}class k extends y{constructor(t,e,n){super(),this.name=t,this.args=e,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}k.kind="func";class S extends m{render(t){return"return "+super.render(t)}}S.kind="return";class E extends y{render(t){let e="try"+super.render(t);return this.catch&&(e+=this.catch.render(t)),this.finally&&(e+=this.finally.render(t)),e}optimizeNodes(){var t,e;return super.optimizeNodes(),null===(t=this.catch)||void 0===t||t.optimizeNodes(),null===(e=this.finally)||void 0===e||e.optimizeNodes(),this}optimizeNames(t,e){var n,i;return super.optimizeNames(t,e),null===(n=this.catch)||void 0===n||n.optimizeNames(t,e),null===(i=this.finally)||void 0===i||i.optimizeNames(t,e),this}get names(){const t=super.names;return this.catch&&C(t,this.catch.names),this.finally&&C(t,this.finally.names),t}}class A extends y{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}A.kind="catch";class T extends y{render(t){return"finally"+super.render(t)}}function C(t,e){for(const n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function j(t,e){return e instanceof i._CodeOrName?C(t,e.names):t}function O(t,e,n){return t instanceof i.Name?o(t):(r=t)instanceof i._Code&&r._items.some((t=>t instanceof i.Name&&1===e[t.str]&&void 0!==n[t.str]))?new i._Code(t._items.reduce(((t,e)=>(e instanceof i.Name&&(e=o(e)),e instanceof i._Code?t.push(...e._items):t.push(e),t)),[])):t;var r;function o(t){const i=n[t.str];return void 0===i||1!==e[t.str]?t:(delete e[t.str],i)}}function P(t,e){for(const n in e)t[n]=(t[n]||0)-(e[n]||0)}function I(t){return"boolean"==typeof t||"number"==typeof t||null===t?!t:i._`!${N(t)}`}T.kind="finally",e.CodeGen=class{constructor(t,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?"\n":""},this._extScope=t,this._scope=new r.Scope({parent:t}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,e){const n=this._extScope.value(t,e);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,e){return this._extScope.getValue(t,e)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,e,n,i){const r=this._scope.toName(e);return void 0!==n&&i&&(this._constants[r.str]=n),this._leafNode(new c(t,r,n)),r}const(t,e,n){return this._def(r.varKinds.const,t,e,n)}let(t,e,n){return this._def(r.varKinds.let,t,e,n)}var(t,e,n){return this._def(r.varKinds.var,t,e,n)}assign(t,e,n){return this._leafNode(new h(t,e,n))}add(t,n){return this._leafNode(new u(t,e.operators.ADD,n))}code(t){return"function"==typeof t?t():t!==i.nil&&this._leafNode(new f(t)),this}object(...t){const e=["{"];for(const[n,r]of t)e.length>1&&e.push(","),e.push(n),(n!==r||this.opts.es5)&&(e.push(":"),(0,i.addCodeArg)(e,r));return e.push("}"),new i._Code(e)}if(t,e,n){if(this._blockNode(new b(t)),e&&n)this.code(e).else().code(n).endIf();else if(e)this.code(e).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new b(t))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(t,e){return this._blockNode(t),e&&this.code(e).endFor(),this}for(t,e){return this._for(new w(t),e)}forRange(t,e,n,i,o=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const a=this._scope.toName(t);return this._for(new x(o,a,e,n),(()=>i(a)))}forOf(t,e,n,o=r.varKinds.const){const a=this._scope.toName(t);if(this.opts.es5){const t=e instanceof i.Name?e:this.var("_arr",e);return this.forRange("_i",0,i._`${t}.length`,(e=>{this.var(a,i._`${t}[${e}]`),n(a)}))}return this._for(new M("of",o,a,e),(()=>n(a)))}forIn(t,e,n,o=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(t,i._`Object.keys(${e})`,n);const a=this._scope.toName(t);return this._for(new M("in",o,a,e),(()=>n(a)))}endFor(){return this._endBlockNode(_)}label(t){return this._leafNode(new l(t))}break(t){return this._leafNode(new d(t))}return(t){const e=new S;if(this._blockNode(e),this.code(t),1!==e.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(t,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const i=new E;if(this._blockNode(i),this.code(t),e){const t=this.name("e");this._currNode=i.catch=new A(t),e(t)}return n&&(this._currNode=i.finally=new T,this.code(n)),this._endBlockNode(A,T)}throw(t){return this._leafNode(new p(t))}block(t,e){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(e),this}endBlock(t){const e=this._blockStarts.pop();if(void 0===e)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-e;if(n<0||void 0!==t&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=e,this}func(t,e=i.nil,n,r){return this._blockNode(new k(t,e,n)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,e){const n=this._currNode;if(n instanceof t||e&&n instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${t.kind}/${e.kind}`:t.kind}"`)}_elseNode(t){const e=this._currNode;if(!(e instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=t,this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const e=this._nodes;e[e.length-1]=t}},e.not=I;const $=L(e.operators.AND);e.and=function(...t){return t.reduce($)};const R=L(e.operators.OR);function L(t){return(e,n)=>e===i.nil?n:n===i.nil?e:i._`${N(e)} ${t} ${N(n)}`}function N(t){return t instanceof i.Name?t:i._`(${t})`}e.or=function(...t){return t.reduce(R)}},8490:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const i=n(7023);class r extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}}var o;!function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"}(o=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class a{constructor({prefixes:t,parent:e}={}){this._names={},this._prefixes=t,this._parent=e}toName(t){return t instanceof i.Name?t:this.name(t)}name(t){return new i.Name(this._newName(t))}_newName(t){return`${t}${(this._names[t]||this._nameGroup(t)).index++}`}_nameGroup(t){var e,n;if((null===(n=null===(e=this._parent)||void 0===e?void 0:e._prefixes)||void 0===n?void 0:n.has(t))||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}}e.Scope=a;class s extends i.Name{constructor(t,e){super(e),this.prefix=t}setValue(t,{property:e,itemIndex:n}){this.value=t,this.scopePath=i._`.${new i.Name(e)}[${n}]`}}e.ValueScopeName=s;const c=i._`\n`;e.ValueScope=class extends a{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?c:i.nil}}get(){return this._scope}name(t){return new s(t,this._newName(t))}value(t,e){var n;if(void 0===e.ref)throw new Error("CodeGen: ref must be passed in value");const i=this.toName(t),{prefix:r}=i,o=null!==(n=e.key)&&void 0!==n?n:e.ref;let a=this._values[r];if(a){const t=a.get(o);if(t)return t}else a=this._values[r]=new Map;a.set(o,i);const s=this._scope[r]||(this._scope[r]=[]),c=s.length;return s[c]=e.ref,i.setValue(e,{property:r,itemIndex:c}),i}getValue(t,e){const n=this._values[t];if(n)return n.get(e)}scopeRefs(t,e=this._values){return this._reduceValues(e,(e=>{if(void 0===e.scopePath)throw new Error(`CodeGen: name "${e}" has no value`);return i._`${t}${e.scopePath}`}))}scopeCode(t=this._values,e,n){return this._reduceValues(t,(t=>{if(void 0===t.value)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code}),e,n)}_reduceValues(t,n,a={},s){let c=i.nil;for(const h in t){const u=t[h];if(!u)continue;const l=a[h]=a[h]||new Map;u.forEach((t=>{if(l.has(t))return;l.set(t,o.Started);let a=n(t);if(a){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=i._`${c}${n} ${t} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(t)))throw new r(t);c=i._`${c}${a}${this.opts._n}`}l.set(t,o.Completed)}))}return c}}},4181:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const i=n(3487),r=n(6776),o=n(2141);function a(t,e){const n=t.const("err",e);t.if(i._`${o.default.vErrors} === null`,(()=>t.assign(o.default.vErrors,i._`[${n}]`)),i._`${o.default.vErrors}.push(${n})`),t.code(i._`${o.default.errors}++`)}function s(t,e){const{gen:n,validateName:r,schemaEnv:o}=t;o.$async?n.throw(i._`new ${t.ValidationError}(${e})`):(n.assign(i._`${r}.errors`,e),n.return(!1))}e.keywordError={message:({keyword:t})=>i.str`must pass "${t}" keyword validation`},e.keyword$DataError={message:({keyword:t,schemaType:e})=>e?i.str`"${t}" keyword must be ${e} ($data)`:i.str`"${t}" keyword is invalid ($data)`},e.reportError=function(t,n=e.keywordError,r,o){const{it:c}=t,{gen:u,compositeRule:l,allErrors:d}=c,p=h(t,n,r);(null!=o?o:l||d)?a(u,p):s(c,i._`[${p}]`)},e.reportExtraError=function(t,n=e.keywordError,i){const{it:r}=t,{gen:c,compositeRule:u,allErrors:l}=r;a(c,h(t,n,i)),u||l||s(r,o.default.vErrors)},e.resetErrorsCount=function(t,e){t.assign(o.default.errors,e),t.if(i._`${o.default.vErrors} !== null`,(()=>t.if(e,(()=>t.assign(i._`${o.default.vErrors}.length`,e)),(()=>t.assign(o.default.vErrors,null)))))},e.extendErrors=function({gen:t,keyword:e,schemaValue:n,data:r,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const c=t.name("err");t.forRange("i",a,o.default.errors,(a=>{t.const(c,i._`${o.default.vErrors}[${a}]`),t.if(i._`${c}.instancePath === undefined`,(()=>t.assign(i._`${c}.instancePath`,(0,i.strConcat)(o.default.instancePath,s.errorPath)))),t.assign(i._`${c}.schemaPath`,i.str`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign(i._`${c}.schema`,n),t.assign(i._`${c}.data`,r))}))};const c={keyword:new i.Name("keyword"),schemaPath:new i.Name("schemaPath"),params:new i.Name("params"),propertyName:new i.Name("propertyName"),message:new i.Name("message"),schema:new i.Name("schema"),parentSchema:new i.Name("parentSchema")};function h(t,e,n){const{createErrors:r}=t.it;return!1===r?i._`{}`:function(t,e,n={}){const{gen:r,it:a}=t,s=[u(a,n),l(t,n)];return function(t,{params:e,message:n},r){const{keyword:a,data:s,schemaValue:h,it:u}=t,{opts:l,propertyName:d,topSchemaRef:p,schemaPath:f}=u;r.push([c.keyword,a],[c.params,"function"==typeof e?e(t):e||i._`{}`]),l.messages&&r.push([c.message,"function"==typeof n?n(t):n]),l.verbose&&r.push([c.schema,h],[c.parentSchema,i._`${p}${f}`],[o.default.data,s]),d&&r.push([c.propertyName,d])}(t,e,s),r.object(...s)}(t,e,n)}function u({errorPath:t},{instancePath:e}){const n=e?i.str`${t}${(0,r.getErrorPath)(e,r.Type.Str)}`:t;return[o.default.instancePath,(0,i.strConcat)(o.default.instancePath,n)]}function l({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:o}){let a=o?e:i.str`${e}/${t}`;return n&&(a=i.str`${a}${(0,r.getErrorPath)(n,r.Type.Str)}`),[c.schemaPath,a]}},5173:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;const i=n(3487),r=n(7426),o=n(2141),a=n(2531),s=n(6776),c=n(4815);class h{constructor(t){var e;let n;this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(e=t.baseId)&&void 0!==e?e:(0,a.normalizeId)(null==n?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(t){const e=d.call(this,t);if(e)return e;const n=(0,a.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:s,lines:h}=this.opts.code,{ownProperties:u}=this.opts,l=new i.CodeGen(this.scope,{es5:s,lines:h,ownProperties:u});let p;t.$async&&(p=l.scopeValue("Error",{ref:r.default,code:i._`require("ajv/dist/runtime/validation_error").default`}));const f=l.scopeName("validate");t.validateName=f;const m={gen:l,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[i.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,i.stringify)(t.schema)}:{ref:t.schema}),validateName:f,ValidationError:p,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:i.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:i._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(t),(0,c.validateFunctionCode)(m),l.optimize(this.opts.code.optimize);const e=l.toString();y=`${l.scopeRefs(o.default.scope)}return ${e}`,this.opts.code.process&&(y=this.opts.code.process(y,t));const n=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=t.schema,n.schemaEnv=t,t.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:e,scopeValues:l._values}),this.opts.unevaluated){const{props:t,items:e}=m;n.evaluated={props:t instanceof i.Name?void 0:t,items:e instanceof i.Name?void 0:e,dynamicProps:t instanceof i.Name,dynamicItems:e instanceof i.Name},n.source&&(n.source.evaluated=(0,i.stringify)(n.evaluated))}return t.validate=n,t}catch(e){throw delete t.validate,delete t.validateName,y&&this.logger.error("Error compiling schema, function code:",y),e}finally{this._compilations.delete(t)}}function l(t){return(0,a.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:u.call(this,t)}function d(t){for(const i of this._compilations)if(n=t,(e=i).schema===n.schema&&e.root===n.root&&e.baseId===n.baseId)return i;var e,n}function p(t,e){let n;for(;"string"==typeof(n=this.refs[e]);)e=n;return n||this.schemas[e]||f.call(this,t,e)}function f(t,e){const n=this.opts.uriResolver.parse(e),i=(0,a._getFullPath)(this.opts.uriResolver,n);let r=(0,a.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return y.call(this,n,t);const o=(0,a.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const e=f.call(this,t,s);if("object"!=typeof(null==e?void 0:e.schema))return;return y.call(this,n,e)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(e)){const{schema:e}=s,{schemaId:n}=this.opts,i=e[n];return i&&(r=(0,a.resolveUrl)(this.opts.uriResolver,r,i)),new h({schema:e,schemaId:n,root:t,baseId:r})}return y.call(this,n,s)}}e.SchemaEnv=h,e.compileSchema=u,e.resolveRef=function(t,e,n){var i;n=(0,a.resolveUrl)(this.opts.uriResolver,e,n);const r=t.refs[n];if(r)return r;let o=p.call(this,t,n);if(void 0===o){const r=null===(i=t.localRefs)||void 0===i?void 0:i[n],{schemaId:a}=this.opts;r&&(o=new h({schema:r,schemaId:a,root:t,baseId:e}))}return void 0!==o?t.refs[n]=l.call(this,o):void 0},e.getCompilingSchema=d,e.resolveSchema=f;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(t,{baseId:e,schema:n,root:i}){var r;if("/"!==(null===(r=t.fragment)||void 0===r?void 0:r[0]))return;for(const i of t.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const t=n[(0,s.unescapeFragment)(i)];if(void 0===t)return;const r="object"==typeof(n=t)&&n[this.opts.schemaId];!m.has(i)&&r&&(e=(0,a.resolveUrl)(this.opts.uriResolver,e,r))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const t=(0,a.resolveUrl)(this.opts.uriResolver,e,n.$ref);o=f.call(this,i,t)}const{schemaId:c}=this.opts;return o=o||new h({schema:n,schemaId:c,root:i,baseId:e}),o.schema!==o.root.schema?o:void 0}},2141:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r={data:new i.Name("data"),valCxt:new i.Name("valCxt"),instancePath:new i.Name("instancePath"),parentData:new i.Name("parentData"),parentDataProperty:new i.Name("parentDataProperty"),rootData:new i.Name("rootData"),dynamicAnchors:new i.Name("dynamicAnchors"),vErrors:new i.Name("vErrors"),errors:new i.Name("errors"),this:new i.Name("this"),self:new i.Name("self"),scope:new i.Name("scope"),json:new i.Name("json"),jsonPos:new i.Name("jsonPos"),jsonLen:new i.Name("jsonLen"),jsonPart:new i.Name("jsonPart")};e.default=r},6646:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(2531);class r extends Error{constructor(t,e,n,r){super(r||`can't resolve reference ${n} from id ${e}`),this.missingRef=(0,i.resolveUrl)(t,e,n),this.missingSchema=(0,i.normalizeId)((0,i.getFullPath)(t,this.missingRef))}}e.default=r},2531:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const i=n(6776),r=n(4063),o=n(9461),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(t,e=!0){return"boolean"==typeof t||(!0===e?!c(t):!!e&&h(t)<=e)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(t){for(const e in t){if(s.has(e))return!0;const n=t[e];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function h(t){let e=0;for(const n in t){if("$ref"===n)return 1/0;if(e++,!a.has(n)&&("object"==typeof t[n]&&(0,i.eachItem)(t[n],(t=>e+=h(t))),e===1/0))return 1/0}return e}function u(t,e="",n){!1!==n&&(e=p(e));const i=t.parse(e);return l(t,i)}function l(t,e){return t.serialize(e).split("#")[0]+"#"}e.getFullPath=u,e._getFullPath=l;const d=/#\/?$/;function p(t){return t?t.replace(d,""):""}e.normalizeId=p,e.resolveUrl=function(t,e,n){return n=p(n),t.resolve(e,n)};const f=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(t,e){if("boolean"==typeof t)return{};const{schemaId:n,uriResolver:i}=this.opts,a=p(t[n]||e),s={"":a},c=u(i,a,!1),h={},l=new Set;return o(t,{allKeys:!0},((t,e,i,r)=>{if(void 0===r)return;const o=c+e;let a=s[r];function u(e){const n=this.opts.uriResolver.resolve;if(e=p(a?n(a,e):e),l.has(e))throw m(e);l.add(e);let i=this.refs[e];return"string"==typeof i&&(i=this.refs[i]),"object"==typeof i?d(t,i.schema,e):e!==p(o)&&("#"===e[0]?(d(t,h[e],e),h[e]=t):this.refs[e]=o),e}function y(t){if("string"==typeof t){if(!f.test(t))throw new Error(`invalid anchor "${t}"`);u.call(this,`#${t}`)}}"string"==typeof t[n]&&(a=u.call(this,t[n])),y.call(this,t.$anchor),y.call(this,t.$dynamicAnchor),s[e]=a})),h;function d(t,e,n){if(void 0!==e&&!r(t,e))throw m(n)}function m(t){return new Error(`reference "${t}" resolves to more than one schema`)}}},3141:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);e.isJSONType=function(t){return"string"==typeof t&&n.has(t)},e.getRules=function(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}},6776:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const i=n(3487),r=n(7023);function o(t,e=t.schema){const{opts:n,self:i}=t;if(!n.strictSchema)return;if("boolean"==typeof e)return;const r=i.RULES.keywords;for(const n in e)r[n]||f(t,`unknown keyword: "${n}"`)}function a(t,e){if("boolean"==typeof t)return!t;for(const n in t)if(e[n])return!0;return!1}function s(t){return"number"==typeof t?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}function c(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function h({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:r}){return(o,a,s,c)=>{const h=void 0===s?a:s instanceof i.Name?(a instanceof i.Name?t(o,a,s):e(o,a,s),s):a instanceof i.Name?(e(o,s,a),a):n(a,s);return c!==i.Name||h instanceof i.Name?h:r(o,h)}}function u(t,e){if(!0===e)return t.var("props",!0);const n=t.var("props",i._`{}`);return void 0!==e&&l(t,n,e),n}function l(t,e,n){Object.keys(n).forEach((n=>t.assign(i._`${e}${(0,i.getProperty)(n)}`,!0)))}e.toHash=function(t){const e={};for(const n of t)e[n]=!0;return e},e.alwaysValidSchema=function(t,e){return"boolean"==typeof e?e:0===Object.keys(e).length||(o(t,e),!a(e,t.self.RULES.all))},e.checkUnknownRules=o,e.schemaHasRules=a,e.schemaHasRulesButRef=function(t,e){if("boolean"==typeof t)return!t;for(const n in t)if("$ref"!==n&&e.all[n])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:t,schemaPath:e},n,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return i._`${n}`}return i._`${t}${e}${(0,i.getProperty)(r)}`},e.unescapeFragment=function(t){return c(decodeURIComponent(t))},e.escapeFragment=function(t){return encodeURIComponent(s(t))},e.escapeJsonPointer=s,e.unescapeJsonPointer=c,e.eachItem=function(t,e){if(Array.isArray(t))for(const n of t)e(n);else e(t)},e.mergeEvaluated={props:h({mergeNames:(t,e,n)=>t.if(i._`${n} !== true && ${e} !== undefined`,(()=>{t.if(i._`${e} === true`,(()=>t.assign(n,!0)),(()=>t.assign(n,i._`${n} || {}`).code(i._`Object.assign(${n}, ${e})`)))})),mergeToName:(t,e,n)=>t.if(i._`${n} !== true`,(()=>{!0===e?t.assign(n,!0):(t.assign(n,i._`${n} || {}`),l(t,n,e))})),mergeValues:(t,e)=>!0===t||{...t,...e},resultToName:u}),items:h({mergeNames:(t,e,n)=>t.if(i._`${n} !== true && ${e} !== undefined`,(()=>t.assign(n,i._`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`))),mergeToName:(t,e,n)=>t.if(i._`${n} !== true`,(()=>t.assign(n,!0===e||i._`${n} > ${e} ? ${n} : ${e}`))),mergeValues:(t,e)=>!0===t||Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})},e.evaluatedPropsToName=u,e.setEvaluated=l;const d={};var p;function f(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,!0===n)throw new Error(e);t.self.logger.warn(e)}}e.useFunc=function(t,e){return t.scopeValue("func",{ref:e,code:d[e.code]||(d[e.code]=new r._Code(e.code))})},function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"}(p=e.Type||(e.Type={})),e.getErrorPath=function(t,e,n){if(t instanceof i.Name){const r=e===p.Num;return n?r?i._`"[" + ${t} + "]"`:i._`"['" + ${t} + "']"`:r?i._`"/" + ${t}`:i._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,i.getProperty)(t).toString():"/"+s(t)},e.checkStrictMode=f},8876:(t,e)=>{"use strict";function n(t,e){return e.rules.some((e=>i(t,e)))}function i(t,e){var n;return void 0!==t[e.keyword]||(null===(n=e.definition.implements)||void 0===n?void 0:n.some((e=>void 0!==t[e])))}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0,e.schemaHasRulesForType=function({schema:t,self:e},i){const r=e.RULES.types[i];return r&&!0!==r&&n(t,r)},e.shouldUseGroup=n,e.shouldUseRule=i},5667:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;const i=n(4181),r=n(3487),o=n(2141),a={message:"boolean schema is false"};function s(t,e){const{gen:n,data:r}=t,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,i.reportError)(o,a,void 0,e)}e.topBoolOrEmptySchema=function(t){const{gen:e,schema:n,validateName:i}=t;!1===n?s(t,!1):"object"==typeof n&&!0===n.$async?e.return(o.default.data):(e.assign(r._`${i}.errors`,null),e.return(!0))},e.boolOrEmptySchema=function(t,e){const{gen:n,schema:i}=t;!1===i?(n.var(e,!1),s(t)):n.var(e,!0)}},453:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const i=n(3141),r=n(8876),o=n(4181),a=n(3487),s=n(6776);var c;function h(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(i.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}!function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"}(c=e.DataType||(e.DataType={})),e.getSchemaTypes=function(t){const e=h(t.type);if(e.includes("null")){if(!1===t.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&void 0!==t.nullable)throw new Error('"nullable" cannot be used without "type"');!0===t.nullable&&e.push("null")}return e},e.getJSONTypes=h,e.coerceAndCheckDataType=function(t,e){const{gen:n,data:i,opts:o}=t,s=function(t,e){return e?t.filter((t=>u.has(t)||"array"===e&&"array"===t)):[]}(e,o.coerceTypes),h=e.length>0&&!(0===s.length&&1===e.length&&(0,r.schemaHasRulesForType)(t,e[0]));if(h){const r=d(e,i,o.strictNumbers,c.Wrong);n.if(r,(()=>{s.length?function(t,e,n){const{gen:i,data:r,opts:o}=t,s=i.let("dataType",a._`typeof ${r}`),c=i.let("coerced",a._`undefined`);"array"===o.coerceTypes&&i.if(a._`${s} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,(()=>i.assign(r,a._`${r}[0]`).assign(s,a._`typeof ${r}`).if(d(e,r,o.strictNumbers),(()=>i.assign(c,r))))),i.if(a._`${c} !== undefined`);for(const t of n)(u.has(t)||"array"===t&&"array"===o.coerceTypes)&&h(t);function h(t){switch(t){case"string":return void i.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(c,a._`"" + ${r}`).elseIf(a._`${r} === null`).assign(c,a._`""`);case"number":return void i.elseIf(a._`${s} == "boolean" || ${r} === null
+ || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,a._`+${r}`);case"integer":return void i.elseIf(a._`${s} === "boolean" || ${r} === null
+ || (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,a._`+${r}`);case"boolean":return void i.elseIf(a._`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf(a._`${r} === "true" || ${r} === 1`).assign(c,!0);case"null":return i.elseIf(a._`${r} === "" || ${r} === 0 || ${r} === false`),void i.assign(c,null);case"array":i.elseIf(a._`${s} === "string" || ${s} === "number"
+ || ${s} === "boolean" || ${r} === null`).assign(c,a._`[${r}]`)}}i.else(),f(t),i.endIf(),i.if(a._`${c} !== undefined`,(()=>{i.assign(r,c),function({gen:t,parentData:e,parentDataProperty:n},i){t.if(a._`${e} !== undefined`,(()=>t.assign(a._`${e}[${n}]`,i)))}(t,c)}))}(t,e,s):f(t)}))}return h};const u=new Set(["string","number","integer","boolean","null"]);function l(t,e,n,i=c.Correct){const r=i===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(t){case"null":return a._`${e} ${r} null`;case"array":o=a._`Array.isArray(${e})`;break;case"object":o=a._`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=s(a._`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=s();break;default:return a._`typeof ${e} ${r} ${t}`}return i===c.Correct?o:(0,a.not)(o);function s(t=a.nil){return(0,a.and)(a._`typeof ${e} == "number"`,t,n?a._`isFinite(${e})`:a.nil)}}function d(t,e,n,i){if(1===t.length)return l(t[0],e,n,i);let r;const o=(0,s.toHash)(t);if(o.array&&o.object){const t=a._`typeof ${e} != "object"`;r=o.null?t:a._`!${e} || ${t}`,delete o.null,delete o.array,delete o.object}else r=a.nil;o.number&&delete o.integer;for(const t in o)r=(0,a.and)(r,l(t,e,n,i));return r}e.checkDataType=l,e.checkDataTypes=d;const p={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>"string"==typeof t?a._`{type: ${t}}`:a._`{type: ${e}}`};function f(t){const e=function(t){const{gen:e,data:n,schema:i}=t,r=(0,s.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:n,schema:i.type,schemaCode:r,schemaValue:r,parentSchema:i,params:{},it:t}}(t);(0,o.reportError)(e,p)}e.reportTypeError=f},313:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;const i=n(3487),r=n(6776);function o(t,e,n){const{gen:o,compositeRule:a,data:s,opts:c}=t;if(void 0===n)return;const h=i._`${s}${(0,i.getProperty)(e)}`;if(a)return void(0,r.checkStrictMode)(t,`default is ignored for: ${h}`);let u=i._`${h} === undefined`;"empty"===c.useDefaults&&(u=i._`${u} || ${h} === null || ${h} === ""`),o.if(u,i._`${h} = ${(0,i.stringify)(n)}`)}e.assignDefaults=function(t,e){const{properties:n,items:i}=t.schema;if("object"===e&&n)for(const e in n)o(t,e,n[e].default);else"array"===e&&Array.isArray(i)&&i.forEach(((e,n)=>o(t,n,e.default)))}},4815:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const i=n(5667),r=n(453),o=n(8876),a=n(453),s=n(313),c=n(5005),h=n(3099),u=n(3487),l=n(2141),d=n(2531),p=n(6776),f=n(4181);function m({gen:t,validateName:e,schema:n,schemaEnv:i,opts:r},o){r.code.es5?t.func(e,u._`${l.default.data}, ${l.default.valCxt}`,i.$async,(()=>{t.code(u._`"use strict"; ${y(n,r)}`),function(t,e){t.if(l.default.valCxt,(()=>{t.var(l.default.instancePath,u._`${l.default.valCxt}.${l.default.instancePath}`),t.var(l.default.parentData,u._`${l.default.valCxt}.${l.default.parentData}`),t.var(l.default.parentDataProperty,u._`${l.default.valCxt}.${l.default.parentDataProperty}`),t.var(l.default.rootData,u._`${l.default.valCxt}.${l.default.rootData}`),e.dynamicRef&&t.var(l.default.dynamicAnchors,u._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{t.var(l.default.instancePath,u._`""`),t.var(l.default.parentData,u._`undefined`),t.var(l.default.parentDataProperty,u._`undefined`),t.var(l.default.rootData,l.default.data),e.dynamicRef&&t.var(l.default.dynamicAnchors,u._`{}`)}))}(t,r),t.code(o)})):t.func(e,u._`${l.default.data}, ${function(t){return u._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${t.dynamicRef?u._`, ${l.default.dynamicAnchors}={}`:u.nil}}={}`}(r)}`,i.$async,(()=>t.code(y(n,r)).code(o)))}function y(t,e){const n="object"==typeof t&&t[e.schemaId];return n&&(e.code.source||e.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function g({schema:t,self:e}){if("boolean"==typeof t)return!t;for(const n in t)if(e.RULES.all[n])return!0;return!1}function v(t){return"boolean"!=typeof t.schema}function b(t){(0,p.checkUnknownRules)(t),function(t){const{schema:e,errSchemaPath:n,opts:i,self:r}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(e,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(t)}function _(t,e){if(t.opts.jtd)return x(t,[],!1,e);const n=(0,r.getSchemaTypes)(t.schema);x(t,n,!(0,r.coerceAndCheckDataType)(t,n),e)}function w({gen:t,schemaEnv:e,schema:n,errSchemaPath:i,opts:r}){const o=n.$comment;if(!0===r.$comment)t.code(u._`${l.default.self}.logger.log(${o})`);else if("function"==typeof r.$comment){const n=u.str`${i}/$comment`,r=t.scopeValue("root",{ref:e.root});t.code(u._`${l.default.self}.opts.$comment(${o}, ${n}, ${r}.schema)`)}}function x(t,e,n,i){const{gen:r,schema:s,data:c,allErrors:h,opts:d,self:f}=t,{RULES:m}=f;function y(p){(0,o.shouldUseGroup)(s,p)&&(p.type?(r.if((0,a.checkDataType)(p.type,c,d.strictNumbers)),M(t,p),1===e.length&&e[0]===p.type&&n&&(r.else(),(0,a.reportTypeError)(t)),r.endIf()):M(t,p),h||r.if(u._`${l.default.errors} === ${i||0}`))}!s.$ref||!d.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(s,m)?(d.jtd||function(t,e){!t.schemaEnv.meta&&t.opts.strictTypes&&(function(t,e){e.length&&(t.dataTypes.length?(e.forEach((e=>{k(t.dataTypes,e)||S(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)})),function(t,e){const n=[];for(const i of t.dataTypes)k(e,i)?n.push(i):e.includes("integer")&&"number"===i&&n.push("integer");t.dataTypes=n}(t,e)):t.dataTypes=e)}(t,e),t.opts.allowUnionTypes||function(t,e){e.length>1&&(2!==e.length||!e.includes("null"))&&S(t,"use allowUnionTypes to allow union type keyword")}(t,e),function(t,e){const n=t.self.RULES.all;for(const i in n){const r=n[i];if("object"==typeof r&&(0,o.shouldUseRule)(t.schema,r)){const{type:n}=r.definition;n.length&&!n.some((t=>{return i=t,(n=e).includes(i)||"number"===i&&n.includes("integer");var n,i}))&&S(t,`missing type "${n.join(",")}" for keyword "${i}"`)}}}(t,t.dataTypes))}(t,e),r.block((()=>{for(const t of m.rules)y(t);y(m.post)}))):r.block((()=>A(t,"$ref",m.all.$ref.definition)))}function M(t,e){const{gen:n,schema:i,opts:{useDefaults:r}}=t;r&&(0,s.assignDefaults)(t,e.type),n.block((()=>{for(const n of e.rules)(0,o.shouldUseRule)(i,n)&&A(t,n.keyword,n.definition,e.type)}))}function k(t,e){return t.includes(e)||"integer"===e&&t.includes("number")}function S(t,e){e+=` at "${t.schemaEnv.baseId+t.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(t,e,t.opts.strictTypes)}e.validateFunctionCode=function(t){v(t)&&(b(t),g(t))?function(t){const{schema:e,opts:n,gen:i}=t;m(t,(()=>{n.$comment&&e.$comment&&w(t),function(t){const{schema:e,opts:n}=t;void 0!==e.default&&n.useDefaults&&n.strictSchema&&(0,p.checkStrictMode)(t,"default is ignored in the schema root")}(t),i.let(l.default.vErrors,null),i.let(l.default.errors,0),n.unevaluated&&function(t){const{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",u._`${n}.evaluated`),e.if(u._`${t.evaluated}.dynamicProps`,(()=>e.assign(u._`${t.evaluated}.props`,u._`undefined`))),e.if(u._`${t.evaluated}.dynamicItems`,(()=>e.assign(u._`${t.evaluated}.items`,u._`undefined`)))}(t),_(t),function(t){const{gen:e,schemaEnv:n,validateName:i,ValidationError:r,opts:o}=t;n.$async?e.if(u._`${l.default.errors} === 0`,(()=>e.return(l.default.data)),(()=>e.throw(u._`new ${r}(${l.default.vErrors})`))):(e.assign(u._`${i}.errors`,l.default.vErrors),o.unevaluated&&function({gen:t,evaluated:e,props:n,items:i}){n instanceof u.Name&&t.assign(u._`${e}.props`,n),i instanceof u.Name&&t.assign(u._`${e}.items`,i)}(t),e.return(u._`${l.default.errors} === 0`))}(t)}))}(t):m(t,(()=>(0,i.topBoolOrEmptySchema)(t)))};class E{constructor(t,e,n){if((0,c.validateKeywordUsage)(t,e,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=e.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=e.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=e,this.$data)this.schemaCode=t.gen.const("vSchema",j(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:!1!==e.errors)&&(this.errsCount=t.gen.const("_errs",l.default.errors))}result(t,e,n){this.failResult((0,u.not)(t),e,n)}failResult(t,e,n){this.gen.if(t),n?n():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,e){this.failResult((0,u.not)(t),void 0,e)}fail(t){if(void 0===t)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:e}=this;this.fail(u._`${e} !== undefined && (${(0,u.or)(this.invalid$data(),t)})`)}error(t,e,n){if(e)return this.setParams(e),this._error(t,n),void this.setParams({});this._error(t,n)}_error(t,e){(t?f.reportExtraError:f.reportError)(this,this.def.error,e)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,e){e?Object.assign(this.params,t):this.params=t}block$data(t,e,n=u.nil){this.gen.block((()=>{this.check$data(t,n),e()}))}check$data(t=u.nil,e=u.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:r,def:o}=this;n.if((0,u.or)(u._`${i} === undefined`,e)),t!==u.nil&&n.assign(t,!0),(r.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==u.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:e,schemaType:n,def:i,it:r}=this;return(0,u.or)(function(){if(n.length){if(!(e instanceof u.Name))throw new Error("ajv implementation error");const t=Array.isArray(n)?n:[n];return u._`${(0,a.checkDataTypes)(t,e,r.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(i.validateSchema){const n=t.scopeValue("validate$data",{ref:i.validateSchema});return u._`!${n}(${e})`}return u.nil}())}subschema(t,e){const n=(0,h.getSubschema)(this.it,t);(0,h.extendSubschemaData)(n,this.it,t),(0,h.extendSubschemaMode)(n,t);const r={...this.it,...n,items:void 0,props:void 0};return function(t,e){v(t)&&(b(t),g(t))?function(t,e){const{schema:n,gen:i,opts:r}=t;r.$comment&&n.$comment&&w(t),function(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,d.resolveUrl)(t.opts.uriResolver,t.baseId,e))}(t),function(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}(t);const o=i.const("_errs",l.default.errors);_(t,o),i.var(e,u._`${o} === ${l.default.errors}`)}(t,e):(0,i.boolOrEmptySchema)(t,e)}(r,e),r}mergeEvaluated(t,e){const{it:n,gen:i}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==t.props&&(n.props=p.mergeEvaluated.props(i,t.props,n.props,e)),!0!==n.items&&void 0!==t.items&&(n.items=p.mergeEvaluated.items(i,t.items,n.items,e)))}mergeValidEvaluated(t,e){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return i.if(e,(()=>this.mergeEvaluated(t,u.Name))),!0}}function A(t,e,n,i){const r=new E(t,n,e);"code"in n?n.code(r,i):r.$data&&n.validate?(0,c.funcKeywordCode)(r,n):"macro"in n?(0,c.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(r,n)}e.KeywordCxt=E;const T=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function j(t,{dataLevel:e,dataNames:n,dataPathArr:i}){let r,o;if(""===t)return l.default.rootData;if("/"===t[0]){if(!T.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);r=t,o=l.default.rootData}else{const a=C.exec(t);if(!a)throw new Error(`Invalid JSON-pointer: ${t}`);const s=+a[1];if(r=a[2],"#"===r){if(s>=e)throw new Error(c("property/index",s));return i[e-s]}if(s>e)throw new Error(c("data",s));if(o=n[e-s],!r)return o}let a=o;const s=r.split("/");for(const t of s)t&&(o=u._`${o}${(0,u.getProperty)((0,p.unescapeJsonPointer)(t))}`,a=u._`${a} && ${o}`);return a;function c(t,n){return`Cannot access ${t} ${n} levels up, current level is ${e}`}}e.getData=j},5005:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;const i=n(3487),r=n(2141),o=n(412),a=n(4181);function s(t){const{gen:e,data:n,it:r}=t;e.if(r.parentData,(()=>e.assign(n,i._`${r.parentData}[${r.parentDataProperty}]`)))}function c(t,e,n){if(void 0===n)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,i.stringify)(n)})}e.macroKeywordCode=function(t,e){const{gen:n,keyword:r,schema:o,parentSchema:a,it:s}=t,h=e.macro.call(s.self,o,a,s),u=c(n,r,h);!1!==s.opts.validateSchema&&s.self.validateSchema(h,!0);const l=n.name("valid");t.subschema({schema:h,schemaPath:i.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:u,compositeRule:!0},l),t.pass(l,(()=>t.error(!0)))},e.funcKeywordCode=function(t,e){var n;const{gen:h,keyword:u,schema:l,parentSchema:d,$data:p,it:f}=t;!function({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}(f,e);const m=!p&&e.compile?e.compile.call(f.self,l,d,f):e.validate,y=c(h,u,m),g=h.let("valid");function v(n=(e.async?i._`await `:i.nil)){const a=f.opts.passContext?r.default.this:r.default.self,s=!("compile"in e&&!p||!1===e.schema);h.assign(g,i._`${n}${(0,o.callValidateCode)(t,y,a,s)}`,e.modifying)}function b(t){var n;h.if((0,i.not)(null!==(n=e.valid)&&void 0!==n?n:g),t)}t.block$data(g,(function(){if(!1===e.errors)v(),e.modifying&&s(t),b((()=>t.error()));else{const n=e.async?function(){const t=h.let("ruleErrs",null);return h.try((()=>v(i._`await `)),(e=>h.assign(g,!1).if(i._`${e} instanceof ${f.ValidationError}`,(()=>h.assign(t,i._`${e}.errors`)),(()=>h.throw(e))))),t}():function(){const t=i._`${y}.errors`;return h.assign(t,null),v(i.nil),t}();e.modifying&&s(t),b((()=>function(t,e){const{gen:n}=t;n.if(i._`Array.isArray(${e})`,(()=>{n.assign(r.default.vErrors,i._`${r.default.vErrors} === null ? ${e} : ${r.default.vErrors}.concat(${e})`).assign(r.default.errors,i._`${r.default.vErrors}.length`),(0,a.extendErrors)(t)}),(()=>t.error()))}(t,n)))}})),t.ok(null!==(n=e.valid)&&void 0!==n?n:g)},e.validSchemaType=function(t,e,n=!1){return!e.length||e.some((e=>"array"===e?Array.isArray(t):"object"===e?t&&"object"==typeof t&&!Array.isArray(t):typeof t==e||n&&void 0===t))},e.validateKeywordUsage=function({schema:t,opts:e,self:n,errSchemaPath:i},r,o){if(Array.isArray(r.keyword)?!r.keyword.includes(o):r.keyword!==o)throw new Error("ajv implementation error");const a=r.dependencies;if(null==a?void 0:a.some((e=>!Object.prototype.hasOwnProperty.call(t,e))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(r.validateSchema&&!r.validateSchema(t[o])){const t=`keyword "${o}" value is invalid at path "${i}": `+n.errorsText(r.validateSchema.errors);if("log"!==e.validateSchema)throw new Error(t);n.logger.error(t)}}},3099:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;const i=n(3487),r=n(6776);e.getSubschema=function(t,{keyword:e,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:c}){if(void 0!==e&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==e){const o=t.schema[e];return void 0===n?{schema:o,schemaPath:i._`${t.schemaPath}${(0,i.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[n],schemaPath:i._`${t.schemaPath}${(0,i.getProperty)(e)}${(0,i.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,r.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(t,e,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:c}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=e;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:c}=e;u(h.let("data",i._`${e.data}${(0,i.getProperty)(n)}`,!0)),t.errorPath=i.str`${a}${(0,r.getErrorPath)(n,o,c.jsPropertySyntax)}`,t.parentDataProperty=i._`${n}`,t.dataPathArr=[...s,t.parentDataProperty]}function u(n){t.data=n,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,n]}void 0!==a&&(u(a instanceof i.Name?a:h.let("data",a,!0)),void 0!==c&&(t.propertyName=c)),s&&(t.dataTypes=s)},e.extendSubschemaMode=function(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:i,createErrors:r,allErrors:o}){void 0!==i&&(t.compositeRule=i),void 0!==r&&(t.createErrors=r),void 0!==o&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=n}},7159:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var i=n(4815);Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var r=n(3487);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const o=n(7426),a=n(6646),s=n(3141),c=n(5173),h=n(3487),u=n(2531),l=n(453),d=n(6776),p=n(4775),f=n(3589),m=(t,e)=>new RegExp(t,e);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function _(t){var e,n,i,r,o,a,s,c,h,u,l,d,p,y,g,v,b,_,w,x,M,k,S,E,A;const T=t.strict,C=null===(e=t.code)||void 0===e?void 0:e.optimize,j=!0===C||void 0===C?1:C||0,O=null!==(i=null===(n=t.code)||void 0===n?void 0:n.regExp)&&void 0!==i?i:m,P=null!==(r=t.uriResolver)&&void 0!==r?r:f.default;return{strictSchema:null===(a=null!==(o=t.strictSchema)&&void 0!==o?o:T)||void 0===a||a,strictNumbers:null===(c=null!==(s=t.strictNumbers)&&void 0!==s?s:T)||void 0===c||c,strictTypes:null!==(u=null!==(h=t.strictTypes)&&void 0!==h?h:T)&&void 0!==u?u:"log",strictTuples:null!==(d=null!==(l=t.strictTuples)&&void 0!==l?l:T)&&void 0!==d?d:"log",strictRequired:null!==(y=null!==(p=t.strictRequired)&&void 0!==p?p:T)&&void 0!==y&&y,code:t.code?{...t.code,optimize:j,regExp:O}:{optimize:j,regExp:O},loopRequired:null!==(g=t.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=t.loopEnum)&&void 0!==v?v:200,meta:null===(b=t.meta)||void 0===b||b,messages:null===(_=t.messages)||void 0===_||_,inlineRefs:null===(w=t.inlineRefs)||void 0===w||w,schemaId:null!==(x=t.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(M=t.addUsedSchema)||void 0===M||M,validateSchema:null===(k=t.validateSchema)||void 0===k||k,validateFormats:null===(S=t.validateFormats)||void 0===S||S,unicodeRegExp:null===(E=t.unicodeRegExp)||void 0===E||E,int32range:null===(A=t.int32range)||void 0===A||A,uriResolver:P}}class w{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._(t)};const{es5:e,lines:n}=this.opts.code;this.scope=new h.ValueScope({scope:{},prefixes:g,es5:e,lines:n}),this.logger=function(t){if(!1===t)return T;if(void 0===t)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}(t.logger);const i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,s.getRules)(),x.call(this,v,t,"NOT SUPPORTED"),x.call(this,b,t,"DEPRECATED","warn"),this._metaOpts=A.call(this),t.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&E.call(this,t.keywords),"object"==typeof t.meta&&this.addMetaSchema(t.meta),k.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:e,schemaId:n}=this.opts;let i=p;"id"===n&&(i={...p},i.id=i.$id,delete i.$id),e&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){const{meta:t,schemaId:e}=this.opts;return this.opts.defaultMeta="object"==typeof t?t[e]||t:void 0}validate(t,e){let n;if("string"==typeof t){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);const i=n(e);return"$async"in n||(this.errors=n.errors),i}compile(t,e){const n=this._addSchema(t,e);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,e){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return i.call(this,t,e);async function i(t,e){await r.call(this,t.$schema);const n=this._addSchema(t,e);return n.validate||o.call(this,n)}async function r(t){t&&!this.getSchema(t)&&await i.call(this,{$ref:t},!0)}async function o(t){try{return this._compileSchemaEnv(t)}catch(e){if(!(e instanceof a.default))throw e;return s.call(this,e),await c.call(this,e.missingSchema),o.call(this,t)}}function s({missingSchema:t,missingRef:e}){if(this.refs[t])throw new Error(`AnySchema ${t} is loaded but ${e} cannot be resolved`)}async function c(t){const n=await h.call(this,t);this.refs[t]||await r.call(this,n.$schema),this.refs[t]||this.addSchema(n,t,e)}async function h(t){const e=this._loading[t];if(e)return e;try{return await(this._loading[t]=n(t))}finally{delete this._loading[t]}}}addSchema(t,e,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(const e of t)this.addSchema(e,void 0,n,i);return this}let r;if("object"==typeof t){const{schemaId:e}=this.opts;if(r=t[e],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${e} must be string`)}return e=(0,u.normalizeId)(e||r),this._checkUnique(e),this.schemas[e]=this._addSchema(t,n,e,i,!0),this}addMetaSchema(t,e,n=this.opts.validateSchema){return this.addSchema(t,e,!0,n),this}validateSchema(t,e){if("boolean"==typeof t)return!0;let n;if(n=t.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const i=this.validate(n,t);if(!i&&e){const t="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(t);this.logger.error(t)}return i}getSchema(t){let e;for(;"string"==typeof(e=M.call(this,t));)t=e;if(void 0===e){const{schemaId:n}=this.opts,i=new c.SchemaEnv({schema:{},schemaId:n});if(e=c.resolveSchema.call(this,i,t),!e)return;this.refs[t]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const e=M.call(this,t);return"object"==typeof e&&this._cache.delete(e.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{const e=t;this._cache.delete(e);let n=t[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const e of t)this.addKeyword(e);return this}addKeyword(t,e){let n;if("string"==typeof t)n=t,"object"==typeof e&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=n);else{if("object"!=typeof t||void 0!==e)throw new Error("invalid addKeywords parameters");if(n=(e=t).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(j.call(this,n,e),!e)return(0,d.eachItem)(n,(t=>O.call(this,t))),this;I.call(this,e);const i={...e,type:(0,l.getJSONTypes)(e.type),schemaType:(0,l.getJSONTypes)(e.schemaType)};return(0,d.eachItem)(n,0===i.type.length?t=>O.call(this,t,i):t=>i.type.forEach((e=>O.call(this,t,i,e)))),this}getKeyword(t){const e=this.RULES.all[t];return"object"==typeof e?e.definition:!!e}removeKeyword(t){const{RULES:e}=this;delete e.keywords[t],delete e.all[t];for(const n of e.rules){const e=n.rules.findIndex((e=>e.keyword===t));e>=0&&n.rules.splice(e,1)}return this}addFormat(t,e){return"string"==typeof e&&(e=new RegExp(e)),this.formats[t]=e,this}errorsText(t=this.errors,{separator:e=", ",dataVar:n="data"}={}){return t&&0!==t.length?t.map((t=>`${n}${t.instancePath} ${t.message}`)).reduce(((t,n)=>t+e+n)):"No errors"}$dataMetaSchema(t,e){const n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const i of e){const e=i.split("/").slice(1);let r=t;for(const t of e)r=r[t];for(const t in n){const e=n[t];if("object"!=typeof e)continue;const{$data:i}=e.definition,o=r[t];i&&o&&(r[t]=R(o))}}return t}_removeAllSchemas(t,e){for(const n in t){const i=t[n];e&&!e.test(n)||("string"==typeof i?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,e,n,i=this.opts.validateSchema,r=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof t)o=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof t)throw new Error("schema must be object or boolean")}let s=this._cache.get(t);if(void 0!==s)return s;n=(0,u.normalizeId)(o||n);const h=u.getSchemaRefs.call(this,t,n);return s=new c.SchemaEnv({schema:t,schemaId:a,meta:e,baseId:n,localRefs:h}),this._cache.set(s.schema,s),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),i&&this.validateSchema(t,!0),s}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):c.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const e=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,t)}finally{this.opts=e}}}function x(t,e,n,i="error"){for(const r in t){const o=r;o in e&&this.logger[i](`${n}: option ${r}. ${t[o]}`)}}function M(t){return t=(0,u.normalizeId)(t),this.schemas[t]||this.refs[t]}function k(){const t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(const e in t)this.addSchema(t[e],e)}function S(){for(const t in this.opts.formats){const e=this.opts.formats[t];e&&this.addFormat(t,e)}}function E(t){if(Array.isArray(t))this.addVocabulary(t);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const e in t){const n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}}function A(){const t={...this.opts};for(const e of y)delete t[e];return t}e.default=w,w.ValidationError=o.default,w.MissingRefError=a.default;const T={log(){},warn(){},error(){}},C=/^[a-z_$][a-z0-9_$:-]*$/i;function j(t,e){const{RULES:n}=this;if((0,d.eachItem)(t,(t=>{if(n.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!C.test(t))throw new Error(`Keyword ${t} has invalid name`)})),e&&e.$data&&!("code"in e)&&!("validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function O(t,e,n){var i;const r=null==e?void 0:e.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=r?o.post:o.rules.find((({type:t})=>t===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!e)return;const s={keyword:t,definition:{...e,type:(0,l.getJSONTypes)(e.type),schemaType:(0,l.getJSONTypes)(e.schemaType)}};e.before?P.call(this,a,s,e.before):a.rules.push(s),o.all[t]=s,null===(i=e.implements)||void 0===i||i.forEach((t=>this.addKeyword(t)))}function P(t,e,n){const i=t.rules.findIndex((t=>t.keyword===n));i>=0?t.rules.splice(i,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function I(t){let{metaSchema:e}=t;void 0!==e&&(t.$data&&this.opts.$data&&(e=R(e)),t.validateSchema=this.compile(e,!0))}const $={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(t){return{anyOf:[t,$]}}},2500:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3329),r=n(8161),o=n(7114),a=n(484),s=n(877),c=n(5032),h=n(2374),u=["/properties"];e.default=function(t){return[i,r,o,a,e(this,s),c,e(this,h)].forEach((t=>this.addMetaSchema(t,void 0,!1))),this;function e(e,n){return t?e.$dataMetaSchema(n,u):n}}},3510:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(4063);i.code='require("ajv/dist/runtime/equal").default',e.default=i},4499:(t,e)=>{"use strict";function n(t){const e=t.length;let n,i=0,r=0;for(;r=55296&&n<=56319&&r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(540);i.code='require("ajv/dist/runtime/uri").default',e.default=i},7426:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}e.default=n},4783:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const i=n(3487),r=n(6776),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>i.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>i._`{limit: ${t}}`},code(t){const{parentSchema:e,it:n}=t,{items:i}=e;Array.isArray(i)?a(t,i):(0,r.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(t,e){const{gen:n,schema:o,data:a,keyword:s,it:c}=t;c.items=!0;const h=n.const("len",i._`${a}.length`);if(!1===o)t.setParams({len:e.length}),t.pass(i._`${h} <= ${e.length}`);else if("object"==typeof o&&!(0,r.alwaysValidSchema)(c,o)){const o=n.var("valid",i._`${h} <= ${e.length}`);n.if((0,i.not)(o),(()=>function(o){n.forRange("i",e.length,h,(e=>{t.subschema({keyword:s,dataProp:e,dataPropType:r.Type.Num},o),c.allErrors||n.if((0,i.not)(o),(()=>n.break()))}))}(o))),t.ok(o)}}e.validateAdditionalItems=a,e.default=o},9351:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(412),r=n(3487),o=n(2141),a=n(6776),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>r._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:n,parentSchema:s,data:c,errsCount:h,it:u}=t;if(!h)throw new Error("ajv implementation error");const{allErrors:l,opts:d}=u;if(u.props=!0,"all"!==d.removeAdditional&&(0,a.alwaysValidSchema)(u,n))return;const p=(0,i.allSchemaProperties)(s.properties),f=(0,i.allSchemaProperties)(s.patternProperties);function m(t){e.code(r._`delete ${c}[${t}]`)}function y(i){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(i);else{if(!1===n)return t.setParams({additionalProperty:i}),t.error(),void(l||e.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(u,n)){const n=e.name("valid");"failing"===d.removeAdditional?(g(i,n,!1),e.if((0,r.not)(n),(()=>{t.reset(),m(i)}))):(g(i,n),l||e.if((0,r.not)(n),(()=>e.break())))}}}function g(e,n,i){const r={keyword:"additionalProperties",dataProp:e,dataPropType:a.Type.Str};!1===i&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(r,n)}e.forIn("key",c,(n=>{p.length||f.length?e.if(function(n){let o;if(p.length>8){const t=(0,a.schemaRefOrVal)(u,s.properties,"properties");o=(0,i.isOwnProperty)(e,t,n)}else o=p.length?(0,r.or)(...p.map((t=>r._`${n} === ${t}`))):r.nil;return f.length&&(o=(0,r.or)(o,...f.map((e=>r._`${(0,i.usePattern)(t,e)}.test(${n})`)))),(0,r.not)(o)}(n),(()=>y(n))):y(n)})),t.ok(r._`${h} === ${o.default.errors}`)}};e.default=s},1125:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6776),r={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:n,it:r}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=e.name("valid");n.forEach(((e,n)=>{if((0,i.alwaysValidSchema)(r,e))return;const a=t.subschema({keyword:"allOf",schemaProp:n},o);t.ok(o),t.mergeEvaluated(a)}))}};e.default=r},19:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(412).validateUnion,error:{message:"must match a schema in anyOf"}};e.default=i},9864:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:e}})=>void 0===e?i.str`must contain at least ${t} valid item(s)`:i.str`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>void 0===e?i._`{minContains: ${t}}`:i._`{minContains: ${t}, maxContains: ${e}}`},code(t){const{gen:e,schema:n,parentSchema:o,data:a,it:s}=t;let c,h;const{minContains:u,maxContains:l}=o;s.opts.next?(c=void 0===u?1:u,h=l):c=1;const d=e.const("len",i._`${a}.length`);if(t.setParams({min:c,max:h}),void 0===h&&0===c)return void(0,r.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==h&&c>h)return(0,r.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,r.alwaysValidSchema)(s,n)){let e=i._`${d} >= ${c}`;return void 0!==h&&(e=i._`${e} && ${d} <= ${h}`),void t.pass(e)}s.items=!0;const p=e.name("valid");function f(){const t=e.name("_valid"),n=e.let("count",0);m(t,(()=>e.if(t,(()=>function(t){e.code(i._`${t}++`),void 0===h?e.if(i._`${t} >= ${c}`,(()=>e.assign(p,!0).break())):(e.if(i._`${t} > ${h}`,(()=>e.assign(p,!1).break())),1===c?e.assign(p,!0):e.if(i._`${t} >= ${c}`,(()=>e.assign(p,!0))))}(n)))))}function m(n,i){e.forRange("i",0,d,(e=>{t.subschema({keyword:"contains",dataProp:e,dataPropType:r.Type.Num,compositeRule:!0},n),i()}))}void 0===h&&1===c?m(p,(()=>e.if(p,(()=>e.break())))):0===c?(e.let(p,!0),void 0!==h&&e.if(i._`${a}.length > 0`,f)):(e.let(p,!1),f()),t.result(p,(()=>t.reset()))}};e.default=o},7772:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const i=n(3487),r=n(6776),o=n(412);e.error={message:({params:{property:t,depsCount:e,deps:n}})=>{const r=1===e?"property":"properties";return i.str`must have ${r} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:r}})=>i._`{property: ${t},
+ missingProperty: ${r},
+ depsCount: ${e},
+ deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(t){const[e,n]=function({schema:t}){const e={},n={};for(const i in t)"__proto__"!==i&&((Array.isArray(t[i])?e:n)[i]=t[i]);return[e,n]}(t);s(t,e),c(t,n)}};function s(t,e=t.schema){const{gen:n,data:r,it:a}=t;if(0===Object.keys(e).length)return;const s=n.let("missing");for(const c in e){const h=e[c];if(0===h.length)continue;const u=(0,o.propertyInData)(n,r,c,a.opts.ownProperties);t.setParams({property:c,depsCount:h.length,deps:h.join(", ")}),a.allErrors?n.if(u,(()=>{for(const e of h)(0,o.checkReportMissingProp)(t,e)})):(n.if(i._`${u} && (${(0,o.checkMissingProp)(t,h,s)})`),(0,o.reportMissingProp)(t,s),n.else())}}function c(t,e=t.schema){const{gen:n,data:i,keyword:a,it:s}=t,c=n.name("valid");for(const h in e)(0,r.alwaysValidSchema)(s,e[h])||(n.if((0,o.propertyInData)(n,i,h,s.opts.ownProperties),(()=>{const e=t.subschema({keyword:a,schemaProp:h},c);t.mergeValidEvaluated(e,c)}),(()=>n.var(c,!0))),t.ok(c))}e.validatePropertyDeps=s,e.validateSchemaDeps=c,e.default=a},7274:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(7772),r={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,i.validateSchemaDeps)(t)};e.default=r},9434:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>i.str`must match "${t.ifClause}" schema`,params:({params:t})=>i._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:n,it:o}=t;void 0===n.then&&void 0===n.else&&(0,r.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),c=a(o,"else");if(!s&&!c)return;const h=e.let("valid",!0),u=e.name("_valid");if(function(){const e=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(e)}(),t.reset(),s&&c){const n=e.let("ifClause");t.setParams({ifClause:n}),e.if(u,l("then",n),l("else",n))}else s?e.if(u,l("then")):e.if((0,i.not)(u),l("else"));function l(n,r){return()=>{const o=t.subschema({keyword:n},u);e.assign(h,u),t.mergeValidEvaluated(o,h),r?e.assign(r,i._`${n}`):t.setParams({ifClause:n})}}t.pass(h,(()=>t.error(!0)))}};function a(t,e){const n=t.schema[e];return void 0!==n&&!(0,r.alwaysValidSchema)(t,n)}e.default=o},8200:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(4783),r=n(2924),o=n(4665),a=n(1119),s=n(9864),c=n(7772),h=n(3708),u=n(9351),l=n(6239),d=n(2296),p=n(5697),f=n(19),m=n(4200),y=n(1125),g=n(9434),v=n(6552);e.default=function(t=!1){const e=[p.default,f.default,m.default,y.default,g.default,v.default,h.default,u.default,c.default,l.default,d.default];return t?e.push(r.default,a.default):e.push(i.default,o.default),e.push(s.default),e}},4665:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const i=n(3487),r=n(6776),o=n(412),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:n}=t;if(Array.isArray(e))return s(t,"additionalItems",e);n.items=!0,(0,r.alwaysValidSchema)(n,e)||t.ok((0,o.validateArray)(t))}};function s(t,e,n=t.schema){const{gen:o,parentSchema:a,data:s,keyword:c,it:h}=t;!function(t){const{opts:i,errSchemaPath:o}=h,a=n.length,s=a===t.minItems&&(a===t.maxItems||!1===t[e]);if(i.strictTuples&&!s){const t=`"${c}" is ${a}-tuple, but minItems or maxItems/${e} are not specified or different at path "${o}"`;(0,r.checkStrictMode)(h,t,i.strictTuples)}}(a),h.opts.unevaluated&&n.length&&!0!==h.items&&(h.items=r.mergeEvaluated.items(o,n.length,h.items));const u=o.name("valid"),l=o.const("len",i._`${s}.length`);n.forEach(((e,n)=>{(0,r.alwaysValidSchema)(h,e)||(o.if(i._`${l} > ${n}`,(()=>t.subschema({keyword:c,schemaProp:n,dataProp:n},u))),t.ok(u))}))}e.validateTuple=s,e.default=a},1119:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o=n(412),a=n(4783),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>i.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>i._`{limit: ${t}}`},code(t){const{schema:e,parentSchema:n,it:i}=t,{prefixItems:s}=n;i.items=!0,(0,r.alwaysValidSchema)(i,e)||(s?(0,a.validateAdditionalItems)(t,s):t.ok((0,o.validateArray)(t)))}};e.default=s},5697:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6776),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:n,it:r}=t;if((0,i.alwaysValidSchema)(r,n))return void t.fail();const o=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,(()=>t.reset()),(()=>t.error()))},error:{message:"must NOT be valid"}};e.default=r},4200:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>i._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:n,parentSchema:o,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,c=e.let("valid",!1),h=e.let("passing",null),u=e.name("_valid");t.setParams({passing:h}),e.block((function(){s.forEach(((n,o)=>{let s;(0,r.alwaysValidSchema)(a,n)?e.var(u,!0):s=t.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&e.if(i._`${u} && ${c}`).assign(c,!1).assign(h,i._`[${h}, ${o}]`).else(),e.if(u,(()=>{e.assign(c,!0),e.assign(h,o),s&&t.mergeEvaluated(s,i.Name)}))}))})),t.result(c,(()=>t.reset()),(()=>t.error(!0)))}};e.default=o},2296:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(412),r=n(3487),o=n(6776),a=n(6776),s={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,data:s,parentSchema:c,it:h}=t,{opts:u}=h,l=(0,i.allSchemaProperties)(n),d=l.filter((t=>(0,o.alwaysValidSchema)(h,n[t])));if(0===l.length||d.length===l.length&&(!h.opts.unevaluated||!0===h.props))return;const p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,f=e.name("valid");!0===h.props||h.props instanceof r.Name||(h.props=(0,a.evaluatedPropsToName)(e,h.props));const{props:m}=h;function y(t){for(const e in p)new RegExp(t).test(e)&&(0,o.checkStrictMode)(h,`property ${e} matches pattern ${t} (use allowMatchingProperties)`)}function g(n){e.forIn("key",s,(o=>{e.if(r._`${(0,i.usePattern)(t,n)}.test(${o})`,(()=>{const i=d.includes(n);i||t.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},f),h.opts.unevaluated&&!0!==m?e.assign(r._`${m}[${o}]`,!0):i||h.allErrors||e.if((0,r.not)(f),(()=>e.break()))}))}))}!function(){for(const t of l)p&&y(t),h.allErrors?g(t):(e.var(f,!0),g(t),e.if(f))}()}};e.default=s},2924:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(4665),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,i.validateTuple)(t,"items")};e.default=r},6239:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(4815),r=n(412),o=n(6776),a=n(9351),s={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:n,parentSchema:s,data:c,it:h}=t;"all"===h.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new i.KeywordCxt(h,a.default,"additionalProperties"));const u=(0,r.allSchemaProperties)(n);for(const t of u)h.definedProperties.add(t);h.opts.unevaluated&&u.length&&!0!==h.props&&(h.props=o.mergeEvaluated.props(e,(0,o.toHash)(u),h.props));const l=u.filter((t=>!(0,o.alwaysValidSchema)(h,n[t])));if(0===l.length)return;const d=e.name("valid");for(const n of l)p(n)?f(n):(e.if((0,r.propertyInData)(e,c,n,h.opts.ownProperties)),f(n),h.allErrors||e.else().var(d,!0),e.endIf()),t.it.definedProperties.add(n),t.ok(d);function p(t){return h.opts.useDefaults&&!h.compositeRule&&void 0!==n[t].default}function f(e){t.subschema({keyword:"properties",schemaProp:e,dataProp:e},d)}}};e.default=s},3708:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>i._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:n,data:o,it:a}=t;if((0,r.alwaysValidSchema)(a,n))return;const s=e.name("valid");e.forIn("key",o,(n=>{t.setParams({propertyName:n}),t.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),e.if((0,i.not)(s),(()=>{t.error(!0),a.allErrors||e.break()}))})),t.ok(s)}};e.default=o},6552:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6776),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){void 0===e.if&&(0,i.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};e.default=r},412:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const i=n(3487),r=n(6776),o=n(2141),a=n(6776);function s(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:i._`Object.prototype.hasOwnProperty`})}function c(t,e,n){return i._`${s(t)}.call(${e}, ${n})`}function h(t,e,n,r){const o=i._`${e}${(0,i.getProperty)(n)} === undefined`;return r?(0,i.or)(o,(0,i.not)(c(t,e,n))):o}function u(t){return t?Object.keys(t).filter((t=>"__proto__"!==t)):[]}e.checkReportMissingProp=function(t,e){const{gen:n,data:r,it:o}=t;n.if(h(n,r,e,o.opts.ownProperties),(()=>{t.setParams({missingProperty:i._`${e}`},!0),t.error()}))},e.checkMissingProp=function({gen:t,data:e,it:{opts:n}},r,o){return(0,i.or)(...r.map((r=>(0,i.and)(h(t,e,r,n.ownProperties),i._`${o} = ${r}`))))},e.reportMissingProp=function(t,e){t.setParams({missingProperty:e},!0),t.error()},e.hasPropFunc=s,e.isOwnProperty=c,e.propertyInData=function(t,e,n,r){const o=i._`${e}${(0,i.getProperty)(n)} !== undefined`;return r?i._`${o} && ${c(t,e,n)}`:o},e.noPropertyInData=h,e.allSchemaProperties=u,e.schemaProperties=function(t,e){return u(e).filter((n=>!(0,r.alwaysValidSchema)(t,e[n])))},e.callValidateCode=function({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:a,errorPath:s},it:c},h,u,l){const d=l?i._`${t}, ${e}, ${r}${a}`:e,p=[[o.default.instancePath,(0,i.strConcat)(o.default.instancePath,s)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=i._`${d}, ${n.object(...p)}`;return u!==i.nil?i._`${h}.call(${u}, ${f})`:i._`${h}(${f})`};const l=i._`new RegExp`;e.usePattern=function({gen:t,it:{opts:e}},n){const r=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(n,r);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:i._`${"new RegExp"===o.code?l:(0,a.useFunc)(t,o)}(${n}, ${r})`})},e.validateArray=function(t){const{gen:e,data:n,keyword:o,it:a}=t,s=e.name("valid");if(a.allErrors){const t=e.let("valid",!0);return c((()=>e.assign(t,!1))),t}return e.var(s,!0),c((()=>e.break())),s;function c(a){const c=e.const("len",i._`${n}.length`);e.forRange("i",0,c,(n=>{t.subschema({keyword:o,dataProp:n,dataPropType:r.Type.Num},s),e.if((0,i.not)(s),a)}))}},e.validateUnion=function(t){const{gen:e,schema:n,keyword:o,it:a}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((t=>(0,r.alwaysValidSchema)(a,t)))&&!a.opts.unevaluated)return;const s=e.let("valid",!1),c=e.name("_valid");e.block((()=>n.forEach(((n,r)=>{const a=t.subschema({keyword:o,schemaProp:r,compositeRule:!0},c);e.assign(s,i._`${s} || ${c}`),t.mergeValidEvaluated(a,c)||e.if((0,i.not)(s))})))),t.result(s,(()=>t.reset()),(()=>t.error(!0)))}},8386:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};e.default=n},5684:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(8386),r=n(8280),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",i.default,r.default];e.default=o},8280:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const i=n(6646),r=n(412),o=n(3487),a=n(2141),s=n(5173),c=n(6776),h={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:n,it:r}=t,{baseId:a,schemaEnv:c,validateName:h,opts:d,self:p}=r,{root:f}=c;if(("#"===n||"#/"===n)&&a===f.baseId)return function(){if(c===f)return l(t,h,c,c.$async);const n=e.scopeValue("root",{ref:f});return l(t,o._`${n}.validate`,f,f.$async)}();const m=s.resolveRef.call(p,f,a,n);if(void 0===m)throw new i.default(r.opts.uriResolver,a,n);return m instanceof s.SchemaEnv?function(e){const n=u(t,e);l(t,n,e,e.$async)}(m):function(i){const r=e.scopeValue("schema",!0===d.code.source?{ref:i,code:(0,o.stringify)(i)}:{ref:i}),a=e.name("valid"),s=t.subschema({schema:i,dataTypes:[],schemaPath:o.nil,topSchemaRef:r,errSchemaPath:n},a);t.mergeEvaluated(s),t.ok(a)}(m)}};function u(t,e){const{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):o._`${n.scopeValue("wrapper",{ref:e})}.validate`}function l(t,e,n,i){const{gen:s,it:h}=t,{allErrors:u,schemaEnv:l,opts:d}=h,p=d.passContext?a.default.this:o.nil;function f(t){const e=o._`${t}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${e} : ${a.default.vErrors}.concat(${e})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(t){var e;if(!h.opts.unevaluated)return;const i=null===(e=null==n?void 0:n.validate)||void 0===e?void 0:e.evaluated;if(!0!==h.props)if(i&&!i.dynamicProps)void 0!==i.props&&(h.props=c.mergeEvaluated.props(s,i.props,h.props));else{const e=s.var("props",o._`${t}.evaluated.props`);h.props=c.mergeEvaluated.props(s,e,h.props,o.Name)}if(!0!==h.items)if(i&&!i.dynamicItems)void 0!==i.items&&(h.items=c.mergeEvaluated.items(s,i.items,h.items));else{const e=s.var("items",o._`${t}.evaluated.items`);h.items=c.mergeEvaluated.items(s,e,h.items,o.Name)}}i?function(){if(!l.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,r.callValidateCode)(t,e,p)}`),m(e),u||s.assign(n,!0)}),(t=>{s.if(o._`!(${t} instanceof ${h.ValidationError})`,(()=>s.throw(t))),f(t),u||s.assign(n,!1)})),t.ok(n)}():t.result((0,r.callValidateCode)(t,e,p),(()=>m(e)),(()=>f(e)))}e.getValidate=u,e.callRef=l,e.default=h},1240:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(9306),o=n(5173),a=n(6776),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===r.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>i._`{error: ${t}, tag: ${n}, tagValue: ${e}}`},code(t){const{gen:e,data:n,schema:s,parentSchema:c,it:h}=t,{oneOf:u}=c;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=s.propertyName;if("string"!=typeof l)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const d=e.let("valid",!1),p=e.const("tag",i._`${n}${(0,i.getProperty)(l)}`);function f(n){const r=e.name("valid"),o=t.subschema({keyword:"oneOf",schemaProp:n},r);return t.mergeEvaluated(o,i.Name),r}e.if(i._`typeof ${p} == "string"`,(()=>function(){const n=function(){var t;const e={},n=r(c);let i=!0;for(let e=0;et.error(!1,{discrError:r.DiscrError.Tag,tag:p,tagName:l}))),t.ok(d)}};e.default=s},9306:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(n=e.DiscrError||(e.DiscrError={})).Tag="tag",n.Mapping="mapping"},3924:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(5684),r=n(2649),o=n(8200),a=n(9502),s=n(6167),c=[i.default,r.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];e.default=c},6215:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicAnchor=void 0;const i=n(3487),r=n(2141),o=n(5173),a=n(8280),s={keyword:"$dynamicAnchor",schemaType:"string",code:t=>c(t,t.schema)};function c(t,e){const{gen:n,it:s}=t;s.schemaEnv.root.dynamicAnchors[e]=!0;const c=i._`${r.default.dynamicAnchors}${(0,i.getProperty)(e)}`,h="#"===s.errSchemaPath?s.validateName:function(t){const{schemaEnv:e,schema:n,self:i}=t.it,{root:r,baseId:s,localRefs:c,meta:h}=e.root,{schemaId:u}=i.opts,l=new o.SchemaEnv({schema:n,schemaId:u,root:r,baseId:s,localRefs:c,meta:h});return o.compileSchema.call(i,l),(0,a.getValidate)(t,l)}(t);n.if(i._`!${c}`,(()=>n.assign(c,h)))}e.dynamicAnchor=c,e.default=s},1919:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicRef=void 0;const i=n(3487),r=n(2141),o=n(8280),a={keyword:"$dynamicRef",schemaType:"string",code:t=>s(t,t.schema)};function s(t,e){const{gen:n,keyword:a,it:s}=t;if("#"!==e[0])throw new Error(`"${a}" only supports hash fragment reference`);const c=e.slice(1);if(s.allErrors)h();else{const e=n.let("valid",!1);h(e),t.ok(e)}function h(t){if(s.schemaEnv.root.dynamicAnchors[c]){const e=n.let("_v",i._`${r.default.dynamicAnchors}${(0,i.getProperty)(c)}`);n.if(e,u(e,t),u(s.validateName,t))}else u(s.validateName,t)()}function u(e,i){return i?()=>n.block((()=>{(0,o.callRef)(t,e),n.let(i,!0)})):()=>(0,o.callRef)(t,e)}}e.dynamicRef=s,e.default=a},6121:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6215),r=n(1919),o=n(4094),a=n(3944),s=[i.default,r.default,o.default,a.default];e.default=s},4094:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6215),r=n(6776),o={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,i.dynamicAnchor)(t,""):(0,r.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};e.default=o},3944:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(1919),r={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,i.dynamicRef)(t,t.schema)};e.default=r},9651:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>i.str`must match format "${t}"`,params:({schemaCode:t})=>i._`{format: ${t}}`},code(t,e){const{gen:n,data:r,$data:o,schema:a,schemaCode:s,it:c}=t,{opts:h,errSchemaPath:u,schemaEnv:l,self:d}=c;h.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:h.code.formats}),a=n.const("fDef",i._`${o}[${s}]`),c=n.let("fType"),u=n.let("format");n.if(i._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(c,i._`${a}.type || "string"`).assign(u,i._`${a}.validate`)),(()=>n.assign(c,i._`"string"`).assign(u,a))),t.fail$data((0,i.or)(!1===h.strictSchema?i.nil:i._`${s} && !${u}`,function(){const t=l.$async?i._`(${a}.async ? await ${u}(${r}) : ${u}(${r}))`:i._`${u}(${r})`,n=i._`(typeof ${u} == "function" ? ${t} : ${u}.test(${r}))`;return i._`${u} && ${u} !== true && ${c} === ${e} && !${n}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1!==h.strictSchema)throw new Error(t());function t(){return`unknown format "${a}" ignored in schema at path "${u}"`}d.logger.warn(t())}();if(!0===o)return;const[s,c,p]=function(t){const e=t instanceof RegExp?(0,i.regexpCode)(t):h.code.formats?i._`${h.code.formats}${(0,i.getProperty)(a)}`:void 0,r=n.scopeValue("formats",{key:a,ref:t,code:e});return"object"!=typeof t||t instanceof RegExp?["string",t,r]:[t.type||"string",t.validate,i._`${r}.validate`]}(o);s===e&&t.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return i._`await ${p}(${r})`}return"function"==typeof c?i._`${p}(${r})`:i._`${p}.test(${r})`}())}())}};e.default=r},9502:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=[n(9651).default];e.default=i},6167:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},1448:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(8921),r=n(7274),o=n(3633),a=[i.default,r.default,o.default];e.default=a},808:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(1782),r=n(4641),o=[i.default,r.default];e.default=o},4641:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:t}})=>i.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>i._`{limit: ${t}}`},code(t){const{gen:e,schema:n,data:o,it:a}=t,s=a.items||0;if(!0===s)return;const c=e.const("len",i._`${o}.length`);if(!1===n)t.setParams({len:s}),t.fail(i._`${c} > ${s}`);else if("object"==typeof n&&!(0,r.alwaysValidSchema)(a,n)){const n=e.var("valid",i._`${c} <= ${s}`);e.if((0,i.not)(n),(()=>function(n,o){e.forRange("i",o,c,(o=>{t.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:r.Type.Num},n),a.allErrors||e.if((0,i.not)(n),(()=>e.break()))}))}(n,s))),t.ok(n)}a.items=!0}};e.default=o},1782:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o=n(2141),a={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:t})=>i._`{unevaluatedProperty: ${t.unevaluatedProperty}}`},code(t){const{gen:e,schema:n,data:a,errsCount:s,it:c}=t;if(!s)throw new Error("ajv implementation error");const{allErrors:h,props:u}=c;function l(o){if(!1===n)return t.setParams({unevaluatedProperty:o}),t.error(),void(h||e.break());if(!(0,r.alwaysValidSchema)(c,n)){const n=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:r.Type.Str},n),h||e.if((0,i.not)(n),(()=>e.break()))}}u instanceof i.Name?e.if(i._`${u} !== true`,(()=>e.forIn("key",a,(t=>e.if(function(t,e){return i._`!${t} || !${t}[${e}]`}(u,t),(()=>l(t))))))):!0!==u&&e.forIn("key",a,(t=>void 0===u?l(t):e.if(function(t,e){const n=[];for(const r in t)!0===t[r]&&n.push(i._`${e} !== ${r}`);return(0,i.and)(...n)}(u,t),(()=>l(t))))),c.props=!0,t.ok(i._`${s} === ${o.default.errors}`)}};e.default=a},4693:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o=n(3510),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>i._`{allowedValue: ${t}}`},code(t){const{gen:e,data:n,$data:a,schemaCode:s,schema:c}=t;a||c&&"object"==typeof c?t.fail$data(i._`!${(0,r.useFunc)(e,o.default)}(${n}, ${s})`):t.fail(i._`${c} !== ${n}`)}};e.default=a},8921:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(7772),r={keyword:"dependentRequired",type:"object",schemaType:"object",error:i.error,code:t=>(0,i.validatePropertyDeps)(t)};e.default=r},966:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o=n(3510),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>i._`{allowedValues: ${t}}`},code(t){const{gen:e,data:n,$data:a,schema:s,schemaCode:c,it:h}=t;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=h.opts.loopEnum;let l;const d=()=>null!=l?l:l=(0,r.useFunc)(e,o.default);let p;if(u||a)p=e.let("valid"),t.block$data(p,(function(){e.assign(p,!1),e.forOf("v",c,(t=>e.if(i._`${d()}(${n}, ${t})`,(()=>e.assign(p,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const t=e.const("vSchema",c);p=(0,i.or)(...s.map(((e,r)=>function(t,e){const r=s[e];return"object"==typeof r&&null!==r?i._`${d()}(${n}, ${t}[${e}])`:i._`${n} === ${r}`}(t,r))))}t.pass(p)}};e.default=a},2649:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3983),r=n(430),o=n(3229),a=n(4336),s=n(498),c=n(3301),h=n(1687),u=n(2958),l=n(4693),d=n(966),p=[i.default,r.default,o.default,a.default,s.default,c.default,h.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,d.default];e.default=p},3633:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(6776),r={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:n}){void 0===e.contains&&(0,i.checkStrictMode)(n,`"${t}" without "contains" is ignored`)}};e.default=r},1687:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:e}){const n="maxItems"===t?"more":"fewer";return i.str`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>i._`{limit: ${t}}`},code(t){const{keyword:e,data:n,schemaCode:r}=t,o="maxItems"===e?i.operators.GT:i.operators.LT;t.fail$data(i._`${n}.length ${o} ${r}`)}};e.default=r},3229:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=n(6776),o=n(4499),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:e}){const n="maxLength"===t?"more":"fewer";return i.str`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>i._`{limit: ${t}}`},code(t){const{keyword:e,data:n,schemaCode:a,it:s}=t,c="maxLength"===e?i.operators.GT:i.operators.LT,h=!1===s.opts.unicode?i._`${n}.length`:i._`${(0,r.useFunc)(t.gen,o.default)}(${n})`;t.fail$data(i._`${h} ${c} ${a}`)}};e.default=a},3983:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r=i.operators,o={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:t,schemaCode:e})=>i.str`must be ${o[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>i._`{comparison: ${o[t].okStr}, limit: ${e}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(t){const{keyword:e,data:n,schemaCode:r}=t;t.fail$data(i._`${n} ${o[e].fail} ${r} || isNaN(${n})`)}};e.default=s},498:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:t,schemaCode:e}){const n="maxProperties"===t?"more":"fewer";return i.str`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>i._`{limit: ${t}}`},code(t){const{keyword:e,data:n,schemaCode:r}=t,o="maxProperties"===e?i.operators.GT:i.operators.LT;t.fail$data(i._`Object.keys(${n}).length ${o} ${r}`)}};e.default=r},430:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(3487),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>i.str`must be multiple of ${t}`,params:({schemaCode:t})=>i._`{multipleOf: ${t}}`},code(t){const{gen:e,data:n,schemaCode:r,it:o}=t,a=o.opts.multipleOfPrecision,s=e.let("res"),c=a?i._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:i._`${s} !== parseInt(${s})`;t.fail$data(i._`(${r} === 0 || (${s} = ${n}/${r}, ${c}))`)}};e.default=r},4336:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(412),r=n(3487),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>r.str`must match pattern "${t}"`,params:({schemaCode:t})=>r._`{pattern: ${t}}`},code(t){const{data:e,$data:n,schema:o,schemaCode:a,it:s}=t,c=s.opts.unicodeRegExp?"u":"",h=n?r._`(new RegExp(${a}, ${c}))`:(0,i.usePattern)(t,o);t.fail$data(r._`!${h}.test(${e})`)}};e.default=o},3301:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(412),r=n(3487),o=n(6776),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:t}})=>r.str`must have required property '${t}'`,params:({params:{missingProperty:t}})=>r._`{missingProperty: ${t}}`},code(t){const{gen:e,schema:n,schemaCode:a,data:s,$data:c,it:h}=t,{opts:u}=h;if(!c&&0===n.length)return;const l=n.length>=u.loopRequired;if(h.allErrors?function(){if(l||c)t.block$data(r.nil,d);else for(const e of n)(0,i.checkReportMissingProp)(t,e)}():function(){const o=e.let("missing");if(l||c){const n=e.let("valid",!0);t.block$data(n,(()=>function(n,o){t.setParams({missingProperty:n}),e.forOf(n,a,(()=>{e.assign(o,(0,i.propertyInData)(e,s,n,u.ownProperties)),e.if((0,r.not)(o),(()=>{t.error(),e.break()}))}),r.nil)}(o,n))),t.ok(n)}else e.if((0,i.checkMissingProp)(t,n,o)),(0,i.reportMissingProp)(t,o),e.else()}(),u.strictRequired){const e=t.parentSchema.properties,{definedProperties:i}=t.it;for(const t of n)if(void 0===(null==e?void 0:e[t])&&!i.has(t)){const e=`required property "${t}" is not defined at "${h.schemaEnv.baseId+h.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(h,e,h.opts.strictRequired)}}function d(){e.forOf("prop",a,(n=>{t.setParams({missingProperty:n}),e.if((0,i.noPropertyInData)(e,s,n,u.ownProperties),(()=>t.error()))}))}}};e.default=a},2958:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n(453),r=n(3487),o=n(6776),a=n(3510),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:t,j:e}})=>r.str`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>r._`{i: ${t}, j: ${e}}`},code(t){const{gen:e,data:n,$data:s,schema:c,parentSchema:h,schemaCode:u,it:l}=t;if(!s&&!c)return;const d=e.let("valid"),p=h.items?(0,i.getSchemaTypes)(h.items):[];function f(o,a){const s=e.name("item"),c=(0,i.checkDataTypes)(p,s,l.opts.strictNumbers,i.DataType.Wrong),h=e.const("indices",r._`{}`);e.for(r._`;${o}--;`,(()=>{e.let(s,r._`${n}[${o}]`),e.if(c,r._`continue`),p.length>1&&e.if(r._`typeof ${s} == "string"`,r._`${s} += "_"`),e.if(r._`typeof ${h}[${s}] == "number"`,(()=>{e.assign(a,r._`${h}[${s}]`),t.error(),e.assign(d,!1).break()})).code(r._`${h}[${s}] = ${o}`)}))}function m(i,s){const c=(0,o.useFunc)(e,a.default),h=e.name("outer");e.label(h).for(r._`;${i}--;`,(()=>e.for(r._`${s} = ${i}; ${s}--;`,(()=>e.if(r._`${c}(${n}[${i}], ${n}[${s}])`,(()=>{t.error(),e.assign(d,!1).break(h)}))))))}t.block$data(d,(function(){const i=e.let("i",r._`${n}.length`),o=e.let("j");t.setParams({i,j:o}),e.assign(d,!0),e.if(r._`${i} > 1`,(()=>(p.length>0&&!p.some((t=>"object"===t||"array"===t))?f:m)(i,o)))}),r._`${u} === false`),t.ok(d)}};e.default=s},9809:(t,e,n)=>{"use strict";const i=e;i.bignum=n(4590),i.define=n(1050).define,i.base=n(1979),i.constants=n(6826),i.decoders=n(8307),i.encoders=n(6579)},1050:(t,e,n)=>{"use strict";const i=n(6579),r=n(8307),o=n(5717);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){const e=this.name;function n(t){this._initNamed(t,e)}return o(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},a.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i[t])),this.encoders[t]},a.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},6625:(t,e,n)=>{"use strict";const i=n(5717),r=n(8465).b,o=n(2399).Buffer;function a(t,e){r.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(a,r),e.C=a,a.isDecoderBuffer=function(t){return t instanceof a||"object"==typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.R=s,s.isEncoderBuffer=function(t){return t instanceof s||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},s.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(t,e),e+=n.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},1979:(t,e,n)=>{"use strict";const i=e;i.Reporter=n(8465).b,i.DecoderBuffer=n(6625).C,i.EncoderBuffer=n(6625).R,i.Node=n(1949)},1949:(t,e,n)=>{"use strict";const i=n(8465).b,r=n(6625).R,o=n(6625).C,a=n(9746),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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function h(t,e,n){const i={};this._baseState=i,i.name=n,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=h;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const t=this._baseState,e={};u.forEach((function(n){e[n]=t[n]}));const n=new this.constructor(e.parent);return n._baseState=e,n},h.prototype._wrap=function(){const t=this._baseState;c.forEach((function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},h.prototype._init=function(t){const 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")},h.prototype._useArgs=function(t){const 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;const e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);const i=t[n];e[i]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){h.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){h.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),h.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){const e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let i,r=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){let i=null;if(null!==n.explicit?i=n.explicit:null!==n.implicit?i=n.implicit:null!==n.tag&&(i=n.tag),null!==i||n.any){if(a=this._peekTag(t,i,n.any),t.isError(a))return a}else{const i=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(i)}}if(n.obj&&a&&(i=t.enterObject()),a){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const i=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const i=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(i))return i;n.any?r=t.raw(e):t=i}if(e&&e.track&&null!==n.tag&&e.track(t.path(),i,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(r=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;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)){const i=new o(r);r=this._getUse(n.contains,t._reporterState.obj)._decode(i,e)}}return n.obj&&a&&(r=t.leaveObject(i)),null===n.key||null===r&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,r),r},h.prototype._decodeGeneric=function(t,e,n){const i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.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,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){const 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},h.prototype._decodeChoice=function(t,e){const n=this._baseState;let i=null,r=!1;return Object.keys(n.choice).some((function(o){const a=t.save(),s=n.choice[o];try{const n=s._decode(t,e);if(t.isError(n))return!1;i={type:o,value:n},r=!0}catch(e){return t.restore(a),!1}return!0}),this),r?i:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},h.prototype._encode=function(t,e,n){const i=this._baseState;if(null!==i.default&&i.default===t)return;const r=this._encodeValue(t,e,n);return void 0===r||this._skipDefault(r,e,n)?void 0:r},h.prototype._encodeValue=function(t,e,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new i);let o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let a=null,s=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)a=this._getUse(r.contains,n)._encode(t,e),s=!0;else if(r.children)a=r.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");const i=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),r}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){const i=this._baseState;return this._getUse(i.args[0],t)._encode(n,e)}),n))}else null!==r.use?o=this._getUse(r.use,n)._encode(t,e):(a=this._encodePrimitive(r.tag,t),s=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(t,s,n,a))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(t,e){const n=this._baseState,i=n.choice[t.type];return i||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){const 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)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},8465:(t,e,n)=>{"use strict";const i=n(5717);function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.b=r,r.prototype.isError=function(t){return t instanceof o},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,n){const i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},r.prototype.error=function(t){let e;const n=this._reporterState,i=t instanceof o;if(e=i?t:new o(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(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(t){this.stack=t.stack}return this}},160:(t,e)=>{"use strict";function n(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const i=t[n];e[i]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(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=n(e.tag)},6826:(t,e,n)=>{"use strict";const i=e;i._reverse=function(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const i=t[n];e[i]=n})),e},i.der=n(160)},1671:(t,e,n)=>{"use strict";const i=n(5717),r=n(4590),o=n(6625).C,a=n(1949),s=n(160);function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.call(this,"der",t)}function u(t,e){let n=t.readUInt8(e);if(t.isError(n))return n;const i=s.tagClass[n>>6],r=0==(32&n);if(31==(31&n)){let i=n;for(n=0;128==(128&i);){if(i=t.readUInt8(e),t.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:i,primitive:r,tag:n,tagStr:s.tag[n]}}function l(t,e,n){let i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;const r=127&i;if(r>4)return t.error("length octect is too long");i=0;for(let e=0;e{"use strict";const i=e;i.der=n(1671),i.pem=n(9631)},9631:(t,e,n)=>{"use strict";const i=n(5717),r=n(2399).Buffer,o=n(1671);function a(t){o.call(this,t),this.enc="pem"}i(a,o),t.exports=a,a.prototype.decode=function(t,e){const n=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,c=-1;for(let t=0;t{"use strict";const i=n(5717),r=n(2399).Buffer,o=n(1949),a=n(160);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.call(this,"der",t)}function h(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(c,o),c.prototype._encodeComposite=function(t,e,n,i){const o=function(t,e,n,i){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))r=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);r=t}return r>=31?i.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=a.tagClassByName[n||"universal"]<<6,r)}(t,e,n,this.reporter);if(i.length<128){const t=r.alloc(2);return t[0]=o,t[1]=i.length,this._createEncoderBuffer([t,i])}let s=1;for(let t=i.length;t>=256;t>>=8)s++;const c=r.alloc(2+s);c[0]=o,c[1]=128|s;for(let t=1+s,e=i.length;e>0;t--,e>>=8)c[t]=255&e;return this._createEncoderBuffer([c,i])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let i=0;for(let e=0;e=128;n>>=7)i++}const o=r.alloc(i);let a=o.length-1;for(let e=t.length-1;e>=0;e--){let n=t[e];for(o[a--]=127&n;(n>>=7)>0;)o[a--]=128|127&n}return this._createEncoderBuffer(o)},c.prototype._encodeTime=function(t,e){let n;const i=new Date(t);return"gentime"===e?n=[h(i.getUTCFullYear()),h(i.getUTCMonth()+1),h(i.getUTCDate()),h(i.getUTCHours()),h(i.getUTCMinutes()),h(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[h(i.getUTCFullYear()%100),h(i.getUTCMonth()+1),h(i.getUTCDate()),h(i.getUTCHours()),h(i.getUTCMinutes()),h(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.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&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=r.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let e=t;e>=256;e>>=8)n++;const i=new Array(n);for(let e=i.length-1;e>=0;e--)i[e]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(r.from(i))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){const i=this._baseState;let r;if(null===i.default)return!1;const 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{"use strict";const i=e;i.der=n(6984),i.pem=n(2883)},2883:(t,e,n)=>{"use strict";const i=n(5717),r=n(6984);function o(t){r.call(this,t),this.enc="pem"}i(o,r),t.exports=o,o.prototype.encode=function(t,e){const n=r.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"];for(let t=0;t=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(t,e,n){var i=s(t,n);return n-1>=e&&(i|=s(t,n-1)<<4),i}function h(t,e,n,i){for(var r=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return r}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),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r>>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 i=0;i=e;i-=2)r=c(t,e,i)<=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var o=t.length-n,a=o%i,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var h=1;h>>26,l=67108863&c,d=Math.min(h,e.length-1),p=Math.max(0,h-t.length+1);p<=d;p++){var f=h-p|0;u+=(a=(r=0|t.words[f])*(o=0|e.words[p])+l)/67108864|0,l=67108863&a}n.words[h]=0|l,c=0|u}return 0!==c?n.words[h]=0|c: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 r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?u[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=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 h=l[t],p=d[t];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);n=(f=f.idivn(p)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!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&&i(!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 i(void 0!==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 r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===e,h=new t(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[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 i=0;it.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){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,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,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=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,p=0|a[1],f=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],_=8191&b,w=b>>>13,x=0|a[4],M=8191&x,k=x>>>13,S=0|a[5],E=8191&S,A=S>>>13,T=0|a[6],C=8191&T,j=T>>>13,O=0|a[7],P=8191&O,I=O>>>13,$=0|a[8],R=8191&$,L=$>>>13,N=0|a[9],B=8191&N,D=N>>>13,F=0|s[0],U=8191&F,z=F>>>13,H=0|s[1],q=8191&H,V=H>>>13,K=0|s[2],Z=8191&K,W=K>>>13,G=0|s[3],J=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,tt=Y>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ct=8191&st,ht=st>>>13,ut=0|s[8],lt=8191&ut,dt=ut>>>13,pt=0|s[9],ft=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(h+(i=Math.imul(l,U))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(d,U)|0))<<13)|0;h=((o=Math.imul(d,z))+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(f,U),r=(r=Math.imul(f,z))+Math.imul(m,U)|0,o=Math.imul(m,z);var gt=(h+(i=i+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(d,q)|0))<<13)|0;h=((o=o+Math.imul(d,V)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,U),r=(r=Math.imul(g,z))+Math.imul(v,U)|0,o=Math.imul(v,z),i=i+Math.imul(f,q)|0,r=(r=r+Math.imul(f,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0;var vt=(h+(i=i+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,W)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(_,U),r=(r=Math.imul(_,z))+Math.imul(w,U)|0,o=Math.imul(w,z),i=i+Math.imul(g,q)|0,r=(r=r+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,i=i+Math.imul(f,Z)|0,r=(r=r+Math.imul(f,W)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,W)|0;var bt=(h+(i=i+Math.imul(l,J)|0)|0)+((8191&(r=(r=r+Math.imul(l,X)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(M,U),r=(r=Math.imul(M,z))+Math.imul(k,U)|0,o=Math.imul(k,z),i=i+Math.imul(_,q)|0,r=(r=r+Math.imul(_,V)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,V)|0,i=i+Math.imul(g,Z)|0,r=(r=r+Math.imul(g,W)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,W)|0,i=i+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0;var _t=(h+(i=i+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(E,U),r=(r=Math.imul(E,z))+Math.imul(A,U)|0,o=Math.imul(A,z),i=i+Math.imul(M,q)|0,r=(r=r+Math.imul(M,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,i=i+Math.imul(_,Z)|0,r=(r=r+Math.imul(_,W)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,W)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,i=i+Math.imul(f,Q)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(i=i+Math.imul(l,nt)|0)|0)+((8191&(r=(r=r+Math.imul(l,it)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(C,U),r=(r=Math.imul(C,z))+Math.imul(j,U)|0,o=Math.imul(j,z),i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,i=i+Math.imul(M,Z)|0,r=(r=r+Math.imul(M,W)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,W)|0,i=i+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(g,Q)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,i=i+Math.imul(f,nt)|0,r=(r=r+Math.imul(f,it)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,it)|0;var xt=(h+(i=i+Math.imul(l,ot)|0)|0)+((8191&(r=(r=r+Math.imul(l,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(P,U),r=(r=Math.imul(P,z))+Math.imul(I,U)|0,o=Math.imul(I,z),i=i+Math.imul(C,q)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,V)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,W)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,W)|0,i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,it)|0,i=i+Math.imul(f,ot)|0,r=(r=r+Math.imul(f,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(i=i+Math.imul(l,ct)|0)|0)+((8191&(r=(r=r+Math.imul(l,ht)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,U),r=(r=Math.imul(R,z))+Math.imul(L,U)|0,o=Math.imul(L,z),i=i+Math.imul(P,q)|0,r=(r=r+Math.imul(P,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,i=i+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,W)|0,i=i+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(M,Q)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,nt)|0,r=(r=r+Math.imul(_,it)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(g,ot)|0,r=(r=r+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,i=i+Math.imul(f,ct)|0,r=(r=r+Math.imul(f,ht)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ht)|0;var kt=(h+(i=i+Math.imul(l,lt)|0)|0)+((8191&(r=(r=r+Math.imul(l,dt)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(B,U),r=(r=Math.imul(B,z))+Math.imul(D,U)|0,o=Math.imul(D,z),i=i+Math.imul(R,q)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,V)|0,i=i+Math.imul(P,Z)|0,r=(r=r+Math.imul(P,W)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,i=i+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,it)|0,i=i+Math.imul(_,ot)|0,r=(r=r+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,ht)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ht)|0,i=i+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,dt)|0;var St=(h+(i=i+Math.imul(l,ft)|0)|0)+((8191&(r=(r=r+Math.imul(l,mt)|0)+Math.imul(d,ft)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(B,q),r=(r=Math.imul(B,V))+Math.imul(D,q)|0,o=Math.imul(D,V),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,W)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,W)|0,i=i+Math.imul(P,J)|0,r=(r=r+Math.imul(P,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,i=i+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,it)|0,i=i+Math.imul(M,ot)|0,r=(r=r+Math.imul(M,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,i=i+Math.imul(_,ct)|0,r=(r=r+Math.imul(_,ht)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ht)|0,i=i+Math.imul(g,lt)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,dt)|0;var Et=(h+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(B,Z),r=(r=Math.imul(B,W))+Math.imul(D,Z)|0,o=Math.imul(D,W),i=i+Math.imul(R,J)|0,r=(r=r+Math.imul(R,X)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,X)|0,i=i+Math.imul(P,Q)|0,r=(r=r+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(E,ot)|0,r=(r=r+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,ht)|0)+Math.imul(k,ct)|0,o=o+Math.imul(k,ht)|0,i=i+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,dt)|0;var At=(h+(i=i+Math.imul(g,ft)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(v,ft)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(B,J),r=(r=Math.imul(B,X))+Math.imul(D,J)|0,o=Math.imul(D,X),i=i+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,i=i+Math.imul(P,nt)|0,r=(r=r+Math.imul(P,it)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(C,ot)|0,r=(r=r+Math.imul(C,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,i=i+Math.imul(E,ct)|0,r=(r=r+Math.imul(E,ht)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ht)|0,i=i+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,dt)|0;var Tt=(h+(i=i+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(B,Q),r=(r=Math.imul(B,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),i=i+Math.imul(R,nt)|0,r=(r=r+Math.imul(R,it)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,it)|0,i=i+Math.imul(P,ot)|0,r=(r=r+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,ht)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ht)|0,i=i+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(A,lt)|0,o=o+Math.imul(A,dt)|0;var Ct=(h+(i=i+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(k,ft)|0))<<13)|0;h=((o=o+Math.imul(k,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,nt),r=(r=Math.imul(B,it))+Math.imul(D,nt)|0,o=Math.imul(D,it),i=i+Math.imul(R,ot)|0,r=(r=r+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,i=i+Math.imul(P,ct)|0,r=(r=r+Math.imul(P,ht)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ht)|0,i=i+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,dt)|0;var jt=(h+(i=i+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(A,ft)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,i=Math.imul(B,ot),r=(r=Math.imul(B,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),i=i+Math.imul(R,ct)|0,r=(r=r+Math.imul(R,ht)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,ht)|0,i=i+Math.imul(P,lt)|0,r=(r=r+Math.imul(P,dt)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,dt)|0;var Ot=(h+(i=i+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(j,ft)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(B,ct),r=(r=Math.imul(B,ht))+Math.imul(D,ct)|0,o=Math.imul(D,ht),i=i+Math.imul(R,lt)|0,r=(r=r+Math.imul(R,dt)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,dt)|0;var Pt=(h+(i=i+Math.imul(P,ft)|0)|0)+((8191&(r=(r=r+Math.imul(P,mt)|0)+Math.imul(I,ft)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(B,lt),r=(r=Math.imul(B,dt))+Math.imul(D,lt)|0,o=Math.imul(D,dt);var It=(h+(i=i+Math.imul(R,ft)|0)|0)+((8191&(r=(r=r+Math.imul(R,mt)|0)+Math.imul(L,ft)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863;var $t=(h+(i=Math.imul(B,ft))|0)+((8191&(r=(r=Math.imul(B,mt))+Math.imul(D,ft)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,c[0]=yt,c[1]=gt,c[2]=vt,c[3]=bt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=Mt,c[8]=kt,c[9]=St,c[10]=Et,c[11]=At,c[12]=Tt,c[13]=Ct,c[14]=jt,c[15]=Ot,c[16]=Pt,c[17]=It,c[18]=$t,0!==h&&(c[19]=h,n.length++),n};function m(t,e,n){return(new y).mulp(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(f=p),o.prototype.mulTo=function(t,e){var n,i=this.length+t.length;return n=10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n.strip()}(this,t,e):m(this,t,e),n},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,i=0;i>=1;return i},y.prototype.permute=function(t,e,n,i,r,o){for(var a=0;a>>=1)r++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=r/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>>r}return e}(t);if(0===e.length)return new o(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(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!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=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,h=0;h=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-o|l>>>o,u=l&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return i(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){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,r=1<=0);var e=t%26,n=(t-e)/26;if(i(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 r=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(i("number"==typeof t),i(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)-(c/67108864|0),this.words[r+n]=67108863&o}for(;r>26,this.words[r+n]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),r=t,a=0|r.words[r.length-1];0!=(n=26-this._countBits(a))&&(r=r.ushln(n),i.iushln(n),a=0|r.words[r.length-1]);var s,c=i.length-r.length;if("mod"!==e){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var h=0;h=0;l--){var d=67108864*(0|i.words[r.length+l])+(0|i.words[r.length+l-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(r,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,l),i.isZero()||(i.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},o.prototype.divmod=function(t,e,n){return i(!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&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,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 r,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,i=t.ushrn(1),r=t.andln(1),o=n.cmp(i);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),l=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(l)),r.iushrn(1),a.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(l)),s.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(s),a.isub(c)):(n.isub(e),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:n.iushln(h)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0==(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},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 i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var o=e;e=n,n=o}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},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){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=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),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(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 M(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(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 i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(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 v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){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 i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(b,v),b.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.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]=r,e=i}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 b;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return g[t]=e,e},M.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.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)},M.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},M.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)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(c);)u.redIAdd(c);for(var l=this.pow(u,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();i(y=0;i--){for(var h=e.words[i],u=c-1;u>=0;u--){var l=h>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===i&&0===u)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},r(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,o=s(t),a=o[0],c=o[1],h=new r(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),u=0,l=c>0?a-4:a;for(n=0;n>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===c&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,h[u++]=255&e),1===c&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=16383,s=0,h=i-r;sh?h:s+a));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,i){for(var r,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},3550:function(t,e,n){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(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&&void 0!==window.Buffer?window.Buffer:n(6601).Buffer}catch(t){}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 i(!1,"Invalid character in "+t)}function c(t,e,n){var i=s(t,n);return n-1>=e&&(i|=s(t,n-1)<<4),i}function h(t,e,n,r){for(var o=0,a=0,s=Math.min(t.length,n),c=e;c=49?h-49+10:h>=17?h-17+10:h,i(h>=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),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r>>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 i=0;i=e;i-=2)r=c(t,e,i)<=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var o=t.length-n,a=o%i,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var h=1;h>>26,l=67108863&c,d=Math.min(h,e.length-1),p=Math.max(0,h-t.length+1);p<=d;p++){var f=h-p|0;u+=(a=(r=0|t.words[f])*(o=0|e.words[p])+l)/67108864|0,l=67108863&a}n.words[h]=0|l,c=0|u}return 0!==c?n.words[h]=0|c: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 r=0,o=0,a=0;a>>24-r&16777215,(r+=2)>=26&&(r-=26,a--),n=0!==o||a!==this.length-1?d[6-c.length]+c+n:c+n}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 h=p[t],u=f[t];n="";var l=this.clone();for(l.negative=0;!l.isZero();){var m=l.modrn(u).toString(t);n=(l=l.idivn(u)).isZero()?m+n:d[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!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&&i(!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)},o.prototype.toArrayLike=function(t,e,n){this._strip();var r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(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,r),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,r=0,o=0;r>8&255),n>16&255),6===o?(n>24&255),i=0,o=0):(i=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),i=0,o=0):(i=a>>>24,o+=2)}if(n>=0)for(t[n--]=i;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 i=0;it.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){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,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,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=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,p=0|a[1],f=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],_=8191&b,w=b>>>13,x=0|a[4],M=8191&x,k=x>>>13,S=0|a[5],E=8191&S,A=S>>>13,T=0|a[6],C=8191&T,j=T>>>13,O=0|a[7],P=8191&O,I=O>>>13,$=0|a[8],R=8191&$,L=$>>>13,N=0|a[9],B=8191&N,D=N>>>13,F=0|s[0],U=8191&F,z=F>>>13,H=0|s[1],q=8191&H,V=H>>>13,K=0|s[2],Z=8191&K,W=K>>>13,G=0|s[3],J=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,tt=Y>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ct=8191&st,ht=st>>>13,ut=0|s[8],lt=8191&ut,dt=ut>>>13,pt=0|s[9],ft=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(h+(i=Math.imul(l,U))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(d,U)|0))<<13)|0;h=((o=Math.imul(d,z))+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(f,U),r=(r=Math.imul(f,z))+Math.imul(m,U)|0,o=Math.imul(m,z);var gt=(h+(i=i+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(d,q)|0))<<13)|0;h=((o=o+Math.imul(d,V)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,U),r=(r=Math.imul(g,z))+Math.imul(v,U)|0,o=Math.imul(v,z),i=i+Math.imul(f,q)|0,r=(r=r+Math.imul(f,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0;var vt=(h+(i=i+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,W)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(_,U),r=(r=Math.imul(_,z))+Math.imul(w,U)|0,o=Math.imul(w,z),i=i+Math.imul(g,q)|0,r=(r=r+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,i=i+Math.imul(f,Z)|0,r=(r=r+Math.imul(f,W)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,W)|0;var bt=(h+(i=i+Math.imul(l,J)|0)|0)+((8191&(r=(r=r+Math.imul(l,X)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(M,U),r=(r=Math.imul(M,z))+Math.imul(k,U)|0,o=Math.imul(k,z),i=i+Math.imul(_,q)|0,r=(r=r+Math.imul(_,V)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,V)|0,i=i+Math.imul(g,Z)|0,r=(r=r+Math.imul(g,W)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,W)|0,i=i+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0;var _t=(h+(i=i+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(E,U),r=(r=Math.imul(E,z))+Math.imul(A,U)|0,o=Math.imul(A,z),i=i+Math.imul(M,q)|0,r=(r=r+Math.imul(M,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,i=i+Math.imul(_,Z)|0,r=(r=r+Math.imul(_,W)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,W)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,i=i+Math.imul(f,Q)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(i=i+Math.imul(l,nt)|0)|0)+((8191&(r=(r=r+Math.imul(l,it)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(C,U),r=(r=Math.imul(C,z))+Math.imul(j,U)|0,o=Math.imul(j,z),i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,i=i+Math.imul(M,Z)|0,r=(r=r+Math.imul(M,W)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,W)|0,i=i+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(g,Q)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,i=i+Math.imul(f,nt)|0,r=(r=r+Math.imul(f,it)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,it)|0;var xt=(h+(i=i+Math.imul(l,ot)|0)|0)+((8191&(r=(r=r+Math.imul(l,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(P,U),r=(r=Math.imul(P,z))+Math.imul(I,U)|0,o=Math.imul(I,z),i=i+Math.imul(C,q)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,V)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,W)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,W)|0,i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,it)|0,i=i+Math.imul(f,ot)|0,r=(r=r+Math.imul(f,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(i=i+Math.imul(l,ct)|0)|0)+((8191&(r=(r=r+Math.imul(l,ht)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,U),r=(r=Math.imul(R,z))+Math.imul(L,U)|0,o=Math.imul(L,z),i=i+Math.imul(P,q)|0,r=(r=r+Math.imul(P,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,i=i+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,W)|0,i=i+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(M,Q)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,nt)|0,r=(r=r+Math.imul(_,it)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(g,ot)|0,r=(r=r+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,i=i+Math.imul(f,ct)|0,r=(r=r+Math.imul(f,ht)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ht)|0;var kt=(h+(i=i+Math.imul(l,lt)|0)|0)+((8191&(r=(r=r+Math.imul(l,dt)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(B,U),r=(r=Math.imul(B,z))+Math.imul(D,U)|0,o=Math.imul(D,z),i=i+Math.imul(R,q)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,V)|0,i=i+Math.imul(P,Z)|0,r=(r=r+Math.imul(P,W)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,i=i+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,it)|0,i=i+Math.imul(_,ot)|0,r=(r=r+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,ht)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ht)|0,i=i+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,dt)|0;var St=(h+(i=i+Math.imul(l,ft)|0)|0)+((8191&(r=(r=r+Math.imul(l,mt)|0)+Math.imul(d,ft)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(B,q),r=(r=Math.imul(B,V))+Math.imul(D,q)|0,o=Math.imul(D,V),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,W)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,W)|0,i=i+Math.imul(P,J)|0,r=(r=r+Math.imul(P,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,i=i+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,it)|0,i=i+Math.imul(M,ot)|0,r=(r=r+Math.imul(M,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,i=i+Math.imul(_,ct)|0,r=(r=r+Math.imul(_,ht)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ht)|0,i=i+Math.imul(g,lt)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,dt)|0;var Et=(h+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(B,Z),r=(r=Math.imul(B,W))+Math.imul(D,Z)|0,o=Math.imul(D,W),i=i+Math.imul(R,J)|0,r=(r=r+Math.imul(R,X)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,X)|0,i=i+Math.imul(P,Q)|0,r=(r=r+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(E,ot)|0,r=(r=r+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,ht)|0)+Math.imul(k,ct)|0,o=o+Math.imul(k,ht)|0,i=i+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,dt)|0;var At=(h+(i=i+Math.imul(g,ft)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(v,ft)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(B,J),r=(r=Math.imul(B,X))+Math.imul(D,J)|0,o=Math.imul(D,X),i=i+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,i=i+Math.imul(P,nt)|0,r=(r=r+Math.imul(P,it)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(C,ot)|0,r=(r=r+Math.imul(C,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,i=i+Math.imul(E,ct)|0,r=(r=r+Math.imul(E,ht)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ht)|0,i=i+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,dt)|0;var Tt=(h+(i=i+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(B,Q),r=(r=Math.imul(B,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),i=i+Math.imul(R,nt)|0,r=(r=r+Math.imul(R,it)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,it)|0,i=i+Math.imul(P,ot)|0,r=(r=r+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,ht)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ht)|0,i=i+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(A,lt)|0,o=o+Math.imul(A,dt)|0;var Ct=(h+(i=i+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(k,ft)|0))<<13)|0;h=((o=o+Math.imul(k,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,nt),r=(r=Math.imul(B,it))+Math.imul(D,nt)|0,o=Math.imul(D,it),i=i+Math.imul(R,ot)|0,r=(r=r+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,i=i+Math.imul(P,ct)|0,r=(r=r+Math.imul(P,ht)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ht)|0,i=i+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,dt)|0;var jt=(h+(i=i+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(A,ft)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,i=Math.imul(B,ot),r=(r=Math.imul(B,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),i=i+Math.imul(R,ct)|0,r=(r=r+Math.imul(R,ht)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,ht)|0,i=i+Math.imul(P,lt)|0,r=(r=r+Math.imul(P,dt)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,dt)|0;var Ot=(h+(i=i+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(j,ft)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(B,ct),r=(r=Math.imul(B,ht))+Math.imul(D,ct)|0,o=Math.imul(D,ht),i=i+Math.imul(R,lt)|0,r=(r=r+Math.imul(R,dt)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,dt)|0;var Pt=(h+(i=i+Math.imul(P,ft)|0)|0)+((8191&(r=(r=r+Math.imul(P,mt)|0)+Math.imul(I,ft)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(B,lt),r=(r=Math.imul(B,dt))+Math.imul(D,lt)|0,o=Math.imul(D,dt);var It=(h+(i=i+Math.imul(R,ft)|0)|0)+((8191&(r=(r=r+Math.imul(R,mt)|0)+Math.imul(L,ft)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863;var $t=(h+(i=Math.imul(B,ft))|0)+((8191&(r=(r=Math.imul(B,mt))+Math.imul(D,ft)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,c[0]=yt,c[1]=gt,c[2]=vt,c[3]=bt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=Mt,c[8]=kt,c[9]=St,c[10]=Et,c[11]=At,c[12]=Tt,c[13]=Ct,c[14]=jt,c[15]=Ot,c[16]=Pt,c[17]=It,c[18]=$t,0!==h&&(c[19]=h,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n._strip()}function v(t,e,n){return g(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(y=m),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?m(this,t,e):n<1024?g(this,t,e):v(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,i=0;i>=1;return i},b.prototype.permute=function(t,e,n,i,r,o){for(var a=0;a>>=1)r++;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[r]=67108863&a}return 0!==n&&(this.words[r]=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>>r&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(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!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=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,h=0;h=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-o|l>>>o,u=l&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return i(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){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,r=1<=0);var e=t%26,n=(t-e)/26;if(i(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 r=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(i("number"==typeof t),i(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)-(c/67108864|0),this.words[r+n]=67108863&o}for(;r>26,this.words[r+n]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),r=t,a=0|r.words[r.length-1];0!=(n=26-this._countBits(a))&&(r=r.ushln(n),i.iushln(n),a=0|r.words[r.length-1]);var s,c=i.length-r.length;if("mod"!==e){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var h=0;h=0;l--){var d=67108864*(0|i.words[r.length+l])+(0|i.words[r.length+l-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(r,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,l),i.isZero()||(i.negative^=1);s&&(s.words[l]=d)}return s&&s._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},o.prototype.divmod=function(t,e,n){return i(!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&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,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 r,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,i=t.ushrn(1),r=t.andln(1),o=n.cmp(i);return o<0||1===r&&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),i(t<=67108863);for(var n=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(n*r+(0|this.words[o]))%t;return e?-r:r},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*n;this.words[r]=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){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),l=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(l)),r.iushrn(1),a.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(l)),s.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(s),a.isub(c)):(n.isub(e),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:n.iushln(h)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0==(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},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 i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var o=e;e=n,n=o}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},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){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=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),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(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 E(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(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 i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){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 i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(x,w),x.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},x.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]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new M;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return _[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(c);)u.redIAdd(c);for(var l=this.pow(u,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();i(y=0;i--){for(var h=e.words[i],u=c-1;u>=0;u--){var l=h>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===i&&0===u)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},r(A,E),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},9931:(t,e,n)=>{var i;function r(t){this.rand=t}if(t.exports=function(t){return i||(i=new r(null)),i.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n{var i=n(9509).Buffer;function r(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,n=new Array(e),r=0;r>>24]^u[f>>>16&255]^l[m>>>8&255]^d[255&y]^e[g++],a=h[f>>>24]^u[m>>>16&255]^l[y>>>8&255]^d[255&p]^e[g++],s=h[m>>>24]^u[y>>>16&255]^l[p>>>8&255]^d[255&f]^e[g++],c=h[y>>>24]^u[p>>>16&255]^l[f>>>8&255]^d[255&m]^e[g++],p=o,f=a,m=s,y=c;return o=(i[p>>>24]<<24|i[f>>>16&255]<<16|i[m>>>8&255]<<8|i[255&y])^e[g++],a=(i[f>>>24]<<24|i[m>>>16&255]<<16|i[y>>>8&255]<<8|i[255&p])^e[g++],s=(i[m>>>24]<<24|i[y>>>16&255]<<16|i[p>>>8&255]<<8|i[255&f])^e[g++],c=(i[y>>>24]<<24|i[p>>>16&255]<<16|i[f>>>8&255]<<8|i[255&m])^e[g++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],r=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,n[a]=h,i[h]=a;var u=t[a],l=t[u],d=t[l],p=257*t[h]^16843008*h;r[0][a]=p<<24|p>>>8,r[1][a]=p<<16|p>>>16,r[2][a]=p<<8|p>>>24,r[3][a]=p,p=16843009*d^65537*l^257*u^16843008*a,o[0][h]=p<<24|p>>>8,o[1][h]=p<<16|p>>>16,o[2][h]=p<<8|p>>>24,o[3][h]=p,0===a?a=s=1:(a=u^t[t[t[d^u]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:o}}();function h(t){this._key=r(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),r=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),r[o]=r[o-e]^a}for(var h=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=r,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=r(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},h.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},h.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=h},2422:(t,e,n)=>{var i=n(4497),r=n(9509).Buffer,o=n(1027),a=n(5717),s=n(3288),c=n(7295),h=n(685);function u(t,e,n,a){o.call(this);var c=r.alloc(4,0);this._cipher=new i.AES(e);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(t,e,n){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var i=new s(n),o=e.length,a=o%16;i.update(e),a&&(a=16-a,i.update(r.alloc(a,0))),i.update(r.alloc(8,0));var c=8*o,u=r.alloc(8);u.writeUIntBE(c,0,8),i.update(u),t._finID=i.state;var l=r.from(t._finID);return h(l),l}(this,n,u),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(u,o),u.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var i=Math.min(t.length,e.length),r=0;r{var i=n(1494),r=n(6193),o=n(4946);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},6193:(t,e,n)=>{var i=n(2422),r=n(9509).Buffer,o=n(45),a=n(5969),s=n(1027),c=n(4497),h=n(3048);function u(t,e,n){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new c.AES(e),this._prev=r.from(n),this._mode=t,this._autopadding=!0}function l(){this.cache=r.allocUnsafe(0)}function d(t,e,n){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=r.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=r.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,n,!0):"auth"===s.type?new i(s.module,e,n,!0):new u(s.module,e,n)}n(5717)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return r.concat(i)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=h(e,!1,n.key,n.iv);return d(t,i.key,i.iv)},e.createDecipheriv=d},1494:(t,e,n)=>{var i=n(45),r=n(2422),o=n(9509).Buffer,a=n(5969),s=n(1027),c=n(4497),h=n(3048);function u(t,e,n){s.call(this),this._cache=new d,this._cipher=new c.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}n(5717)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get();)n=this._mode.encrypt(this,e),i.push(n);return o.concat(i)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function p(t,e,n){var s=i[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new r(s.module,e,n):new u(s.module,e,n)}u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n{var i=n(9509).Buffer,r=i.alloc(16,0);function o(t){var e=i.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=o(r)},a.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,r],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},685:t=>{t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},5292:(t,e,n)=>{var i=n(7295);e.encrypt=function(t,e){var n=i(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return i(r,n)}},6311:(t,e,n)=>{var i=n(9509).Buffer,r=n(7295);function o(t,e,n){var o=e.length,a=r(e,t._cache);return t._cache=t._cache.slice(o),t._prev=i.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var r,a=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){a=i.concat([a,o(t,e,n)]);break}r=t._cache.length,a=i.concat([a,o(t,e.slice(0,r),n)]),e=e.slice(r)}return a}},1510:(t,e,n)=>{var i=n(9509).Buffer;function r(t,e,n){for(var i,r,a=-1,s=0;++a<8;)i=e&1<<7-a?128:0,s+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^i))>>a%8,t._prev=o(t._prev,n?i:r);return s}function o(t,e){var n=t.length,r=-1,o=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++r>7;return o}e.encrypt=function(t,e,n){for(var o=e.length,a=i.allocUnsafe(o),s=-1;++s{var i=n(9509).Buffer;function r(t,e,n){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:r])]),r}e.encrypt=function(t,e,n){for(var o=e.length,a=i.allocUnsafe(o),s=-1;++s{var i=n(7295),r=n(9509).Buffer,o=n(685);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=r.concat([t._cache,r.allocUnsafe(16*n)]);for(var s=0;s{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},45:(t,e,n)=>{var i={ECB:n(1084),CBC:n(5292),CFB:n(6311),CFB8:n(1964),CFB1:n(1510),OFB:n(8861),CTR:n(6009),GCM:n(6009)},r=n(4946);for(var o in r)r[o].module=i[r[o].mode];t.exports=r},8861:(t,e,n)=>{var i=n(8764).Buffer,r=n(7295);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length{var i=n(4497),r=n(9509).Buffer,o=n(1027);function a(t,e,n,a){o.call(this),this._cipher=new i.AES(e),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=t}n(5717)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},3614:(t,e,n)=>{var i=n(7667),r=n(4696),o=n(45),a=n(9715),s=n(3048);function c(t,e,n){if(t=t.toLowerCase(),o[t])return r.createCipheriv(t,e,n);if(a[t])return new i({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function h(t,e,n){if(t=t.toLowerCase(),o[t])return r.createDecipheriv(t,e,n);if(a[t])return new i({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),o[t])n=o[t].key,i=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var r=s(e,!1,n,i);return c(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),o[t])n=o[t].key,i=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var r=s(e,!1,n,i);return h(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(r.getCiphers())}},7667:(t,e,n)=>{var i=n(1027),r=n(5251),o=n(5717),a=n(9509).Buffer,s={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function c(t){i.call(this);var e,n=t.mode.toLowerCase(),r=s[n];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var c=t.iv;a.isBuffer(c)||(c=a.from(c)),this._des=r.create({key:o,iv:c,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=c,o(c,i),c.prototype._update=function(t){return a.from(this._des.update(t))},c.prototype._final=function(){return a.from(this._des.final())}},9715:(t,e)=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},3663:(t,e,n)=>{var i=n(8764).Buffer,r=n(3550),o=n(1798);function a(t){var e,n=t.modulus.byteLength();do{e=new r(o(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,e){var n=function(t){var e=a(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),o=e.modulus.byteLength(),s=new r(t).mul(n.blinder).umod(e.modulus),c=s.toRed(r.mont(e.prime1)),h=s.toRed(r.mont(e.prime2)),u=e.coefficient,l=e.prime1,d=e.prime2,p=c.redPow(e.exponent1).fromRed(),f=h.redPow(e.exponent2).fromRed(),m=p.isub(f).imul(u).umod(l).imul(d);return f.iadd(m).imul(n.unblinder).umod(e.modulus).toArrayLike(i,"be",o)}s.getr=a,t.exports=s},6042:(t,e,n)=>{"use strict";t.exports=n(5207)},4743:(t,e,n)=>{"use strict";var i=n(9509).Buffer,r=n(3482),o=n(8473),a=n(5717),s=n(2957),c=n(7753),h=n(5207);function u(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){o.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new u(t)}function p(t){return new l(t)}Object.keys(h).forEach((function(t){h[t].id=i.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),a(u,o.Writable),u.prototype._write=function(t,e,n){this._hash.update(t),n()},u.prototype.update=function(t,e){return this._hash.update("string"==typeof t?i.from(t,e):t),this},u.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),i=s(n,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},a(l,o.Writable),l.prototype._write=function(t,e,n){this._hash.update(t),n()},l.prototype.update=function(t,e){return this._hash.update("string"==typeof t?i.from(t,e):t),this},l.prototype.verify=function(t,e,n){var r="string"==typeof e?i.from(e,n):e;this.end();var o=this._hash.digest();return c(r,o,t,this._signType,this._tag)},t.exports={Sign:d,Verify:p,createSign:d,createVerify:p}},2957:(t,e,n)=>{"use strict";var i=n(9509).Buffer,r=n(8355),o=n(3663),a=n(6266).ec,s=n(3550),c=n(980),h=n(1308);function u(t,e,n,o){if((t=i.from(t.toArray())).length0&&n.ishrn(i),n}function d(t,e,n){var o,a;do{for(o=i.alloc(0);8*o.length{"use strict";var i=n(9509).Buffer,r=n(3550),o=n(6266).ec,a=n(980),s=n(1308);function c(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,n,h,u){var l=a(n);if("ec"===l.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(t,e,n){var i=s[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var r=new o(i),a=n.data.subjectPrivateKey.data;return r.verify(e,t,a)}(t,e,l)}if("dsa"===l.type){if("dsa"!==h)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,o=n.data.q,s=n.data.g,h=n.data.pub_key,u=a.signature.decode(t,"der"),l=u.s,d=u.r;c(l,o),c(d,o);var p=r.mont(i),f=l.invm(o);return 0===s.toRed(p).redPow(new r(e).mul(f).mod(o)).fromRed().mul(h.toRed(p).redPow(d.mul(f).mod(o)).fromRed()).mod(i).mod(o).cmp(d)}(t,e,l)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");e=i.concat([u,e]);for(var d=l.modulus.byteLength(),p=[1],f=0;e.length+p.length+2{var i=n(8764).Buffer;t.exports=function(t,e){for(var n=Math.min(t.length,e.length),r=new i(n),o=0;o{"use strict";const i=n(9742),r=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return h(t,e,n)}function h(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let i=s(n);const r=i.write(t,e);return r!==n&&(i=i.slice(0,r)),i}(t,e);if(ArrayBuffer.isView(t))return function(t){if(G(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer))return p(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(G(t,SharedArrayBuffer)||t&&G(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return c.from(i,e,n);const r=function(t){if(c.isBuffer(t)){const e=0|f(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?s(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),s(t<0?0:0|f(t))}function d(t){const e=t.length<0?0:0|f(t.length),n=s(e);for(let i=0;i=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(r)return i?-1:K(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){let i=!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 j(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,i,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,i,r){let o,a=1,s=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){let i=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let i=0;ir&&(i=r):i=r;const o=e.length;let a;for(i>o/2&&(i=o/2),a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function S(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);const i=[];let r=e;for(;r239?4:e>223?3:e>191?2:1;if(r+a<=n){let n,i,s,c;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[r+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[r+1],i=t[r+2],128==(192&n)&&128==(192&i)&&(c=(15&e)<<12|(63&n)<<6|63&i,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[r+1],i=t[r+2],s=t[r+3],128==(192&n)&&128==(192&i)&&128==(192&s)&&(c=(15&e)<<18|(63&n)<<12|(63&i)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=a}return function(t){const e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let n="",i=0;for(;ii.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(i,r)):Uint8Array.prototype.set.call(i,e,r);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(i,r)}r+=e.length}return i},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,i,r){if(G(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(o,a),h=this.slice(i,r),u=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return x(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function T(t,e,n){let i="";n=Math.min(t.length,n);for(let r=e;ri)&&(n=i);let r="";for(let i=e;in)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function $(t,e,n,i,r){z(e,i,r,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function R(t,e,n,i,r){z(e,i,r,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function L(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,o){return e=+e,n>>>=0,o||L(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,o){return e=+e,n>>>=0,o||L(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t],r=1,o=0;for(;++o>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t+--e],r=1;for(;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Y((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,r=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(i)+(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],r=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(i)<>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t],r=1,o=0;for(;++o=r&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let i=e,r=1,o=this[t+--i];for(;i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Y((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const i=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<>>=0,e||P(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||I(this,t,e,n,Math.pow(2,8*n)-1,0);let r=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,i||I(this,t,e,n,Math.pow(2,8*n)-1,0);let r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Y((function(t,e=0){return $(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Y((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}let r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}let r=n-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.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),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Y((function(t,e=0){return $(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Y((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r=i+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function z(t,e,n,i,r,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${e}${i} and <= ${n}${i}`,new D.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||q(e,t.length-(n+1))}(i,r,o)}function H(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let i=`The value of "${t}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=U(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=U(r)),r+="n"),i+=` It must be ${e}. Received ${r}`,i}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function K(t,e){let n;e=e||1/0;const i=t.length;let r=null;const o=[];for(let a=0;a55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=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 Z(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,i){let r;for(r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)e[i+r]=t[n]+t[r]}return e}();function Y(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},5456:t=>{"use strict";t.exports=function t(e){if("number"==typeof e&&isNaN(e))throw new Error("NaN is not allowed");if("number"==typeof e&&!isFinite(e))throw new Error("Infinity is not allowed");return null===e||"object"!=typeof e?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce(((e,n,i)=>`${e}${0===i?"":","}${t(void 0===n||"symbol"==typeof n?null:n)}`),"")}]`:`{${Object.keys(e).sort().reduce(((n,i)=>void 0===e[i]||"symbol"==typeof e[i]?n:`${n}${0===n.length?"":","}${t(i)}:${t(e[i])}`),"")}}`}},1027:(t,e,n)=>{var i=n(9509).Buffer,r=n(2830).Transform,o=n(2553).s;function a(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(5717)(a,r),a.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){i=t}finally{n(i)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=a},6393:(t,e,n)=>{var i=n(8764).Buffer,r=n(6266),o=n(6426);t.exports=function(t){return new s(t)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(t){this.curveType=a[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function c(t,e,n){Array.isArray(t)||(t=t.toArray());var r=new i(t);if(n&&r.length=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(t,e,n){var i=s(t,n);return n-1>=e&&(i|=s(t,n-1)<<4),i}function h(t,e,n,i){for(var r=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return r}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),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r>>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 i=0;i=e;i-=2)r=c(t,e,i)<=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var o=t.length-n,a=o%i,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var h=1;h>>26,l=67108863&c,d=Math.min(h,e.length-1),p=Math.max(0,h-t.length+1);p<=d;p++){var f=h-p|0;u+=(a=(r=0|t.words[f])*(o=0|e.words[p])+l)/67108864|0,l=67108863&a}n.words[h]=0|l,c=0|u}return 0!==c?n.words[h]=0|c: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 r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?u[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=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 h=l[t],p=d[t];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);n=(f=f.idivn(p)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!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&&i(!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 i(void 0!==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 r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===e,h=new t(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[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 i=0;it.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){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,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,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=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,p=0|a[1],f=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],_=8191&b,w=b>>>13,x=0|a[4],M=8191&x,k=x>>>13,S=0|a[5],E=8191&S,A=S>>>13,T=0|a[6],C=8191&T,j=T>>>13,O=0|a[7],P=8191&O,I=O>>>13,$=0|a[8],R=8191&$,L=$>>>13,N=0|a[9],B=8191&N,D=N>>>13,F=0|s[0],U=8191&F,z=F>>>13,H=0|s[1],q=8191&H,V=H>>>13,K=0|s[2],Z=8191&K,W=K>>>13,G=0|s[3],J=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,tt=Y>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ct=8191&st,ht=st>>>13,ut=0|s[8],lt=8191&ut,dt=ut>>>13,pt=0|s[9],ft=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(h+(i=Math.imul(l,U))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(d,U)|0))<<13)|0;h=((o=Math.imul(d,z))+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(f,U),r=(r=Math.imul(f,z))+Math.imul(m,U)|0,o=Math.imul(m,z);var gt=(h+(i=i+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(d,q)|0))<<13)|0;h=((o=o+Math.imul(d,V)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,U),r=(r=Math.imul(g,z))+Math.imul(v,U)|0,o=Math.imul(v,z),i=i+Math.imul(f,q)|0,r=(r=r+Math.imul(f,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0;var vt=(h+(i=i+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,W)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(_,U),r=(r=Math.imul(_,z))+Math.imul(w,U)|0,o=Math.imul(w,z),i=i+Math.imul(g,q)|0,r=(r=r+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,i=i+Math.imul(f,Z)|0,r=(r=r+Math.imul(f,W)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,W)|0;var bt=(h+(i=i+Math.imul(l,J)|0)|0)+((8191&(r=(r=r+Math.imul(l,X)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(M,U),r=(r=Math.imul(M,z))+Math.imul(k,U)|0,o=Math.imul(k,z),i=i+Math.imul(_,q)|0,r=(r=r+Math.imul(_,V)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,V)|0,i=i+Math.imul(g,Z)|0,r=(r=r+Math.imul(g,W)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,W)|0,i=i+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0;var _t=(h+(i=i+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(E,U),r=(r=Math.imul(E,z))+Math.imul(A,U)|0,o=Math.imul(A,z),i=i+Math.imul(M,q)|0,r=(r=r+Math.imul(M,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,i=i+Math.imul(_,Z)|0,r=(r=r+Math.imul(_,W)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,W)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,i=i+Math.imul(f,Q)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(i=i+Math.imul(l,nt)|0)|0)+((8191&(r=(r=r+Math.imul(l,it)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(C,U),r=(r=Math.imul(C,z))+Math.imul(j,U)|0,o=Math.imul(j,z),i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,i=i+Math.imul(M,Z)|0,r=(r=r+Math.imul(M,W)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,W)|0,i=i+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(g,Q)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,i=i+Math.imul(f,nt)|0,r=(r=r+Math.imul(f,it)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,it)|0;var xt=(h+(i=i+Math.imul(l,ot)|0)|0)+((8191&(r=(r=r+Math.imul(l,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(P,U),r=(r=Math.imul(P,z))+Math.imul(I,U)|0,o=Math.imul(I,z),i=i+Math.imul(C,q)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,V)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,W)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,W)|0,i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,it)|0,i=i+Math.imul(f,ot)|0,r=(r=r+Math.imul(f,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(i=i+Math.imul(l,ct)|0)|0)+((8191&(r=(r=r+Math.imul(l,ht)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,U),r=(r=Math.imul(R,z))+Math.imul(L,U)|0,o=Math.imul(L,z),i=i+Math.imul(P,q)|0,r=(r=r+Math.imul(P,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,i=i+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,W)|0,i=i+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(M,Q)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,nt)|0,r=(r=r+Math.imul(_,it)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(g,ot)|0,r=(r=r+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,i=i+Math.imul(f,ct)|0,r=(r=r+Math.imul(f,ht)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ht)|0;var kt=(h+(i=i+Math.imul(l,lt)|0)|0)+((8191&(r=(r=r+Math.imul(l,dt)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(B,U),r=(r=Math.imul(B,z))+Math.imul(D,U)|0,o=Math.imul(D,z),i=i+Math.imul(R,q)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,V)|0,i=i+Math.imul(P,Z)|0,r=(r=r+Math.imul(P,W)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,i=i+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,it)|0,i=i+Math.imul(_,ot)|0,r=(r=r+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,ht)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ht)|0,i=i+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,dt)|0;var St=(h+(i=i+Math.imul(l,ft)|0)|0)+((8191&(r=(r=r+Math.imul(l,mt)|0)+Math.imul(d,ft)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(B,q),r=(r=Math.imul(B,V))+Math.imul(D,q)|0,o=Math.imul(D,V),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,W)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,W)|0,i=i+Math.imul(P,J)|0,r=(r=r+Math.imul(P,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,i=i+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,it)|0,i=i+Math.imul(M,ot)|0,r=(r=r+Math.imul(M,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,i=i+Math.imul(_,ct)|0,r=(r=r+Math.imul(_,ht)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ht)|0,i=i+Math.imul(g,lt)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,dt)|0;var Et=(h+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(B,Z),r=(r=Math.imul(B,W))+Math.imul(D,Z)|0,o=Math.imul(D,W),i=i+Math.imul(R,J)|0,r=(r=r+Math.imul(R,X)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,X)|0,i=i+Math.imul(P,Q)|0,r=(r=r+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(E,ot)|0,r=(r=r+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,ht)|0)+Math.imul(k,ct)|0,o=o+Math.imul(k,ht)|0,i=i+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,dt)|0;var At=(h+(i=i+Math.imul(g,ft)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(v,ft)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(B,J),r=(r=Math.imul(B,X))+Math.imul(D,J)|0,o=Math.imul(D,X),i=i+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,i=i+Math.imul(P,nt)|0,r=(r=r+Math.imul(P,it)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(C,ot)|0,r=(r=r+Math.imul(C,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,i=i+Math.imul(E,ct)|0,r=(r=r+Math.imul(E,ht)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ht)|0,i=i+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,dt)|0;var Tt=(h+(i=i+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(B,Q),r=(r=Math.imul(B,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),i=i+Math.imul(R,nt)|0,r=(r=r+Math.imul(R,it)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,it)|0,i=i+Math.imul(P,ot)|0,r=(r=r+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,ht)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ht)|0,i=i+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(A,lt)|0,o=o+Math.imul(A,dt)|0;var Ct=(h+(i=i+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(k,ft)|0))<<13)|0;h=((o=o+Math.imul(k,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,nt),r=(r=Math.imul(B,it))+Math.imul(D,nt)|0,o=Math.imul(D,it),i=i+Math.imul(R,ot)|0,r=(r=r+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,i=i+Math.imul(P,ct)|0,r=(r=r+Math.imul(P,ht)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ht)|0,i=i+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,dt)|0;var jt=(h+(i=i+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(A,ft)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,i=Math.imul(B,ot),r=(r=Math.imul(B,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),i=i+Math.imul(R,ct)|0,r=(r=r+Math.imul(R,ht)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,ht)|0,i=i+Math.imul(P,lt)|0,r=(r=r+Math.imul(P,dt)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,dt)|0;var Ot=(h+(i=i+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(j,ft)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(B,ct),r=(r=Math.imul(B,ht))+Math.imul(D,ct)|0,o=Math.imul(D,ht),i=i+Math.imul(R,lt)|0,r=(r=r+Math.imul(R,dt)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,dt)|0;var Pt=(h+(i=i+Math.imul(P,ft)|0)|0)+((8191&(r=(r=r+Math.imul(P,mt)|0)+Math.imul(I,ft)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(B,lt),r=(r=Math.imul(B,dt))+Math.imul(D,lt)|0,o=Math.imul(D,dt);var It=(h+(i=i+Math.imul(R,ft)|0)|0)+((8191&(r=(r=r+Math.imul(R,mt)|0)+Math.imul(L,ft)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863;var $t=(h+(i=Math.imul(B,ft))|0)+((8191&(r=(r=Math.imul(B,mt))+Math.imul(D,ft)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,c[0]=yt,c[1]=gt,c[2]=vt,c[3]=bt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=Mt,c[8]=kt,c[9]=St,c[10]=Et,c[11]=At,c[12]=Tt,c[13]=Ct,c[14]=jt,c[15]=Ot,c[16]=Pt,c[17]=It,c[18]=$t,0!==h&&(c[19]=h,n.length++),n};function m(t,e,n){return(new y).mulp(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(f=p),o.prototype.mulTo=function(t,e){var n,i=this.length+t.length;return n=10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n.strip()}(this,t,e):m(this,t,e),n},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,i=0;i>=1;return i},y.prototype.permute=function(t,e,n,i,r,o){for(var a=0;a>>=1)r++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=r/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>>r}return e}(t);if(0===e.length)return new o(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(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!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=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,h=0;h=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-o|l>>>o,u=l&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return i(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){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,r=1<=0);var e=t%26,n=(t-e)/26;if(i(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 r=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(i("number"==typeof t),i(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)-(c/67108864|0),this.words[r+n]=67108863&o}for(;r>26,this.words[r+n]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),r=t,a=0|r.words[r.length-1];0!=(n=26-this._countBits(a))&&(r=r.ushln(n),i.iushln(n),a=0|r.words[r.length-1]);var s,c=i.length-r.length;if("mod"!==e){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var h=0;h=0;l--){var d=67108864*(0|i.words[r.length+l])+(0|i.words[r.length+l-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(r,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,l),i.isZero()||(i.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},o.prototype.divmod=function(t,e,n){return i(!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&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,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 r,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,i=t.ushrn(1),r=t.andln(1),o=n.cmp(i);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var u=n.clone(),l=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(l)),r.iushrn(1),a.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(l)),s.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(s),a.isub(c)):(n.isub(e),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:n.iushln(h)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,u=1;0==(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},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 i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var o=e;e=n,n=o}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},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){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=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),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(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 M(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(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 i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(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 v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){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 i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(b,v),b.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.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]=r,e=i}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 b;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return g[t]=e,e},M.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.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)},M.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},M.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)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,h).cmp(c);)u.redIAdd(c);for(var l=this.pow(u,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();i(y=0;i--){for(var h=e.words[i],u=c-1;u>=0;u--){var l=h>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===i&&0===u)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},r(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},3482:(t,e,n)=>{"use strict";var i=n(5717),r=n(2318),o=n(9785),a=n(9072),s=n(1027);function c(t){s.call(this,"digest"),this._hash=t}i(c,s),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new o:new c(a(t))}},8028:(t,e,n)=>{var i=n(2318);t.exports=function(t){return(new i).update(t).digest()}},8355:(t,e,n)=>{"use strict";var i=n(5717),r=n(1031),o=n(1027),a=n(9509).Buffer,s=n(8028),c=n(9785),h=n(9072),u=a.alloc(128);function l(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 c:h(t)).update(e).digest():e.length{"use strict";var i=n(5717),r=n(9509).Buffer,o=n(1027),a=r.alloc(128),s=64;function c(t,e){o.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(1798),e.createHash=e.Hash=n(3482),e.createHmac=e.Hmac=n(8355);var i=n(6042),r=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return o};var a=n(5632);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n(3614);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var c=n(2607);e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var h=n(4743);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=n(6393);var u=n(7900);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var l=n(7963);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},6183:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(8014),n.b),u=new URL(n(7119),n.b),l=new URL(n(8832),n.b),d=new URL(n(5426),n.b),p=new URL(n(6033),n.b),f=a()(r()),m=c()(h),y=c()(h,{hash:"#iefix"}),g=c()(u),v=c()(l),b=c()(d),_=c()(p,{hash:"#bpmn"});f.push([t.id,`@charset "utf-8";\n@font-face {\n font-family: 'bpmn';\n src: url(${m});\n src: url(${y}) format('embedded-opentype'),\n url(${g}) format('woff2'),\n url(${v}) format('woff'),\n url(${b}) format('truetype'),\n url(${_}) format('svg');\n font-weight: normal;\n font-style: normal;\n}\n/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */\n/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */\n/*\n@media screen and (-webkit-min-device-pixel-ratio:0) {\n @font-face {\n font-family: 'bpmn';\n src: url('../font/bpmn.svg?21877404#bpmn') format('svg');\n }\n}\n*/\n[class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {\n font-family: "bpmn";\n font-style: normal;\n font-weight: normal;\n speak: never;\n\n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n /* margin-right: .2em; */\n text-align: center;\n /* opacity: .8; */\n\n /* For safety - reset parent styles, that can break glyph codes*/\n font-variant: normal;\n text-transform: none;\n\n /* fix buttons height, for twitter bootstrap */\n line-height: 1em;\n\n /* Animation center compensation - margins should be symmetric */\n /* remove if not needed */\n /* margin-left: .2em; */\n\n /* you can be more comfortable with increased icons size */\n /* font-size: 120%; */\n\n /* Font smoothing. That was taken from TWBS */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n /* Uncomment for 3D effect */\n /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */\n}\n\n.bpmn-icon-trash:before { content: '\\e801'; } /* '' */\n.bpmn-icon-gateway-parallel:before { content: '\\e804'; } /* '' */\n.bpmn-icon-intermediate-event-catch-cancel:before { content: '\\e805'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\\e806'; } /* '' */\n.bpmn-icon-start-event-compensation:before { content: '\\e807'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\\e808'; } /* '' */\n.bpmn-icon-loop-marker:before { content: '\\e809'; } /* '' */\n.bpmn-icon-parallel-mi-marker:before { content: '\\e80a'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-signal:before { content: '\\e80b'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\\e80c'; } /* '' */\n.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\\e80d'; } /* '' */\n.bpmn-icon-intermediate-event-catch-compensation:before { content: '\\e80e'; } /* '' */\n.bpmn-icon-gateway-xor:before { content: '\\e80f'; } /* '' */\n.bpmn-icon-end-event-cancel:before { content: '\\e811'; } /* '' */\n.bpmn-icon-intermediate-event-catch-condition:before { content: '\\e812'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\\e813'; } /* '' */\n.bpmn-icon-start-event-condition:before { content: '\\e814'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-timer:before { content: '\\e815'; } /* '' */\n.bpmn-icon-sequential-mi-marker:before { content: '\\e816'; } /* '' */\n.bpmn-icon-user-task:before { content: '\\e817'; } /* '' */\n.bpmn-icon-business-rule:before { content: '\\e818'; } /* '' */\n.bpmn-icon-sub-process-marker:before { content: '\\e819'; } /* '' */\n.bpmn-icon-start-event-parallel-multiple:before { content: '\\e81a'; } /* '' */\n.bpmn-icon-start-event-error:before { content: '\\e81b'; } /* '' */\n.bpmn-icon-intermediate-event-catch-signal:before { content: '\\e81c'; } /* '' */\n.bpmn-icon-intermediate-event-catch-error:before { content: '\\e81d'; } /* '' */\n.bpmn-icon-end-event-compensation:before { content: '\\e81e'; } /* '' */\n.bpmn-icon-subprocess-collapsed:before { content: '\\e81f'; } /* '' */\n.bpmn-icon-subprocess-expanded:before { content: '\\e820'; } /* '' */\n.bpmn-icon-task:before { content: '\\e821'; } /* '' */\n.bpmn-icon-end-event-error:before { content: '\\e822'; } /* '' */\n.bpmn-icon-intermediate-event-catch-escalation:before { content: '\\e823'; } /* '' */\n.bpmn-icon-intermediate-event-catch-timer:before { content: '\\e824'; } /* '' */\n.bpmn-icon-start-event-escalation:before { content: '\\e825'; } /* '' */\n.bpmn-icon-start-event-signal:before { content: '\\e826'; } /* '' */\n.bpmn-icon-business-rule-task:before { content: '\\e827'; } /* '' */\n.bpmn-icon-manual:before { content: '\\e828'; } /* '' */\n.bpmn-icon-receive:before { content: '\\e829'; } /* '' */\n.bpmn-icon-call-activity:before { content: '\\e82a'; } /* '' */\n.bpmn-icon-start-event-timer:before { content: '\\e82b'; } /* '' */\n.bpmn-icon-start-event-message:before { content: '\\e82c'; } /* '' */\n.bpmn-icon-intermediate-event-none:before { content: '\\e82d'; } /* '' */\n.bpmn-icon-intermediate-event-catch-link:before { content: '\\e82e'; } /* '' */\n.bpmn-icon-end-event-escalation:before { content: '\\e82f'; } /* '' */\n.bpmn-icon-bpmn-io:before { content: '\\e831'; } /* '' */\n.bpmn-icon-gateway-complex:before { content: '\\e832'; } /* '' */\n.bpmn-icon-gateway-eventbased:before { content: '\\e833'; } /* '' */\n.bpmn-icon-gateway-none:before { content: '\\e834'; } /* '' */\n.bpmn-icon-gateway-or:before { content: '\\e835'; } /* '' */\n.bpmn-icon-end-event-terminate:before { content: '\\e836'; } /* '' */\n.bpmn-icon-end-event-signal:before { content: '\\e837'; } /* '' */\n.bpmn-icon-end-event-none:before { content: '\\e838'; } /* '' */\n.bpmn-icon-end-event-multiple:before { content: '\\e839'; } /* '' */\n.bpmn-icon-end-event-message:before { content: '\\e83a'; } /* '' */\n.bpmn-icon-end-event-link:before { content: '\\e83b'; } /* '' */\n.bpmn-icon-intermediate-event-catch-message:before { content: '\\e83c'; } /* '' */\n.bpmn-icon-intermediate-event-throw-compensation:before { content: '\\e83d'; } /* '' */\n.bpmn-icon-start-event-multiple:before { content: '\\e83e'; } /* '' */\n.bpmn-icon-script:before { content: '\\e83f'; } /* '' */\n.bpmn-icon-manual-task:before { content: '\\e840'; } /* '' */\n.bpmn-icon-send:before { content: '\\e841'; } /* '' */\n.bpmn-icon-service:before { content: '\\e842'; } /* '' */\n.bpmn-icon-receive-task:before { content: '\\e843'; } /* '' */\n.bpmn-icon-user:before { content: '\\e844'; } /* '' */\n.bpmn-icon-start-event-none:before { content: '\\e845'; } /* '' */\n.bpmn-icon-intermediate-event-throw-escalation:before { content: '\\e846'; } /* '' */\n.bpmn-icon-intermediate-event-catch-multiple:before { content: '\\e847'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\\e848'; } /* '' */\n.bpmn-icon-intermediate-event-throw-link:before { content: '\\e849'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-condition:before { content: '\\e84a'; } /* '' */\n.bpmn-icon-data-object:before { content: '\\e84b'; } /* '' */\n.bpmn-icon-script-task:before { content: '\\e84c'; } /* '' */\n.bpmn-icon-send-task:before { content: '\\e84d'; } /* '' */\n.bpmn-icon-data-store:before { content: '\\e84e'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\\e84f'; } /* '' */\n.bpmn-icon-intermediate-event-throw-message:before { content: '\\e850'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\\e851'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\\e852'; } /* '' */\n.bpmn-icon-intermediate-event-throw-multiple:before { content: '\\e853'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-message:before { content: '\\e854'; } /* '' */\n.bpmn-icon-ad-hoc-marker:before { content: '\\e855'; } /* '' */\n.bpmn-icon-service-task:before { content: '\\e856'; } /* '' */\n.bpmn-icon-task-none:before { content: '\\e857'; } /* '' */\n.bpmn-icon-compensation-marker:before { content: '\\e858'; } /* '' */\n.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\\e859'; } /* '' */\n.bpmn-icon-intermediate-event-throw-signal:before { content: '\\e85a'; } /* '' */\n.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\\e85b'; } /* '' */\n.bpmn-icon-participant:before { content: '\\e85c'; } /* '' */\n.bpmn-icon-event-subprocess-expanded:before { content: '\\e85d'; } /* '' */\n.bpmn-icon-lane-insert-below:before { content: '\\e85e'; } /* '' */\n.bpmn-icon-space-tool:before { content: '\\e85f'; } /* '' */\n.bpmn-icon-connection-multi:before { content: '\\e860'; } /* '' */\n.bpmn-icon-lane:before { content: '\\e861'; } /* '' */\n.bpmn-icon-lasso-tool:before { content: '\\e862'; } /* '' */\n.bpmn-icon-lane-insert-above:before { content: '\\e863'; } /* '' */\n.bpmn-icon-lane-divide-three:before { content: '\\e864'; } /* '' */\n.bpmn-icon-lane-divide-two:before { content: '\\e865'; } /* '' */\n.bpmn-icon-data-input:before { content: '\\e866'; } /* '' */\n.bpmn-icon-data-output:before { content: '\\e867'; } /* '' */\n.bpmn-icon-hand-tool:before { content: '\\e868'; } /* '' */\n.bpmn-icon-group:before { content: '\\e869'; } /* '' */\n.bpmn-icon-text-annotation:before { content: '\\e86b'; } /* '' */\n.bpmn-icon-transaction:before { content: '\\e8c4'; } /* '' */\n.bpmn-icon-screw-wrench:before { content: '\\e8db'; } /* '' */\n.bpmn-icon-connection:before { content: '\\e8dc'; } /* '' */\n.bpmn-icon-conditional-flow:before { content: '\\e8e0'; } /* '' */\n.bpmn-icon-default-flow:before { content: '\\e8e1'; } /* '' */\n`,""]);const w=f},3625:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".djs-minimap {\n position: absolute;\n top: 20px;\n right: 20px;\n overflow: hidden;\n background-color: rgba(255, 255, 255, 0.9);\n border: solid 1px #CCC;\n border-radius: 2px;\n box-sizing: border-box;\n user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.djs-minimap:not(.open) {\n overflow: hidden;\n}\n\n.djs-minimap .map {\n display: none;\n}\n\n.djs-minimap.open .map {\n display: block;\n}\n\n.djs-minimap .map {\n width: 320px;\n height: 180px;\n}\n\n.djs-minimap:not(.open) .toggle {\n padding: 10px;\n text-align: center;\n}\n\n.djs-minimap .toggle:before {\n content: attr(title);\n}\n\n.djs-minimap.open .toggle {\n position: absolute;\n right: 0;\n padding: 6px;\n z-index: 1;\n}\n\n.djs-minimap .map {\n cursor: crosshair;\n}\n\n.djs-minimap .viewport {\n /* fill: rgba(255, 116, 0, 0.25); */\n fill: none;\n stroke: none;\n}\n\n.djs-minimap .viewport-dom {\n position: absolute;\n border: solid 2px orange;\n border-radius: 2px;\n box-sizing: border-box;\n cursor: move;\n}\n\n.djs-minimap:not(.open) .viewport-dom {\n display: none;\n}\n\n.djs-minimap.open .overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(255, 255, 255, 0.2);\n pointer-events: none;\n}\n\n.djs-minimap .cursor-crosshair {\n cursor: crosshair;\n}\n\n.djs-minimap .cursor-move {\n cursor: move;\n}\n",""]);const s=a},2805:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,'/**\n * color definitions\n */\n.djs-parent {\n --color-grey-225-10-15: hsl(225, 10%, 15%);\n --color-grey-225-10-35: hsl(225, 10%, 35%);\n --color-grey-225-10-55: hsl(225, 10%, 55%);\n --color-grey-225-10-75: hsl(225, 10%, 75%);\n --color-grey-225-10-80: hsl(225, 10%, 80%);\n --color-grey-225-10-85: hsl(225, 10%, 85%);\n --color-grey-225-10-90: hsl(225, 10%, 90%);\n --color-grey-225-10-95: hsl(225, 10%, 95%);\n --color-grey-225-10-97: hsl(225, 10%, 97%);\n\n --color-blue-205-100-45: hsl(205, 100%, 45%);\n --color-blue-205-100-45-opacity-30: hsla(205, 100%, 45%, 30%);\n --color-blue-205-100-50: hsl(205, 100%, 50%);\n --color-blue-205-100-50-opacity-15: hsla(205, 100%, 50%, 15%);\n --color-blue-205-100-70: hsl(205, 100%, 75%);\n --color-blue-205-100-95: hsl(205, 100%, 95%);\n\n --color-green-150-86-44: hsl(150, 86%, 44%);\n\n --color-red-360-100-40: hsl(360, 100%, 40%);\n --color-red-360-100-45: hsl(360, 100%, 45%);\n --color-red-360-100-92: hsl(360, 100%, 92%);\n --color-red-360-100-97: hsl(360, 100%, 97%);\n\n --color-white: hsl(0, 0%, 100%);\n --color-black: hsl(0, 0%, 0%);\n --color-black-opacity-10: hsla(0, 0%, 0%, 10%);\n --color-black-opacity-30: hsla(0, 0%, 0%, 30%);\n\n --canvas-fill-color: var(--color-white);\n\n --bendpoint-fill-color: var(--color-blue-205-100-45);\n --bendpoint-stroke-color: var(--canvas-fill-color);\n\n --context-pad-entry-background-color: var(--color-white);\n --context-pad-entry-hover-background-color: var(--color-grey-225-10-95);\n\n --element-dragger-color: var(--color-blue-205-100-50);\n --element-hover-outline-fill-color: var(--color-blue-205-100-45);\n --element-selected-outline-stroke-color: var(--color-blue-205-100-50);\n --element-selected-outline-secondary-stroke-color: var(--color-blue-205-100-70);\n\n --lasso-fill-color: var(--color-blue-205-100-50-opacity-15);\n --lasso-stroke-color: var(--element-selected-outline-stroke-color);\n\n --palette-entry-color: var(--color-grey-225-10-15);\n --palette-entry-hover-color: var(--color-blue-205-100-45);\n --palette-entry-selected-color: var(--color-blue-205-100-50);\n --palette-separator-color: var(--color-grey-225-10-75);\n --palette-toggle-hover-background-color: var(--color-grey-225-10-55);\n --palette-background-color: var(--color-grey-225-10-97);\n --palette-border-color: var(--color-grey-225-10-75);\n\n --popup-font-size: 14px;\n --popup-header-entry-selected-color: var(--color-blue-205-100-50);\n --popup-header-font-weight: bolder;\n --popup-background-color: var(--color-white);\n --popup-border-color: transparent;\n --popup-shadow-color: var(--color-black-opacity-30);\n --popup-description-color: var(--color-grey-225-10-55);\n --popup-no-results-color: var(--color-grey-225-10-55);\n --popup-entry-title-color: var(--color-grey-225-10-55);\n --popup-entry-hover-color: var(--color-grey-225-10-95);\n --popup-search-border-color: var(--color-grey-225-10-75);\n --popup-search-focus-border-color: var(--color-blue-205-100-50);\n --popup-search-focus-background-color: var(--color-blue-205-100-95);\n\n --resizer-fill-color: var(--color-blue-205-100-45);\n --resizer-stroke-color: var(--canvas-fill-color);\n\n --search-container-background-color: var(--color-grey-225-10-97);\n --search-container-border-color: var(--color-blue-205-100-50);\n --search-container-box-shadow-color: var(--color-blue-205-100-95);\n --search-container-box-shadow-inset-color: var(--color-grey-225-10-80);\n --search-input-border-color: var(--color-grey-225-10-75);\n --search-result-border-color: var(--color-grey-225-10-75);\n --search-result-highlight-color: var(--color-black);\n --search-result-selected-color: var(--color-blue-205-100-45-opacity-30);\n\n --shape-attach-allowed-stroke-color: var(--color-blue-205-100-50);\n --shape-connect-allowed-fill-color: var(--color-grey-225-10-97);\n --shape-drop-allowed-fill-color: var(--color-grey-225-10-97);\n --shape-drop-not-allowed-fill-color: var(--color-red-360-100-97);\n --shape-resize-preview-stroke-color: var(--color-blue-205-100-50);\n\n --snap-line-stroke-color: var(--color-blue-205-100-45-opacity-30);\n\n --space-tool-crosshair-stroke-color: var(--color-black);\n\n --tooltip-error-background-color: var(--color-red-360-100-97);\n --tooltip-error-border-color: var(--color-red-360-100-45);\n --tooltip-error-color: var(--color-red-360-100-45);\n}\n\n/**\n * outline styles\n */\n\n.djs-outline,\n.djs-selection-outline {\n fill: none;\n shape-rendering: geometricPrecision;\n stroke-width: 2px;\n}\n\n.djs-outline {\n visibility: hidden;\n}\n\n.djs-selection-outline {\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-element.selected .djs-outline {\n visibility: visible;\n\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-multi-select .djs-element.selected .djs-outline {\n stroke: var(--element-selected-outline-secondary-stroke-color);\n}\n\n.djs-shape.connect-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-connect-allowed-fill-color) !important;\n}\n\n.djs-shape.connect-not-ok .djs-visual > :nth-child(1),\n.djs-shape.drop-not-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\n.djs-shape.new-parent .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-allowed-fill-color) !important;\n}\n\nsvg.drop-not-ok {\n background: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\nsvg.new-parent {\n background: var(--shape-drop-allowed-fill-color) !important;\n}\n\n\n/* Override move cursor during drop and connect */\n.drop-not-ok,\n.connect-not-ok,\n.drop-not-ok *,\n.connect-not-ok * {\n cursor: not-allowed !important;\n}\n\n.drop-ok,\n.connect-ok,\n.drop-ok *,\n.connect-ok * {\n cursor: default !important;\n}\n\n.djs-element.attach-ok .djs-visual > :nth-child(1) {\n stroke-width: 5px !important;\n stroke: var(--shape-attach-allowed-stroke-color) !important;\n}\n\n.djs-frame.connect-not-ok .djs-visual > :nth-child(1),\n.djs-frame.drop-not-ok .djs-visual > :nth-child(1) {\n stroke-width: 3px !important;\n stroke: var(--shape-drop-not-allowed-fill-color) !important;\n fill: none !important;\n}\n\n/**\n* Selection box style\n*\n*/\n.djs-lasso-overlay {\n fill: var(--lasso-fill-color);\n stroke: var(--lasso-stroke-color);\n stroke-width: 2px;\n shape-rendering: geometricPrecision;\n pointer-events: none;\n}\n\n/**\n * Resize styles\n */\n.djs-resize-overlay {\n fill: none;\n\n stroke-dasharray: 5 1 3 1;\n stroke: var(--shape-resize-preview-stroke-color);\n\n pointer-events: none;\n}\n\n.djs-resizer-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-resizer-visual {\n fill: var(--resizer-fill-color);\n stroke-width: 1px;\n stroke: var(--resizer-stroke-color);\n shape-rendering: geometricPrecision;\n}\n\n.djs-resizer:hover .djs-resizer-visual {\n stroke: var(--resizer-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-cursor-resize-ns,\n.djs-resizer-n,\n.djs-resizer-s {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew,\n.djs-resizer-e,\n.djs-resizer-w {\n cursor: ew-resize;\n}\n\n.djs-cursor-resize-nwse,\n.djs-resizer-nw,\n.djs-resizer-se {\n cursor: nwse-resize;\n}\n\n.djs-cursor-resize-nesw,\n.djs-resizer-ne,\n.djs-resizer-sw {\n cursor: nesw-resize;\n}\n\n.djs-shape.djs-resizing > .djs-outline {\n visibility: hidden !important;\n}\n\n.djs-shape.djs-resizing > .djs-resizer {\n visibility: hidden;\n}\n\n.djs-dragger > .djs-resizer {\n visibility: hidden;\n}\n\n/**\n * drag styles\n */\n.djs-dragger * {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragger tspan,\n.djs-dragger text {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\nmarker.djs-dragger circle,\nmarker.djs-dragger path,\nmarker.djs-dragger polygon,\nmarker.djs-dragger polyline,\nmarker.djs-dragger rect {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\nmarker.djs-dragger text,\nmarker.djs-dragger tspan {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragging {\n opacity: 0.3;\n}\n\n.djs-dragging,\n.djs-dragging > * {\n pointer-events: none !important;\n}\n\n.djs-dragging .djs-context-pad,\n.djs-dragging .djs-outline {\n display: none !important;\n}\n\n/**\n * no pointer events for visual\n */\n.djs-visual,\n.djs-outline {\n pointer-events: none;\n}\n\n.djs-element.attach-ok .djs-hit {\n stroke-width: 60px !important;\n}\n\n/**\n * all pointer events for hit shape\n */\n.djs-element > .djs-hit-all,\n.djs-element > .djs-hit-no-move {\n pointer-events: all;\n}\n\n.djs-element > .djs-hit-stroke,\n.djs-element > .djs-hit-click-stroke {\n pointer-events: stroke;\n}\n\n/**\n * shape / connection basic styles\n */\n.djs-connection .djs-visual {\n stroke-width: 2px;\n fill: none;\n}\n\n.djs-cursor-grab {\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n\n.djs-cursor-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n\n.djs-cursor-crosshair {\n cursor: crosshair;\n}\n\n.djs-cursor-move {\n cursor: move;\n}\n\n.djs-cursor-resize-ns {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew {\n cursor: ew-resize;\n}\n\n\n/**\n * snapping\n */\n.djs-snap-line {\n stroke: var(--snap-line-stroke-color);\n stroke-linecap: round;\n stroke-width: 2px;\n pointer-events: none;\n}\n\n/**\n * snapping\n */\n.djs-crosshair {\n stroke: var(--space-tool-crosshair-stroke-color);\n stroke-linecap: round;\n stroke-width: 1px;\n pointer-events: none;\n shape-rendering: geometricPrecision;\n stroke-dasharray: 5, 5;\n}\n\n/**\n * palette\n */\n\n.djs-palette {\n position: absolute;\n left: 20px;\n top: 20px;\n\n box-sizing: border-box;\n width: 48px;\n}\n\n.djs-palette .separator {\n margin: 5px;\n padding-top: 5px;\n\n border: none;\n border-bottom: solid 1px var(--palette-separator-color);\n\n clear: both;\n}\n\n.djs-palette .entry:before {\n vertical-align: initial;\n}\n\n.djs-palette .djs-palette-toggle {\n cursor: pointer;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n color: var(--palette-entry-color);\n font-size: 30px;\n\n text-align: center;\n}\n\n.djs-palette .entry {\n float: left;\n}\n\n.djs-palette .entry img {\n max-width: 100%;\n}\n\n.djs-palette .djs-palette-entries:after {\n content: \'\';\n display: table;\n clear: both;\n}\n\n.djs-palette .djs-palette-toggle:hover {\n background: var(--palette-toggle-hover-background-color);\n}\n\n.djs-palette .entry:hover {\n color: var(--palette-entry-hover-color);\n}\n\n.djs-palette .highlighted-entry {\n color: var(--palette-entry-selected-color) !important;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n width: 46px;\n height: 46px;\n line-height: 46px;\n cursor: default;\n}\n\n/**\n * Palette open / two-column layout is controlled via\n * classes on the palette. Events to hook into palette\n * changed life-cycle are available in addition.\n */\n.djs-palette.two-column.open {\n width: 94px;\n}\n\n.djs-palette:not(.open) .djs-palette-entries {\n display: none;\n}\n\n.djs-palette:not(.open) {\n overflow: hidden;\n}\n\n.djs-palette.open .djs-palette-toggle {\n display: none;\n}\n\n/**\n * context-pad\n */\n.djs-overlay-context-pad {\n width: 72px;\n z-index: 100;\n}\n\n.djs-context-pad {\n position: absolute;\n display: none;\n pointer-events: none;\n line-height: 1;\n}\n\n.djs-context-pad .entry {\n width: 22px;\n height: 22px;\n text-align: center;\n display: inline-block;\n font-size: 22px;\n margin: 0 2px 2px 0;\n\n border-radius: 3px;\n\n cursor: default;\n\n background-color: var(--context-pad-entry-background-color);\n box-shadow: 0 0 2px 1px var(--context-pad-entry-background-color);\n pointer-events: all;\n vertical-align: middle;\n}\n\n.djs-context-pad .entry:hover {\n background: var(--context-pad-entry-hover-background-color);\n}\n\n.djs-context-pad.open {\n display: block;\n}\n\n/**\n * popup styles\n */\n.djs-popup-backdrop {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 200;\n line-height: 1;\n font-family: "IBM Plex Sans", sans-serif;\n}\n\n.djs-popup {\n box-sizing: border-box;\n width: min-content;\n background: var(--popup-background-color);\n overflow: hidden;\n position: absolute;\n\n box-shadow: 0px 2px 6px var(--popup-shadow-color);\n border: solid 1px var(--popup-border-color);\n min-width: 120px;\n outline: none;\n font-size: var(--popup-font-size);\n}\n\n.djs-popup-search input {\n width: 100%;\n box-sizing: border-box;\n font-size: var(--popup-font-size);\n padding: 3px 6px;\n border-radius: 2px;\n border: solid 1px var(--popup-search-border-color);\n line-height: 21px;\n}\n\n.djs-popup-search input:focus {\n background-color: var(--popup-search-focus-background-color);\n border: solid 1px var(--popup-search-focus-border-color);\n outline: none;\n}\n\n.djs-popup-header {\n display: flex;\n align-items: stretch;\n line-height: 20px;\n margin: 10px 12px 10px 12px;\n}\n\n.djs-popup-header .entry {\n border-radius: 2px;\n}\n\n.djs-popup-header .entry.active {\n color: var(--popup-header-entry-selected-color);\n}\n\n.djs-popup-header .entry.disabled {\n color: inherit;\n}\n\n.djs-popup-search {\n margin: 10px 12px;\n}\n\n.djs-popup-title {\n font-size: var(--popup-font-size);\n font-weight: var(--popup-header-font-weight);\n flex: 1;\n margin: 0;\n}\n\n.djs-popup-search {\n position: relative;\n width: auto;\n}\n\n.djs-popup-search-icon {\n position: absolute;\n left: 8px;\n top: 7px;\n}\n\n.djs-popup-search input {\n padding-left: 25px;\n}\n\n.djs-popup-results {\n margin: 7px 3px 7px 12px;\n list-style: none;\n max-height: 280px;\n overflow: auto;\n padding-right: 9px;\n}\n\n.djs-popup-group {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.djs-popup-body .entry,\n.djs-popup-body .entry-header {\n padding: 5px 7px;\n cursor: default;\n border-radius: 4px;\n}\n\n.djs-popup-body .entry-header {\n font-weight: var(--popup-header-font-weight);\n color: var(--popup-entry-title-color);\n padding-left: 0;\n}\n\n.djs-popup [class*="icon"] .djs-popup-label,\n.djs-popup-label:not(:first-child) {\n margin-left: .5em;\n}\n\n.djs-popup [class*="icon"]:before,\n.djs-popup-entry-icon {\n width: 1em;\n height: 1em;\n display: inline-block;\n font-size: 1.4em;\n vertical-align: middle;\n}\n\n.djs-popup-body .entry-header:not(:first-child) {\n margin-top: 8px;\n margin-bottom: 2px;\n}\n\n.djs-popup-body .entry {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n height: min-content;\n}\n\n.djs-popup .entry.selected {\n background-color: var(--popup-entry-hover-color);\n}\n\n.djs-popup-body .entry:not(:first-child) {\n margin-top: 2px;\n}\n\n.djs-popup-entry-content {\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: hidden;\n}\n\n.djs-popup-entry-description {\n color: var(--popup-description-color);\n}\n\n.djs-popup-label,\n.djs-popup-entry-description {\n line-height: 1.4em;\n}\n\n.djs-popup-title,\n.djs-popup-label,\n.djs-popup-entry-description,\n.djs-popup .entry-header {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.djs-popup-entry-name {\n display: flex;\n}\n\n.entry-content {\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: hidden;\n}\n\n.djs-popup-body {\n flex-direction: column;\n width: auto;\n}\n\n.djs-popup *::-webkit-scrollbar {\n width: 6px;\n}\n\n.djs-popup *::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.djs-popup *::-webkit-scrollbar-track {\n box-shadow: none;\n background: transparent;\n margin: 0;\n padding: 5px;\n}\n\n.djs-popup-no-results {\n padding: 0 12px 12px 12px;\n color: var(--popup-no-results-color);\n}\n\n.djs-popup-entry-docs {\n flex: 0;\n flex-direction: row;\n align-items: center;\n padding-left: 5px;\n display: none;\n}\n\n.djs-popup-body .entry:hover .djs-popup-entry-docs {\n display: flex;\n}\n\n.djs-popup-entry-docs svg {\n vertical-align: middle;\n margin: auto 2px auto 5px;\n}\n\n/**\n * palette styles\n */\n.djs-palette {\n background: var(--palette-background-color);\n border: solid 1px var(--palette-border-color);\n border-radius: 2px;\n}\n\n/**\n * touch\n */\n\n.djs-shape,\n.djs-connection {\n touch-action: none;\n}\n\n.djs-segment-dragger,\n.djs-bendpoint {\n display: none;\n}\n\n/**\n * bendpoints\n */\n.djs-segment-dragger .djs-visual {\n display: none;\n\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n stroke-opacity: 1;\n}\n\n.djs-segment-dragger:hover .djs-visual {\n display: block;\n}\n\n.djs-bendpoint .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n}\n\n.djs-segment-dragger:hover,\n.djs-bendpoints.hover .djs-segment-dragger,\n.djs-bendpoints.selected .djs-segment-dragger,\n.djs-bendpoint:hover,\n.djs-bendpoints.hover .djs-bendpoint,\n.djs-bendpoints.selected .djs-bendpoint {\n display: block;\n}\n\n.djs-drag-active .djs-bendpoints * {\n display: none;\n}\n\n.djs-bendpoints:not(.hover) .floating {\n display: none;\n}\n\n.djs-segment-dragger:hover .djs-visual,\n.djs-segment-dragger.djs-dragging .djs-visual,\n.djs-bendpoint:hover .djs-visual,\n.djs-bendpoint.floating .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-bendpoint.floating .djs-hit {\n pointer-events: none;\n}\n\n.djs-segment-dragger .djs-hit,\n.djs-bendpoint .djs-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-segment-dragger.horizontal .djs-hit {\n cursor: ns-resize;\n}\n\n.djs-segment-dragger.vertical .djs-hit {\n cursor: ew-resize;\n}\n\n.djs-segment-dragger.djs-dragging .djs-hit {\n pointer-events: none;\n}\n\n.djs-updating,\n.djs-updating > * {\n pointer-events: none !important;\n}\n\n.djs-updating .djs-context-pad,\n.djs-updating .djs-outline,\n.djs-updating .djs-bendpoint,\n.djs-multi-select .djs-bendpoint,\n.djs-multi-select .djs-segment-dragger,\n.connect-ok .djs-bendpoint,\n.connect-not-ok .djs-bendpoint,\n.drop-ok .djs-bendpoint,\n.drop-not-ok .djs-bendpoint {\n display: none !important;\n}\n\n.djs-segment-dragger.djs-dragging,\n.djs-bendpoint.djs-dragging {\n display: block;\n opacity: 1.0;\n}\n\n\n/**\n * tooltips\n */\n.djs-tooltip-error {\n width: 160px;\n padding: 6px;\n\n background: var(--tooltip-error-background-color);\n border: solid 1px var(--tooltip-error-border-color);\n border-radius: 2px;\n color: var(--tooltip-error-color);\n font-size: 12px;\n line-height: 16px;\n\n opacity: 0.75;\n}\n\n.djs-tooltip-error:hover {\n opacity: 1;\n}\n\n\n/**\n * search pad\n */\n.djs-search-container {\n position: absolute;\n top: 20px;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n\n width: 25%;\n min-width: 300px;\n max-width: 400px;\n z-index: 10;\n\n font-size: 1.05em;\n opacity: 0.9;\n background: var(--search-container-background-color);\n border: solid 1px var(--search-container-border-color);\n border-radius: 2px;\n box-shadow: 0 0 0 2px var(--search-container-box-shadow-color), 0 0 0 1px var(--search-container-box-shadow-inset-color) inset;\n}\n\n.djs-search-container:not(.open) {\n display: none;\n}\n\n.djs-search-input input {\n font-size: 1.05em;\n width: 100%;\n padding: 6px 10px;\n border: 1px solid var(--search-input-border-color);\n box-sizing: border-box;\n}\n\n.djs-search-input input:focus {\n outline: none;\n border-color: var(--search-input-border-color);\n}\n\n.djs-search-results {\n position: relative;\n overflow-y: auto;\n max-height: 200px;\n}\n\n.djs-search-results:hover {\n cursor: pointer;\n}\n\n.djs-search-result {\n width: 100%;\n padding: 6px 10px;\n background: white;\n border-bottom: solid 1px var(--search-result-border-color);\n border-radius: 1px;\n}\n\n.djs-search-highlight {\n color: var(--search-result-highlight-color);\n}\n\n.djs-search-result-primary {\n margin: 0 0 10px;\n}\n\n.djs-search-result-secondary {\n font-family: monospace;\n margin: 0;\n}\n\n.djs-search-result:hover {\n background: var(--search-result-selected-color);\n}\n\n.djs-search-result-selected {\n background: var(--search-result-selected-color);\n}\n\n.djs-search-result-selected:hover {\n background: var(--search-result-selected-color);\n}\n\n.djs-search-overlay {\n background: var(--search-result-selected-color);\n}\n\n/**\n * hidden styles\n */\n.djs-element-hidden,\n.djs-element-hidden .djs-hit,\n.djs-element-hidden .djs-outline,\n.djs-label-hidden .djs-label {\n display: none !important;\n}\n\n.djs-element .djs-hit-stroke,\n.djs-element .djs-hit-click-stroke,\n.djs-element .djs-hit-all {\n cursor: move;\n}',""]);const s=a},9029:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,"#cacao-application {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n#app-tab-container {\n height: 30px;\n display: flex;\n flex-direction: row;\n background-color: var(--header-tab-not-selected);\n}\n\n#app-body {\n flex-grow: 1;\n}\n\n#cacaoWindow {\n height: 100%;\n width: 100%;\n\n overflow: hidden;\n\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.canvas {\n width: 100%;\n height: 100%;\n position: relative;\n background-color: var(--canvas-background);\n}\n\n.blurred {\n filter: blur(5px);\n}\n\n.djs-element.selected .djs-outline {\n visibility: visible;\n stroke: var(--canvas-select-stroke);\n\n rx: 10px;\n ry: 10px;\n}\n\n.djs-selection-outline {\n stroke: var(--canvas-select-stroke);\n\n rx: 10px;\n ry: 10px;\n}\n\n.djs-multi-select .djs-element.selected .djs-outline {\n visibility: visible;\n stroke: var(--canvas-select-fill);\n\n rx: 10px;\n ry: 10px;\n}\n",""]);const s=a},1709:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,":root {\n --primary: #ffffff;\n --secondary: #f4f6fc;\n --tertiary: #e6e8ec;\n --quaternary: #a8a8a8;\n\n --header-tab-not-selected: #1c1c27;\n --header-background: #28293e;\n --header-button-background: #353750;\n --header-button-hover: #73759a;\n --header-button-text: white;\n --header-text: white;\n --header-border: #595b7d;\n\n --border: #d9d9d9;\n --hover: #e6e8ec;\n --select: #b8b2fa;\n --canvas-select-stroke: #8f87e6;\n --canvas-select-fill: #d7d4ff;\n --scrollbar: #8f87e6;\n\n --canvas-background: white;\n --canvas-overlay-background: white;\n\n --object-color: rgb(127 147 186);\n --object-color-strong: rgb(76, 91, 120);\n}\n\n.action--color {\n --object-color: #6bb8d0 !important;\n --object-color-strong: #006080 !important;\n}\n\n.end--color {\n --object-color: #db6c6c !important;\n --object-color-strong: #7d0001 !important;\n}\n\n.if-condition--color {\n --object-color: #a063dd !important;\n --object-color-strong: #6504c1 !important;\n}\n\n.parallel--color {\n --object-color: #c7ae6f !important;\n --object-color-strong: #ac7f0c !important;\n}\n\n.playbook-action--color {\n --object-color: #777777 !important;\n --object-color-strong: #000000 !important;\n}\n\n.start--color {\n --object-color: #6fc78d !important;\n --object-color-strong: #008127 !important;\n}\n\n.switch-condition--color {\n --object-color: #a063dd !important;\n --object-color-strong: #6504c1 !important;\n}\n\n.while-condition--color {\n --object-color: #a063dd !important;\n --object-color-strong: #6504c1 !important;\n}\n",""]);const s=a},8423:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,"html,\nbody {\n margin: 0;\n padding: 0;\n height: 100%;\n width: 100%;\n transition-duration: 100ms;\n\n --scrollbar-width: 3px;\n background-color: var(--header-background);\n\n overflow: hidden;\n}\n\n/* scroll container */\n::-webkit-scrollbar {\n background-color: transparent;\n width: var(--scrollbar-width);\n}\n\n::-webkit-scrollbar-track {\n background: transparent;\n}\n\n/* scroll cursor */\n::-webkit-scrollbar-thumb {\n background: var(--scrollbar);\n border-radius: 5px;\n}\n",""]);const s=a},3467:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".cacaoDialog {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: visible;\n\n max-width: 350px;\n width: 100%;\n max-height: 70%;\n padding: 0px;\n\n font-family: poppins, sans-serif;\n color: black;\n\n background: rgba(243, 243, 243, 1);\n border-radius: 16px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border: 1px solid rgba(214, 214, 214, 0.83);\n}\n\n.cacaoDialog--scrollable {\n overflow-y: auto;\n flex-grow: 1;\n height: 100%;\n padding: 10px 10px 100px 10px;\n}\n\n.cacaoDialog__title {\n padding: 15px 20px;\n font-family: sans-serif;\n font-weight: 700;\n font-size: 18px;\n}\n\n.cacaoDialog__body {\n position: relative;\n overflow: visible;\n}\n\n.cacaoDialog__errormessage {\n color: red;\n font-size: 10px;\n flex-grow: 1;\n}\n\n.cacaoDialog__description {\n padding: 10px 20px 20px 20px;\n font-family: sans-serif;\n font-weight: 200;\n font-size: 15px;\n line-height: 25px;\n}\n\n.cacaoDialog__buttonList {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n flex-shrink: 0;\n align-items: flex-end;\n padding: 0 10px 10px 10px;\n margin-top: 10px;\n}\n\n.buttonList__button {\n border-radius: 5px;\n padding: 5px 10px;\n text-decoration: none;\n font-weight: 500;\n}\n\n.button--primary {\n background: var(--select);\n border: 0;\n}\n\n.button--secondary {\n background: transparent;\n border: 0;\n color: black;\n}\n\n.cacaoDialog__message {\n font-size: 15px;\n margin: 10px;\n text-align: center;\n font-weight: 200;\n}\n\n.cacaoDialog__labels > .property--simple {\n display: flex;\n}\n\n.cacaoDialog__labels > .property--simple label {\n text-transform: initial;\n}\n",""]);const s=a},1378:(t,e,n)=>{"use strict";n.d(e,{Z:()=>K});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(1098),n.b),u=new URL(n(8689),n.b),l=new URL(n(8073),n.b),d=new URL(n(3933),n.b),p=new URL(n(8718),n.b),f=new URL(n(2586),n.b),m=new URL(n(2981),n.b),y=new URL(n(1407),n.b),g=new URL(n(8809),n.b),v=new URL(n(1848),n.b),b=new URL(n(6156),n.b),_=new URL(n(3433),n.b),w=new URL(n(9993),n.b),x=new URL(n(738),n.b),M=new URL(n(1317),n.b),k=new URL(n(69),n.b),S=new URL(n(3601),n.b),E=new URL(n(2769),n.b),A=a()(r()),T=c()(h),C=c()(u),j=c()(l),O=c()(d),P=c()(p),I=c()(f),$=c()(m),R=c()(y),L=c()(g),N=c()(v),B=c()(b),D=c()(_),F=c()(w),U=c()(x),z=c()(M),H=c()(k),q=c()(S),V=c()(E);A.push([t.id,`@font-face {\n font-family: Poppins;\n src: url(${T});\n font-style: normal;\n font-weight: 100;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${C});\n font-style: italic;\n font-weight: 100;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${j});\n font-style: normal;\n font-weight: 200;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${O});\n font-style: italic;\n font-weight: 200;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${P});\n font-style: normal;\n font-weight: 300;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${I});\n font-style: italic;\n font-weight: 300;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${$});\n font-style: normal;\n font-weight: 400;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${R});\n font-style: italic;\n font-weight: 400;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${L});\n font-style: normal;\n font-weight: 500;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${N});\n font-style: italic;\n font-weight: 500;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${B});\n font-style: normal;\n font-weight: 600;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${D});\n font-style: italic;\n font-weight: 600;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${F});\n font-style: normal;\n font-weight: 700;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${U});\n font-style: italic;\n font-weight: 700;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${z});\n font-style: normal;\n font-weight: 800;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${H});\n font-style: italic;\n font-weight: 800;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${q});\n font-style: normal;\n font-weight: 900;\n}\n\n@font-face {\n font-family: Poppins;\n src: url(${V});\n font-style: italic;\n font-weight: 900;\n}\n`,""]);const K=A},377:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(9819),n.b),u=new URL(n(6524),n.b),l=new URL(n(9007),n.b),d=new URL(n(8377),n.b),p=new URL(n(6303),n.b),f=new URL(n(5340),n.b),m=a()(r()),y=c()(h),g=c()(u),v=c()(l),b=c()(d),_=c()(p),w=c()(f);m.push([t.id,`.header {\n width: calc(100% - 2px);\n background: var(--header-background);\n border: solid 1px var(--header-border);\n color: var(--header-text);\n\n font-family: Poppins;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n\n.header > .header__title {\n margin: 10px;\n width: calc(100% - 500px);\n\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-grow: 1;\n}\n\n.header__title > div {\n margin-right: 10px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n}\n\n.title__name {\n margin: 0 0 5px 0;\n display: block !important;\n height: 25px;\n font-weight: 600;\n font-size: 20px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.title__description {\n --maxLineNumber: 3;\n margin: 0 0 5px 0;\n font-weight: 200;\n font-size: 13px;\n text-align: justify;\n line-height: 15px;\n width: 80ch !important;\n max-height: calc(20px * var(--maxLineNumber));\n\n white-space: wrap;\n overflow: hidden;\n text-overflow: initial;\n\n display: -webkit-box !important;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n}\n\n.title__labels {\n flex-wrap: nowrap;\n overflow: hidden;\n position: relative;\n}\n\n.title__tags {\n margin: 0 0 2px 0;\n}\n\n.labels__entry {\n padding: 0 5px;\n background-color: var(--select);\n margin-right: 5px;\n font-size: 10px;\n border-radius: 5px;\n color: var(--header-background);\n}\n\n.labels__moreindicator {\n height: 18px;\n background-color: transparent;\n border: 1px solid var(--select);\n color: var(--select);\n}\n\n.moreindicator--show {\n display: block;\n}\n\n.moreindicator--hide {\n display: none;\n}\n\n.expanded {\n width: 100%;\n}\n\n.header__logo {\n margin-left: 10px;\n min-height: 45px;\n min-width: 45px;\n background-image: url(${y}) !important;\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.header__options {\n margin-right: 10px;\n display: flex;\n flex-flow: row-reverse;\n flex-direction: row;\n align-items: flex-end;\n align-items: center;\n}\n\n.options__entry:hover {\n background-color: var(--header-button-background);\n}\n\n.options__entry {\n margin: 5px;\n padding: 5px;\n width: 50px;\n\n border-radius: 5px;\n text-align: center;\n\n cursor: pointer;\n transition-duration: 100ms;\n\n -webkit-user-select: none;\n /* Safari */\n -ms-user-select: none;\n /* IE 10 and IE 11 */\n user-select: none;\n /* Standard syntax */\n}\n\n.options__entry:hover .entry__icon {\n background-color: var(--select);\n}\n\n.entry__label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n height: 20px;\n line-height: 10px;\n margin: 0;\n font-weight: 400;\n font-size: 10px;\n color: var(--header-text);\n}\n\n.options__entry:hover .entry__label {\n color: var(--select);\n}\n\n.entry__icon {\n -webkit-mask: var(--svg);\n mask: var(--svg);\n\n margin: 0 5px;\n width: 40px;\n height: 30px;\n\n background-color: var(--header-text);\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n}\n\n.import {\n --svg: url(${g});\n}\n\n.export {\n --svg: url(${v});\n}\n\n.metadata {\n --svg: url(${b});\n}\n\n.sign {\n --svg: url(${_});\n}\n\n.verify {\n --svg: url(${w});\n}\n\n.expander .entry__icon {\n position: relative;\n background-color: transparent !important;\n transition-duration: 200ms;\n}\n\n.expander .entry__icon::before {\n content: '.';\n color: transparent;\n position: absolute;\n left: 0px;\n top: 3px;\n\n padding: 10px 20px;\n border-radius: 10px;\n font-size: 0;\n\n transition-duration: 200ms;\n\n background-color: var(--header-button-hover) !important;\n}\n\n.expander.expanded .entry__icon::before {\n transition-duration: 200ms;\n background-color: var(--select) !important;\n}\n\n.expander .entry__icon::after {\n content: '.';\n color: transparent;\n position: absolute;\n left: 2px;\n top: 5px;\n\n padding: 8px;\n border-radius: 10px;\n font-size: 0;\n\n transition-duration: 200ms;\n\n background-color: var(--header-background) !important;\n}\n\n.expander.expanded .entry__icon::after {\n left: 22px;\n top: 5px;\n\n transition-duration: 200ms;\n\n background-color: var(--header-background) !important;\n}\n`,""]);const x=m},821:(t,e,n)=>{"use strict";n.d(e,{Z:()=>M});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1378),c=n(1709),h=n(9029),u=n(1281),l=n(2089),d=n(8322),p=n(5253),f=n(2722),m=n(90),y=n(377),g=n(8423),v=n(3467),b=n(4207),_=n(7954),w=n(9362),x=a()(r());x.i(s.Z),x.i(c.Z),x.i(h.Z),x.i(u.Z),x.i(l.Z),x.i(d.Z),x.i(p.Z),x.i(f.Z),x.i(m.Z),x.i(y.Z),x.i(g.Z),x.i(v.Z),x.i(b.Z),x.i(_.Z),x.i(w.Z),x.push([t.id,"\n",""]);const M=x},4207:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".djs-minimap {\n top: 10px;\n right: 10px;\n\n background: rgba(244, 244, 244, 0.55);\n border-radius: 16px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n border: 1px solid rgba(214, 214, 214, 0.83);\n\n transition-duration: 200ms;\n}\n\n.minimap--move {\n right: 360px !important;\n}\n\n.djs-minimap .map {\n width: 240px !important;\n height: 120px !important;\n}\n\n.djs-minimap .viewport-dom {\n border: solid 1px var(--select) !important;\n border-radius: 5px;\n}\n\n.djs-minimap:not(.open) .toggle:before {\n content: '' !important;\n}\n\n.djs-minimap.open .toggle:before {\n content: '' !important;\n}\n\n.djs-minimap .toggle {\n padding: 0px !important;\n margin: 0px !important;\n background-color: var(--select);\n}\n",""]);const s=a},5253:(t,e,n)=>{"use strict";n.d(e,{Z:()=>q});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(951),n.b),u=new URL(n(394),n.b),l=new URL(n(5067),n.b),d=new URL(n(3739),n.b),p=new URL(n(6098),n.b),f=new URL(n(1998),n.b),m=new URL(n(1924),n.b),y=new URL(n(9053),n.b),g=new URL(n(393),n.b),v=new URL(n(1392),n.b),b=new URL(n(5795),n.b),_=new URL(n(8380),n.b),w=new URL(n(9580),n.b),x=new URL(n(4240),n.b),M=new URL(n(4370),n.b),k=new URL(n(5199),n.b),S=new URL(n(8648),n.b),E=a()(r()),A=c()(h),T=c()(u),C=c()(l),j=c()(d),O=c()(p),P=c()(f),I=c()(m),$=c()(y),R=c()(g),L=c()(v),N=c()(b),B=c()(_),D=c()(w),F=c()(x),U=c()(M),z=c()(k),H=c()(S);E.push([t.id,`.djs-palette {\n position: absolute;\n left: 10px !important;\n top: 10px !important;\n transform: translateY(0%);\n width: auto !important;\n display: flex;\n flex-direction: column;\n\n background: rgba(244, 244, 244, 0.55);\n border-radius: 16px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border: 1px solid rgba(214, 214, 214, 0.83);\n}\n\n.djs-palette::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: -1;\n\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n border-radius: 16px;\n}\n\n.djs-palette .group {\n display: flex;\n flex-direction: column;\n align-items: end;\n overflow: hidden;\n}\n\n.entry {\n transition:\n width 300ms ease,\n background-color 200ms ease;\n background-color: transparent !important;\n background-repeat: no-repeat;\n background-size: contain;\n background-position: left !important;\n background-image: var(--image-url);\n margin: 8px 8px 4px 8px;\n width: 40px !important;\n height: 40px !important;\n border-radius: 5px;\n box-shadow: none !important;\n}\n\n.entry:hover {\n transition: background-color 100ms ease;\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-image: var(--image-url) !important;\n border-radius: 5px;\n box-sizing: border-box;\n background-color: var(--canvas-select-fill) !important;\n color: black !important;\n}\n\n.highlighted-entry {\n transition: background-color 100ms ease;\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-image: var(--image-url) !important;\n border-radius: 5px;\n box-sizing: border-box;\n background-color: var(--canvas-select-fill) !important;\n color: black !important;\n}\n\n.entry-expanded {\n margin: 8px 8px 4px 8px;\n box-shadow: none !important;\n width: 150px !important;\n height: 40px !important;\n text-align: left !important;\n font-size: 14px !important;\n}\n\n.entry--disable {\n background-color: rgba(175, 175, 175, 0.205) !important;\n opacity: 0.5;\n cursor: not-allowed !important;\n opacity: 0.5;\n}\n\n.entry--disable:hover {\n background-color: transparent !important;\n background-color: rgb(230, 230, 230) !important;\n}\n\n.djs-context-pad {\n padding: 2px;\n text-align: center;\n\n background: rgba(244, 244, 244, 0.55);\n border-radius: 10px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n border: 1px solid rgba(214, 214, 214, 0.83);\n}\n\n.djs-context-pad .entry {\n margin: 1px !important;\n width: 30px !important;\n height: 30px !important;\n}\n\n.entry .entry-label {\n padding: 0;\n padding-left: 45px;\n width: 0px;\n height: 100%;\n margin: 0;\n opacity: 0;\n\n font-family: Poppins;\n font-weight: 400;\n font-style: normal;\n font-size: 12px;\n\n transition: opacity 300ms ease 100ms;\n\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.entry-expanded .entry-label {\n opacity: 1;\n width: 100%;\n}\n\n.entry.switcher {\n --image-url: url(${A});\n\n width: 40px !important;\n height: 40px !important;\n\n transform: rotate(-90deg);\n\n border-radius: 50% !important;\n\n background-position: center !important;\n background-repeat: no-repeat !important;\n background-size: 25px 25px !important;\n}\n\n.entry-expanded.switcher {\n transform: rotate(90deg);\n}\n\n.start-step {\n --image-url: url(${T});\n}\n\n.end-step {\n --image-url: url(${C});\n}\n\n.action-step {\n --image-url: url(${j});\n}\n\n.parallel-step {\n --image-url: url(${O});\n}\n\n.playbook-action-step {\n --image-url: url(${P});\n}\n\n.switch-condition {\n --image-url: url(${I});\n}\n\n.while-condition {\n --image-url: url(${$});\n}\n\n.if-condition {\n --image-url: url(${R});\n}\n\n.on-completion {\n --image-url: url(${L});\n}\n\n.on-success {\n --image-url: url(${N});\n}\n\n.on-failure {\n --image-url: url(${B});\n}\n\n.on-true-condition {\n --image-url: url(${D});\n}\n\n.on-false-condition {\n --image-url: url(${F});\n}\n\n.on-condition {\n --image-url: url(${U});\n}\n\n.on-parallel {\n --image-url: url(${z});\n}\n\n.bin {\n --image-url: url(${H});\n}\n`,""]);const q=E},8322:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(3945),n.b),u=new URL(n(653),n.b),l=new URL(n(5377),n.b),d=new URL(n(677),n.b),p=a()(r()),f=c()(h),m=c()(u),y=c()(l),g=c()(d);p.push([t.id,`.picker-window {\n border-top: solid 1px var(--header-border);\n height: calc(100% - 1px) !important;\n background-color: var(--header-background) !important;\n\n display: flex;\n flex-direction: column !important;\n justify-content: space-evenly !important;\n align-items: center !important;\n}\n\n.window__logo {\n max-width: 400px;\n width: 60vmin;\n height: 20vmin;\n\n background-image: url(${f}) !important;\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n}\n\n.window__buttoncontainer {\n width: 100%;\n\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n align-items: center;\n}\n\n/* button's container */\n\n.window__button {\n width: 10vmin;\n height: 10vmin;\n\n position: relative;\n margin: 1px;\n border: 1px solid var(--header-border);\n border-radius: 5px;\n background-color: var(--header-button-background);\n color: var(--header-text);\n}\n\n.window__button.button--big {\n width: 35vmin;\n height: 35vmin;\n}\n\n.window__button.button--small {\n width: 160px;\n height: 50px;\n}\n\n.window__button:hover {\n margin: 0px;\n border: 2px solid var(--select);\n color: var(--select) !important;\n}\n\n/* button's icon */\n\n.window__button .button__icon {\n margin: 0 1.5vh;\n width: 7vmin;\n height: 7vmin;\n\n -webkit-mask: var(--svg);\n mask: var(--svg);\n background-color: var(--header-text);\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n}\n\n.window__button.button--big .button__icon {\n margin: 0 2.5vh;\n width: 30vmin;\n height: 30vmin;\n}\n\n.window__button.button--small .button__icon {\n margin: 10px 10px;\n width: 30px;\n height: 30px;\n}\n\n.window__button:hover .button__icon {\n background-color: var(--select);\n}\n\n.window__button.button--new .button__icon {\n --svg: url(${m});\n}\n\n.window__button.button--open .button__icon {\n --svg: url(${y});\n}\n\n.window__button.button--settings .button__icon {\n --svg: url(${g});\n}\n\n/* button's label */\n\n.window__button .button__label {\n position: absolute;\n bottom: 7px;\n right: 10px;\n left: 10px;\n margin: 0;\n\n text-align: center;\n font-family: Poppins;\n font-weight: 300;\n font-size: 13px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.window__button.button--big .button__label {\n bottom: 10px;\n right: 10px;\n left: 10px;\n margin: 0;\n\n font-weight: 400;\n font-size: 26px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.window__button.button--small .button__label {\n bottom: 0px;\n right: 10px;\n left: 10px;\n margin-left: 40px;\n\n font-weight: 400;\n font-size: 15px;\n height: 100%;\n\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n\n/* User dialog */\n\n.usersettings__dialog {\n display: flex;\n flex-direction: column;\n\n max-width: 800px;\n width: 90%;\n max-height: 70%;\n padding: 0px;\n\n font-family: Poppins;\n color: white;\n\n background: rgb(43, 44, 63);\n border-radius: 16px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border: 1px solid rgb(115, 117, 154);\n}\n\n.dialog__title {\n padding: 10px 15px;\n letter-spacing: 2px;\n font-family: Poppins;\n font-weight: 500;\n font-size: 25px;\n font-weight: 700;\n}\n\n.dialog__property {\n margin-bottom: 10px;\n padding: 0px 5px;\n width: calc(100% - 10px);\n}\n\n.dialog__property > .property__label {\n margin-left: 5px;\n font-size: 12px;\n font-weight: 300;\n}\n\n.dialog__property > input {\n height: 30px;\n resize: vertical;\n}\n\n.dialog__property > textarea {\n min-height: 18px;\n height: 130px;\n resize: vertical;\n}\n\n.dialog__property > .property__input {\n padding: 0px 5px;\n width: calc(100% - 12px);\n font-size: 13px;\n font-weight: 200;\n color: white;\n\n background: rgb(60, 61, 92);\n border-radius: 7px;\n border: 1px solid rgba(34, 36, 81, 0.84);\n}\n\n.dialog__property > input.input--incorrect {\n border: 1px solid rgba(255, 0, 0, 0.601);\n}\n\n.dialog__buttonList {\n display: flex;\n justify-content: flex-end;\n flex-direction: row;\n padding: 10px;\n}\n\n.dialog__buttonList > button {\n padding: 5px;\n margin-left: 10px;\n border-radius: 5px;\n color: white;\n}\n\n.dialog__buttonList > button.button--primary {\n color: black;\n}\n`,""]);const v=p},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(951),n.b),u=new URL(n(4780),n.b),l=new URL(n(9804),n.b),d=new URL(n(7093),n.b),p=a()(r()),f=c()(h),m=c()(u),y=c()(l),g=c()(d);p.push([t.id,`input[type='number']::-webkit-inner-spin-button,\ninput[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* sidepanel */\n\n.sidepanel--close {\n transform: translateX(100%);\n}\n\n.sidepanel {\n z-index: 100;\n position: absolute;\n top: 0px;\n right: 0px;\n width: 350px;\n height: calc(100%);\n\n background: var(--canvas-overlay-background) !important;\n border-left: solid 1px var(--border) !important;\n\n box-sizing: border-box;\n\n overflow: visible;\n\n font-family: Poppins;\n\n --object-color: rgb(160, 179, 217);\n\n display: flex;\n flex-direction: column;\n\n transition-duration: 200ms;\n}\n\n.sidepanel__sub {\n flex-grow: 1;\n\n position: relative;\n right: 100%;\n width: 100%;\n padding-left: 100%;\n\n pointer-events: none;\n\n overflow-y: overlay;\n overflow-x: hidden;\n}\n\n.sidepanel__wrapper {\n height: 100%;\n width: 100%;\n position: relative;\n scrollbar-gutter: stable;\n pointer-events: auto;\n\n display: flex;\n flex-direction: column;\n}\n\n/* section */\n\n.sidepanel__section {\n width: calc(100%);\n margin-bottom: 10px;\n}\n\n/* switcher */\n.sidepanel__switcher {\n z-index: 201;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n padding: 7px 0;\n border-radius: 0 0 5px 5px;\n border-bottom: 1px solid #cfcfcf;\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n}\n\n.switcher__entry {\n padding: 4px 10px;\n margin: 0 2px;\n\n border-radius: 5px;\n\n font-size: 12px;\n cursor: pointer;\n}\n\n.switcher__entry.entry--selected {\n color: white;\n background-color: var(--object-color);\n padding: 3px 9px;\n border: 1px solid var(--border);\n}\n\n/* JSON field */\n\n.sidepanel__container {\n position: relative;\n width: calc(100%);\n overflow: visible;\n flex: 1;\n border-top: 1px #f4f4f4 solid;\n}\n\n.container--json {\n margin: 30px 10px 10px 10px !important;\n height: calc(100vh - 500px) !important;\n width: calc(100% - 30px) !important;\n cursor: text !important;\n color: black !important;\n resize: none !important;\n}\n\n/* section title */\n\n.section--header {\n margin-bottom: 0 !important;\n background-color: var(--object-color);\n border-bottom: 1px solid var(--border);\n border-top: 0;\n border-radius: 0 0 5px 5px;\n padding: 5px 0;\n}\n\ndialog .section--header {\n border-radius: 5px;\n left: 0;\n right: 0;\n}\n\n.section--header > .header__title {\n margin: 0 !important;\n padding: 5px 0 0 0;\n\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n\n text-transform: capitalize;\n color: white;\n font-weight: 400;\n font-size: 20px;\n}\n\n.section--header > .header__id {\n margin: 0 !important;\n padding: 0 10px 5px 10px;\n\n text-align: center;\n\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n\n font-weight: 400;\n font-size: 12px;\n color: white;\n}\n\n/* property */\n\n.sidepanel__section > .section__property {\n margin: 10px 10px 5px 10px;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n position: relative;\n}\n\n/* property's label */\n\n.property__label {\n height: 20px;\n\n position: relative;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.label--complexe {\n width: 100%;\n}\n\n.label__b64 label::after {\n content: ' (displayed in plaintext)';\n font-size: 10px;\n font-weight: 300;\n margin-left: 5px;\n text-transform: lowercase;\n}\n\n.label__time label::after {\n content: ' (in your own timezone)';\n font-size: 10px;\n font-weight: 300;\n margin-left: 5px;\n text-transform: lowercase;\n}\n\n.property__label label {\n margin-left: 5px;\n margin-right: 5px;\n\n color: black;\n font-size: 12px;\n font-weight: 500;\n\n text-transform: capitalize;\n}\n\n.label__indicator {\n position: absolute;\n width: 4px;\n height: 4px;\n margin: auto 3px;\n left: -9px;\n background-color: black;\n border-radius: 50%;\n}\n\n.indicator--required {\n background-color: red;\n}\n\n.property--right {\n justify-content: end !important;\n margin-right: 20px !important;\n display: flex;\n}\n\n.indicator--optional {\n background-color: transparent;\n}\n\n.label__expander {\n width: 20px;\n height: 20px;\n\n --svg: url(${f});\n\n -webkit-mask: var(--svg);\n mask: var(--svg);\n\n color: transparent;\n background-color: grey;\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n\n transition-duration: 200ms;\n cursor: pointer;\n}\n\n.label__expander:hover {\n background-color: black;\n}\n\n.expander--open {\n transform: rotate(0deg);\n}\n\n.expander--close {\n transform: rotate(-180deg);\n}\n\n.label__adder {\n margin-left: auto;\n\n width: 20px;\n height: 20px;\n\n --svg: url(${m});\n\n -webkit-mask: var(--svg);\n mask: var(--svg);\n\n color: transparent;\n background-color: grey;\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n\n transition-duration: 200ms;\n cursor: pointer;\n}\n\n.label__adder:hover {\n background-color: black;\n}\n\n.label__removeselection {\n margin-left: auto;\n\n width: 20px;\n height: 20px;\n\n --svg: url(${y});\n\n -webkit-mask: var(--svg);\n mask: var(--svg);\n\n color: transparent;\n background-color: grey;\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n\n transition-duration: 200ms;\n cursor: pointer;\n}\n\n/* property's input */\n\n.property__container {\n width: 100%;\n margin: 0;\n font-family: Poppins;\n font-size: 12px;\n}\n\n.container--simple,\n.property__list > .list-input input {\n padding: 2px 5px;\n width: calc(100%);\n border-radius: 5px;\n\n color: black;\n border: 1px solid #c9d0e6;\n background-color: white;\n\n font-size: 12px;\n font-weight: 300;\n font-family: Poppins;\n}\n\nbutton.container--simple,\n.property__list > .list-input input {\n transition: background-color 0.2s ease;\n background: linear-gradient(180deg, #fff 30%, #ddd 220%);\n /* Blue to light blue gradient */\n color: black !important;\n text-align: center;\n}\n\nbutton.container--simple:hover {\n background-color: #f0f0f0;\n /* Change the background color on hover */\n border-color: #b9c6f2;\n /* Change the border color on hover */\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n}\n\n.container--disabled,\n.container--simple:disabled,\n.container--simple[disabled] {\n cursor: default;\n background-color: rgb(241, 241, 241);\n color: grey;\n}\n\n.container--shorted {\n width: 60px !important;\n height: 20px;\n padding: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* property's list */\n\n.property__list {\n width: calc(100% - 5px);\n padding: 0 0 0 5px;\n overflow-y: scroll;\n overflow-x: hidden;\n transition: max-height 200ms ease;\n\n position: relative;\n}\n\n.property__list:not(:has(div)) {\n height: 20px;\n}\n\n.property__list:not(:has(div))::after {\n content: 'The list is empty';\n display: block;\n color: #575757;\n width: 100%;\n font-size: 12px;\n text-align: center;\n}\n\n.property__dict {\n width: calc(100% - 5px);\n padding: 0 0 0 5px;\n overflow-y: scroll;\n overflow-x: hidden;\n transition: max-height 200ms ease;\n\n position: relative;\n}\n\n.property__dict:not(:has(div)) {\n height: 20px;\n}\n\n.property__dict:not(:has(div))::after {\n content: 'The dictionary is empty';\n display: block;\n color: #575757;\n width: 100%;\n font-size: 12px;\n text-align: center;\n}\n\n.property__show--button {\n width: 100%;\n padding: 0 0 0 5px;\n position: relative;\n}\n\n.property__show--button button {\n position: flex;\n width: 100%;\n height: 100%;\n}\n\n.list--collapse {\n max-height: 0px;\n}\n\n.list--expanded {\n max-height: 160px;\n overflow: visible;\n display: flex;\n flex-direction: column;\n}\n\n.lisContainer--expanded {\n background-color: #f4f4f4;\n border-radius: 5px;\n}\n\n/* property's list item */\n\n.list__contactitem > input {\n width: 45%;\n}\n\n.list__item,\n.property__list > .list-input {\n margin-bottom: 5px;\n padding-right: 5px;\n display: flex;\n align-items: center;\n}\n\n.remove-item {\n background-color: transparent;\n border: transparent;\n color: transparent;\n\n padding: 0;\n width: 15px;\n height: 20px;\n\n background-color: #757c94;\n transition-duration: 100ms;\n\n --svg: url(${g});\n -webkit-mask: var(--svg);\n mask: var(--svg);\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 10px 10px;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: 10px 10px;\n mask-position: center;\n cursor: pointer;\n}\n\n.display__item {\n margin-left: 5px;\n}\n\n.list__item > .remove-item:hover {\n border: transparent;\n background-color: red;\n}\n\n/* common input field */\n\n.container--textarea {\n resize: vertical;\n min-height: 20px;\n}\n\ninput[type='text']:focus {\n border-color: var(--select);\n}\n\n/* checkbox */\n\ninput[type='checkbox'].propertiesElements {\n width: 20px;\n}\n\n/* sub list of checkbox */\n\n.sidepanel--sub .section__property {\n margin: 0;\n}\n\n.section__property.property--reversed {\n margin: 0;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n\n.sidepanel--sub .property__label {\n margin-top: 2px;\n margin-left: 5px;\n\n display: flex;\n justify-content: flex-end;\n}\n\n.sidepanel--sub .property__label > label {\n font-weight: normal;\n margin-left: 0;\n font-weight: 300;\n}\n\n/* list-input */\n\ndiv.list-input {\n display: flex;\n}\n\n/* list-dialog */\n\ndialog.list-dialog {\n max-width: 80%;\n width: 350px;\n max-height: 80%;\n padding: 0 0 20px 0;\n\n display: flex;\n flex-direction: column;\n\n font-family: Poppins;\n\n border-radius: 5px;\n\n background: var(--canvas-overlay-background) !important;\n border: 0;\n outline: rgba(214, 214, 214, 0.83) solid 1px;\n box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15);\n\n overflow: visible;\n scrollbar-gutter: stable;\n -ms-overflow-style: none;\n}\n\ndialog:not([open]) {\n display: none;\n}\n\ndialog.agent-dialog {\n padding: 0;\n border-radius: 5px;\n\n background: var(--canvas-overlay-background) !important;\n border: solid 1px var(--border) !important;\n box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15);\n\n overflow: auto;\n -ms-overflow-style: none;\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n}\n\n/* General buttons */\n\n.sidepanel__action {\n z-index: 201;\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-evenly;\n align-items: flex-end;\n background-color: white;\n\n border-radius: 5px 5px 0 0;\n border-top: 1px solid #b4b4b4;\n box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);\n}\n\n.action__btn:nth-child(2) {\n background-color: var(--object-color);\n color: white;\n}\n\n.action__btn {\n width: 100px;\n margin: 10px;\n\n padding: 4px 8px;\n border-radius: 5px;\n\n border: 1px solid #c9d0e6;\n\n font-size: 12px;\n font-weight: 400;\n font-family: Poppins;\n\n color: black;\n}\n\n/* sortable Table */\n\ntable.sortable {\n table-layout: fixed;\n width: auto;\n border-collapse: collapse;\n border-spacing: 0;\n border: none;\n font-family: Poppins;\n margin-bottom: 20px;\n}\n\ntable.sortable td,\ntable.sortable th {\n padding: 0.125em 0.25em;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20px;\n}\n\ntable.sortable th {\n position: relative;\n}\n\ntable.sortable th.no-sort {\n padding-top: 0.35em;\n}\n\ntable.sortable .sortable__header {\n padding: 2px;\n margin: 0px;\n font-size: 100%;\n background: transparent;\n border: none;\n display: inline;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n text-align: left;\n outline: none;\n cursor: pointer;\n font-family: Poppins;\n}\n\ntable.sortable th button span {\n position: absolute;\n right: 4px;\n}\n\ntable.sortable th[aria-sort='descending'] span::after {\n content: '▲';\n color: currentcolor;\n font-size: 100%;\n top: 0;\n}\n\ntable.sortable th[aria-sort='ascending'] span::after {\n content: '▼';\n color: currentcolor;\n font-size: 100%;\n top: 0;\n}\n\ntable.show-unsorted-icon th:not([aria-sort]) button span::after {\n content: '♢';\n color: currentcolor;\n font-size: 100%;\n position: relative;\n top: -3px;\n left: -4px;\n}\n\ntable.sortable td.num {\n text-align: right;\n}\n\ntable.sortable th:first-child,\ntable.sortable td:first-child,\ntable.sortable th:last-child,\ntable.sortable td:last-child {\n min-width: 24px;\n max-width: 24px;\n}\n\ntable.sortable th:nth-child(2),\ntable.sortable td:nth-child(2) {\n min-width: 15ch;\n max-width: 15ch;\n}\n\ntable.sortable th:nth-child(3),\ntable.sortable td:nth-child(3) {\n min-width: 20ch;\n max-width: 20ch;\n}\n\ntable.sortable th:nth-child(4),\ntable.sortable td:nth-child(4) {\n min-width: 30ch;\n max-width: 30ch;\n}\n\ntable.sortable tbody tr:nth-child(odd) {\n background-color: #f4f4f4;\n}\n\n/* Focus and hover styling */\n\ntable.sortable .sortable__header:focus,\ntable.sortable .sortable__header:hover {\n background-color: #f4f4f4;\n}\n\ntable.sortable th:not([aria-sort]) button:focus span::after,\ntable.sortable th:not([aria-sort]) button:hover span::after {\n content: '▲';\n color: currentcolor;\n font-size: 100%;\n top: 0;\n}\n\n.toggleswitch {\n position: relative;\n display: inline-block;\n width: 30px;\n height: 16px;\n margin-top: 2px;\n}\n\n/* Hide default HTML checkbox */\n.toggleswitch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The toggleslider */\n.toggleslider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 200ms;\n transition: 200ms;\n}\n\n.toggleslider:before {\n position: absolute;\n content: '';\n height: 12px;\n width: 12px;\n left: 2px;\n bottom: 2px;\n background-color: white;\n -webkit-transition: 200ms;\n transition: 200ms;\n}\n\ninput:checked + .toggleslider {\n background-color: #dc4848;\n}\n\ninput:focus + .toggleslider {\n box-shadow: 0 0 1px #dc4848;\n}\n\ninput:checked + .toggleslider:before {\n -webkit-transform: translateX(14px);\n -ms-transform: translateX(14px);\n transform: translateX(14px);\n}\n\n/* Rounded togglesliders */\n.toggleslider.round {\n border-radius: 34px;\n}\n\n.toggleslider.round:before {\n border-radius: 50%;\n}\n\n/* tooltip */\n\n.label__tooltip {\n position: relative;\n}\n\n.label__tooltip::before:hover {\n opacity: 0;\n}\n\n.label__tooltip::after {\n content: attr(data-tooltip);\n position: absolute;\n opacity: 0;\n z-index: -1;\n width: 400px;\n left: -25px;\n cursor: default;\n}\n\n.label__tooltip::before {\n content: attr(data-tooltip);\n\n position: absolute;\n padding: 7px 10px;\n right: calc(100% + 20px);\n z-index: 200;\n width: 270px;\n\n white-space: normal;\n overflow: initial;\n font-weight: 300;\n font-size: 10px;\n text-transform: initial;\n text-align: justify;\n\n pointer-events: none;\n\n opacity: 0;\n\n background: rgba(244, 244, 244, 0.55);\n border-radius: 10px;\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n border: 1px solid rgba(203, 203, 203, 0.83);\n}\n\n.label__tooltip:hover::before {\n opacity: 1;\n pointer-events: auto;\n transition-duration: 100ms;\n}\n\n/* executed by from status */\n\n.adder__executionStatus {\n display: flex;\n}\n\n.executionstatus__container {\n margin: 10px 10px 5px 10px;\n}\n\n.property__status__element--button {\n display: block;\n position: relative;\n overflow: hidden;\n padding: 0%;\n\n --backgroundcolor: white;\n background-color: white;\n}\n\n.executionstatus__title {\n text-align: left;\n padding-left: 10px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-transform: capitalize;\n}\n\n.executionstatus__content {\n text-align: left;\n padding-left: 10px;\n font-weight: 200;\n text-transform: capitalize;\n}\n\n.executionstatus__content > b {\n font-weight: 400;\n}\n\n.property__status__element--button--textcontainer--inside {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n background-color: var(--backgroundcolor);\n}\n\n.property__executed__status--display__agent > button,\n.property__executed__status--display__stix > input {\n display: block;\n}\n\n.property__executed__status--display__agent > input,\n.property__executed__status--display__stix > button {\n display: none;\n}\n\n.status__label {\n display: flex;\n width: 100%;\n}\n\n.status__label > .label__tooltip,\n.status__label > .property--right {\n flex: 1;\n}\n\n.status__label input:checked + .toggleslider {\n background-color: #369adc;\n}\n\n.status__label .toggleswitch {\n margin: 0px;\n transform: scale(0.8);\n}\n\n/* disanle properties */\n\n.property--disable input,\n.property--disable .label__adder,\n.property--disable .toggleswitch {\n pointer-events: none;\n}\n`,""]);const v=p},9362:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(2532),n.b),u=new URL(n(9800),n.b),l=new URL(n(6807),n.b),d=a()(r()),p=c()(h),f=c()(u),m=c()(l);d.push([t.id,`.signatureContainer {\n margin: 5px;\n padding: 5px;\n\n width: calc(100% - 22px);\n\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n\n background: var(--color-fill);\n border-radius: 10px;\n border: 1px solid var(--color-stroke);\n\n cursor: pointer;\n}\n\n.signatureContainer .signatureContainer__title {\n font-size: 13px;\n color: var(--color);\n}\n\n.signatureContainer .signatureContainer__indicator {\n width: 30px;\n height: 30px;\n\n -webkit-mask: var(--svg);\n mask: var(--svg);\n background-color: var(--color-stroke);\n\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n -webkit-mask-position: center;\n\n mask-repeat: no-repeat;\n mask-size: contain;\n mask-position: center;\n}\n\n.signatureContainer.indicator--passed {\n --color-fill: rgba(160, 242, 160, 0.244);\n --color-stroke: rgb(62, 131, 62);\n --svg: url(${p});\n}\n\n.signatureContainer.indicator--failed {\n --color-fill: rgb(255, 250, 196, 0.244);\n --color-stroke: rgb(206, 206, 70);\n --svg: url(${f});\n}\n\n.signatureContainer.indicator--notimplemented {\n --color-fill: rgb(255, 250, 196, 0.244);\n --color-stroke: rgb(144, 144, 57);\n --svg: url(${f});\n}\n\n.signatureContainer.indicator--incorrect {\n --color-fill: rgb(255, 215, 215, 0.244);\n --color-stroke: rgb(177, 72, 72);\n --svg: url(${m});\n}\n`,""]);const y=d},1281:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(9819),n.b),u=new URL(n(6234),n.b),l=new URL(n(765),n.b),d=a()(r()),p=c()(h),f=c()(u),m=c()(l);d.push([t.id,`#app-logo {\n height: calc(100% - 4px);\n width: 28px;\n background-image: url(${p});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n margin: 2px;\n}\n\n#header-tab-container {\n border-left: 1px solid var(--header-border);\n display: flex;\n flex-direction: row;\n}\n\n#header-new-tab-button {\n margin: 5px;\n height: calc(100% - 10px);\n width: 20px;\n background-image: url(${f});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n transition-duration: 100ms;\n}\n\n#header-new-tab-button:hover {\n background-color: var(--header-button-background);\n border-radius: 2px;\n transform: scale(1.1);\n}\n\n#header-new-tab-button:active {\n transform: scale(0.9);\n}\n\n.header-tab-entry {\n border-right: 1px solid var(--header-border);\n color: var(--header-text);\n height: calc(100%);\n width: 120px;\n padding: 0 5px;\n vertical-align: middle;\n\n font-family: Poppins;\n font-weight: 300;\n font-size: 12px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n position: relative;\n\n display: flex;\n align-items: center;\n}\n\n.header-tab-entry-title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.header-tab-entry-remove-button {\n height: 20px;\n width: 20px;\n position: absolute;\n top: 5px;\n right: 5px;\n z-index: 10;\n\n background-image: url(${m});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n\n display: none;\n}\n\n.tab-open:hover > .header-tab-entry-remove-button {\n display: block;\n background-color: var(--header-background);\n box-shadow: -10px 0px 10px 2px var(--header-background);\n}\n\n.header-tab-entry-remove-button:hover {\n background-color: var(--header-button-background) !important;\n border-radius: 2px;\n}\n\n.tab-open {\n background-color: var(--header-background);\n border-bottom: 1px solid var(--header-background);\n z-index: 10;\n}\n`,""]);const y=d},2089:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(200),n.b),u=new URL(n(6397),n.b),l=new URL(n(7996),n.b),d=new URL(n(330),n.b),p=a()(r()),f=c()(h),m=c()(u),y=c()(l),g=c()(d);p.push([t.id,`.tlp-icon {\n height: 20px;\n width: 20px;\n background-color: var(--header-button-background);\n margin-right: 5px;\n border-radius: 3px;\n}\n\n.tlp-red {\n background: url(${f});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.tlp-amber-strict {\n background: url(${m});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.tlp-amber {\n background: url(${m});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.tlp-green {\n background: url(${y});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.tlp-clear {\n background: url(${g});\n background-repeat: no-repeat !important;\n background-size: contain !important;\n background-position: center !important;\n}\n\n.tag {\n margin-right: 5px;\n display: flex;\n align-items: center;\n padding: 1px 4px;\n border-radius: 4px;\n font-size: 12px;\n text-align: center;\n vertical-align: middle;\n font-weight: 700;\n}\n\n.tlp-red-tag {\n border: 1px solid #ff2b2b;\n color: #ff2b2b;\n}\n\n.tlp-amber-tag {\n border: 1px solid #ffc000;\n color: #ffc000;\n}\n\n.tlp-amber-strict-tag {\n border: 1px solid #ffc000;\n color: #ffc000;\n}\n\n.tlp-green-tag {\n border: 1px solid #33f000;\n color: #33ff00;\n}\n\n.tlp-clear-tag {\n border: 1px solid white;\n color: white;\n}\n\n.revoked-tag {\n color: #dc4848;\n border: 1px solid #dc4848;\n}\n\n.cacao-spec-version {\n --color: rgb(218 109 233);\n color: var(--color);\n border: 1px solid var(--color);\n}\n`,""]);const v=p},7954:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".djs-palette-entries .group[data-group='tools'] {\n padding-bottom: 5px;\n position: absolute;\n top: 0px;\n left: 60px;\n z-index: -1;\n\n display: flex;\n flex-direction: column;\n\n background: rgba(244, 244, 244, 0.55);\n border-radius: 15px;\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5.1px);\n -webkit-backdrop-filter: blur(5.1px);\n border: 1px solid rgba(214, 214, 214, 0.83);\n\n transition: 300ms ease;\n}\n\n.djs-palette.palette--expanded .group[data-group='tools'] {\n left: 170px;\n}\n\n.toolsentry {\n border-radius: 9px !important;\n position: relative;\n height: 30px !important;\n width: 30px !important;\n margin: 5px 5px 0 5px;\n}\n\n.toolsentry::before {\n font-size: 20px;\n height: 30px !important;\n width: 30px !important;\n position: absolute;\n top: 0;\n left: 0;\n color: black;\n\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.djs-lasso-overlay {\n fill: var(--canvas-select-fill);\n stroke: var(--canvas-select-stroke);\n fill-opacity: 0.5;\n rx: 10px;\n ry: 10px;\n stroke-width: 2px;\n shape-rendering: geometricPrecision;\n pointer-events: none;\n}\n",""]);const s=a},2722:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o),s=n(1667),c=n.n(s),h=new URL(n(4695),n.b),u=new URL(n(9687),n.b),l=a()(r()),d=c()(h),p=c()(u);l.push([t.id,`.validator-container {\n position: fixed;\n bottom: 5px;\n left: 5px;\n padding: 5px;\n\n font-size: 12px;\n color: #000000;\n font-weight: 500;\n font-family: Poppins;\n letter-spacing: 0.5px;\n\n border: solid 1px rgb(185, 188, 197);\n\n border-radius: 5px;\n\n display: flex;\n justify-content: center;\n}\n\n.validator-icon {\n height: 15px;\n width: 15px;\n\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n}\n\n.validator-icon-correct {\n background-image: url(${d});\n}\n\n.validator-icon-error {\n background-image: url(${p});\n}\n\n.validator-correct {\n background: #dbffd6 !important;\n color: #278811 !important;\n}\n\n.validator-error {\n background: #ffcbc8 !important;\n color: #a50f0f !important;\n}\n\n.validator-message {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-left: 10px;\n}\n\n.validator-container__title {\n font-size: 20px;\n margin-top: 0px;\n margin-bottom: 10px;\n}\n\n.validator-dialog-error-container {\n width: calc(100% - 20px);\n margin: 0 0 20px 0;\n padding: 5px 10px;\n background-color: rgb(231, 231, 231);\n border-radius: 5px;\n}\n\n.validator-dialog-error-title {\n font-size: 15px;\n font-weight: 500;\n margin: 0;\n}\n\n.validator-dialog-error-path {\n font-size: 12px;\n font-weight: 500;\n color: var(--select);\n margin: 0;\n}\n\n.validator-dialog-error-message {\n font-size: 12px;\n font-weight: 300;\n}\n`,""]);const f=l},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},1667:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},8081:t=>{"use strict";t.exports=function(t){return t[1]}},5251:(t,e,n)=>{"use strict";e.utils=n(1278),e.Cipher=n(5756),e.DES=n(778),e.CBC=n(9051),e.EDE=n(651)},9051:(t,e,n)=>{"use strict";var i=n(9746),r=n(5717),o={};function a(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";var i=n(9746);function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(r,n);return e+=this._buffer(t,e),r},r.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},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e{"use strict";var i=n(9746),r=n(5717),o=n(1278),a=n(5756);function s(){this.tmp=new Array(2),this.keys=null}function c(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}r(c,a),t.exports=c,c.create=function(t){return new c(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),r=o.readUInt32BE(e,4);o.pc1(n,r,t.tmp,0),n=t.tmp[0],r=t.tmp[1];for(var a=0;a>>1];n=o.r28shl(n,s),r=o.r28shl(r,s),o.pc2(n,r,t.keys,a)}},c.prototype._update=function(t,e,n,i){var r=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],"encrypt"===this.type?this._encrypt(r,a,s,r.tmp,0):this._decrypt(r,a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],o.writeUInt32BE(n,a,i),o.writeUInt32BE(n,s,i+4)},c.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var n=t.length-e,i=e;i>>0,a=d}o.rip(s,a,i,r)},c.prototype._decrypt=function(t,e,n,i,r){for(var a=n,s=e,c=t.keys.length-2;c>=0;c-=2){var h=t.keys[c],u=t.keys[c+1];o.expand(a,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];var l=o.substitute(h,u),d=a;a=(s^o.permute(l))>>>0,s=d}o.rip(a,s,i,r)}},651:(t,e,n)=>{"use strict";var i=n(9746),r=n(5717),o=n(5756),a=n(778);function s(t,e){i.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:r}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:n})]}function c(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}r(c,o),t.exports=c,c.create=function(t){return new c(t)},c.prototype._update=function(t,e,n,i){var r=this._edeState;r.ciphers[0]._update(t,e,n,i),r.ciphers[1]._update(n,i,n,i),r.ciphers[2]._update(n,i,n,i)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},1278:(t,e)=>{"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,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,i){for(var r=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=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[i+0]=r>>>0,n[i+1]=o>>>0},e.rip=function(t,e,n,i){for(var r=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)r<<=1,r|=e>>>s+a&1,r<<=1,r|=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[i+0]=r>>>0,n[i+1]=o>>>0},e.pc1=function(t,e,n,i){for(var r=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+a&1}for(s=0;s<=24;s+=8)r<<=1,r|=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[i+0]=r>>>0,n[i+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,r){for(var o=0,a=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;i[r+0]=o>>>0,i[r+1]=a>>>0},e.expand=function(t,e,n){var i=0,r=0;i=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=t>>>o&63;for(o=11;o>=3;o-=4)r|=t>>>o&63,r<<=6;r|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=r>>>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 r=[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>>r[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length{var i=n(8764).Buffer,r=n(3590),o=n(9799),a=n(3249),s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new i(o[t].prime,"hex"),n=new i(o[t].gen,"hex");return new a(e,n)},e.createDiffieHellman=e.DiffieHellman=function t(e,n,o,c){return i.isBuffer(n)||void 0===s[n]?t(e,"binary",n,o):(n=n||"binary",c=c||"binary",o=o||new i([2]),i.isBuffer(o)||(o=new i(o,c)),"number"==typeof e?new a(r(e,o),o,!0):(i.isBuffer(e)||(e=new i(e,n)),new a(e,o,!0)))}},3249:(t,e,n)=>{var i=n(8764).Buffer,r=n(3620),o=new(n(3047)),a=new r(24),s=new r(11),c=new r(10),h=new r(3),u=new r(7),l=n(3590),d=n(1798);function p(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function f(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}t.exports=y;var m={};function y(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=p,this.setPrivateKey=f):this._primeCode=8}function g(t,e){var n=new i(t.toArray());return e?n.toString(e):n}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in m)return m[i];var r,d=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return d+=1,d+="02"===n||"05"===n?8:4,m[i]=d,d;switch(o.test(t.shrn(1))||(d+=2),n){case"02":t.mod(a).cmp(s)&&(d+=8);break;case"05":(r=t.mod(c)).cmp(h)&&r.cmp(u)&&(d+=8);break;default:d+=4}return m[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new i(e.toArray()),o=this.getPrime();if(n.length{var i=n(1798);t.exports=v,v.simpleSieve=y,v.fermatTest=g;var r=n(3620),o=new r(24),a=new(n(3047)),s=new r(1),c=new r(2),h=new r(5),u=(new r(16),new r(8),new r(10)),l=new r(3),d=(new r(7),new r(11)),p=new r(4),f=(new r(12),null);function m(){if(null!==f)return f;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),r=0;rt;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(h))for(;n.mod(u).cmp(l);)n.iadd(p)}else for(;n.mod(o).cmp(d);)n.iadd(p);if(y(f=n.shrn(1))&&y(n)&&g(f)&&g(n)&&a.test(f)&&a.test(n))return n}}},3620:function(t,e,n){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(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&&void 0!==window.Buffer?window.Buffer:n(7748).Buffer}catch(t){}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 c(t,e,n){var i=s(t,n);return n-1>=e&&(i|=s(t,n-1)<<4),i}function h(t,e,n,i){for(var r=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return r}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),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r>>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 i=0;i=e;i-=2)r=c(t,e,i)<=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var o=t.length-n,a=o%i,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var h=1;h>>26,l=67108863&c,d=Math.min(h,e.length-1),p=Math.max(0,h-t.length+1);p<=d;p++){var f=h-p|0;u+=(a=(r=0|t.words[f])*(o=0|e.words[p])+l)/67108864|0,l=67108863&a}n.words[h]=0|l,c=0|u}return 0!==c?n.words[h]=0|c: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 r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?u[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=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 h=l[t],p=d[t];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);n=(f=f.idivn(p)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!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&&i(!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 i(void 0!==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 r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===e,h=new t(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),h[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 i=0;it.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){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,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,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=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,p=0|a[1],f=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],_=8191&b,w=b>>>13,x=0|a[4],M=8191&x,k=x>>>13,S=0|a[5],E=8191&S,A=S>>>13,T=0|a[6],C=8191&T,j=T>>>13,O=0|a[7],P=8191&O,I=O>>>13,$=0|a[8],R=8191&$,L=$>>>13,N=0|a[9],B=8191&N,D=N>>>13,F=0|s[0],U=8191&F,z=F>>>13,H=0|s[1],q=8191&H,V=H>>>13,K=0|s[2],Z=8191&K,W=K>>>13,G=0|s[3],J=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,tt=Y>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ct=8191&st,ht=st>>>13,ut=0|s[8],lt=8191&ut,dt=ut>>>13,pt=0|s[9],ft=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(h+(i=Math.imul(l,U))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(d,U)|0))<<13)|0;h=((o=Math.imul(d,z))+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(f,U),r=(r=Math.imul(f,z))+Math.imul(m,U)|0,o=Math.imul(m,z);var gt=(h+(i=i+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(d,q)|0))<<13)|0;h=((o=o+Math.imul(d,V)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,U),r=(r=Math.imul(g,z))+Math.imul(v,U)|0,o=Math.imul(v,z),i=i+Math.imul(f,q)|0,r=(r=r+Math.imul(f,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0;var vt=(h+(i=i+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,W)|0)+Math.imul(d,Z)|0))<<13)|0;h=((o=o+Math.imul(d,W)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(_,U),r=(r=Math.imul(_,z))+Math.imul(w,U)|0,o=Math.imul(w,z),i=i+Math.imul(g,q)|0,r=(r=r+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,i=i+Math.imul(f,Z)|0,r=(r=r+Math.imul(f,W)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,W)|0;var bt=(h+(i=i+Math.imul(l,J)|0)|0)+((8191&(r=(r=r+Math.imul(l,X)|0)+Math.imul(d,J)|0))<<13)|0;h=((o=o+Math.imul(d,X)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(M,U),r=(r=Math.imul(M,z))+Math.imul(k,U)|0,o=Math.imul(k,z),i=i+Math.imul(_,q)|0,r=(r=r+Math.imul(_,V)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,V)|0,i=i+Math.imul(g,Z)|0,r=(r=r+Math.imul(g,W)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,W)|0,i=i+Math.imul(f,J)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0;var _t=(h+(i=i+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;h=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(E,U),r=(r=Math.imul(E,z))+Math.imul(A,U)|0,o=Math.imul(A,z),i=i+Math.imul(M,q)|0,r=(r=r+Math.imul(M,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,i=i+Math.imul(_,Z)|0,r=(r=r+Math.imul(_,W)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,W)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,i=i+Math.imul(f,Q)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var wt=(h+(i=i+Math.imul(l,nt)|0)|0)+((8191&(r=(r=r+Math.imul(l,it)|0)+Math.imul(d,nt)|0))<<13)|0;h=((o=o+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(C,U),r=(r=Math.imul(C,z))+Math.imul(j,U)|0,o=Math.imul(j,z),i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,i=i+Math.imul(M,Z)|0,r=(r=r+Math.imul(M,W)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,W)|0,i=i+Math.imul(_,J)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,i=i+Math.imul(g,Q)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,i=i+Math.imul(f,nt)|0,r=(r=r+Math.imul(f,it)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,it)|0;var xt=(h+(i=i+Math.imul(l,ot)|0)|0)+((8191&(r=(r=r+Math.imul(l,at)|0)+Math.imul(d,ot)|0))<<13)|0;h=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(P,U),r=(r=Math.imul(P,z))+Math.imul(I,U)|0,o=Math.imul(I,z),i=i+Math.imul(C,q)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,V)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,W)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,W)|0,i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,r=(r=r+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,it)|0,i=i+Math.imul(f,ot)|0,r=(r=r+Math.imul(f,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(h+(i=i+Math.imul(l,ct)|0)|0)+((8191&(r=(r=r+Math.imul(l,ht)|0)+Math.imul(d,ct)|0))<<13)|0;h=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,U),r=(r=Math.imul(R,z))+Math.imul(L,U)|0,o=Math.imul(L,z),i=i+Math.imul(P,q)|0,r=(r=r+Math.imul(P,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,i=i+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,W)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,W)|0,i=i+Math.imul(E,J)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,i=i+Math.imul(M,Q)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,nt)|0,r=(r=r+Math.imul(_,it)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(g,ot)|0,r=(r=r+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,i=i+Math.imul(f,ct)|0,r=(r=r+Math.imul(f,ht)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ht)|0;var kt=(h+(i=i+Math.imul(l,lt)|0)|0)+((8191&(r=(r=r+Math.imul(l,dt)|0)+Math.imul(d,lt)|0))<<13)|0;h=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(B,U),r=(r=Math.imul(B,z))+Math.imul(D,U)|0,o=Math.imul(D,z),i=i+Math.imul(R,q)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,V)|0,i=i+Math.imul(P,Z)|0,r=(r=r+Math.imul(P,W)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,X)|0,i=i+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,it)|0,i=i+Math.imul(_,ot)|0,r=(r=r+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,ht)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ht)|0,i=i+Math.imul(f,lt)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,dt)|0;var St=(h+(i=i+Math.imul(l,ft)|0)|0)+((8191&(r=(r=r+Math.imul(l,mt)|0)+Math.imul(d,ft)|0))<<13)|0;h=((o=o+Math.imul(d,mt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(B,q),r=(r=Math.imul(B,V))+Math.imul(D,q)|0,o=Math.imul(D,V),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,W)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,W)|0,i=i+Math.imul(P,J)|0,r=(r=r+Math.imul(P,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,i=i+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,it)|0,i=i+Math.imul(M,ot)|0,r=(r=r+Math.imul(M,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,i=i+Math.imul(_,ct)|0,r=(r=r+Math.imul(_,ht)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ht)|0,i=i+Math.imul(g,lt)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,dt)|0;var Et=(h+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(B,Z),r=(r=Math.imul(B,W))+Math.imul(D,Z)|0,o=Math.imul(D,W),i=i+Math.imul(R,J)|0,r=(r=r+Math.imul(R,X)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,X)|0,i=i+Math.imul(P,Q)|0,r=(r=r+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(E,ot)|0,r=(r=r+Math.imul(E,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,ht)|0)+Math.imul(k,ct)|0,o=o+Math.imul(k,ht)|0,i=i+Math.imul(_,lt)|0,r=(r=r+Math.imul(_,dt)|0)+Math.imul(w,lt)|0,o=o+Math.imul(w,dt)|0;var At=(h+(i=i+Math.imul(g,ft)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(v,ft)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(B,J),r=(r=Math.imul(B,X))+Math.imul(D,J)|0,o=Math.imul(D,X),i=i+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,i=i+Math.imul(P,nt)|0,r=(r=r+Math.imul(P,it)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(C,ot)|0,r=(r=r+Math.imul(C,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,i=i+Math.imul(E,ct)|0,r=(r=r+Math.imul(E,ht)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ht)|0,i=i+Math.imul(M,lt)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,dt)|0;var Tt=(h+(i=i+Math.imul(_,ft)|0)|0)+((8191&(r=(r=r+Math.imul(_,mt)|0)+Math.imul(w,ft)|0))<<13)|0;h=((o=o+Math.imul(w,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(B,Q),r=(r=Math.imul(B,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),i=i+Math.imul(R,nt)|0,r=(r=r+Math.imul(R,it)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,it)|0,i=i+Math.imul(P,ot)|0,r=(r=r+Math.imul(P,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,ht)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ht)|0,i=i+Math.imul(E,lt)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(A,lt)|0,o=o+Math.imul(A,dt)|0;var Ct=(h+(i=i+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(k,ft)|0))<<13)|0;h=((o=o+Math.imul(k,mt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,nt),r=(r=Math.imul(B,it))+Math.imul(D,nt)|0,o=Math.imul(D,it),i=i+Math.imul(R,ot)|0,r=(r=r+Math.imul(R,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,i=i+Math.imul(P,ct)|0,r=(r=r+Math.imul(P,ht)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ht)|0,i=i+Math.imul(C,lt)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,dt)|0;var jt=(h+(i=i+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(A,ft)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,i=Math.imul(B,ot),r=(r=Math.imul(B,at))+Math.imul(D,ot)|0,o=Math.imul(D,at),i=i+Math.imul(R,ct)|0,r=(r=r+Math.imul(R,ht)|0)+Math.imul(L,ct)|0,o=o+Math.imul(L,ht)|0,i=i+Math.imul(P,lt)|0,r=(r=r+Math.imul(P,dt)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,dt)|0;var Ot=(h+(i=i+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(j,ft)|0))<<13)|0;h=((o=o+Math.imul(j,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(B,ct),r=(r=Math.imul(B,ht))+Math.imul(D,ct)|0,o=Math.imul(D,ht),i=i+Math.imul(R,lt)|0,r=(r=r+Math.imul(R,dt)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,dt)|0;var Pt=(h+(i=i+Math.imul(P,ft)|0)|0)+((8191&(r=(r=r+Math.imul(P,mt)|0)+Math.imul(I,ft)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(B,lt),r=(r=Math.imul(B,dt))+Math.imul(D,lt)|0,o=Math.imul(D,dt);var It=(h+(i=i+Math.imul(R,ft)|0)|0)+((8191&(r=(r=r+Math.imul(R,mt)|0)+Math.imul(L,ft)|0))<<13)|0;h=((o=o+Math.imul(L,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863;var $t=(h+(i=Math.imul(B,ft))|0)+((8191&(r=(r=Math.imul(B,mt))+Math.imul(D,ft)|0))<<13)|0;return h=((o=Math.imul(D,mt))+(r>>>13)|0)+($t>>>26)|0,$t&=67108863,c[0]=yt,c[1]=gt,c[2]=vt,c[3]=bt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=Mt,c[8]=kt,c[9]=St,c[10]=Et,c[11]=At,c[12]=Tt,c[13]=Ct,c[14]=jt,c[15]=Ot,c[16]=Pt,c[17]=It,c[18]=$t,0!==h&&(c[19]=h,n.length++),n};function m(t,e,n){return(new y).mulp(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(f=p),o.prototype.mulTo=function(t,e){var n,i=this.length+t.length;return n=10===this.length&&10===t.length?f(this,t,e):i<63?p(this,t,e):i<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n.strip()}(this,t,e):m(this,t,e),n},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,i=0;i>=1;return i},y.prototype.permute=function(t,e,n,i,r,o){for(var a=0;a>>=1)r++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=r/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>>r}return e}(t);if(0===e.length)return new o(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(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!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=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,h=0;h