@hms-networks/kolibri-js-core
Version:
Kolibri Core library containing common kolibri models and utils
2 lines • 407 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KolibriJsCore=t():e.KolibriJsCore=t()}(global,(()=>(()=>{var e={9593:(e,t,r)=>{"use strict";const o=r(4411),n=Symbol("max"),i=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),p=Symbol("noDisposeOnSet"),f=Symbol("lruList"),d=Symbol("cache"),l=Symbol("updateAgeOnGet"),h=()=>1,R=(e,t,r)=>{const o=e[d].get(t);if(o){const t=o.value;if(y(e,t)){if(m(e,o),!e[a])return}else r&&(e[l]&&(o.value.now=Date.now()),e[f].unshiftNode(o));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},g=e=>{if(e[i]>e[n])for(let t=e[f].tail;e[i]>e[n]&&null!==t;){const r=t.prev;m(e,t),t=r}},m=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[i]-=r.length,e[d].delete(r.key),e[f].removeNode(t)}};class _{constructor(e,t,r,o,n){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=n||0}}const v=(e,t,r,o)=>{let n=r.value;y(e,n)&&(m(e,r),e[a]||(n=void 0)),n&&t.call(o,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||h;if(this[s]="function"!=typeof t?h:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[p]=e.noDisposeOnSet||!1,this[l]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,g(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[s]&&(this[s]=e,this[i]=0,this[f].forEach((e=>{e.length=this[s](e.value,e.key),this[i]+=e.length}))),g(this)}get lengthCalculator(){return this[s]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){const o=r.prev;v(this,e,r,t),r=o}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){const o=r.next;v(this,e,r,t),r=o}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((e=>this[c](e.key,e.value))),this[d]=new Map,this[f]=new o,this[i]=0}dump(){return this[f].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const o=r?Date.now():0,a=this[s](t,e);if(this[d].has(e)){if(a>this[n])return m(this,this[d].get(e)),!1;const s=this[d].get(e).value;return this[c]&&(this[p]||this[c](e,s.value)),s.now=o,s.maxAge=r,s.value=t,this[i]+=a-s.length,s.length=a,this.get(e),g(this),!0}const l=new _(e,t,a,o,r);return l.length>this[n]?(this[c]&&this[c](e,t),!1):(this[i]+=l.length,this[f].unshift(l),this[d].set(e,this[f].head),g(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!y(this,t)}get(e){return R(this,e,!0)}peek(e){return R(this,e,!1)}pop(){const e=this[f].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const o=e[r],n=o.e||0;if(0===n)this.set(o.k,o.v);else{const e=n-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[d].forEach(((e,t)=>R(this,t,!1)))}}},7129:(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var o,i,s=[];for(i in"string"!=typeof t&&(t="?"),e)if(r.call(e,i)){if((o=e[i])||null!=o&&!isNaN(o)||(o=""),i=n(i),o=n(o),null===i||null===o)continue;s.push(i+"="+o)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var i=o(t[1]),s=o(t[2]);null===i||null===s||i in n||(n[i]=s)}return n}},7418:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},2257:(e,t,r)=>{const o=Symbol("SemVer ANY");class n{static get ANY(){return o}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===o?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=o}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===o||e===o)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=u(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=u(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c}}e.exports=n;const i=r(2893),{re:s,t:a}=r(5765),u=r(7539),c=r(4225),p=r(6376),f=r(6902)},6902:(e,t,r)=>{class o{constructor(e,t){if(t=i(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&R(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const o=this.options.loose,i=o?c[p.HYPHENRANGELOOSE]:c[p.HYPHENRANGE];e=e.replace(i,P(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[p.COMPARATORTRIM],f),a("comparator trim",e);let u=(e=(e=(e=e.replace(c[p.TILDETRIM],d)).replace(c[p.CARETTRIM],l)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));o&&(u=u.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(c[p.COMPARATORLOOSE]))))),a("range list",u);const R=new Map,y=u.map((e=>new s(e,this.options)));for(const e of y){if(h(e))return[e];R.set(e.value,e)}R.size>1&&R.has("")&&R.delete("");const m=[...R.values()];return n.set(t,m),m}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}e.exports=o;const n=new(r(9593))({max:1e3}),i=r(2893),s=r(2257),a=r(4225),u=r(6376),{re:c,t:p,comparatorTrimReplace:f,tildeTrimReplace:d,caretTrimReplace:l}=r(5765),h=e=>"<0.0.0-0"===e.value,R=e=>""===e.value,y=(e,t)=>{let r=!0;const o=e.slice();let n=o.pop();for(;r&&o.length;)r=o.every((e=>n.intersects(e,t))),n=o.pop();return r},g=(e,t)=>(a("comp",e,t),e=b(e,t),a("caret",e),e=_(e,t),a("tildes",e),e=w(e,t),a("xrange",e),e=E(e,t),a("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const r=t.loose?c[p.TILDELOOSE]:c[p.TILDE];return e.replace(r,((t,r,o,n,i)=>{let s;return a("tilde",e,t,r,o,n,i),m(r)?s="":m(o)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:m(n)?s=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${o}.${n}-${i} <${r}.${+o+1}.0-0`):s=`>=${r}.${o}.${n} <${r}.${+o+1}.0-0`,a("tilde return",s),s}))},b=(e,t)=>e.trim().split(/\s+/).map((e=>O(e,t))).join(" "),O=(e,t)=>{a("caret",e,t);const r=t.loose?c[p.CARETLOOSE]:c[p.CARET],o=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,s)=>{let u;return a("caret",e,t,r,n,i,s),m(r)?u="":m(n)?u=`>=${r}.0.0${o} <${+r+1}.0.0-0`:m(i)?u="0"===r?`>=${r}.${n}.0${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${o} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),u="0"===r?"0"===n?`>=${r}.${n}.${i}-${s} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),u="0"===r?"0"===n?`>=${r}.${n}.${i}${o} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i} <${+r+1}.0.0-0`),a("caret return",u),u}))},w=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const r=t.loose?c[p.XRANGELOOSE]:c[p.XRANGE];return e.replace(r,((r,o,n,i,s,u)=>{a("xRange",e,r,o,n,i,s,u);const c=m(n),p=c||m(i),f=p||m(s),d=f;return"="===o&&d&&(o=""),u=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(p&&(i=0),s=0,">"===o?(o=">=",p?(n=+n+1,i=0,s=0):(i=+i+1,s=0)):"<="===o&&(o="<",p?n=+n+1:i=+i+1),"<"===o&&(u="-0"),r=`${o+n}.${i}.${s}${u}`):p?r=`>=${n}.0.0${u} <${+n+1}.0.0-0`:f&&(r=`>=${n}.${i}.0${u} <${n}.${+i+1}.0-0`),a("xRange return",r),r}))},E=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[p.STAR],"")),I=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),P=e=>(t,r,o,n,i,s,a,u,c,p,f,d,l)=>`${r=m(o)?"":m(n)?`>=${o}.0.0${e?"-0":""}`:m(i)?`>=${o}.${n}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=m(c)?"":m(p)?`<${+c+1}.0.0-0`:m(f)?`<${c}.${+p+1}.0-0`:d?`<=${c}.${p}.${f}-${d}`:e?`<${c}.${p}.${+f+1}-0`:`<=${u}`}`.trim(),N=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}},6376:(e,t,r)=>{const o=r(4225),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(3295),{re:s,t:a}=r(5765),u=r(2893),{compareIdentifiers:c}=r(6742);class p{constructor(e,t){if(t=u(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);o("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(o("SemVer.compare",this.version,this.options,e),!(e instanceof p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(o("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(o("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=p},3507:(e,t,r)=>{const o=r(3959);e.exports=(e,t)=>{const r=o(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:(e,t,r)=>{const o=r(8718),n=r(1194),i=r(1312),s=r(5903),a=r(1544),u=r(2056);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return o(e,r,c);case"!=":return n(e,r,c);case">":return i(e,r,c);case">=":return s(e,r,c);case"<":return a(e,r,c);case"<=":return u(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},9038:(e,t,r)=>{const o=r(6376),n=r(3959),{re:i,t:s}=r(5765);e.exports=(e,t)=>{if(e instanceof o)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[s.COERCERTL].lastIndex=-1}else r=e.match(i[s.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},8880:(e,t,r)=>{const o=r(6376);e.exports=(e,t,r)=>{const n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i)}},7880:(e,t,r)=>{const o=r(6269);e.exports=(e,t)=>o(e,t,!0)},6269:(e,t,r)=>{const o=r(6376);e.exports=(e,t,r)=>new o(e,r).compare(new o(t,r))},2378:(e,t,r)=>{const o=r(3959),n=r(8718);e.exports=(e,t)=>{if(n(e,t))return null;{const r=o(e),n=o(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return s+e;return a}}},8718:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>0===o(e,t,r)},1312:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>o(e,t,r)>0},5903:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>o(e,t,r)>=0},253:(e,t,r)=>{const o=r(6376);e.exports=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new o(e instanceof o?e.version:e,r).inc(t,n).version}catch(e){return null}}},1544:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>o(e,t,r)<0},2056:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>o(e,t,r)<=0},8679:(e,t,r)=>{const o=r(6376);e.exports=(e,t)=>new o(e,t).major},7789:(e,t,r)=>{const o=r(6376);e.exports=(e,t)=>new o(e,t).minor},1194:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>0!==o(e,t,r)},3959:(e,t,r)=>{const{MAX_LENGTH:o}=r(3295),{re:n,t:i}=r(5765),s=r(6376),a=r(2893);e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>o)return null;if(!(t.loose?n[i.LOOSE]:n[i.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}},2358:(e,t,r)=>{const o=r(6376);e.exports=(e,t)=>new o(e,t).patch},7559:(e,t,r)=>{const o=r(3959);e.exports=(e,t)=>{const r=o(e,t);return r&&r.prerelease.length?r.prerelease:null}},9795:(e,t,r)=>{const o=r(6269);e.exports=(e,t,r)=>o(t,e,r)},3657:(e,t,r)=>{const o=r(8880);e.exports=(e,t)=>e.sort(((e,r)=>o(r,e,t)))},5712:(e,t,r)=>{const o=r(6902);e.exports=(e,t,r)=>{try{t=new o(t,r)}catch(e){return!1}return t.test(e)}},1100:(e,t,r)=>{const o=r(8880);e.exports=(e,t)=>e.sort(((e,r)=>o(e,r,t)))},6397:(e,t,r)=>{const o=r(3959);e.exports=(e,t)=>{const r=o(e,t);return r?r.version:null}},1249:(e,t,r)=>{const o=r(5765);e.exports={re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:r(3295).SEMVER_SPEC_VERSION,SemVer:r(6376),compareIdentifiers:r(6742).compareIdentifiers,rcompareIdentifiers:r(6742).rcompareIdentifiers,parse:r(3959),valid:r(6397),clean:r(3507),inc:r(253),diff:r(2378),major:r(8679),minor:r(7789),patch:r(2358),prerelease:r(7559),compare:r(6269),rcompare:r(9795),compareLoose:r(7880),compareBuild:r(8880),sort:r(1100),rsort:r(3657),gt:r(1312),lt:r(1544),eq:r(8718),neq:r(1194),gte:r(5903),lte:r(2056),cmp:r(7539),coerce:r(9038),Comparator:r(2257),Range:r(6902),satisfies:r(5712),toComparators:r(1042),maxSatisfying:r(5775),minSatisfying:r(1657),minVersion:r(5316),validRange:r(9042),outside:r(6826),gtr:r(7606),ltr:r(32),intersects:r(2937),simplifyRange:r(7908),subset:r(799)}},3295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},4225:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},6742:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const o=t.test(e),n=t.test(r);return o&&n&&(e=+e,r=+r),e===r?0:o&&!n?-1:n&&!o?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},2893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},5765:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:o}=r(3295),n=r(4225),i=(t=e.exports={}).re=[],s=t.src=[],a=t.t={};let u=0;const c=(e,t,r)=>{const o=u++;n(e,o,t),a[e]=o,s[o]=t,i[o]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),c("FULL",`^${s[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),c("LOOSE",`^${s[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),c("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),c("COERCERTL",s[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7606:(e,t,r)=>{const o=r(6826);e.exports=(e,t,r)=>o(e,t,">",r)},2937:(e,t,r)=>{const o=r(6902);e.exports=(e,t,r)=>(e=new o(e,r),t=new o(t,r),e.intersects(t))},32:(e,t,r)=>{const o=r(6826);e.exports=(e,t,r)=>o(e,t,"<",r)},5775:(e,t,r)=>{const o=r(6376),n=r(6902);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new o(i,r)))})),i}},1657:(e,t,r)=>{const o=r(6376),n=r(6902);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new o(i,r)))})),i}},5316:(e,t,r)=>{const o=r(6376),n=r(6902),i=r(1312);e.exports=(e,t)=>{e=new n(e,t);let r=new o("0.0.0");if(e.test(r))return r;if(r=new o("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let s=null;n.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||r&&!i(r,s)||(r=s)}return r&&e.test(r)?r:null}},6826:(e,t,r)=>{const o=r(6376),n=r(2257),{ANY:i}=n,s=r(6902),a=r(5712),u=r(1312),c=r(1544),p=r(2056),f=r(5903);e.exports=(e,t,r,d)=>{let l,h,R,y,g;switch(e=new o(e,d),t=new s(t,d),r){case">":l=u,h=p,R=c,y=">",g=">=";break;case"<":l=c,h=f,R=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const o=t.set[r];let s=null,a=null;if(o.forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,l(e.semver,s.semver,d)?s=e:R(e.semver,a.semver,d)&&(a=e)})),s.operator===y||s.operator===g)return!1;if((!a.operator||a.operator===y)&&h(e,a.semver))return!1;if(a.operator===g&&R(e,a.semver))return!1}return!0}},7908:(e,t,r)=>{const o=r(5712),n=r(6269);e.exports=(e,t,r)=>{const i=[];let s=null,a=null;const u=e.sort(((e,t)=>n(e,t,r)));for(const e of u)o(e,t,r)?(a=e,s||(s=e)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const p=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return p.length<f.length?p:t}},799:(e,t,r)=>{const o=r(6902),n=r(2257),{ANY:i}=n,s=r(5712),a=r(6269),u=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const o=new Set;let u,f,d,l,h,R,y;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?f=p(f,t,r):o.add(t.semver);if(o.size>1)return null;if(u&&f){if(d=a(u.semver,f.semver,r),d>0)return null;if(0===d&&(">="!==u.operator||"<="!==f.operator))return null}for(const e of o){if(u&&!s(e,String(u),r))return null;if(f&&!s(e,String(f),r))return null;for(const o of t)if(!s(e,String(o),r))return!1;return!0}let g=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,m=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===f.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,R=R||"<"===e.operator||"<="===e.operator,u)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(l=c(u,e,r),l===e&&l!==u)return!1}else if(">="===u.operator&&!s(u.semver,String(e),r))return!1;if(f)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(h=p(f,e,r),h===e&&h!==f)return!1}else if("<="===f.operator&&!s(f.semver,String(e),r))return!1;if(!e.operator&&(f||u)&&0!==d)return!1}return!(u&&R&&!f&&0!==d||f&&y&&!u&&0!==d||m||g)},c=(e,t,r)=>{if(!e)return t;const o=a(e.semver,t.semver,r);return o>0?e:o<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,r)=>{if(!e)return t;const o=a(e.semver,t.semver,r);return o<0?e:o>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new o(e,r),t=new o(t,r);let n=!1;e:for(const o of e.set){for(const e of t.set){const t=u(o,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},1042:(e,t,r)=>{const o=r(6902);e.exports=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},9042:(e,t,r)=>{const o=r(6902);e.exports=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}}},4564:(e,t,r)=>{"use strict";var o=r(7418),n=r(7129),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(e,t){return R(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function h(e){var t,r=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},o={},n=typeof(e=e||r);if("blob:"===e.protocol)o=new g(unescape(e.pathname),{});else if("string"===n)for(t in o=new g(e,{}),l)delete o[t];else if("object"===n){for(t in e)t in l||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function R(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function y(e,t){e=(e=f(e)).replace(s,""),t=t||{};var r,o=c.exec(e),n=o[1]?o[1].toLowerCase():"",i=!!o[2],a=!!o[3],u=0;return i?a?(r=o[2]+o[3]+o[4],u=o[2].length+o[3].length):(r=o[2]+o[4],u=o[2].length):a?(r=o[3]+o[4],u=o[3].length):r=o[4],"file:"===n?u>=2&&(r=r.slice(2)):R(n)?r=o[4]:n?i&&(r=r.slice(2)):u>=2&&R(t.protocol)&&(r=o[4]),{protocol:n,slashes:i||R(n),slashesCount:u,rest:r}}function g(e,t,r){if(e=(e=f(e)).replace(s,""),!(this instanceof g))return new g(e,t,r);var i,a,u,c,l,m,_=d.slice(),v=typeof t,b=this,O=0;for("object"!==v&&"string"!==v&&(r=t,t=null),r&&"function"!=typeof r&&(r=n.parse),i=!(a=y(e||"",t=h(t))).protocol&&!a.slashes,b.slashes=a.slashes||i&&t.slashes,b.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||p.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!R(b.protocol)))&&(_[3]=[/(.*)/,"pathname"]);O<_.length;O++)"function"!=typeof(c=_[O])?(u=c[0],m=c[1],u!=u?b[m]=e:"string"==typeof u?~(l="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof c[2]?(b[m]=e.slice(0,l),e=e.slice(l+c[2])):(b[m]=e.slice(l),e=e.slice(0,l))):(l=u.exec(e))&&(b[m]=l[1],e=e.slice(0,l.index)),b[m]=b[m]||i&&c[3]&&t[m]||"",c[4]&&(b[m]=b[m].toLowerCase())):e=c(e,b);r&&(b.query=r(b.query)),i&&t.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==t.pathname)&&(b.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=r.length,n=r[o-1],i=!1,s=0;o--;)"."===r[o]?r.splice(o,1):".."===r[o]?(r.splice(o,1),s++):s&&(0===o&&(i=!0),r.splice(o,1),s--);return i&&r.unshift(""),"."!==n&&".."!==n||r.push(""),r.join("/")}(b.pathname,t.pathname)),"/"!==b.pathname.charAt(0)&&R(b.protocol)&&(b.pathname="/"+b.pathname),o(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(~(l=b.auth.indexOf(":"))?(b.username=b.auth.slice(0,l),b.username=encodeURIComponent(decodeURIComponent(b.username)),b.password=b.auth.slice(l+1),b.password=encodeURIComponent(decodeURIComponent(b.password))):b.username=encodeURIComponent(decodeURIComponent(b.auth)),b.auth=b.password?b.username+":"+b.password:b.username),b.origin="file:"!==b.protocol&&R(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}g.prototype={set:function(e,t,r){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||n.parse)(t)),i[e]=t;break;case"port":i[e]=t,o(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,u.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!r;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";i[e]=t.charAt(0)!==s?s+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(i.username=t.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<d.length;c++){var p=d[c];p[4]&&(i[p[1]]=i[p[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&R(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=n.stringify);var t,r=this,o=r.host,i=r.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var s=i+(r.protocol&&r.slashes||R(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&R(r.protocol)&&!o&&"/"!==r.pathname&&(s+="@"),(":"===o[o.length-1]||u.test(r.hostname)&&!r.port)&&(o+=":"),s+=o+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(s+=r.hash),s}},g.extractProtocol=y,g.location=h,g.trimLeft=f,g.qs=n,e.exports=g},5061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var r=t.strictSeparator?s.test(e):i.test(e);return r&&t.strict?a(e):r};var o,n=(o=r(5571))&&o.__esModule?o:{default:o},i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),o=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?o<=366:o<=365}var n=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=n[1],s=n[2],a=n[3],u=s?"0".concat(s).slice(-2):s,c=a?"0".concat(a).slice(-2):a,p=new Date("".concat(i,"-").concat(u||"01","-").concat(c||"01"));return!s||!a||p.getUTCFullYear()===i&&p.getUTCMonth()+1===s&&p.getUTCDate()===a};e.exports=t.default,e.exports.default=t.default},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,o;(0,n.default)(e),"object"===i(t)?(r=t.min||0,o=t.max):(r=arguments[1]||0,o=arguments[2]);var s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-s.length;return a>=r&&(void 0===o||a<=o)};var o,n=(o=r(5571))&&o.__esModule?o:{default:o};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},1875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var o=n(r(5571));function n(e){return e&&e.__esModule?e:{default:e}}var i=(0,n(r(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},5090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return(0,n.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r)),t.test(e)};var o,n=(o=r(5571))&&o.__esModule?o:{default:o};e.exports=t.default,e.exports.default=t.default},5571:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default},9602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:(e,t,r)=>{"use strict";function o(e){var t=this;if(t instanceof o||(t=new o),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function n(e,t,r){var o=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function i(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,o){if(!(this instanceof a))return new a(e,t,r,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=o,o.Node=a,o.create=o,o.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},o.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},o.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},o.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},o.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},o.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},o.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},o.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,o=0;null!==r;o++)e.call(t,r.value,o,this),r=r.next},o.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,o=this.length-1;null!==r;o--)e.call(t,r.value,o,this),r=r.prev},o.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},o.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},o.prototype.map=function(e,t){t=t||this;for(var r=new o,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},o.prototype.mapReverse=function(e,t){t=t||this;for(var r=new o,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},o.prototype.reduce=function(e,t){var r,o=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,r=this.head.value}for(var n=0;null!==o;n++)r=e(r,o.value,n),o=o.next;return r},o.prototype.reduceReverse=function(e,t){var r,o=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==o;n--)r=e(r,o.value,n),o=o.prev;return r},o.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},o.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},o.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new o;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;for(;null!==i&&n<t;n++,i=i.next)r.push(i.value);return r},o.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new o;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},o.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;var s=[];for(o=0;i&&o<t;o++)s.push(i.value),i=this.removeNode(i);for(null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),o=0;o<r.length;o++)i=n(this,i,r[o]);return s},o.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var o=r.prev;r.prev=r.next,r.next=o}return this.head=t,this.tail=e,this};try{r(9602)(o)}catch(e){}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{BufferLengthBuilder:()=>Mh,DefaultKolibriResponse:()=>Le,HashBufferV10:()=>oR,HashBufferV20:()=>nR,INTERNAL_ERROR:()=>Jl,INVALID_PARAMS:()=>Zl,INVALID_REQUEST:()=>zl,IS_KOLIBRI_CLIENT:()=>Su,IS_KOLIBRI_PROJECT:()=>Yo,IS_KOLIBRI_USER_GROUP:()=>Xs,IS_UNSIGNED_16_BIT:()=>ve,IsKolibriClient:()=>ju,IsKolibriClientConstraint:()=>Cu,IsKolibriDate:()=>od,IsKolibriDateConstraint:()=>rd,IsKolibriNodePath:()=>er,IsKolibriNodePathConstraint:()=>Jt,IsKolibriNodeTriggerN:()=>Kr,IsKolibriNodeTriggerNConstraint:()=>Wr,IsKolibriNodeTriggerT:()=>hy,IsKolibriNodeTriggerTConstraint:()=>ly,IsKolibriProject:()=>Wo,IsKolibriProjectConstraint:()=>Xo,IsKolibriUpdateUrl:()=>eo,IsKolibriUpdateUrlConstraint:()=>Jr,IsKolibriUser:()=>Bt,IsKolibriUserConstraint:()=>Lt,IsKolibriUserGroup:()=>zs,IsKolibriUserGroupConstraint:()=>Ks,IsUnsigned16Bit:()=>we,IsUnsigned16BitConstraint:()=>Oe,KolibriError:()=>y,KolibriErrorResponse:()=>je,KolibriRequest:()=>Ge,KolibriRequestError:()=>qe,KolibriRequestMethods:()=>pe,KolibriRpcErrorResponse:()=>mh,KolibriRpcRequest:()=>dh,KolibriRpcServer:()=>ch,KolibriRpcSuccessResponse:()=>gh,KolibriSuccessResponse:()=>Ce,KolibriVersion:()=>P,METHOD_NOT_FOUND:()=>Ql,MapperUtils:()=>bh,Opcode:()=>iR,OpcodeBuffer:()=>rR,OpcodeCompatMapper:()=>Eh,OpcodeDecoder:()=>uy,OpcodeDecoderFactory:()=>fy,PARSE_ERROR:()=>Kl,PlainToRequestMapper:()=>cy,RpcCompatMapper:()=>Nh,RpcV10Mapper:()=>Ih,RpcV20Mapper:()=>Ph,VersionService:()=>Th,cV10:()=>n,cV21:()=>i,cV30:()=>s,cV31:()=>a,cV32:()=>u,cV33:()=>c,constants:()=>h,consumerApi:()=>p,errorFromCode:()=>_,errorcode:()=>g,isDefined:()=>py,isJsonRpcError:()=>th,isJsonRpcFailure:()=>nh,isJsonRpcId:()=>eh,isJsonRpcRequest:()=>rh,isJsonRpcSuccess:()=>oh,isKolibriClient:()=>Au,isKolibriDate:()=>td,isKolibriNodePath:()=>Zt,isKolibriNodeTriggerN:()=>Xr,isKolibriNodeTriggerT:()=>dy,isKolibriProject:()=>$o,isKolibriRpcError:()=>vh,isKolibriRpcRequest:()=>lh,isKolibriRpcSuccess:()=>_h,isKolibriUpdateUrl:()=>Zr,isKolibriUser:()=>jt,isKolibriUserGroup:()=>Ws,isUnsigned16Bit:()=>be,jsonRpc:()=>e,nodePath:()=>t,pV10:()=>f,pV20:()=>d,producerApi:()=>l,sprintf:()=>C,validate:()=>R,vsprintf:()=>j,wsErrorcodes:()=>m});var e={};r.r(e),r.d(e,{buildError:()=>T,buildRequest:()=>O,buildResult:()=>w,getType:()=>b,parse:()=>E,type:()=>v});var t={};r.r(t),r.d(t,{isValidPath:()=>N,join:()=>M,parent:()=>G,parents:()=>q,relative:()=>U,scope:()=>D});var n={};r.r(n),r.d(n,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,LoginParams:()=>Vt,LoginRequest:()=>kt,LoginResponse:()=>Wt,LoginResult:()=>Xt,NodeBrowseParams:()=>xr,NodeBrowseRequest:()=>Fr,NodeBrowseResponse:()=>Vr,NodeBrowseResult:()=>Hr,NodeCreateParams:()=>no,NodeCreateRequest:()=>io,NodeCreateResponse:()=>so,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>bo,NodeGetHistoryRequest:()=>Oo,NodeGetHistoryResponse:()=>To,NodeGetHistoryResult:()=>wo,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>Bo,NodeModifyRequest:()=>xo,NodeModifyResponse:()=>Fo,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>zn,ProjectCreateRequest:()=>Qn,ProjectCreateResponse:()=>ei,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>Ui,ProjectModifyRequest:()=>Gi,ProjectModifyResponse:()=>Si,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>lr,SubscribeRequest:()=>hr,SubscribeResponse:()=>mr,SubscribeResult:()=>gr,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UnsubscribedParams:()=>Mu,UnsubscribedRequest:()=>Uu,UnsubscribedResponse:()=>Du,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>cs,UserGetHistoryRequest:()=>ps,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>Ds,UserSubscribeRequest:()=>Ss,UserSubscribeResponse:()=>Ls,UserSubscribeResult:()=>js,UserUnsubscribeParams:()=>Hs,UserUnsubscribeRequest:()=>Vs,UserUnsubscribeResponse:()=>$s,WriteNodeParam:()=>Gr,WriteParams:()=>qr,WriteRequest:()=>Dr,WriteResponse:()=>Cr,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>Yt,isNodeBrowseRequest:()=>kr,isNodeCreateRequest:()=>ao,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Eo,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ho,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Zn,isProjectDeleteRequest:()=>si,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>qi,isReadRequest:()=>sr,isSubscribeRequest:()=>Rr,isUnsubscribeRequest:()=>Tr,isUnsubscribedRequest:()=>Gu,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>fs,isUserGetPropertiesRequest:()=>ms,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>As,isUserUnsubscribeRequest:()=>ks,isWriteRequest:()=>Sr,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>$t,toNodeBrowseRequest:()=>Yr,toNodeCreateRequest:()=>uo,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Io,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Vo,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Jn,toProjectDeleteRequest:()=>ai,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>Di,toReadRequest:()=>ar,toSubscribeRequest:()=>yr,toUnsubscribeRequest:()=>Er,toUnsubscribedRequest:()=>qu,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>ds,toUserGetPropertiesRequest:()=>_s,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Cs,toUserUnsubscribeRequest:()=>Ys,toWriteRequest:()=>Ar});var i={};r.r(i),r.d(i,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,LoginParams:()=>Fu,LoginRequest:()=>Hu,LoginResponse:()=>Xu,LoginResult:()=>$u,NodeBrowseParams:()=>sc,NodeBrowseRequest:()=>ac,NodeBrowseResponse:()=>cc,NodeBrowseResult:()=>uc,NodeCreateParams:()=>Rc,NodeCreateRequest:()=>yc,NodeCreateResponse:()=>gc,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>Gc,NodeGetHistoryRequest:()=>qc,NodeGetHistoryResponse:()=>Sc,NodeGetHistoryResult:()=>Dc,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>wc,NodeModifyRequest:()=>Tc,NodeModifyResponse:()=>Ec,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>zn,ProjectCreateRequest:()=>Qn,ProjectCreateResponse:()=>ei,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>xc,ProjectModifyRequest:()=>Fc,ProjectModifyResponse:()=>kc,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>lr,SubscribeRequest:()=>hr,SubscribeResponse:()=>mr,SubscribeResult:()=>gr,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>Wc,UserGetHistoryRequest:()=>Kc,UserGetHistoryResponse:()=>Jc,UserGetHistoryResult:()=>Zc,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGetSessionsParams:()=>op,UserGetSessionsRequest:()=>np,UserGetSessionsResponse:()=>up,UserGetSessionsResult:()=>ap,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>dp,UserSubscribeRequest:()=>lp,UserSubscribeResponse:()=>gp,UserSubscribeResult:()=>yp,UserUnsubscribeParams:()=>bp,UserUnsubscribeRequest:()=>Op,UserUnsubscribeResponse:()=>Ip,UserUnsubscribeResult:()=>Ep,WriteNodeParam:()=>Qu,WriteParams:()=>Zu,WriteRateLimit:()=>Yu,WriteRequest:()=>Ju,WriteResponse:()=>rc,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>Vu,isNodeBrowseRequest:()=>pc,isNodeCreateRequest:()=>mc,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Ac,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ic,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Zn,isProjectDeleteRequest:()=>si,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>Hc,isReadRequest:()=>sr,isSubscribeRequest:()=>Rr,isUnsubscribeRequest:()=>Tr,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>zc,isUserGetPropertiesRequest:()=>ms,isUserGetSessionRequest:()=>ip,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>hp,isUserUnsubscribeRequest:()=>wp,isWriteRequest:()=>ec,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>ku,toNodeBrowseRequest:()=>fc,toNodeCreateRequest:()=>_c,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Cc,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Pc,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Jn,toProjectDeleteRequest:()=>ai,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>Vc,toReadRequest:()=>ar,toSubscribeRequest:()=>yr,toUnsubscribeRequest:()=>Er,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>Qc,toUserGetPropertiesRequest:()=>_s,toUserGetSessionsRequest:()=>sp,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Rp,toUserUnsubscribeRequest:()=>Tp,toWriteRequest:()=>tc});var s={};r.r(s),r.d(s,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,LoginParams:()=>Fu,LoginRequest:()=>Hu,LoginResponse:()=>Xu,LoginResult:()=>$u,NodeBrowseParams:()=>sc,NodeBrowseRequest:()=>ac,NodeBrowseResponse:()=>cc,NodeBrowseResult:()=>uc,NodeCreateParams:()=>Rc,NodeCreateRequest:()=>yc,NodeCreateResponse:()=>gc,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>Gc,NodeGetHistoryRequest:()=>qc,NodeGetHistoryResponse:()=>Sc,NodeGetHistoryResult:()=>Dc,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>wc,NodeModifyRequest:()=>Tc,NodeModifyResponse:()=>Ec,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>Dp,ProjectCreateRequest:()=>Sp,ProjectCreateResponse:()=>jp,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>Fp,ProjectModifyRequest:()=>Hp,ProjectModifyResponse:()=>Yp,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>lr,SubscribeRequest:()=>hr,SubscribeResponse:()=>mr,SubscribeResult:()=>gr,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>Wc,UserGetHistoryRequest:()=>Kc,UserGetHistoryResponse:()=>Jc,UserGetHistoryResult:()=>Zc,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGetSessionsParams:()=>op,UserGetSessionsRequest:()=>np,UserGetSessionsResponse:()=>up,UserGetSessionsResult:()=>ap,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>dp,UserSubscribeRequest:()=>lp,UserSubscribeResponse:()=>gp,UserSubscribeResult:()=>yp,UserUnsubscribeParams:()=>bp,UserUnsubscribeRequest:()=>Op,UserUnsubscribeResponse:()=>Ip,UserUnsubscribeResult:()=>Ep,WriteNodeParam:()=>Qu,WriteParams:()=>Zu,WriteRateLimit:()=>Yu,WriteRequest:()=>Ju,WriteResponse:()=>rc,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>Vu,isNodeBrowseRequest:()=>pc,isNodeCreateRequest:()=>mc,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Ac,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ic,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Ap,isProjectDeleteRequest:()=>si,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>Vp,isReadRequest:()=>sr,isSubscribeRequest:()=>Rr,isUnsubscribeRequest:()=>Tr,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>zc,isUserGetPropertiesRequest:()=>ms,isUserGetSessionRequest:()=>ip,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>hp,isUserUnsubscribeRequest:()=>wp,isWriteRequest:()=>ec,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>ku,toNodeBrowseRequest:()=>fc,toNodeCreateRequest:()=>_c,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Cc,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Pc,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Cp,toProjectDeleteRequest:()=>ai,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>kp,toReadRequest:()=>ar,toSubscribeRequest:()=>yr,toUnsubscribeRequest:()=>Er,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>Qc,toUserGetPropertiesRequest:()=>_s,toUserGetSessionsRequest:()=>sp,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Rp,toUserUnsubscribeRequest:()=>Tp,toWriteRequest:()=>tc});var a={};r.r(a),r.d(a,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,LoginParams:()=>Fu,LoginRequest:()=>Hu,LoginResponse:()=>Xu,LoginResult:()=>$u,NodeBrowseParams:()=>sc,NodeBrowseRequest:()=>ac,NodeBrowseResponse:()=>cc,NodeBrowseResult:()=>uc,NodeCreateParams:()=>Rc,NodeCreateRequest:()=>yc,NodeCreateResponse:()=>gc,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>Gc,NodeGetHistoryRequest:()=>qc,NodeGetHistoryResponse:()=>Sc,NodeGetHistoryResult:()=>Dc,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>wc,NodeModifyRequest:()=>Tc,NodeModifyResponse:()=>Ec,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>Dp,ProjectCreateRequest:()=>Sp,ProjectCreateResponse:()=>jp,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetHistoryUsageParams:()=>ad,ProjectGetHistoryUsageRequest:()=>ud,ProjectGetHistoryUsageResponse:()=>dd,ProjectGetHistoryUsageResult:()=>fd,ProjectGetLiveUsageParams:()=>yd,ProjectGetLiveUsageRequest:()=>gd,ProjectGetLiveUsageResponse:()=>Od,ProjectGetLiveUsageResult:()=>bd,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>Fp,ProjectModifyRequest:()=>Hp,ProjectModifyResponse:()=>Yp,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>lr,SubscribeRequest:()=>hr,SubscribeResponse:()=>mr,SubscribeResult:()=>gr,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>Wc,UserGetHistoryRequest:()=>Kc,UserGetHistoryResponse:()=>Jc,UserGetHistoryResult:()=>Zc,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGetSessionsParams:()=>op,UserGetSessionsRequest:()=>np,UserGetSessionsResponse:()=>up,UserGetSessionsResult:()=>ap,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>dp,UserSubscribeRequest:()=>lp,UserSubscribeResponse:()=>gp,UserSubscribeResult:()=>yp,UserUnsubscribeParams:()=>bp,UserUnsubscribeRequest:()=>Op,UserUnsubscribeResponse:()=>Ip,UserUnsubscribeResult:()=>Ep,WriteNodeParam:()=>Qu,WriteParams:()=>Zu,WriteRateLimit:()=>Yu,WriteRequest:()=>Ju,WriteResponse:()=>rc,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>Vu,isNodeBrowseRequest:()=>pc,isNodeCreateRequest:()=>mc,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Ac,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ic,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Ap,isProjectDeleteRequest:()=>si,isProjectGetHistoryUsageRequest:()=>cd,isProjectGetLiveUsageRequest:()=>md,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>Vp,isReadRequest:()=>sr,isSubscribeRequest:()=>Rr,isUnsubscribeRequest:()=>Tr,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>zc,isUserGetPropertiesRequest:()=>ms,isUserGetSessionRequest:()=>ip,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>hp,isUserUnsubscribeRequest:()=>wp,isWriteRequest:()=>ec,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>ku,toNodeBrowseRequest:()=>fc,toNodeCreateRequest:()=>_c,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Cc,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Pc,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Cp,toProjectDeleteRequest:()=>ai,toProjectGetHistoryUsageRequest:()=>pd,toProjectGetLiveUsageRequest:()=>_d,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>kp,toReadRequest:()=>ar,toSubscribeRequest:()=>yr,toUnsubscribeRequest:()=>Er,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>Qc,toUserGetPropertiesRequest:()=>_s,toUserGetSessionsRequest:()=>sp,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Rp,toUserUnsubscribeRequest:()=>Tp,toWriteRequest:()=>tc});var u={};r.r(u),r.d(u,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,KolibriEvent:()=>vd,LoginParams:()=>Fu,LoginRequest:()=>Hu,LoginResponse:()=>Xu,LoginResult:()=>$u,NodeBrowseParams:()=>sc,NodeBrowseRequest:()=>ac,NodeBrowseResponse:()=>cc,NodeBrowseResult:()=>uc,NodeCreateParams:()=>Rc,NodeCreateRequest:()=>yc,NodeCreateResponse:()=>gc,NodeDeleteHistoryParams:()=>Ad,NodeDeleteHistoryRequest:()=>Cd,NodeDeleteHistoryResponse:()=>jd,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>Gc,NodeGetHistoryRequest:()=>qc,NodeGetHistoryResponse:()=>Sc,NodeGetHistoryResult:()=>Dc,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>wc,NodeModifyRequest:()=>Tc,NodeModifyResponse:()=>Ec,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,PermissionUserListParams:()=>Vd,PermissionUserListRequest:()=>kd,PermissionUserListResponse:()=>Wd,PermissionUserListResult:()=>Xd,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>Dp,ProjectCreateRequest:()=>Sp,ProjectCreateResponse:()=>jp,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetHistoryUsageParams:()=>ad,ProjectGetHistoryUsageRequest:()=>ud,ProjectGetHistoryUsageResponse:()=>dd,ProjectGetHistoryUsageResult:()=>fd,ProjectGetLiveUsageParams:()=>yd,ProjectGetLiveUsageRequest:()=>gd,ProjectGetLiveUsageResponse:()=>Od,ProjectGetLiveUsageResult:()=>bd,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>Fp,ProjectModifyRequest:()=>Hp,ProjectModifyResponse:()=>Yp,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>Id,SubscribeRequest:()=>Pd,SubscribeResponse:()=>Gd,SubscribeResult:()=>Ud,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UnsubscribedParams:()=>Mu,UnsubscribedRequest:()=>Uu,UnsubscribedResponse:()=>Du,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>Wc,UserGetHistoryRequest:()=>Kc,UserGetHistoryResponse:()=>Jc,UserGetHistoryResult:()=>Zc,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGetSessionsParams:()=>op,UserGetSessionsRequest:()=>np,UserGetSessionsResponse:()=>up,UserGetSessionsResult:()=>ap,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>dp,UserSubscribeRequest:()=>lp,UserSubscribeResponse:()=>gp,UserSubscribeResult:()=>yp,UserUnsubscribeParams:()=>bp,UserUnsubscribeRequest:()=>Op,UserUnsubscribeResponse:()=>Ip,UserUnsubscribeResult:()=>Ep,WriteNodeParam:()=>Qu,WriteParams:()=>Zu,WriteRateLimit:()=>Yu,WriteRequest:()=>Ju,WriteResponse:()=>rc,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>Vu,isNodeBrowseRequest:()=>pc,isNodeCreateRequest:()=>mc,isNodeDeleteHistoryRequest:()=>Ld,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Ac,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ic,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isPermissionUserListRequest:()=>Yd,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Ap,isProjectDeleteRequest:()=>si,isProjectGetHistoryUsageRequest:()=>cd,isProjectGetLiveUsageRequest:()=>md,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>Vp,isReadRequest:()=>sr,isSubscribeRequest:()=>Nd,isUnsubscribeRequest:()=>Tr,isUnsubscribedRequest:()=>Gu,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>zc,isUserGetPropertiesRequest:()=>ms,isUserGetSessionRequest:()=>ip,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>hp,isUserUnsubscribeRequest:()=>wp,isWriteRequest:()=>ec,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>ku,toNodeBrowseRequest:()=>fc,toNodeCreateRequest:()=>_c,toNodeDeleteHistoryRequest:()=>Bd,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Cc,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Pc,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toPermissionUserListRequest:()=>$d,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Cp,toProjectDeleteRequest:()=>ai,toProjectGetHistoryUsageRequest:()=>pd,toProjectGetLiveUsageRequest:()=>_d,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>kp,toReadRequest:()=>ar,toSubscribeRequest:()=>Md,toUnsubscribeRequest:()=>Er,toUnsubscribedRequest:()=>qu,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>Qc,toUserGetPropertiesRequest:()=>_s,toUserGetSessionsRequest:()=>sp,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Rp,toUserUnsubscribeRequest:()=>Tp,toWriteRequest:()=>tc});var c={};r.r(c),r.d(c,{CancelParams:()=>He,CancelRequest:()=>Ve,CancelResponse:()=>$e,CloseRequest:()=>ze,CloseResponse:()=>Qe,CommitParams:()=>ot,CommitRequest:()=>nt,CommitResponse:()=>at,GetChallengeRequest:()=>pt,GetRpcInfoRequest:()=>yt,GetStatisticsParams:()=>Ot,GetStatisticsRequest:()=>wt,KolibriEvent:()=>vd,LoginParams:()=>Zd,LoginRequest:()=>Jd,LoginResponse:()=>nl,LoginResult:()=>ol,LogoutRequest:()=>Rl,LogoutResponse:()=>yl,NodeBrowseParams:()=>sc,NodeBrowseRequest:()=>ac,NodeBrowseResponse:()=>cc,NodeBrowseResult:()=>uc,NodeCreateParams:()=>Rc,NodeCreateRequest:()=>yc,NodeCreateResponse:()=>gc,NodeDeleteHistoryParams:()=>Ad,NodeDeleteHistoryRequest:()=>Cd,NodeDeleteHistoryResponse:()=>jd,NodeDeleteParams:()=>lo,NodeDeleteRequest:()=>ho,NodeDeleteResponse:()=>Ro,NodeGetHistoryParams:()=>Gc,NodeGetHistoryRequest:()=>qc,NodeGetHistoryResponse:()=>Sc,NodeGetHistoryResult:()=>Dc,NodeGetPropertiesParams:()=>Uo,NodeGetPropertiesRequest:()=>Go,NodeGetPropertiesResponse:()=>Do,NodeGetPropertiesResult:()=>qo,NodeModifyParams:()=>wc,NodeModifyRequest:()=>Tc,NodeModifyResponse:()=>Ec,NodeNotifyObject:()=>Pl,NodeNotifyParams:()=>Il,NodeNotifyRequest:()=>Ml,NodeNotifyResponse:()=>Ul,NodePermissions:()=>Nl,NodeSubscribeParams:()=>Cl,NodeSubscribeRequest:()=>jl,NodeSubscribeResponse:()=>Ll,NodeUnsubscribeParams:()=>kl,NodeUnsubscribeRequest:()=>Yl,NodeUnsubscribeResponse:()=>$l,NotifyEvents:()=>bl,PermissionNodeListParams:()=>Zo,PermissionNodeListRequest:()=>Jo,PermissionNodeListResponse:()=>on,PermissionNodeListResult:()=>rn,PermissionNodeSetParams:()=>un,PermissionNodeSetRequest:()=>cn,PermissionNodeSetResponse:()=>dn,PermissionRpcAddParams:()=>yn,PermissionRpcAddRequest:()=>gn,PermissionRpcAddResponse:()=>vn,PermissionRpcListParams:()=>Tn,PermissionRpcListRequest:()=>En,PermissionRpcListResponse:()=>Mn,PermissionRpcListResult:()=>Nn,PermissionRpcRemoveParams:()=>Dn,PermissionRpcRemoveRequest:()=>Sn,PermissionRpcRemoveResponse:()=>jn,PermissionUserListParams:()=>Vd,PermissionUserListRequest:()=>kd,PermissionUserListResponse:()=>Wd,PermissionUserListResult:()=>Xd,ProjectBrowseParams:()=>Fn,ProjectBrowseRequest:()=>Hn,ProjectBrowseResponse:()=>$n,ProjectBrowseResult:()=>Yn,ProjectCreateParams:()=>Dp,ProjectCreateRequest:()=>Sp,ProjectCreateResponse:()=>jp,ProjectDeleteParams:()=>ni,ProjectDeleteRequest:()=>ii,ProjectDeleteResponse:()=>ui,ProjectGetHistoryUsageParams:()=>ad,ProjectGetHistoryUsageRequest:()=>ud,ProjectGetHistoryUsageResponse:()=>dd,ProjectGetHistoryUsageResult:()=>fd,ProjectGetLiveUsageParams:()=>yd,ProjectGetLiveUsageRequest:()=>gd,ProjectGetLiveUsageResponse:()=>Od,ProjectGetLiveUsageResult:()=>bd,ProjectGetPropertiesParams:()=>di,ProjectGetPropertiesRequest:()=>li,ProjectGetPropertiesResponse:()=>gi,ProjectGetPropertiesResult:()=>yi,ProjectGetStatisticsParams:()=>bi,ProjectGetStatisticsRequest:()=>Oi,ProjectGetStatisticsResponse:()=>Ii,ProjectGetStatisticsResult:()=>Ei,ProjectModifyParams:()=>Fp,ProjectModifyRequest:()=>Hp,ProjectModifyResponse:()=>Yp,ReadParams:()=>nr,ReadRequest:()=>ir,ReadResponse:()=>cr,ReadResult:()=>ur,SubscribeParams:()=>Id,SubscribeRequest:()=>Pd,SubscribeResponse:()=>Gd,SubscribeResult:()=>Ud,UnsubscribeParams:()=>Or,UnsubscribeRequest:()=>wr,UnsubscribeResponse:()=>Ir,UnsubscribedParams:()=>Mu,UnsubscribedRequest:()=>Uu,UnsubscribedResponse:()=>Du,UpdateTokenParams:()=>ul,UpdateTokenRequest:()=>cl,UpdateTokenResponse:()=>pl,UserBrowseParams:()=>Li,UserBrowseRequest:()=>Bi,UserBrowseResponse:()=>Vi,UserBrowseResult:()=>Hi,UserCreateParams:()=>Xi,UserCreateRequest:()=>Wi,UserCreateResponse:()=>Qi,UserDeleteParams:()=>ts,UserDeleteRequest:()=>rs,UserDeleteResponse:()=>is,UserGetHistoryParams:()=>Wc,UserGetHistoryRequest:()=>Kc,UserGetHistoryResponse:()=>Jc,UserGetHistoryResult:()=>Zc,UserGetPropertiesParams:()=>ys,UserGetPropertiesRequest:()=>gs,UserGetPropertiesResponse:()=>bs,UserGetPropertiesResult:()=>vs,UserGetSessionsParams:()=>op,UserGetSessionsRequest:()=>np,UserGetSessionsResponse:()=>up,UserGetSessionsResult:()=>ap,UserGroupAddMemberParams:()=>ea,UserGroupAddMemberRequest:()=>ta,UserGroupAddMemberResponse:()=>ra,UserGroupBrowseParams:()=>ua,UserGroupBrowseRequest:()=>ca,UserGroupBrowseResponse:()=>fa,UserGroupBrowseResult:()=>pa,UserGroupCreateParams:()=>ga,UserGroupCreateRequest:()=>ma,UserGroupCreateResponse:()=>_a,UserGroupDeleteParams:()=>Ea,UserGroupDeleteRequest:()=>Ia,UserGroupDeleteResponse:()=>Pa,UserGroupGetPropertiesParams:()=>Da,UserGroupGetPropertiesRequest:()=>Sa,UserGroupGetPropertiesResponse:()=>Ca,UserGroupGetPropertiesResult:()=>Aa,UserGroupIsMemberParams:()=>Ha,UserGroupIsMemberRequest:()=>Va,UserGroupIsMemberResponse:()=>ka,UserGroupListMembersParams:()=>za,UserGroupListMembersRequest:()=>Qa,UserGroupListMembersResponse:()=>Za,UserGroupModifyParams:()=>nu,UserGroupModifyRequest:()=>iu,UserGroupModifyResponse:()=>su,UserGroupRemoveMemberParams:()=>du,UserGroupRemoveMemberRequest:()=>lu,UserGroupRemoveMemberResponse:()=>hu,UserModifyParams:()=>Es,UserModifyRequest:()=>Is,UserModifyResponse:()=>Ms,UserNotifyParams:()=>vu,UserNotifyRequest:()=>bu,UserNotifyResponse:()=>Eu,UserNotifyResult:()=>Tu,UserSubscribeParams:()=>dp,UserSubscribeRequest:()=>lp,UserSubscribeResponse:()=>gp,UserSubscribeResult:()=>yp,UserUnsubscribeParams:()=>bp,UserUnsubscribeRequest:()=>Op,UserUnsubscribeResponse:()=>Ip,UserUnsubscribeResult:()=>Ep,WriteNodeParam:()=>Qu,WriteParams:()=>Zu,WriteRateLimit:()=>rl,WriteRequest:()=>Ju,WriteResponse:()=>rc,isCancelRequest:()=>ke,isCloseRequest:()=>Ze,isCommitRequest:()=>it,isGetChallengeRequest:()=>ft,isGetRpcInfoRequest:()=>gt,isGetStatisticsRequest:()=>Tt,isLoginRequest:()=>el,isLogoutRequest:()=>gl,isNodeBrowseRequest:()=>pc,isNodeCreateRequest:()=>mc,isNodeDeleteHistoryRequest:()=>Ld,isNodeDeleteRequest:()=>yo,isNodeGetHistoryRequest:()=>Ac,isNodeGetPropertiesRequest:()=>So,isNodeModifyRequest:()=>Ic,isNodeNotifyRequest:()=>Gl,isNodeSubscribeRequest:()=>Bl,isNodeUnsubscribeRequest:()=>Xl,isPermissionNodeListRequest:()=>en,isPermissionNodeSetRequest:()=>pn,isPermissionRpcAddRequest:()=>mn,isPermissionRpcListRequest:()=>In,isPermissionRpcRemoveRequest:()=>An,isPermissionUserListRequest:()=>Yd,isProjectBrowseRequest:()=>Vn,isProjectCreateRequest:()=>Ap,isProjectDeleteRequest:()=>si,isProjectGetHistoryUsageRequest:()=>cd,isProjectGetLiveUsageRequest:()=>md,isProjectGetPropertiesRequest:()=>hi,isProjectGetStatisticsRequest:()=>wi,isProjectModifyRequest:()=>Vp,isReadRequest:()=>sr,isSubscribeRequest:()=>Nd,isUnsubscribeRequest:()=>Tr,isUnsubscribedRequest:()=>Gu,isUpdateTokenRequest:()=>fl,isUserBrowseRequest:()=>xi,isUserCreateRequest:()=>Ki,isUserDeleteRequest:()=>os,isUserGetHistoryRequest:()=>zc,isUserGetPropertiesRequest:()=>ms,isUserGetSessionRequest:()=>ip,isUserGroupAddMemberRequest:()=>oa,isUserGroupBrowseRequest:()=>da,isUserGroupCreateRequest:()=>va,isUserGroupDeleteRequest:()=>Na,isUserGroupGetPropertiesRequest:()=>ja,isUserGroupIsMemberRequest:()=>Ya,isUserGroupListMembersRequest:()=>Ja,isUserGroupModifyRequest:()=>au,isUserGroupRemoveMemberRequest:()=>Ru,isUserModifyRequest:()=>Ps,isUserNotifyRequest:()=>Ou,isUserSubscribeRequest:()=>hp,isUserUnsubscribeRequest:()=>wp,isWriteRequest:()=>ec,toCancelRequest:()=>Ye,toCloseRequest:()=>Je,toCommitRequest:()=>st,toGetChallengeRequest:()=>dt,toGetRpcInfoRequest:()=>mt,toGetStatisticsRequest:()=>Et,toLoginRequest:()=>tl,toLogoutRequest:()=>ml,toNodeBrowseRequest:()=>fc,toNodeCreateRequest:()=>_c,toNodeDeleteHistoryRequest:()=>Bd,toNodeDeleteRequest:()=>go,toNodeGetHistoryRequest:()=>Cc,toNodeGetPropertiesRequest:()=>Ao,toNodeModifyRequest:()=>Pc,toNodeNotifyRequest:()=>ql,toNodeSubscribeRequest:()=>xl,toNodeUnsubscribeRequest:()=>Wl,toPermissionNodeListRequest:()=>tn,toPermissionNodeSetRequest:()=>fn,toPermissionRpcAddRequest:()=>_n,toPermissionRpcListRequest:()=>Pn,toPermissionRpcRemoveRequest:()=>Cn,toPermissionUserListRequest:()=>$d,toProjectBrowseRequest:()=>kn,toProjectCreateRequest:()=>Cp,toProjectDeleteRequest:()=>ai,toProjectGetHistoryUsageRequest:()=>pd,toProjectGetLiveUsageRequest:()=>_d,toProjectGetPropertiesRequest:()=>Ri,toProjectGetStatisticsRequest:()=>Ti,toProjectModifyRequest:()=>kp,toReadRequest:()=>ar,toSubscribeRequest:()=>Md,toUnsubscribeRequest:()=>Er,toUnsubscribedRequest:()=>qu,toUpdateTokenRequest:()=>dl,toUserBrowseRequest:()=>Fi,toUserCreateRequest:()=>zi,toUserDeleteRequest:()=>ns,toUserGetHistoryRequest:()=>Qc,toUserGetPropertiesRequest:()=>_s,toUserGetSessionsRequest:()=>sp,toUserGroupAddMemberRequest:()=>na,toUserGroupBrowseRequest:()=>la,toUserGroupCreateRequest:()=>ba,toUserGroupDeleteRequest:()=>Ma,toUserGroupGetPropertiesRequest:()=>La,toUserGroupIsMemberRequest:()=>$a,toUserGroupListMembersRequest:()=>eu,toUserGroupModifyRequest:()=>uu,toUserGroupRemoveMemberRequest:()=>yu,toUserModifyRequest:()=>Ns,toUserNotifyRequest:()=>wu,toUserSubscribeRequest:()=>Rp,toUserUnsubscribeRequest:()=>Tp,toWriteRequest:()=>tc});var p={};r.r(p),r.d(p,{DefaultKolibriResponse:()=>Le,INTERNAL_ERROR:()=>Jl,INVALID_PARAMS:()=>Zl,INVALID_REQUEST:()=>zl,KolibriErrorResponse:()=>je,KolibriRequest:()=>Ge,KolibriRequestError:()=>qe,KolibriRequestMethods:()=>pe,KolibriRpcErrorResponse:()=>mh,KolibriRpcRequest:()=>dh,KolibriRpcServer:()=>ch,KolibriRpcSuccessResponse:()=>gh,KolibriSuccessResponse:()=>Ce,METHOD_NOT_FOUND:()=>Ql,PARSE_ERROR:()=>Kl,cV10:()=>n,cV21:()=>i,cV30:()=>s,cV31:()=>a,cV32:()=>u,cV33:()=>c,isJsonRpcError:()=>th,isJsonRpcFailure:()=>nh,isJsonRpcId:()=>eh,isJsonRpcRequest:()=>rh,isJsonRpcSuccess:()=>oh,isKolibriRpcError:()=>vh,isKolibriRpcRequest:()=>lh,isKolibriRpcSuccess:()=>_h});var f={};r.r(f),r.d(f,{AckOpcode:()=>aR,CancelOpcode:()=>cR,CommitOpcode:()=>fR,CommittedWriteOpcode:()=>lR,CreateModifyNodeOpcode:()=>RR,DeleteNodeOpcode:()=>gR,EmergencyOpcode:()=>_R,EnablePublishOpcode:()=>bR,GetHashOpcode:()=>wR,GetHashResponseOpcode:()=>ER,GetNodePropertiesOpcode:()=>PR,GetNodePropertiesResponseOpcode:()=>MR,GetTimeOpcode:()=>GR,GetTimeResponseOpcode:()=>DR,LoginOpcode:()=>AR,NakOpcode:()=>jR,PublishOpcode:()=>BR,ThrottleOpcode:()=>FR,UnpublishOpcode:()=>VR,WriteOpcode:()=>YR});var d={};r.r(d),r.d(d,{CommittedWriteOpcode:()=>XR,CreateModifyNodeOpcode:()=>KR,EmergencyOpcode:()=>QR,GetNodePropertiesResponseOpcode:()=>JR,GetTimeResponseOpcode:()=>ty,LoginOpcode:()=>oy,PublishOpcode:()=>iy,WriteOpcode:()=>ay});var l={};r.r(l),r.d(l,{BufferLengthBuilder:()=>Mh,HashBufferV10:()=>oR,HashBufferV20:()=>nR,Opcode:()=>iR,OpcodeBuffer:()=>rR,OpcodeDecoder:()=>uy,OpcodeDecoderFactory:()=>fy,pV10:()=>f,pV20:()=>d});var h,R={};r.r(R),r.d(R,{pointValue:()=>yy,triggerN:()=>Ry}),function(e){e.PROTOCOL_VERSION_1_0=0,e.JSON_RPC_VERSION="2.0",e.JSON_RPC_PREFIX="kolibri.",e.UUID_NAMESPACE="d81e8927-e53c-49ec-98e7-5da39c5e3861",e.MANAGEMENT_PROJECT_PID=1,e.OPCODE_ACK=0,e.OPCODE_NAK=1,e.OPCODE_LOGIN=2,e.OPCODE_GETHASH=3,e.OPCODE_GETHASH_RESPONSE=4,e.OPCODE_GETTIME=5,e.OPCODE_GETTIME_RESPONSE=6,e.OPCODE_ENABLEPUBLISH=7,e.OPCODE_PUBLISH=8,e.OPCODE_UNPUBLISH=9,e.OPCODE_WRITE=10,e.OPCODE_COMMIT=11,e.OPCODE_GETNODEPROPERTIES=12,e.OPCODE_GETNODEPROPERTIES_RESPONSE=13,e.OPCODE_CREATEMODIFYNODE=14,e.OPCODE_DELETENODE=15,e.OPCODE_EMERGENCY=16,e.OPCODE_COMMITTEDWRITE=17,e.OPCODE_CANCEL=18,e.OPCODE_THROTTLE=19,e.LOGIN_NONE=0,e.LOGIN_PUBLISH_POINTS_ACTIVE_ALL=1,e.LOGIN_PUBLISH_POINTS_ACTIVE_CHANGED=2,e.LOGIN_JSONRPC_SERVER=4,e.LOGIN_PENDING_TRANSACTIONS=8,e.LOGIN_RESERVED=240,e.GETHASH_NONE=0,e.GETHASH_POINTS_ACTIVE=1,e.GETHASH_POINTS_INACTIVE=2,e.GETHASH_GROUPS=4,e.GETHASH_NODE_INDEX=8,e.GETHASH_VALUE=16,e.GETHASH_TIMESTAMP=32,e.GETHASH_QUALITY=64,e.GETHASH_DESCRIPTION=128,e.GETHASH_FLAGS=256,e.GETHASH_DATATYPE=512,e.GETHASH_TRIGGERMODE=1024,e.GETHASH_TRIGGERDOMAIN=2048,e.GETHASH_QOSLEVEL=4096,e.GETHASH_SCALING=8192,e.GETHASH_FORMAT=16384,e.GETHASH_WRITERANGE=32768,e.GETHASH_UPDATEURL=65536,e.GETHASH_HISTORY=131072,e.GETHASH_RESERVED=4294705152,e.ENABLEPUBLISH_NONE=0,e.ENABLEPUBLISH_POINTS_ACTIVE_ALL=1,e.ENABLEPUBLISH_POINTS_ACTIVE_CHANGED=2,e.ENABLEPUBLISH_POINTS_INACTIVE_ALL=4,e.ENABLEPUBLISH_POINTS_INACTIVE_CHANGED=8,e.ENABLEPUBLISH_GROUPS_ALL=16,e.ENABLEPUBLISH_GROUPS_CHANGED=32,e.ENABLEPUBLISH_INCLUDE_ALL_PROPERTIES=64,e.ENABLEPUBLISH_RESERVED=128,e.PUBLISH_POINT=0,e.PUBLISH_GROUP=1,e.PUBLISH_FINISHED=2,e.PUBLISH_DETAILED=4,e.PUBLISH_RESERVED=252,e.CREATEMODIFYNODE_MODIFY=1,e.CREATEMODIFYNODE_INDEX=2,e.CREATEMODIFYNODE_DESCRIPTION=4,e.CREATEMODIFYNODE_FLAGS=8,e.CREATEMODIFYNODE_DATATYPE=16,e.CREATEMODIFYNODE_TRIGGERMODE=32,e.CREATEMODIFYNODE_TRIGGERDOMAIN=64,e.CREATEMODIFYNODE_QOSLEVEL=128,e.CREATEMODIFYNODE_UPDATEURL=256,e.CREATEMODIFYNODE_HISTORY=512,e.CREATEMODIFYNODE_FORMAT=1024,e.CREATEMODIFYNODE_SCALING=2048,e.CREATEMODIFYNODE_WRITERANGE=4096,e.CREATEMODIFYNODE_RESERVED=57344,e.NODE_NONE=0,e.NODE_ACTIVE=1,e.NODE_WRITEABLE=2,e.NODE_DOMAINTRIGGER=4,e.NODE_HIGHPRIORITY=8,e.NODE_RETENTIVE=16,e.NODE_RESERVED=224,e.POINT=0,e.GROUP=1,e.PATH=255,e.DT_BOOLEAN=0,e.DT_UNSIGNED_8BIT=1,e.DT_SIGNED_8BIT=2,e.DT_UNSIGNED_16BIT=3,e.DT_SIGNED_16BIT=4,e.DT_UNSIGNED_32BIT=5,e.DT_SIGNED_32BIT=6,e.DT_UNSIGNED_64BIT=7,e.DT_SIGNED_64BIT=8,e.DT_FLOATING_32BIT=9,e.DT_FLOATING_64BIT=10,e.DT_STRING=12,e.DT_BYTEARRAY=13,e.DT_MIN=0,e.DT_MAX=13,e.DT_RESERVED=11,e.DT_UINT_32BIT_MAX=4294967295,e.DT_UINT_16BIT_MAX=65535,e.DT_FLOATING_32BIT_MIN=1176e-41,e.DT_FLOATING_32BIT_MAX=34028e34,e.DT_FLOAT64_MAX_INT="9007199254740991",e.DT_STRING_MAXLEN=4096,e.DT_BYTEARRAY_MAXLEN=4096,e.DT_NUMERIC_MIN=1,e.DT_NUMERIC_MAX=10,e.TRIGGER_ANY_CHANGE=0,e.TRIGGER_EXPLICIT_REQUEST=1,e.TRIGGER_N=2,e.TRIGGER_T=3,e.TRIGGER_N_T=4,e.TRIGGER_DOMAIN=5,e.TRIGGER_T_CHANGED=6,e.TRIGGER_R=7,e.TRIGGER_R_T=8,e.TRIGGER_T_S=9,e.TRIGGER_MIN=0,e.TRIGGER_MAX=9,e.QOS_AT_MOST_ONCE=0,e.QOS_AT_LEAST_ONCE=1,e.QOS_AT_LEAST_ONCE_QUEUE=2,e.QOS_EXACTLY_ONCE=3,e.QOS_EXACTLY_ONCE_QUEUE=4,e.QOS_MIN=0,e.QOS_MAX=4,e.QUALITY_UNKNOWN=0,e.QUALITY_VALID=1,e.QUALITY_SIMULATED=2,e.QUALITY_FORCED=3,e.QUALITY_INVALID=4,e.QUALITY_MIN=0,e.QUALITY_MAX=4,e.QUALITY_USER_MIN=100,e.INVALID_NODE_INDEX=65535,e.INVALID_SEQUENCE_NUMBER=0,e.EMERGENCY_OUT_OF_MEMORY=0,e.EMERGENCY_SEND_QUEUE=1,e.EMERGENCY_RECEIVE_QUEUE=2,e.GETHISTORY_LIMIT=1e3,e.PASSWORD_MAXLEN=40,e.PROJECT_NAME_MAXLEN=32,e.USER_NAME_MAXLEN=32,e.CLIENT_ID_MAXLEN=36,e.INCOMING_DIRECTION="incoming",e.OUTGOING_DIRECTION="outgoing"}(h||(h={}));var y=function(e,t){this.name="KolibriError",this.message=e.message,this.kolibriError=e,void 0!==t?this.kolibriError.data=t:this.kolibriError.hasOwnProperty("data")&&delete this.kolibriError.data},g={GENERAL_ERROR:{code:1,message:"general error"},INVALID_OPCODE:{code:2,message:"invalid opcode"},INVALID_OPTION:{code:3,message:"invalid option"},INVALID_PROTOCOL_VERSION:{code:4,message:"invalid protocol version"},ACCESS_DENIED:{code:5,message:"access denied"},INVALID_PATH:{code:6,message:"invalid path"},INVALID_NODE_TYPE:{code:7,message:"invalid node type"},INVALID_NODE_INDEX:{code:8,message:"invalid node index"},INVALID_NODE_PROPERTY:{code:9,message:"invalid node property"},INVALID_NODE_STATE:{code:10,message:"invalid node state"},INVALID_SEQUENCE_NUMBER:{code:11,message:"invalid sequence number"},INVALID_DATA_TYPE:{code:12,message:"invalid data type"},INVALID_RECIPIENT:{code:13,message:"invalid recipient"},PROTOCOL_ERROR:{code:14,message:"protocol error"},MISSING_PARAMETER:{code:15,message:"missing parameter"},INVALID_PARAMETER:{code:16,message:"invalid parameter"},INVALID_VALUE:{code:17,message:"invalid value"},ITEM_NOT_FOUND:{code:18,message:"item not found"},ITEM_EXISTS:{code:19,message:"item exists"},RATE_LIMIT_EXCEEDED:{code:20,message:"rate limit exceeded"},QUEUE_SIZE_LIMIT_EXCEEDED:{code:21,message:"queue size limit exceeded"},PARSE_ERROR:{code:-32700,message:"parse error"},INVALID_REQUEST:{code:-32600,message:"invalid request"},METHOD_NOT_FOUND:{code:-32601,message:"method not found"},INVALID_PARAMS:{code:-32602,message:"invalid parameters"},INTERNAL_ERROR:{code:-32603,message:"internal error"},KOLIBRI_RPC_ERROR:{code:-32604,message:"kolibri rpc processing error"},SERVER_ERROR:{code:-32e3,message:"server error"}},m={WS_CLOSE_KEEPALIVE:4e3,WS_CLOSE_SCOPE:4001,WS_CLOSE_USER:4002,WS_CLOSE_RETRY:4003,WS_CLOSE_PROTOCOL:4004,WS_CLOSE_THROTTLE:4005,WS_CLOSE_EXPIRED_TOKEN:4006,WS_LOGOUT_USER:4007};function _(e){for(var t=Object.keys(g),r=0,o=t.length;r<o;r++)if(g[t[r]].code===e)return g[t[r]];return g.GENERAL_ERROR}var v={REQUEST:1,NOTIFICATION:2,RESULT:3,ERROR:4,REQUEST_ROUTED:5,NOTIFICATION_ROUTED:6,RESULT_ROUTED:7,ERROR_ROUTED:8,INVALID:9};function b(e){return"object"==typeof e&&e.hasOwnProperty("jsonrpc")&&"2.0"===e.jsonrpc?e.hasOwnProperty("method")?e.hasOwnProperty("result")||e.hasOwnProperty("error")||e.hasOwnProperty("params")&&"object"!=typeof e.params?v.INVALID:e.hasOwnProperty("_server")?e.hasOwnProperty("id")?v.REQUEST_ROUTED:v.NOTIFICATION_ROUTED:e.hasOwnProperty("id")?v.REQUEST:v.NOTIFICATION:e.hasOwnProperty("result")?e.hasOwnProperty("error")?v.INVALID:e.hasOwnProperty("_server")?v.RESULT_ROUTED:v.RESULT:e.hasOwnProperty("error")&&"object"==typeof e.error&&e.error.hasOwnProperty("code")&&e.error.hasOwnProperty("message")?e.hasOwnProperty("_server")?v.ERROR_ROUTED:v.ERROR:v.INVALID:v.INVALID}function O(e,t,r,o){var n={jsonrpc:"2.0",method:e,id:t};return o&&(n._server=o),r&&(n.params=r),n}function w(e,t,r){var o={jsonrpc:"2.0",id:e,result:void 0===t?null:t};return r&&(o._server=r),o}function T(e,t,r){var o={jsonrpc:"2.0",id:e,error:t};return r&&(o._server=r),o}function E(e){return JSON.parse(String(e))}var I=r(1249),P=function(){function e(e){this._subProtocol=e,this._semVer=this.convertKolibriVersionToSemver(e)}return Object.defineProperty(e.prototype,"subProtocol",{get:function(){return this._subProtocol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"semVer",{get:function(){return this._semVer},enumerable:!1,configurable:!0}),e.prototype.convertKolibriVersionToSemver=function(e){"kolibri"===e&&(e="v1.0.kolibri");var t=(0,I.coerce)(e);if(!t)throw Error("Invalid Version string:"+e);return t},e}();function N(e){if("string"!=typeof e||0===e.length||e.length>4096||"/"!==e.charAt(0))return!1;if("/"===e)return!0;for(var t=e.split("/").slice(1),r=0,o=t.length;r<o;r++)if(!t[r].match(/^[a-z0-9][a-z0-9_.-]{0,31}$/i))return!1;return!0}function M(e,t){return"/"===e?t:"/"===t?e:"/"===t.charAt(0)?[e,t.slice(1)].join("/"):[e,t].join("/")}function U(e,t){return"/"===t?e:0===e.indexOf(t)?e.slice(t.length):e}function G(e){var t=e.lastIndexOf("/");return t<2?null:e.slice(0,t)}function q(e){for(var t=e.split("/").slice(1),r=[],o="";t.length;)o+="/"+t.shift(),r.push(o);return r.slice(0,-1)}function D(e){var t=e.indexOf("/",1);return t<1?e:e.slice(0,t)}var S,A={not_string:/[^s]/,number:/[def]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?(?:\[([^)]+)\])?([b-fostuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],o=C.cache;return o[r]&&o.hasOwnProperty(r)||(o[r]=C.parse(r)),C.format.call(null,o[r],e)}function j(e,t,r){return(r=(t||[]).slice(0)).splice(0,0,e),C.apply(null,r)}function L(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function B(e){return e<10?"0"+e:e}function x(e,t){var r=new Date(e);t||(t="Y-m-d H:M:S");for(var o="",n=0;n<t.length;n++)switch(t.charAt(n)){case"Y":o+=r.getUTCFullYear();break;case"C":o+=B(r.getUTCFullYear()%100);break;case"H":o+=B(r.getUTCHours());break;case"I":var i=r.getUTCHours();o+=B(i=0===(i=i>12?i-12:i)?12:i);break;case"M":o+=B(r.getUTCMinutes());break;case"S":o+=B(r.getUTCSeconds());break;case"p":o+=r.getUTCHours()<12?"AM":"PM";break;case"m":o+=B(r.getUTCMonth()+1);break;case"d":o+=B(r.getUTCDate());break;case"a":o+=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r.getUTCDay()];break;case"h":o+=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getUTCMonth()];break;case":":case".":case",":case"-":case"/":case" ":o+=t.charAt(n);break;default:throw new SyntaxError("Error parsing time format at "+t.charAt(n))}return o}C.format=function(e,t){var r,o,n,i,s,a,u,c,p=1,f=e.length,d="",l=[],h=!0,R="";for(o=0;o<f;o++)if("string"===(d=L(e[o])))l[l.length]=e[o];else if("array"===d){if((i=e[o])[2])for(r=t[p],n=0;n<i[2].length;n++){if(!r.hasOwnProperty(i[2][n]))throw new Error(C('[sprintf] property "%s" does not exist',i[2][n]));r=r[i[2][n]]}else r=i[1]?t[i[1]]:t[p++];if("function"===L(r)&&(r=r()),A.not_string.test(i[9])&&"number"!==L(r)&&isNaN(r))throw new TypeError(C("[sprintf] expecting number but found %s",L(r)));switch(A.number.test(i[9])&&(h=r>=0),i[9]){case"b":r=r.toString(2);break;case"d":r=parseInt(r,10);break;case"e":r=i[7]?r.toExponential(i[7]):r.toExponential();break;case"f":r=i[7]?parseFloat(r).toFixed(i[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=(r=String(r))&&i[7]?r.substring(0,i[7]):r;break;case"u":r>>>=0;break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase();break;case"t":i[8]?r=x(parseInt(r,10),i[8]):(r=x(parseInt(r,10),null),r=(r=String(r))&&i[7]?r.substring(0,i[7]):r)}(!h||A.number.test(i[9])&&i[3])&&(R=h?"+":"-",r=r.toString().replace(A.sign,"")),a=i[4]?"0"===i[4]?"0":i[4].charAt(1):" ",u=i[6]-(R+r).length,s=i[6]?(c=a,new Array(u+1).join(c)):"",l[l.length]=i[5]?R+r+s:"0"===a?R+s+r:s+R+r}return l.join("")},C.cache={},C.parse=function(e){for(var t=e,r=[],o=[],n=0;t;){if(null!==(r=A.text.exec(t)))o[o.length]=r[0];else if(null!==(r=A.modulo.exec(t)))o[o.length]="%";else{if(null===(r=A.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(r[2]){n|=1;var i=[],s=r[2],a=[];if(null===(a=A.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i[i.length]=a[1];""!==(s=s.substring(a[0].length));)if(null!==(a=A.key_access.exec(s)))i[i.length]=a[1];else{if(null===(a=A.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");i[i.length]=a[1]}r[2]=i}else n|=2;if(3===n)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o[o.length]=r}t=t.substring(r[0].length)}return o},function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"}(S||(S={}));var F=new(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},e.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.findTransformMetadatas=function(e,t,r){return this.findMetadatas(this._transformMetadatas,e,t).filter((function(e){return!e.options||!0===e.options.toClassOnly&&!0===e.options.toPlainOnly||(!0===e.options.toClassOnly?r===S.CLASS_TO_CLASS||r===S.PLAIN_TO_CLASS:!0!==e.options.toPlainOnly||r===S.CLASS_TO_PLAIN)}))},e.prototype.findExcludeMetadata=function(e,t){return this.findMetadata(this._excludeMetadatas,e,t)},e.prototype.findExposeMetadata=function(e,t){return this.findMetadata(this._exposeMetadatas,e,t)},e.prototype.findExposeMetadataByCustomName=function(e,t){return this.getExposedMetadatas(e).find((function(e){return e.options&&e.options.name===t}))},e.prototype.findTypeMetadata=function(e,t){return this.findMetadata(this._typeMetadatas,e,t)},e.prototype.getStrategy=function(e){var t=this._excludeMetadatas.get(e),r=t&&t.get(void 0),o=this._exposeMetadatas.get(e),n=o&&o.get(void 0);return r&&n||!r&&!n?"none":r?"excludeAll":"exposeAll"},e.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},e.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},e.prototype.getExposedProperties=function(e,t){return this.getExposedMetadatas(e).filter((function(e){return!e.options||!0===e.options.toClassOnly&&!0===e.options.toPlainOnly||(!0===e.options.toClassOnly?t===S.CLASS_TO_CLASS||t===S.PLAIN_TO_CLASS:!0!==e.options.toPlainOnly||t===S.CLASS_TO_PLAIN)})).map((function(e){return e.propertyName}))},e.prototype.getExcludedProperties=function(e,t){return this.getExcludedMetadatas(e).filter((function(e){return!e.options||!0===e.options.toClassOnly&&!0===e.options.toPlainOnly||(!0===e.options.toClassOnly?t===S.CLASS_TO_CLASS||t===S.PLAIN_TO_CLASS:!0!==e.options.toPlainOnly||t===S.CLASS_TO_PLAIN)})).map((function(e){return e.propertyName}))},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(e,t){var r,o=e.get(t);o&&(r=Array.from(o.values()).filter((function(e){return void 0!==e.propertyName})));for(var n=[],i=0,s=this.getAncestors(t);i<s.length;i++){var a=s[i],u=e.get(a);if(u){var c=Array.from(u.values()).filter((function(e){return void 0!==e.propertyName}));n.push.apply(n,c)}}return n.concat(r||[])},e.prototype.findMetadata=function(e,t,r){var o=e.get(t);if(o){var n=o.get(r);if(n)return n}for(var i=0,s=this.getAncestors(t);i<s.length;i++){var a=s[i],u=e.get(a);if(u){var c=u.get(r);if(c)return c}}},e.prototype.findMetadatas=function(e,t,r){var o,n=e.get(t);n&&(o=n.get(r));for(var i=[],s=0,a=this.getAncestors(t);s<a.length;s++){var u=a[s],c=e.get(u);c&&c.has(r)&&i.push.apply(i,c.get(r))}return i.slice().reverse().concat((o||[]).slice().reverse())},e.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var t=[],r=Object.getPrototypeOf(e.prototype.constructor);void 0!==r.prototype;r=Object.getPrototypeOf(r.prototype.constructor))t.push(r);this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)},e}());function H(e,t){return void 0===t&&(t={}),function(r,o){var n=Reflect.getMetadata("design:type",r,o);F.addTypeMetadata({target:r.constructor,propertyName:o,reflectedType:n,typeFunction:e,options:t})}}var V=function(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},k=function(){function e(e,t){this.transformationType=e,this.options=t,this.recursionStack=new Set}return e.prototype.transform=function(e,t,r,o,n,i){var s,a=this;if(void 0===i&&(i=0),Array.isArray(t)||t instanceof Set){var u=o&&this.transformationType===S.PLAIN_TO_CLASS?function(e){var t=new e;return t instanceof Set||"push"in t?t:[]}(o):[];return t.forEach((function(t,o){var n=e?e[o]:void 0;if(a.options.enableCircularCheck&&a.isCircular(t))a.transformationType===S.CLASS_TO_CLASS&&(u instanceof Set?u.add(t):u.push(t));else{var s=void 0;if("function"!=typeof r&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(a.transformationType===S.PLAIN_TO_CLASS){s=r.options.discriminator.subTypes.find((function(e){return e.name===t[r.options.discriminator.property]}));var c={newObject:u,object:t,property:void 0},p=r.typeFunction(c);s=void 0===s?p:s.value,r.options.keepDiscriminatorProperty||delete t[r.options.discriminator.property]}a.transformationType===S.CLASS_TO_CLASS&&(s=t.constructor),a.transformationType===S.CLASS_TO_PLAIN&&(t[r.options.discriminator.property]=r.options.discriminator.subTypes.find((function(e){return e.value===t.constructor})).name)}else s=r;var f=a.transform(n,t,s,void 0,t instanceof Map,i+1);u instanceof Set?u.add(f):u.push(f)}})),u}if(r!==String||n){if(r!==Number||n){if(r!==Boolean||n){if((r===Date||t instanceof Date)&&!n)return t instanceof Date?new Date(t.valueOf()):null==t?t:new Date(t);if(("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0).Buffer&&(r===Buffer||t instanceof Buffer)&&!n)return null==t?t:Buffer.from(t);if(null===(s=t)||"object"!=typeof s||"function"!=typeof s.then||n){if(n||null===t||"object"!=typeof t||"function"!=typeof t.then){if("object"==typeof t&&null!==t){r||t.constructor===Object||(Array.isArray(t)||t.constructor!==Array)&&(r=t.constructor),!r&&e&&(r=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(t);var c=this.getKeys(r,t,n),p=e||{};e||this.transformationType!==S.PLAIN_TO_CLASS&&this.transformationType!==S.CLASS_TO_CLASS||(p=n?new Map:r?new r:{});for(var f=function(o){if("__proto__"===o||"constructor"===o)return"continue";var s=o,a=o,u=o;if(!d.options.ignoreDecorators&&r)if(d.transformationType===S.PLAIN_TO_CLASS)(c=F.findExposeMetadataByCustomName(r,o))&&(u=c.propertyName,a=c.propertyName);else if(d.transformationType===S.CLASS_TO_PLAIN||d.transformationType===S.CLASS_TO_CLASS){var c;(c=F.findExposeMetadata(r,o))&&c.options&&c.options.name&&(a=c.options.name)}var f=void 0;f=d.transformationType===S.PLAIN_TO_CLASS?t[s]:t instanceof Map?t.get(s):t[s]instanceof Function?t[s]():t[s];var l=void 0,h=f instanceof Map;if(r&&n)l=r;else if(r){var R=F.findTypeMetadata(r,u);if(R){var y={newObject:p,object:t,property:u},g=R.typeFunction?R.typeFunction(y):R.reflectedType;R.options&&R.options.discriminator&&R.options.discriminator.property&&R.options.discriminator.subTypes?t[s]instanceof Array?l=R:(d.transformationType===S.PLAIN_TO_CLASS&&(l=void 0===(l=R.options.discriminator.subTypes.find((function(e){if(f&&f instanceof Object&&R.options.discriminator.property in f)return e.name===f[R.options.discriminator.property]})))?g:l.value,R.options.keepDiscriminatorProperty||f&&f instanceof Object&&R.options.discriminator.property in f&&delete f[R.options.discriminator.property]),d.transformationType===S.CLASS_TO_CLASS&&(l=f.constructor),d.transformationType===S.CLASS_TO_PLAIN&&f&&(f[R.options.discriminator.property]=R.options.discriminator.subTypes.find((function(e){return e.value===f.constructor})).name)):l=g,h=h||R.reflectedType===Map}else if(d.options.targetMaps)d.options.targetMaps.filter((function(e){return e.target===r&&!!e.properties[u]})).forEach((function(e){return l=e.properties[u]}));else if(d.options.enableImplicitConversion&&d.transformationType===S.PLAIN_TO_CLASS){var m=Reflect.getMetadata("design:type",r.prototype,u);m&&(l=m)}}var _=Array.isArray(t[s])?d.getReflectedType(r,u):void 0,v=e?e[s]:void 0;if(p.constructor.prototype){var b=Object.getOwnPropertyDescriptor(p.constructor.prototype,a);if((d.transformationType===S.PLAIN_TO_CLASS||d.transformationType===S.CLASS_TO_CLASS)&&(b&&!b.set||p[a]instanceof Function))return"continue"}if(d.options.enableCircularCheck&&d.isCircular(f))d.transformationType===S.CLASS_TO_CLASS&&(w=f,(void 0!==(w=d.applyCustomTransformations(w,r,o,t,d.transformationType))||d.options.exposeUnsetFields)&&(p instanceof Map?p.set(a,w):p[a]=w));else{var O=d.transformationType===S.PLAIN_TO_CLASS?a:o,w=void 0;d.transformationType===S.CLASS_TO_PLAIN?(w=t[O],w=d.applyCustomTransformations(w,r,O,t,d.transformationType),w=t[O]===w?f:w,w=d.transform(v,w,l,_,h,i+1)):void 0===f&&d.options.exposeDefaultValues?w=p[a]:(w=d.transform(v,f,l,_,h,i+1),w=d.applyCustomTransformations(w,r,O,t,d.transformationType)),(void 0!==w||d.options.exposeUnsetFields)&&(p instanceof Map?p.set(a,w):p[a]=w)}},d=this,l=0,h=c;l<h.length;l++)f(h[l]);return this.options.enableCircularCheck&&this.recursionStack.delete(t),p}return t}return t}return new Promise((function(e,o){t.then((function(t){return e(a.transform(void 0,t,r,void 0,void 0,i+1))}),o)}))}return null==t?t:Boolean(t)}return null==t?t:Number(t)}return null==t?t:String(t)},e.prototype.applyCustomTransformations=function(e,t,r,o,n){var i=this,s=F.findTransformMetadatas(t,r,this.transformationType);return void 0!==this.options.version&&(s=s.filter((function(e){return!e.options||i.checkVersion(e.options.since,e.options.until)}))),(s=this.options.groups&&this.options.groups.length?s.filter((function(e){return!e.options||i.checkGroups(e.options.groups)})):s.filter((function(e){return!e.options||!e.options.groups||!e.options.groups.length}))).forEach((function(t){e=t.transformFn({value:e,key:r,obj:o,type:n,options:i.options})})),e},e.prototype.isCircular=function(e){return this.recursionStack.has(e)},e.prototype.getReflectedType=function(e,t){if(e){var r=F.findTypeMetadata(e,t);return r?r.reflectedType:void 0}},e.prototype.getKeys=function(e,t,r){var o=this,n=F.getStrategy(e);"none"===n&&(n=this.options.strategy||"exposeAll");var i=[];if(("exposeAll"===n||r)&&(i=t instanceof Map?Array.from(t.keys()):Object.keys(t)),r)return i;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var s=F.getExposedProperties(e,this.transformationType),a=F.getExcludedProperties(e,this.transformationType);i=V(V([],s,!0),a,!0)}if(!this.options.ignoreDecorators&&e){s=F.getExposedProperties(e,this.transformationType),this.transformationType===S.PLAIN_TO_CLASS&&(s=s.map((function(t){var r=F.findExposeMetadata(e,t);return r&&r.options&&r.options.name?r.options.name:t}))),i=this.options.excludeExtraneousValues?s:i.concat(s);var u=F.getExcludedProperties(e,this.transformationType);u.length>0&&(i=i.filter((function(e){return!u.includes(e)}))),void 0!==this.options.version&&(i=i.filter((function(t){var r=F.findExposeMetadata(e,t);return!r||!r.options||o.checkVersion(r.options.since,r.options.until)}))),i=this.options.groups&&this.options.groups.length?i.filter((function(t){var r=F.findExposeMetadata(e,t);return!r||!r.options||o.checkGroups(r.options.groups)})):i.filter((function(t){var r=F.findExposeMetadata(e,t);return!(r&&r.options&&r.options.groups&&r.options.groups.length)}))}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(i=i.filter((function(e){return o.options.excludePrefixes.every((function(t){return e.substr(0,t.length)!==t}))}))),i.filter((function(e,t,r){return r.indexOf(e)===t}))},e.prototype.checkVersion=function(e,t){var r=!0;return r&&e&&(r=this.options.version>=e),r&&t&&(r=this.options.version<t),r},e.prototype.checkGroups=function(e){return!e||this.options.groups.some((function(t){return e.includes(t)}))},e}(),Y={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},$=function(){return $=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},$.apply(this,arguments)},X=new(function(){function e(){}return e.prototype.instanceToPlain=function(e,t){return new k(S.CLASS_TO_PLAIN,$($({},Y),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(e,t,r){return new k(S.CLASS_TO_PLAIN,$($({},Y),r)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(e,t,r){return new k(S.PLAIN_TO_CLASS,$($({},Y),r)).transform(void 0,t,e,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(e,t,r){return new k(S.PLAIN_TO_CLASS,$($({},Y),r)).transform(e,t,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(e,t){return new k(S.CLASS_TO_CLASS,$($({},Y),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(e,t,r){return new k(S.CLASS_TO_CLASS,$($({},Y),r)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(e,t){return JSON.stringify(this.instanceToPlain(e,t))},e.prototype.deserialize=function(e,t,r){var o=JSON.parse(t);return this.plainToInstance(e,o,r)},e.prototype.deserializeArray=function(e,t,r){var o=JSON.parse(t);return this.plainToInstance(e,o,r)},e}());function W(e,t,r){return X.plainToInstance(e,t,r)}var K=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find((function(t){return t.type===e}));return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());function z(e){return K.get(e)}var Q=function(){function e(e,t,r){void 0===r&&(r=!1),this.target=e,this.name=t,this.async=r}return Object.defineProperty(e.prototype,"instance",{get:function(){return z(this.target)},enumerable:!1,configurable:!0}),e}(),Z=function(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)},J=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map((function(e){return t[e]})).indexOf(e)},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.PROMISE_VALIDATION="promiseValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e}(),ee=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach((function(r){e.properties[r].forEach((function(o){var n={message:o.message,groups:o.groups,always:o.always,each:o.each},i={type:o.type,target:e.name,propertyName:r,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:n};t.push(new Z(i))}))})),t},e}();function te(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0}var re=function(){function e(){this.validationMetadatas=[],this.constraintMetadatas=[]}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.length},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new ee).transform(e).forEach((function(e){return t.addValidationMetadata(e)}))},e.prototype.addValidationMetadata=function(e){this.validationMetadatas.push(e)},e.prototype.addConstraintMetadata=function(e){this.constraintMetadatas.push(e)},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach((function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)})),t},e.prototype.getTargetValidationMetadatas=function(e,t,r,o,n){var i=function(e){return void 0!==e.always?e.always:(!e.groups||!e.groups.length)&&r},s=function(e){return!(!o||n&&n.length||!e.groups||!e.groups.length)},a=this.validationMetadatas.filter((function(r){return(r.target===e||r.target===t)&&(!!i(r)||!s(r)&&(!(n&&n.length>0)||r.groups&&!!r.groups.find((function(e){return-1!==n.indexOf(e)}))))})),u=this.validationMetadatas.filter((function(t){return"string"!=typeof t.target&&t.target!==e&&(!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!i(t)||!s(t)&&(!(n&&n.length>0)||t.groups&&!!t.groups.find((function(e){return-1!==n.indexOf(e)}))))})).filter((function(e){return!a.find((function(t){return t.propertyName===e.propertyName&&t.type===e.type}))}));return a.concat(u)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.filter((function(t){return t.target===e}))},e}();function oe(){var e=te();return e.classValidatorMetadataStorage||(e.classValidatorMetadataStorage=new re),e.classValidatorMetadataStorage}function ne(e){var t;if(e.validator instanceof Function){if(t=e.validator,z(re).getTargetValidatorConstraints(e.validator).length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(e.target.name,":").concat(e.propertyName)}else{var r=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return r.validate(e,t)},e.prototype.defaultMessage=function(e){return r.defaultMessage?r.defaultMessage(e):""},e}(),oe().addConstraintMetadata(new Q(t,e.name,e.async))}var o={type:e.name&&J.isValid(e.name)?e.name:J.CUSTOM_VALIDATION,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};oe().addValidationMetadata(new Z(o))}function ie(e,t){return function(r){var o=t&&t.each?"each value in ":"";return e(o,r)}}function se(e,t){return function(r,o){ne({name:e.name,target:r.constructor,propertyName:o,options:t,constraints:e.constraints,validator:e.validator})}}var ae=J.IS_DEFINED;function ue(e){return null!=e}function ce(e){return se({name:ae,validator:{validate:function(e){return ue(e)},defaultMessage:ie((function(e){return e+"$property should not be null or undefined"}),e)}},e)}var pe,fe=function(){return fe=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe.apply(this,arguments)};function de(e){var t=fe({},e),r=t.each?"each value in ":"";return t.message=t.message||r+"nested property $property must be either object or array",function(e,r){var o={type:J.NESTED_VALIDATION,target:e.constructor,propertyName:r,validationOptions:t};oe().addValidationMetadata(new Z(o))}}function le(e){return"number"==typeof e&&Number.isInteger(e)}function he(e){return se({name:"isInt",validator:{validate:function(e,t){return le(e)},defaultMessage:ie((function(e){return e+"$property must be an integer number"}),e)}},e)}function Re(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t}function ye(e,t){return se({name:"min",constraints:[e],validator:{validate:function(e,t){return Re(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must not be less than $constraint1"}),t)}},t)}function ge(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t}function me(e,t){return se({name:"max",constraints:[e],validator:{validate:function(e,t){return ge(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must not be greater than $constraint1"}),t)}},t)}function _e(e){return function(t){var r=e&&e.async,o=e&&e.name?e.name:"";o||(o=t.name)||(o=o.replace(/\.?([A-Z]+)/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,""));var n=new Q(t,o,r);oe().addConstraintMetadata(n)}}!function(e){e.CancelRequestMethod="kolibri.cancel",e.CloseRequestMethod="kolibri.close",e.UpdateTokenMethod="kolibri.updateToken",e.LogoutRequestMethod="kolibri.logout",e.GetChallengeRequestMethod="kolibri.getChallenge",e.GetRpcInfoRequestMethod="kolibri.getRpcInfo",e.GetStatisticsRequestMethod="kolibri.getStatistics",e.LoginRequestMethod="kolibri.login",e.ReadRequestMethod="kolibri.read",e.WriteRequestMethod="kolibri.write",e.CommitRequestMethod="kolibri.commit",e.SubscribeRequestMethod="kolibri.subscribe",e.UnsubscribeRequestMethod="kolibri.unsubscribe",e.NodeBrowseRequestMethod="kolibri.node.browse",e.NodeCreateRequestMethod="kolibri.node.create",e.NodeDeleteRequestMethod="kolibri.node.delete",e.NodeGetHistoryRequestMethod="kolibri.node.getHistory",e.NodeGetPropertiesRequestMethod="kolibri.node.getProperties",e.NodeModifyRequestMethod="kolibri.node.modify",e.NodeDeleteHistoryRequestMethod="kolibri.node.deleteHistory",e.NodeSubscribeRequestMethod="kolibri.node.subscribe",e.NodeUnsubscribeRequestMethod="kolibri.node.unsubscribe",e.PermissionNodeListRequestMethod="kolibri.permission.node.list",e.PermissionNodeSetRequestMethod="kolibri.permission.node.set",e.PermissionRpcAddRequestMethod="kolibri.permission.rpc.add",e.PermissionRpcListRequestMethod="kolibri.permission.rpc.list",e.PermissionRpcRemoveRequestMethod="kolibri.permission.rpc.remove",e.PermissionUserListRequestMethod="kolibri.permission.user.list",e.ProjectBrowseRequestMethod="kolibri.project.browse",e.ProjectCreateRequestMethod="kolibri.project.create",e.ProjectDeleteRequestMethod="kolibri.project.delete",e.ProjectGetPropertiesRequestMethod="kolibri.project.getProperties",e.ProjectGetStatisticsRequestMethod="kolibri.project.getStatistics",e.ProjectModifyRequestMethod="kolibri.project.modify",e.ProjectGetHistoryUsageRequestMethod="kolibri.project.getHistoryUsage",e.ProjectGetLiveUsageRequestMethod="kolibri.project.getLiveUsage",e.UserBrowseRequestMethod="kolibri.user.browse",e.UserCreateRequestMethod="kolibri.user.create",e.UserDeleteRequestMethod="kolibri.user.delete",e.UserGetHistoryRequestMethod="kolibri.user.getHistory",e.UserGetPropertiesRequestMethod="kolibri.user.getProperties",e.UserModifyRequestMethod="kolibri.user.modify",e.UserSubscribeRequestMethod="kolibri.user.subscribe",e.UserUnsubscribeRequestMethod="kolibri.user.unsubscribe",e.UserGetSessionRequestMethod="kolibri.user.getSessions",e.UserGroupAddMemberRequestMethod="kolibri.usergroup.addMember",e.UsergroupBrowseRequestMethod="kolibri.usergroup.browse",e.UsergroupCreateRequestMethod="kolibri.usergroup.create",e.UsergroupDeleteRequestMethod="kolibri.usergroup.delete",e.UserGroupGetPropertiesRequestMethod="kolibri.usergroup.getProperties",e.UserGroupIsMemberRequestMethod="kolibri.usergroup.isMember",e.UserGroupListMembersRequestMethod="kolibri.usergroup.listMembers",e.UserGroupModifyRequestMethod="kolibri.usergroup.modify",e.UserGroupRemoveMemberMethod="kolibri.usergroup.removeMember",e.UnsubscribedRequestMethod="kolibri.unsubscribed",e.UserNotifyRequestMethod="kolibri.user.notify",e.NodeNotifyRequestMethod="kolibri.node.notify"}(pe||(pe={}));var ve="isUnsigned16Bit";function be(e){return le(e)&&Re(e,0)&&ge(e,h.DT_UINT_16BIT_MAX)}var Oe=function(){function e(){}return e.prototype.validate=function(e,t){return be(e)},e.prototype.defaultMessage=function(e){return"$property must be an unsigned 16 bit number."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:ve,async:!0})],e)}();function we(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Oe})}}function Te(e){return e instanceof String||"string"==typeof e}function Ee(e){return se({name:"isString",validator:{validate:function(e,t){return Te(e)},defaultMessage:ie((function(e){return e+"$property must be a string"}),e)}},e)}function Ie(e,t){return se({name:"isIn",constraints:[e],validator:{validate:function(e,t){return function(e,t){return!Array.isArray(t)||t.some((function(t){return t===e}))}(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must be one of the following values: $constraint1"}),t)}},t)}var Pe,Ne=(Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Pe(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Me=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ue=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ge=function(){function e(e,t,r){this.jsonrpc="2.0",this.id=e,this.method=t,this.params=r}return Me([Ee(),Ue("design:type",String)],e.prototype,"jsonrpc",void 0),Me([Ee(),Ie(Object.values(pe)),Ue("design:type",String)],e.prototype,"method",void 0),Me([he(),ye(0),Ue("design:type",Object)],e.prototype,"id",void 0),e}(),qe=function(e){function t(t){var r=e.call(this,"KolibriRequest failed: "+t.code)||this;return r.kolibriError=t,Error.captureStackTrace(r,r.constructor),r}return Ne(t,e),t}(Error),De=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Se=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ae=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ce=function(){function e(e,t){this.jsonrpc="2.0",this.id=e,this.result=t}return Se([Ee(),Ae("design:type",String)],e.prototype,"jsonrpc",void 0),Se([he(),Ae("design:type",Object)],e.prototype,"id",void 0),Se([de(),Ae("design:type",Object)],e.prototype,"result",void 0),e}(),je=function(){function e(e,t){this.jsonrpc="2.0",this.id=e,this.error=t}return Se([Ee(),Ae("design:type",String)],e.prototype,"jsonrpc",void 0),Se([he(),Ae("design:type",Object)],e.prototype,"id",void 0),e}(),Le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.result=0,t}return De(t,e),Se([he(),Ae("design:type",Object)],t.prototype,"result",void 0),t}(Ce),Be=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),xe=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Fe=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},He=function(){function e(e){this.tid=e}return xe([we(),Fe("design:type",Number)],e.prototype,"tid",void 0),e}(),Ve=function(e){function t(t,r){var o=e.call(this,t,pe.CancelRequestMethod)||this;return o.params=r,o}return Be(t,e),xe([ce(),de(),H((function(){return He})),Fe("design:type",He)],t.prototype,"params",void 0),t}(Ge);function ke(e){return e.method===pe.CancelRequestMethod}function Ye(e){return W(Ve,e)}var $e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t}(Le);function Xe(e){return function(t,r){var o={type:J.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:r,constraints:[function(e,t){return null!==e[r]&&void 0!==e[r]}],validationOptions:e};oe().addValidationMetadata(new Z(o))}}var We=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ke=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ze=function(e){function t(t){return e.call(this,t,pe.CloseRequestMethod)||this}return We(t,e),function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Xe(),Ke("design:type",void 0)],t.prototype,"params",void 0),t}(Ge),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t}(Le);function Ze(e){return e.method===pe.CloseRequestMethod}function Je(e){return W(ze,e)}var et=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),tt=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ot=function(){function e(e){this.tid=e}return tt([we(),rt("design:type",Number)],e.prototype,"tid",void 0),e}(),nt=function(e){function t(t,r){var o=e.call(this,t,pe.CommitRequestMethod)||this;return o.params=r,o}return et(t,e),tt([de(),H((function(){return ot})),ce(),rt("design:type",ot)],t.prototype,"params",void 0),t}(Ge);function it(e){return e.method===pe.CommitRequestMethod}function st(e){return W(nt,e)}var at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t}(Le),ut=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ct=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pt=function(e){function t(t){return e.call(this,t,pe.GetChallengeRequestMethod)||this}return ut(t,e),function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Xe(),ct("design:type",void 0)],t.prototype,"params",void 0),t}(Ge);function ft(e){return e.method===pe.GetChallengeRequestMethod}function dt(e){return W(pt,e)}function lt(e){return se({name:"isEmpty",validator:{validate:function(e,t){return function(e){return""===e||null==e}(e)},defaultMessage:ie((function(e){return e+"$property must be empty"}),e)}},e)}var ht=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Rt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yt=function(e){function t(t){return e.call(this,t,pe.GetRpcInfoRequestMethod)||this}return ht(t,e),function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([lt(),Rt("design:type",void 0)],t.prototype,"params",void 0),t}(Ge);function gt(e){return e.method===pe.GetRpcInfoRequestMethod}function mt(e){return W(yt,e)}var _t=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),vt=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},bt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ot=function(){function e(e){this.category=e}return vt([Xe(),Ee(),Ie(["version","uptime","load","memory","count","opcode","rpc"]),bt("design:type",String)],e.prototype,"category",void 0),e}(),wt=function(e){function t(t,r){var o=e.call(this,t,pe.GetStatisticsRequestMethod)||this;return o.params=r,o}return _t(t,e),vt([de(),H((function(){return Ot})),bt("design:type",Ot)],t.prototype,"params",void 0),t}(Ge);function Tt(e){return e.method===pe.GetStatisticsRequestMethod}function Et(e){return W(wt,e)}var It=r(661),Pt=r.n(It);function Nt(e,t){return"string"==typeof e&&Pt()(e,{min:0,max:t})}function Mt(e,t){return se({name:"maxLength",constraints:[e],validator:{validate:function(e,t){return Nt(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must be shorter than or equal to $constraint1 characters"}),t)}},t)}function Ut(e){return e instanceof Boolean||"boolean"==typeof e}function Gt(e){return se({name:"isBoolean",validator:{validate:function(e,t){return Ut(e)},defaultMessage:ie((function(e){return e+"$property must be a boolean value"}),e)}},e)}function qt(e,t){if(void 0===t&&(t={}),"number"!=typeof e)return!1;if(e===1/0||e===-1/0)return t.allowInfinity;if(Number.isNaN(e))return t.allowNaN;if(void 0!==t.maxDecimalPlaces){var r=0;if(e%1!=0&&(r=e.toString().split(".")[1].length),r>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function Dt(e,t){return void 0===e&&(e={}),se({name:"isNumber",constraints:[e],validator:{validate:function(e,t){return qt(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must be a number conforming to the specified constraints"}),t)}},t)}var St=r(5090),At=r.n(St);function Ct(e,t,r){return"string"==typeof e&&At()(e,t,r)}function jt(e){return Te(e)&&Nt(e,h.USER_NAME_MAXLEN)&&Ct(e,/^(([a-z0-9])|([a-z0-9][a-z0-9_.-]{0,30}[a-z0-9]))$/i)}var Lt=function(){function e(){}return e.prototype.validate=function(e,t){return jt(e)},e.prototype.defaultMessage=function(e){return"User ($value) must start and end with a letter\n or digit ([a-zA-Z0-9]) and which may contain up to 32 characters from the character\n class [a-zA-Z0-9_.-]. The name is case-insensitive."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriUser",async:!0})],e)}();function Bt(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Lt})}}var xt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ft=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ht=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Vt=function(){function e(e,t,r,o,n,i){this.version=e,this.user=t,this.password=r,this.interval=o,this.timeout=n,this.pendingTransactions=i}var t;return Ft([he(),(0,se({name:"equals",constraints:[0],validator:{validate:function(e,t){return function(e,t){return e===t}(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must be equal to $constraint1"}),t)}},t)),Ht("design:type",Number)],e.prototype,"version",void 0),Ft([Bt(),Ht("design:type",String)],e.prototype,"user",void 0),Ft([Ee(),Mt(h.PASSWORD_MAXLEN),Ht("design:type",String)],e.prototype,"password",void 0),Ft([he(),me(3600),ye(15),Ht("design:type",Number)],e.prototype,"interval",void 0),Ft([he(),ye(1),me(255),Ht("design:type",Number)],e.prototype,"timeout",void 0),Ft([Xe(),Gt(),Ht("design:type",Boolean)],e.prototype,"pendingTransactions",void 0),e}(),kt=function(e){function t(t,r){var o=e.call(this,t,pe.LoginRequestMethod)||this;return o.params=r,o}return xt(t,e),Ft([de(),H((function(){return Vt})),ce(),Ht("design:type",Vt)],t.prototype,"params",void 0),t}(Ge);function Yt(e){return e.method===pe.LoginRequestMethod}function $t(e){return W(kt,e)}var Xt=function(){function e(e){this.result=e}return Ft([Dt(),Ht("design:type",Number)],e.prototype,"result",void 0),e}(),Wt=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return xt(t,e),t}(Ce);function Kt(e){return se({name:"arrayNotEmpty",validator:{validate:function(e,t){return r=e,Array.isArray(r)&&r.length>0;var r},defaultMessage:ie((function(e){return e+"$property should not be empty"}),e)}},e)}function zt(e,t,r){return"string"==typeof e&&Pt()(e,{min:t,max:r})}function Qt(e,t,r){return se({name:"isLength",constraints:[e,t],validator:{validate:function(e,t){return zt(e,t.constraints[0],t.constraints[1])},defaultMessage:ie((function(e,t){var r=null!==t.constraints[0]&&void 0!==t.constraints[0],o=null!==t.constraints[1]&&void 0!==t.constraints[1];return r&&(!t.value||t.value.length<t.constraints[0])?e+"$property must be longer than or equal to $constraint1 characters":o&&t.value.length>t.constraints[1]?e+"$property must be shorter than or equal to $constraint2 characters":e+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"}),r)}},r)}function Zt(e){return Te(e)&&zt(e,1,h.DT_STRING_MAXLEN)&&Ct(e,/^\/(([a-z0-9][a-z0-9_.-]{0,30}\/?)*[a-z0-9])?$/i)}var Jt=function(){function e(){}return e.prototype.validate=function(e,t){return Zt(e)},e.prototype.defaultMessage=function(e){return"The path identifier must start with a dash(/) and end with a letter or digit ([a-zA-Z0-9])\n and it may contain up to 4096 characters from the character class [a-zA-Z0-9_.-]. It is case-sensitive."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriNodePath",async:!0})],e)}();function er(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Jt})}}var tr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),rr=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},or=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},nr=function(){function e(e,t){this.path=e,this.formatted=t}return rr([er(),or("design:type",String)],e.prototype,"path",void 0),rr([Gt(),Xe(),or("design:type",Boolean)],e.prototype,"formatted",void 0),e}(),ir=function(e){function t(t,r){var o=e.call(this,t,pe.ReadRequestMethod)||this;return o.params=r,o}return tr(t,e),rr([de(),H((function(){return nr})),Kt(),ce(),or("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function sr(e){return e.method===pe.ReadRequestMethod}function ar(e){return W(ir,e)}var ur=function(e,t,r,o,n,i,s,a,u){this.path=e,this.timestamp=t,this.timestampBroker=r,this.quality=o,this.value=n,this.dataType=i,this.scalingFactor=s,this.scalingOffset=a,this.format=u},cr=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return tr(t,e),t}(Ce),pr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),fr=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},dr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},lr=function(){function e(e,t,r,o){this.path=e,this.formatted=t,this.ignoreMissing=r,this.respectCommit=o}return fr([er(),dr("design:type",String)],e.prototype,"path",void 0),fr([Xe(),Gt(),dr("design:type",Boolean)],e.prototype,"formatted",void 0),fr([Xe(),Gt(),dr("design:type",Boolean)],e.prototype,"ignoreMissing",void 0),fr([Xe(),Gt(),dr("design:type",Boolean)],e.prototype,"respectCommit",void 0),e}(),hr=function(e){function t(t,r){var o=e.call(this,t,pe.SubscribeRequestMethod)||this;return o.params=r,o}return pr(t,e),fr([de(),H((function(){return lr})),Kt(),dr("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function Rr(e){return e.method===pe.SubscribeRequestMethod}function yr(e){return W(hr,e)}var gr=function(){function e(e,t,r,o,n){this.path=e,this.dataType=t,this.format=r,this.scalingFactor=o,this.scalingOffset=n}return fr([er(),dr("design:type",String)],e.prototype,"path",void 0),fr([Dt(),dr("design:type",Number)],e.prototype,"dataType",void 0),fr([Ee(),dr("design:type",String)],e.prototype,"format",void 0),fr([Ee(),dr("design:type",String)],e.prototype,"scalingFactor",void 0),fr([Ee(),dr("design:type",String)],e.prototype,"scalingOffset",void 0),e}(),mr=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return pr(t,e),t}(Ce),_r=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),vr=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},br=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Or=function(){function e(e){this.path=e}return vr([er(),br("design:type",String)],e.prototype,"path",void 0),e}(),wr=function(e){function t(t,r){var o=e.call(this,t,pe.UnsubscribeRequestMethod)||this;return o.params=r,o}return _r(t,e),vr([de(),H((function(){return Or})),ce(),Kt(),br("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function Tr(e){return e.method===pe.UnsubscribeRequestMethod}function Er(e){return W(wr,e)}var Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _r(t,e),t}(Le);function Pr(e){return se({name:"isArray",validator:{validate:function(e,t){return function(e){return Array.isArray(e)}(e)},defaultMessage:ie((function(e){return e+"$property must be an array"}),e)}},e)}var Nr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Mr=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ur=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Gr=function(){function e(e,t,r,o){this.path=e,this.timestamp=t,this.quality=r,this.value=o}return Mr([er(),Ur("design:type",String)],e.prototype,"path",void 0),Mr([he(),Ur("design:type",Number)],e.prototype,"timestamp",void 0),Mr([he(),me(h.QUALITY_MAX),Ur("design:type",Number)],e.prototype,"quality",void 0),Mr([ce(),Ur("design:type",Object)],e.prototype,"value",void 0),e}(),qr=function(){function e(e,t){this.nodes=e,this.tid=t}return Mr([de(),Pr(),H((function(){return Gr})),Ur("design:type",Array)],e.prototype,"nodes",void 0),Mr([Xe(),he(),Ur("design:type",Number)],e.prototype,"tid",void 0),e}(),Dr=function(e){function t(t,r){var o=e.call(this,t,pe.WriteRequestMethod)||this;return o.params=r,o}return Nr(t,e),Mr([de(),H((function(){return qr})),ce(),Ur("design:type",qr)],t.prototype,"params",void 0),t}(Ge);function Sr(e){return e.method===pe.WriteRequestMethod}function Ar(e){return W(Dr,e)}var Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nr(t,e),t}(Le),jr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Lr=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Br=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},xr=function(){function e(e,t,r){this.path=e,this.type=t,this.recursive=r}return Lr([er(),Br("design:type",String)],e.prototype,"path",void 0),Lr([he(),Ie([h.POINT,h.GROUP]),Br("design:type",Number)],e.prototype,"type",void 0),Lr([Xe(),Gt(),Br("design:type",Boolean)],e.prototype,"recursive",void 0),e}(),Fr=function(e){function t(t,r){var o=e.call(this,t,pe.NodeBrowseRequestMethod)||this;return o.params=r,o}return jr(t,e),Lr([de(),H((function(){return xr})),ce(),Br("design:type",xr)],t.prototype,"params",void 0),t}(Ge),Hr=function(e,t,r){this.path=e,this.description=t,this.published=r},Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jr(t,e),t}(Ce);function kr(e){return e.method===pe.NodeBrowseRequestMethod}function Yr(e){return W(Fr,e)}function $r(e,t){return se({name:"notEquals",constraints:[e],validator:{validate:function(e,t){return function(e,t){return e!==t}(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property should not be equal to $constraint1"}),t)}},t)}function Xr(e){return qt(e)}var Wr=function(){function e(){}return e.prototype.validate=function(e,t){return Xr(e)},e.prototype.defaultMessage=function(e){return"TriggerN invalid"},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriNodeTriggerN",async:!0})],e)}();function Kr(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Wr})}}var zr=r(4564),Qr=r.n(zr);function Zr(e){if(Te(e)&&!(e.length>h.DT_STRING_MAXLEN)&&""!==e){var t=new(Qr())(e);if("https:"===t.protocol||"http:"===t.protocol||null===t.host)return!0}return!1}var Jr=function(){function e(){}return e.prototype.validate=function(e,t){return Zr(e)},e.prototype.defaultMessage=function(e){return"UpdateUrl invalid"},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriUpdateUrl",async:!0})],e)}();function eo(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Jr})}}var to=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ro=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},oo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},no=function(){function e(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h,R,y){this.path=e,this.type=t,this.description=r,this.flags=o,this.dataType=n,this.triggerMode=i,this.triggerN=s,this.triggerT=a,this.triggerDomain=u,this.qosLevel=c,this.updateUrl=p,this.history=f,this.format=d,this.scalingFactor=l,this.scalingOffset=h,this.writeRangeMin=R,this.writeRangeMax=y}return ro([er(),oo("design:type",String)],e.prototype,"path",void 0),ro([he(),Ie([h.POINT,h.GROUP]),oo("design:type",Number)],e.prototype,"type",void 0),ro([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),oo("design:type",String)],e.prototype,"description",void 0),ro([Xe(),he(),ye(0),me(31),oo("design:type",Number)],e.prototype,"flags",void 0),ro([Xe(),he(),ye(h.DT_MIN),me(h.DT_MAX),$r(h.DT_RESERVED),oo("design:type",Number)],e.prototype,"dataType",void 0),ro([Xe(),he(),ye(h.TRIGGER_MIN),me(h.TRIGGER_MAX),oo("design:type",Number)],e.prototype,"triggerMode",void 0),ro([Xe(),Kr(),oo("design:type",Object)],e.prototype,"triggerN",void 0),ro([Xe(),he(),ye(0),me(4294967295),oo("design:type",Number)],e.prototype,"triggerT",void 0),ro([Xe(),he(),ye(0),me(255),oo("design:type",Number)],e.prototype,"triggerDomain",void 0),ro([Xe(),he(),ye(h.QOS_MIN),me(h.QOS_MAX),oo("design:type",Number)],e.prototype,"qosLevel",void 0),ro([Xe(),eo(),oo("design:type",String)],e.prototype,"updateUrl",void 0),ro([Xe(),we(),oo("design:type",Number)],e.prototype,"history",void 0),ro([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),oo("design:type",String)],e.prototype,"format",void 0),ro([Xe(),Dt(),oo("design:type",Number)],e.prototype,"scalingFactor",void 0),ro([Xe(),Dt(),oo("design:type",Number)],e.prototype,"scalingOffset",void 0),ro([Xe(),Dt(),oo("design:type",Number)],e.prototype,"writeRangeMin",void 0),ro([Xe(),Dt(),oo("design:type",Number)],e.prototype,"writeRangeMax",void 0),e}(),io=function(e){function t(t,r){var o=e.call(this,t,pe.NodeCreateRequestMethod)||this;return o.params=r,o}return to(t,e),ro([de(),H((function(){return no})),ce(),oo("design:type",no)],t.prototype,"params",void 0),t}(Ge),so=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return to(t,e),t}(Le);function ao(e){return e.method===pe.NodeCreateRequestMethod}function uo(e){return W(io,e)}var co=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),po=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},fo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},lo=function(){function e(e){this.path=e}return po([er(),fo("design:type",String)],e.prototype,"path",void 0),e}(),ho=function(e){function t(t,r){var o=e.call(this,t,pe.NodeDeleteRequestMethod)||this;return o.params=r,o}return co(t,e),po([de(),H((function(){return lo})),ce(),fo("design:type",lo)],t.prototype,"params",void 0),t}(Ge),Ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return co(t,e),t}(Le);function yo(e){return e.method===pe.NodeDeleteRequestMethod}function go(e){return W(ho,e)}var mo=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),_o=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},vo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},bo=function(){function e(e,t,r,o,n){this.path=e,this.from=t,this.to=r,this.limit=o,this.ascending=n}return _o([er(),vo("design:type",String)],e.prototype,"path",void 0),_o([Xe(),he(),ye(0),me(4294967295),vo("design:type",Number)],e.prototype,"from",void 0),_o([Xe(),he(),ye(0),me(4294967295),vo("design:type",Number)],e.prototype,"to",void 0),_o([Xe(),he(),ye(0),me(h.GETHISTORY_LIMIT),vo("design:type",Number)],e.prototype,"limit",void 0),_o([Xe(),Gt(),vo("design:type",Boolean)],e.prototype,"ascending",void 0),e}(),Oo=function(e){function t(t,r){var o=e.call(this,t,pe.NodeGetHistoryRequestMethod)||this;return o.params=r,o}return mo(t,e),_o([de(),H((function(){return bo})),ce(),vo("design:type",bo)],t.prototype,"params",void 0),t}(Ge),wo=function(e,t,r,o,n,i,s,a){this.value=e,this.timestamp=t,this.timestampBroker=r,this.quality=o,this.dataType=n,this.scalingFactor=i,this.scalingOffset=s,this.format=a},To=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mo(t,e),t}(Ce);function Eo(e){return e.method===pe.NodeGetHistoryRequestMethod}function Io(e){return W(Oo,e)}var Po=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),No=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Mo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Uo=function(){function e(e){this.path=e}return No([er(),Mo("design:type",String)],e.prototype,"path",void 0),e}(),Go=function(e){function t(t,r){var o=e.call(this,t,pe.NodeGetPropertiesRequestMethod)||this;return o.params=r,o}return Po(t,e),No([de(),H((function(){return Uo})),ce(),Mo("design:type",Uo)],t.prototype,"params",void 0),t}(Ge),qo=function(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h){this.type=e,this.description=t,this.flags=r,this.triggerMode=o,this.triggerDomain=n,this.qosLevel=i,this.history=s,this.dataType=a,this.triggerN=u,this.triggerT=c,this.format=p,this.scalingFactor=f,this.scalingOffset=d,this.writeRangeMin=l,this.writeRangeMax=h},Do=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Po(t,e),t}(Ce);function So(e){return e.method===pe.NodeGetPropertiesRequestMethod}function Ao(e){return W(Go,e)}var Co=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),jo=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Lo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Bo=function(){function e(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h,R){this.path=e,this.description=t,this.flags=r,this.dataType=o,this.triggerMode=n,this.triggerN=i,this.triggerT=s,this.triggerDomain=a,this.qosLevel=u,this.updateUrl=c,this.history=p,this.format=f,this.scalingFactor=d,this.scalingOffset=l,this.writeRangeMin=h,this.writeRangeMax=R}return jo([er(),Lo("design:type",String)],e.prototype,"path",void 0),jo([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Lo("design:type",String)],e.prototype,"description",void 0),jo([Xe(),Dt(),ye(0),me(255),Lo("design:type",Number)],e.prototype,"flags",void 0),jo([Xe(),he(),ye(h.DT_MIN),me(h.DT_MAX),$r(h.DT_RESERVED),Lo("design:type",Number)],e.prototype,"dataType",void 0),jo([Xe(),he(),ye(h.TRIGGER_MIN),me(h.TRIGGER_MAX),Lo("design:type",Number)],e.prototype,"triggerMode",void 0),jo([Xe(),Lo("design:type",Object)],e.prototype,"triggerN",void 0),jo([Xe(),Dt(),ye(0),me(4294967295),Lo("design:type",Number)],e.prototype,"triggerT",void 0),jo([Xe(),he(),ye(0),me(255),Lo("design:type",Number)],e.prototype,"triggerDomain",void 0),jo([Xe(),he(),ye(h.QOS_MIN),me(h.QOS_MAX),Lo("design:type",Number)],e.prototype,"qosLevel",void 0),jo([Xe(),eo(),Lo("design:type",String)],e.prototype,"updateUrl",void 0),jo([Xe(),we(),Lo("design:type",Number)],e.prototype,"history",void 0),jo([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Lo("design:type",String)],e.prototype,"format",void 0),jo([Xe(),Dt(),Lo("design:type",Number)],e.prototype,"scalingFactor",void 0),jo([Xe(),Dt(),Lo("design:type",Number)],e.prototype,"scalingOffset",void 0),jo([Xe(),Dt(),Lo("design:type",Number)],e.prototype,"writeRangeMin",void 0),jo([Xe(),Dt(),Lo("design:type",Number)],e.prototype,"writeRangeMax",void 0),e}(),xo=function(e){function t(t,r){var o=e.call(this,t,pe.NodeModifyRequestMethod)||this;return o.params=r,o}return Co(t,e),jo([de(),H((function(){return Bo})),ce(),Lo("design:type",Bo)],t.prototype,"params",void 0),t}(Ge),Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Co(t,e),t}(Le);function Ho(e){return e.method===pe.NodeModifyRequestMethod}function Vo(e){return W(xo,e)}function ko(e){return se({name:"isNotEmpty",validator:{validate:function(e,t){return function(e){return""!==e&&null!=e}(e)},defaultMessage:ie((function(e){return e+"$property should not be empty"}),e)}},e)}var Yo="isKolibriProject";function $o(e){return Te(e)&&Nt(e,h.PROJECT_NAME_MAXLEN)&&Ct(e,/^(([a-z0-9])|([a-z0-9][a-z0-9-]{0,30}[a-z0-9]))$/i)}var Xo=function(){function e(){}return e.prototype.validate=function(e,t){return $o(e)},e.prototype.defaultMessage=function(e){return"Project ($value) must start and end with a letter or digit ([a-zA-Z0-9]) and it may contain\n up to 32 characters from the character class [a-zA-Z0-9-]. It is case-insensitive."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:Yo,async:!0})],e)}();function Wo(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Xo})}}var Ko=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),zo=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zo=function(){function e(e,t,r){this.project=t,this.path=e,this.inherited=r}return zo([Xe(),Wo(),Qo("design:type",String)],e.prototype,"project",void 0),zo([er(),Qo("design:type",String)],e.prototype,"path",void 0),zo([Xe(),Gt(),Qo("design:type",Boolean)],e.prototype,"inherited",void 0),e}(),Jo=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionNodeListRequestMethod)||this;return o.params=r,o}return Ko(t,e),zo([de(),H((function(){return Zo})),ko(),Qo("design:type",Zo)],t.prototype,"params",void 0),t}(Ge);function en(e){return e.method===pe.PermissionNodeListRequestMethod}function tn(e){return W(Jo,e)}var rn=function(e,t,r,o,n){this.user=e,this.path=t,this.read=r,this.write=o,this.config=n},on=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return Ko(t,e),t}(Ce),nn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),sn=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},an=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},un=function(){function e(e,t,r,o,n,i){this.project=r,this.user=e,this.path=t,this.read=o,this.write=n,this.config=i}return sn([Xe(),Wo(),an("design:type",String)],e.prototype,"project",void 0),sn([Bt(),an("design:type",String)],e.prototype,"user",void 0),sn([er(),an("design:type",String)],e.prototype,"path",void 0),sn([Xe(),Gt(),an("design:type",Boolean)],e.prototype,"read",void 0),sn([Xe(),Gt(),an("design:type",Boolean)],e.prototype,"write",void 0),sn([Xe(),Gt(),an("design:type",Boolean)],e.prototype,"config",void 0),e}(),cn=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionNodeSetRequestMethod)||this;return o.params=r,o}return nn(t,e),sn([de(),H((function(){return un})),ko(),an("design:type",un)],t.prototype,"params",void 0),t}(Ge);function pn(e){return e.method===pe.PermissionNodeSetRequestMethod}function fn(e){return W(cn,e)}var dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nn(t,e),t}(Le),ln=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),hn=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Rn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yn=function(){function e(e,t,r,o){this.user=e,this.rpcs=t,this.project=r,this.server=o}return hn([Xe(),Wo(),Rn("design:type",String)],e.prototype,"project",void 0),hn([Bt(),Rn("design:type",String)],e.prototype,"user",void 0),hn([Pr(),ko(),Rn("design:type",Array)],e.prototype,"rpcs",void 0),hn([Xe(),Ee(),Rn("design:type",String)],e.prototype,"server",void 0),e}(),gn=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionRpcAddRequestMethod)||this;return o.params=r,o}return ln(t,e),hn([de(),H((function(){return yn})),ko(),Rn("design:type",yn)],t.prototype,"params",void 0),t}(Ge);function mn(e){return e.method===pe.PermissionRpcAddRequestMethod}function _n(e){return W(gn,e)}var vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ln(t,e),t}(Le),bn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),On=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},wn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Tn=function(){function e(e,t,r){this.project=e,this.user=t,this.server=r}return On([Xe(),Wo(),wn("design:type",String)],e.prototype,"project",void 0),On([Xe(),Bt(),wn("design:type",String)],e.prototype,"user",void 0),On([Xe(),Ee(),wn("design:type",String)],e.prototype,"server",void 0),e}(),En=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionRpcListRequestMethod)||this;return o.params=r,o}return bn(t,e),On([de(),H((function(){return Tn})),wn("design:type",Tn)],t.prototype,"params",void 0),t}(Ge);function In(e){return e.method===pe.PermissionRpcListRequestMethod}function Pn(e){return W(En,e)}var Nn=function(e,t,r){this.user=e,this.rpc=t,this.server=r},Mn=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return bn(t,e),t}(Ce),Un=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Gn=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Dn=function(){function e(e,t,r,o){this.user=e,this.rpcs=t,this.project=r,this.server=o}return Gn([Bt(),qn("design:type",String)],e.prototype,"user",void 0),Gn([Xe(),Wo(),qn("design:type",String)],e.prototype,"project",void 0),Gn([Pr(),ko(),qn("design:type",Array)],e.prototype,"rpcs",void 0),Gn([Xe(),Ee(),qn("design:type",String)],e.prototype,"server",void 0),e}(),Sn=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionRpcRemoveRequestMethod)||this;return o.params=r,o}return Un(t,e),Gn([de(),H((function(){return Dn})),ko(),qn("design:type",Dn)],t.prototype,"params",void 0),t}(Ge);function An(e){return e.method===pe.PermissionRpcRemoveRequestMethod}function Cn(e){return W(Sn,e)}var jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Un(t,e),t}(Le),Ln=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Bn=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fn=function(){function e(e){this.active=e}return Bn([Xe(),Gt(),xn("design:type",Boolean)],e.prototype,"active",void 0),e}(),Hn=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectBrowseRequestMethod)||this;return o.params=r,o}return Ln(t,e),Bn([de(),H((function(){return Fn})),xn("design:type",Fn)],t.prototype,"params",void 0),t}(Ge);function Vn(e){return e.method===pe.ProjectBrowseRequestMethod}function kn(e){return W(Hn,e)}var Yn=function(e,t,r,o,n){this.project=e,this.description=t,this.active=r,this.kolibriProdVersionRange=o,this.kolibriConsVersionRange=n},$n=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return Ln(t,e),t}(Ce),Xn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Wn=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Kn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zn=function(){function e(e,t,r,o,n){this.project=e,this.description=t,this.limitHistoryPoint=r,this.limitHistoryUser=o,this.active=n}return Wn([Wo(),Kn("design:type",String)],e.prototype,"project",void 0),Wn([Xe(),Ee(),Kn("design:type",String)],e.prototype,"description",void 0),Wn([Xe(),he(),ye(0),Kn("design:type",Number)],e.prototype,"limitHistoryPoint",void 0),Wn([Xe(),he(),ye(0),Kn("design:type",Number)],e.prototype,"limitHistoryUser",void 0),Wn([Xe(),Gt(),Kn("design:type",Boolean)],e.prototype,"active",void 0),e}(),Qn=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectCreateRequestMethod)||this;return o.params=r,o}return Xn(t,e),Wn([de(),H((function(){return zn})),ko(),Kn("design:type",zn)],t.prototype,"params",void 0),t}(Ge);function Zn(e){return e.method===pe.ProjectCreateRequestMethod}function Jn(e){return W(Qn,e)}var ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xn(t,e),t}(Le),ti=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ri=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},oi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ni=function(){function e(e){this.project=e}return ri([Wo(),oi("design:type",String)],e.prototype,"project",void 0),e}(),ii=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectDeleteRequestMethod)||this;return o.params=r,o}return ti(t,e),ri([de(),H((function(){return ni})),ko(),oi("design:type",ni)],t.prototype,"params",void 0),t}(Ge);function si(e){return e.method===pe.ProjectDeleteRequestMethod}function ai(e){return W(ii,e)}var ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ti(t,e),t}(Le),ci=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),pi=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},fi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},di=function(){function e(e){this.project=e}return pi([Xe(),Wo(),fi("design:type",String)],e.prototype,"project",void 0),e}(),li=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectGetPropertiesRequestMethod)||this;return o.params=r,o}return ci(t,e),pi([de(),H((function(){return di})),fi("design:type",di)],t.prototype,"params",void 0),t}(Ge);function hi(e){return e.method===pe.ProjectGetPropertiesRequestMethod}function Ri(e){return W(li,e)}var yi=function(e,t,r,o,n,i){this.description=e,this.limitHistoryPoint=t,this.limitHistoryUser=r,this.active=o,this.kolibriProdVersionRange=n,this.kolibriConsVersionRange=i},gi=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return ci(t,e),t}(Ce),mi=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),_i=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},vi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},bi=function(){function e(e){this.project=e}return _i([Xe(),Wo(),vi("design:type",String)],e.prototype,"project",void 0),e}(),Oi=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectGetStatisticsRequestMethod)||this;return o.params=r,o}return mi(t,e),_i([de(),H((function(){return bi})),vi("design:type",bi)],t.prototype,"params",void 0),t}(Ge);function wi(e){return e.method===pe.ProjectGetStatisticsRequestMethod}function Ti(e){return W(Oi,e)}var Ei=function(e,t,r,o,n,i,s){this.groupsTotal=e,this.pointsTotal=t,this.pointsActive=r,this.usersTotal=o,this.usersActive=n,this.connectedProducers=i,this.connectedConsumers=s},Ii=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return mi(t,e),t}(Ce),Pi=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ni=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Mi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ui=function(){function e(e,t,r,o,n){this.project=e,this.description=t,this.limitHistoryPoint=r,this.limitHistoryUser=o,this.active=n}return Ni([Wo(),Mi("design:type",String)],e.prototype,"project",void 0),Ni([Xe(),Ee(),Mi("design:type",String)],e.prototype,"description",void 0),Ni([Xe(),he(),ye(0),Mi("design:type",Number)],e.prototype,"limitHistoryPoint",void 0),Ni([Xe(),he(),ye(0),Mi("design:type",Number)],e.prototype,"limitHistoryUser",void 0),Ni([Xe(),Gt(),Mi("design:type",Boolean)],e.prototype,"active",void 0),e}(),Gi=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectModifyRequestMethod)||this;return o.params=r,o}return Pi(t,e),Ni([de(),H((function(){return Ui})),ko(),Mi("design:type",Ui)],t.prototype,"params",void 0),t}(Ge);function qi(e){return e.method===pe.ProjectModifyRequestMethod}function Di(e){return W(Gi,e)}var Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t}(Le),Ai=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ci=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ji=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Li=function(){function e(e,t,r){this.project=e,this.active=t,this.connected=r}return Ci([Xe(),Wo(),ji("design:type",String)],e.prototype,"project",void 0),Ci([Xe(),Gt(),ji("design:type",Boolean)],e.prototype,"active",void 0),Ci([Xe(),Gt(),ji("design:type",Boolean)],e.prototype,"connected",void 0),e}(),Bi=function(e){function t(t,r){var o=e.call(this,t,pe.UserBrowseRequestMethod)||this;return o.params=r,o}return Ai(t,e),Ci([de(),H((function(){return Li})),ji("design:type",Li)],t.prototype,"params",void 0),t}(Ge);function xi(e){return e.method===pe.UserBrowseRequestMethod}function Fi(e){return W(Bi,e)}var Hi=function(e,t,r){this.user=e,this.description=t,this.active=r},Vi=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return Ai(t,e),t}(Ce),ki=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Yi=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},$i=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Xi=function(){function e(e,t,r,o,n){this.password=t,this.user=e,this.project=r,this.description=o,this.active=n}return Yi([Bt(),$i("design:type",String)],e.prototype,"user",void 0),Yi([Ee(),Mt(40),$i("design:type",String)],e.prototype,"password",void 0),Yi([Xe(),Wo(),$i("design:type",String)],e.prototype,"project",void 0),Yi([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),$i("design:type",String)],e.prototype,"description",void 0),Yi([Xe(),Gt(),$i("design:type",Boolean)],e.prototype,"active",void 0),e}(),Wi=function(e){function t(t,r){var o=e.call(this,t,pe.UserCreateRequestMethod)||this;return o.params=r,o}return ki(t,e),Yi([de(),H((function(){return Xi})),ce(),$i("design:type",Xi)],t.prototype,"params",void 0),t}(Ge);function Ki(e){return e.method===pe.UserCreateRequestMethod}function zi(e){return W(Wi,e)}var Qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ki(t,e),t}(Le),Zi=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ji=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},es=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ts=function(){function e(e,t){this.project=t,this.user=e}return Ji([Bt(),es("design:type",String)],e.prototype,"user",void 0),Ji([Xe(),Wo(),es("design:type",String)],e.prototype,"project",void 0),e}(),rs=function(e){function t(t,r){var o=e.call(this,t,pe.UserDeleteRequestMethod)||this;return o.params=r,o}return Zi(t,e),Ji([de(),H((function(){return ts})),ce(),es("design:type",ts)],t.prototype,"params",void 0),t}(Ge);function os(e){return e.method===pe.UserDeleteRequestMethod}function ns(e){return W(rs,e)}var is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zi(t,e),t}(Le),ss=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),as=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},us=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},cs=function(){function e(e,t,r,o,n,i){this.user=e,this.path=t,this.from=r,this.to=o,this.limit=n,this.ascending=i}return as([Xe(),Bt(),us("design:type",String)],e.prototype,"user",void 0),as([Xe(),er(),us("design:type",String)],e.prototype,"path",void 0),as([Xe(),he(),us("design:type",Number)],e.prototype,"from",void 0),as([Xe(),he(),us("design:type",Number)],e.prototype,"to",void 0),as([Xe(),he(),ye(0),me(h.GETHISTORY_LIMIT),us("design:type",Number)],e.prototype,"limit",void 0),as([Xe(),Gt(),us("design:type",Boolean)],e.prototype,"ascending",void 0),e}(),ps=function(e){function t(t,r){var o=e.call(this,t,pe.UserGetHistoryRequestMethod)||this;return o.params=r,o}return ss(t,e),as([de(),H((function(){return cs})),ce(),us("design:type",cs)],t.prototype,"params",void 0),t}(Ge);function fs(e){return e.method===pe.UserGetHistoryRequestMethod}function ds(e){return W(ps,e)}var ls=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),hs=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Rs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ys=function(){function e(e,t){this.project=t,this.user=e}return hs([Bt(),Rs("design:type",String)],e.prototype,"user",void 0),hs([Xe(),Wo(),Rs("design:type",String)],e.prototype,"project",void 0),e}(),gs=function(e){function t(t,r){var o=e.call(this,t,pe.UserGetPropertiesRequestMethod)||this;return o.params=r,o}return ls(t,e),hs([de(),H((function(){return ys})),ce(),Rs("design:type",ys)],t.prototype,"params",void 0),t}(Ge);function ms(e){return e.method===pe.UserGetPropertiesRequestMethod}function _s(e){return W(gs,e)}var vs=function(e,t,r,o,n,i,s,a,u,c){this.description=e,this.active=t,this.connected=r,this.loginPath=o,this.lastLogin=n,this.lastComunication=i,this.totalLogins=s,this.totalTimeouts=a,this.totalOctetsReceived=u,this.emergencies=c},bs=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return ls(t,e),t}(Ce),Os=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ws=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ts=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Es=function(){function e(e,t,r,o,n){this.project=t,this.user=e,this.description=r,this.password=o,this.active=n}return ws([Bt(),Ts("design:type",String)],e.prototype,"user",void 0),ws([Xe(),Wo(),Ts("design:type",String)],e.prototype,"project",void 0),ws([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Ts("design:type",String)],e.prototype,"description",void 0),ws([Xe(),Ee(),Mt(h.PASSWORD_MAXLEN),Ts("design:type",String)],e.prototype,"password",void 0),ws([Xe(),Gt(),Ts("design:type",Boolean)],e.prototype,"active",void 0),e}(),Is=function(e){function t(t,r){var o=e.call(this,t,pe.UserModifyRequestMethod)||this;return o.params=r,o}return Os(t,e),ws([de(),H((function(){return Es})),ce(),Ts("design:type",Es)],t.prototype,"params",void 0),t}(Ge);function Ps(e){return e.method===pe.UserModifyRequestMethod}function Ns(e){return W(Is,e)}var Ms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Os(t,e),t}(Le),Us=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Gs=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ds=function(){function e(e){this.user=e}return Gs([Bt(),qs("design:type",String)],e.prototype,"user",void 0),e}(),Ss=function(e){function t(t,r){var o=e.call(this,t,pe.UserSubscribeRequestMethod)||this;return o.params=r,o}return Us(t,e),Gs([de(),H((function(){return Ds})),Kt(),qs("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function As(e){return e.method===pe.UserSubscribeRequestMethod}function Cs(e){return W(Ss,e)}var js=function(e,t,r,o,n){this.user=e,this.client=t,this.connected=r,this.loginPath=o,this.emergencies=n},Ls=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Us(t,e),t}(Ce),Bs=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),xs=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Fs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Hs=function(){function e(e){this.user=e}return xs([Bt(),Fs("design:type",String)],e.prototype,"user",void 0),e}(),Vs=function(e){function t(t,r){var o=e.call(this,t,pe.UserUnsubscribeRequestMethod)||this;return o.params=r,o}return Bs(t,e),xs([de(),H((function(){return Hs})),Kt(),Fs("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function ks(e){return e.method===pe.UserUnsubscribeRequestMethod}function Ys(e){return W(Vs,e)}var $s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bs(t,e),t}(Le),Xs="isKolibriUserGroup";function Ws(e){return Te(e)&&Nt(e,h.USER_NAME_MAXLEN)&&Ct(e,/^(([a-z0-9])|([a-z0-9][a-z0-9_.-]{0,30}[a-z0-9]))$/i)}var Ks=function(){function e(){}return e.prototype.validate=function(e,t){return Ws(e)},e.prototype.defaultMessage=function(e){return"UserGroup ($value) must start and end with a letter\n or digit ([a-zA-Z0-9]) and which may contain up to 32 characters from the character\n class [a-zA-Z0-9_.-]. The name is case-insensitive."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:Xs,async:!0})],e)}();function zs(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Ks})}}var Qs=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Zs=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Js=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ea=function(){function e(e,t,r){this.usergroup=e,this.user=t,this.project=r}return Zs([zs(),Js("design:type",String)],e.prototype,"usergroup",void 0),Zs([Bt(),Js("design:type",String)],e.prototype,"user",void 0),Zs([Xe(),Wo(),Js("design:type",String)],e.prototype,"project",void 0),e}(),ta=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupAddMemberRequestMethod)||this;return o.params=r,o}return Qs(t,e),Zs([de(),H((function(){return ea})),ko(),Js("design:type",ea)],t.prototype,"params",void 0),t}(Ge),ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qs(t,e),t}(Le);function oa(e){return e.method===pe.UserGroupAddMemberRequestMethod}function na(e){return W(ta,e)}var ia=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),sa=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},aa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ua=function(){function e(e){this.project=e}return sa([Xe(),Wo(),aa("design:type",String)],e.prototype,"project",void 0),e}(),ca=function(e){function t(t,r){var o=e.call(this,t,pe.UsergroupBrowseRequestMethod)||this;return o.params=r,o}return ia(t,e),sa([Xe(),de(),H((function(){return ua})),aa("design:type",ua)],t.prototype,"params",void 0),t}(Ge),pa=function(e,t){this.usergroup=e,this.description=t},fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ia(t,e),t}(Ce);function da(e){return e.method===pe.UsergroupBrowseRequestMethod}function la(e){return W(ca,e)}var ha=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ra=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ya=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ga=function(){function e(e,t,r){this.project=t,this.usergroup=e,this.description=r}return Ra([zs(),ya("design:type",String)],e.prototype,"usergroup",void 0),Ra([Xe(),Wo(),ya("design:type",String)],e.prototype,"project",void 0),Ra([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),ya("design:type",String)],e.prototype,"description",void 0),e}(),ma=function(e){function t(t,r){var o=e.call(this,t,pe.UsergroupCreateRequestMethod)||this;return o.params=r,o}return ha(t,e),Ra([de(),H((function(){return ga})),ko(),ya("design:type",ga)],t.prototype,"params",void 0),t}(Ge),_a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t}(Le);function va(e){return e.method===pe.UsergroupCreateRequestMethod}function ba(e){return W(ma,e)}var Oa=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),wa=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ta=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ea=function(){function e(e,t){this.project=t,this.usergroup=e}return wa([zs(),Ta("design:type",String)],e.prototype,"usergroup",void 0),wa([Xe(),Wo(),Ta("design:type",String)],e.prototype,"project",void 0),e}(),Ia=function(e){function t(t,r){var o=e.call(this,t,pe.UsergroupDeleteRequestMethod)||this;return o.params=r,o}return Oa(t,e),wa([de(),H((function(){return Ea})),ce(),Ta("design:type",Ea)],t.prototype,"params",void 0),t}(Ge),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oa(t,e),t}(Le);function Na(e){return e.method===pe.UsergroupDeleteRequestMethod}function Ma(e){return W(Ia,e)}var Ua=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ga=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Da=function(){function e(e,t){this.usergroup=e,this.project=t}return Ga([zs(),qa("design:type",String)],e.prototype,"usergroup",void 0),Ga([Xe(),Wo(),qa("design:type",String)],e.prototype,"project",void 0),e}(),Sa=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupGetPropertiesRequestMethod)||this;return o.params=r,o}return Ua(t,e),Ga([de(),H((function(){return Da})),ce(),qa("design:type",Da)],t.prototype,"params",void 0),t}(Ge),Aa=function(e){this.description=e},Ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ua(t,e),t}(Ce);function ja(e){return e.method===pe.UserGroupGetPropertiesRequestMethod}function La(e){return W(Sa,e)}var Ba=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),xa=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Fa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ha=function(){function e(e,t,r){this.project=r,this.usergroup=e,this.user=t}return xa([zs(),Fa("design:type",String)],e.prototype,"usergroup",void 0),xa([Bt(),Fa("design:type",String)],e.prototype,"user",void 0),xa([Xe(),Wo(),Fa("design:type",String)],e.prototype,"project",void 0),e}(),Va=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupIsMemberRequestMethod)||this;return o.params=r,o}return Ba(t,e),xa([de(),H((function(){return Ha})),ce(),Fa("design:type",Ha)],t.prototype,"params",void 0),t}(Ge),ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ba(t,e),t}(Ce);function Ya(e){return e.method===pe.UserGroupIsMemberRequestMethod}function $a(e){return W(Va,e)}var Xa=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Wa=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ka=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},za=function(){function e(e,t){this.project=t,this.usergroup=e}return Wa([zs(),Ka("design:type",String)],e.prototype,"usergroup",void 0),Wa([Xe(),Wo(),Ka("design:type",String)],e.prototype,"project",void 0),e}(),Qa=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupListMembersRequestMethod)||this;return o.params=r,o}return Xa(t,e),Wa([de(),H((function(){return za})),ce(),Ka("design:type",za)],t.prototype,"params",void 0),t}(Ge),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xa(t,e),t}(Ce);function Ja(e){return e.method===pe.UserGroupListMembersRequestMethod}function eu(e){return W(Qa,e)}var tu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ru=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ou=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},nu=function(){function e(e,t,r){this.project=r,this.usergroup=e,this.description=t}return ru([zs(),ou("design:type",String)],e.prototype,"usergroup",void 0),ru([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),ou("design:type",String)],e.prototype,"description",void 0),ru([Xe(),Wo(),ou("design:type",String)],e.prototype,"project",void 0),e}(),iu=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupModifyRequestMethod)||this;return o.params=r,o}return tu(t,e),ru([de(),H((function(){return nu})),ce(),ou("design:type",nu)],t.prototype,"params",void 0),t}(Ge),su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tu(t,e),t}(Le);function au(e){return e.method===pe.UserGroupModifyRequestMethod}function uu(e){return W(iu,e)}var cu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),pu=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},fu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},du=function(){function e(e,t,r){this.project=r,this.usergroup=e,this.user=t}return pu([zs(),fu("design:type",String)],e.prototype,"usergroup",void 0),pu([Bt(),fu("design:type",String)],e.prototype,"user",void 0),pu([Xe(),Wo(),fu("design:type",String)],e.prototype,"project",void 0),e}(),lu=function(e){function t(t,r){var o=e.call(this,t,pe.UserGroupRemoveMemberMethod)||this;return o.params=r,o}return cu(t,e),pu([de(),H((function(){return du})),ce(),fu("design:type",du)],t.prototype,"params",void 0),t}(Ge),hu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t}(Le);function Ru(e){return e.method===pe.UserGroupRemoveMemberMethod}function yu(e){return W(lu,e)}var gu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),mu=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},_u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},vu=function(){function e(e,t,r,o){this.user=e,this.timestamp=t,this.event=r,this.data=o}return mu([Bt(),_u("design:type",String)],e.prototype,"user",void 0),mu([he(),_u("design:type",Number)],e.prototype,"timestamp",void 0),mu([Ee(),Ie(["login","close","timeout","emergencies"]),_u("design:type",String)],e.prototype,"event",void 0),mu([ko(),_u("design:type",Object)],e.prototype,"data",void 0),e}(),bu=function(e){function t(t,r){var o=e.call(this,t,pe.UserNotifyRequestMethod)||this;return o.params=r,o}return gu(t,e),mu([de(),H((function(){return vu})),ce(),Kt(),_u("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function Ou(e){return e.method===pe.UserNotifyRequestMethod}function wu(e){return W(bu,e)}var Tu=function(e){this.result=e},Eu=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return gu(t,e),t}(Ce),Iu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Pu=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Nu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Mu=function(){function e(e,t){this.path=e,this.subscribe=t}return Pu([er(),Nu("design:type",String)],e.prototype,"path",void 0),Pu([Gt(),Nu("design:type",Boolean)],e.prototype,"subscribe",void 0),e}(),Uu=function(e){function t(t,r){var o=e.call(this,t,pe.UnsubscribeRequestMethod)||this;return o.params=r,o}return Iu(t,e),Pu([de(),H((function(){return Mu})),ce(),Kt(),Nu("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function Gu(e){return e.method===pe.UnsubscribedRequestMethod}function qu(e){return W(Uu,e)}var Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Iu(t,e),t}(Le),Su="isKolibriClient";function Au(e){return Te(e)&&Nt(e,h.CLIENT_ID_MAXLEN)&&(Ct(e,/^(([a-z0-9])|([a-z0-9][a-z0-9_.-]{0,30}[a-z0-9]))$/i)||Ct(e,/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))}var Cu=function(){function e(){}return e.prototype.validate=function(e,t){return Au(e)},e.prototype.defaultMessage=function(e){return"Client ($value) must be an UUID or must start and end with a letter or\n digit ([a-zA-Z0-9]) and it may contain up to 36 characters from the character class [a-zA-Z0-9-].\n It is case-insensitive."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:Su,async:!0})],e)}();function ju(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:Cu})}}var Lu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Bu=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fu=function(){function e(e,t,r,o,n,i,s,a){this.user=e,this.password=t,this.interval=r,this.timeout=o,this.pendingTransactions=n,this.client=i,this.sessionExpire=s,this.rpcServer=a}return Bu([Bt(),xu("design:type",String)],e.prototype,"user",void 0),Bu([Ee(),Mt(h.PASSWORD_MAXLEN),xu("design:type",String)],e.prototype,"password",void 0),Bu([he(),me(3600),ye(15),xu("design:type",Number)],e.prototype,"interval",void 0),Bu([he(),ye(1),me(255),xu("design:type",Number)],e.prototype,"timeout",void 0),Bu([Xe(),Gt(),xu("design:type",Boolean)],e.prototype,"pendingTransactions",void 0),Bu([Xe(),ju(),xu("design:type",String)],e.prototype,"client",void 0),Bu([Xe(),he(),xu("design:type",Number)],e.prototype,"sessionExpire",void 0),Bu([Xe(),Gt(),xu("design:type",Boolean)],e.prototype,"rpcServer",void 0),e}(),Hu=function(e){function t(t,r){var o=e.call(this,t,pe.LoginRequestMethod)||this;return o.params=r,o}return Lu(t,e),Bu([de(),H((function(){return Fu})),ce(),xu("design:type",Fu)],t.prototype,"params",void 0),t}(Ge);function Vu(e){return e.method===pe.LoginRequestMethod}function ku(e){return W(Hu,e)}var Yu=function(){function e(e,t){this.limit=e,this.period=t}return Bu([he(),xu("design:type",Number)],e.prototype,"limit",void 0),Bu([he(),xu("design:type",Number)],e.prototype,"period",void 0),e}(),$u=function(){function e(e,t,r){this.status=e,this.client=t,this.writeRateLimit=r}return Bu([he(),xu("design:type",Number)],e.prototype,"status",void 0),Bu([ju(),xu("design:type",String)],e.prototype,"client",void 0),Bu([de(),xu("design:type",Yu)],e.prototype,"writeRateLimit",void 0),e}(),Xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lu(t,e),t}(Ce),Wu=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Ku=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},zu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Qu=function(){function e(e,t,r,o){this.path=e,this.timestamp=t,this.quality=r,this.value=o}return Ku([er(),zu("design:type",String)],e.prototype,"path",void 0),Ku([he(),ye(0),zu("design:type",Number)],e.prototype,"timestamp",void 0),Ku([he(),ye(h.QUALITY_MIN),me(h.QUALITY_MAX),zu("design:type",Number)],e.prototype,"quality",void 0),Ku([ce(),zu("design:type",Object)],e.prototype,"value",void 0),e}(),Zu=function(){function e(e,t){this.nodes=e,this.tid=t}return Ku([de(),Pr(),H((function(){return Qu})),zu("design:type",Array)],e.prototype,"nodes",void 0),Ku([Xe(),he(),zu("design:type",Number)],e.prototype,"tid",void 0),e}(),Ju=function(e){function t(t,r){var o=e.call(this,t,pe.WriteRequestMethod)||this;return o.params=r,o}return Wu(t,e),Ku([de(),H((function(){return Zu})),ce(),zu("design:type",Zu)],t.prototype,"params",void 0),t}(Ge);function ec(e){return e.method===pe.WriteRequestMethod}function tc(e){return W(Ju,e)}var rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wu(t,e),t}(Le),oc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),nc=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ic=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},sc=function(){function e(e,t,r,o){this.path=e,this.type=t,this.recursive=r,this.detailed=o}return nc([er(),ic("design:type",String)],e.prototype,"path",void 0),nc([Dt(),Ie([h.POINT,h.GROUP]),ic("design:type",Number)],e.prototype,"type",void 0),nc([Xe(),Gt(),ic("design:type",Boolean)],e.prototype,"recursive",void 0),nc([Xe(),Gt(),ic("design:type",Boolean)],e.prototype,"detailed",void 0),e}(),ac=function(e){function t(t,r){var o=e.call(this,t,pe.NodeBrowseRequestMethod)||this;return o.params=r,o}return oc(t,e),nc([de(),H((function(){return sc})),ce(),ic("design:type",sc)],t.prototype,"params",void 0),t}(Ge),uc=function(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h,R,y){this.path=e,this.description=t,this.published=r,this.type=o,this.flags=n,this.triggerMode=i,this.triggerDomain=s,this.qosLevel=a,this.history=u,this.dataType=c,this.triggerN=p,this.triggerT=f,this.format=d,this.scalingFactor=l,this.scalingOffset=h,this.writeRangeMin=R,this.writeRangeMax=y},cc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oc(t,e),t}(Ce);function pc(e){return e.method===pe.NodeBrowseRequestMethod}function fc(e){return W(ac,e)}var dc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),lc=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},hc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Rc=function(){function e(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h,R){this.path=e,this.type=t,this.description=r,this.flags=o,this.dataType=n,this.triggerMode=i,this.triggerN=s,this.triggerT=a,this.triggerDomain=u,this.qosLevel=c,this.history=p,this.format=f,this.scalingFactor=d,this.scalingOffset=l,this.writeRangeMin=h,this.writeRangeMax=R}return lc([er(),hc("design:type",String)],e.prototype,"path",void 0),lc([he(),Ie([h.POINT,h.GROUP]),hc("design:type",Number)],e.prototype,"type",void 0),lc([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),hc("design:type",String)],e.prototype,"description",void 0),lc([Xe(),he(),ye(0),me(31),hc("design:type",Number)],e.prototype,"flags",void 0),lc([Xe(),he(),ye(h.DT_MIN),me(h.DT_MAX),$r(h.DT_RESERVED),hc("design:type",Number)],e.prototype,"dataType",void 0),lc([Xe(),he(),ye(h.TRIGGER_MIN),me(h.TRIGGER_MAX),hc("design:type",Number)],e.prototype,"triggerMode",void 0),lc([Xe(),Kr(),hc("design:type",Object)],e.prototype,"triggerN",void 0),lc([Xe(),he(),ye(0),me(4294967295),hc("design:type",Number)],e.prototype,"triggerT",void 0),lc([Xe(),Dt(),ye(0),me(255),hc("design:type",Number)],e.prototype,"triggerDomain",void 0),lc([Xe(),Dt(),ye(h.QOS_MIN),me(h.QOS_MAX),hc("design:type",Number)],e.prototype,"qosLevel",void 0),lc([Xe(),we(),hc("design:type",Number)],e.prototype,"history",void 0),lc([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),hc("design:type",String)],e.prototype,"format",void 0),lc([Xe(),Dt(),hc("design:type",Number)],e.prototype,"scalingFactor",void 0),lc([Xe(),Dt(),hc("design:type",Number)],e.prototype,"scalingOffset",void 0),lc([Xe(),Dt(),hc("design:type",Number)],e.prototype,"writeRangeMin",void 0),lc([Xe(),Dt(),hc("design:type",Number)],e.prototype,"writeRangeMax",void 0),e}(),yc=function(e){function t(t,r){var o=e.call(this,t,pe.NodeCreateRequestMethod)||this;return o.params=r,o}return dc(t,e),lc([de(),H((function(){return Rc})),ce(),hc("design:type",Rc)],t.prototype,"params",void 0),t}(Ge),gc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dc(t,e),t}(Le);function mc(e){return e.method===pe.NodeCreateRequestMethod}function _c(e){return W(yc,e)}var vc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),bc=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Oc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wc=function(){function e(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h){this.path=e,this.description=t,this.flags=r,this.dataType=o,this.triggerMode=n,this.triggerN=i,this.triggerT=s,this.triggerDomain=a,this.qosLevel=u,this.history=c,this.format=p,this.scalingFactor=f,this.scalingOffset=d,this.writeRangeMin=l,this.writeRangeMax=h}return bc([er(),Oc("design:type",String)],e.prototype,"path",void 0),bc([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Oc("design:type",String)],e.prototype,"description",void 0),bc([Xe(),Dt(),ye(0),me(255),Oc("design:type",Number)],e.prototype,"flags",void 0),bc([Xe(),he(),ye(h.DT_MIN),me(h.DT_MAX),$r(h.DT_RESERVED),Oc("design:type",Number)],e.prototype,"dataType",void 0),bc([Xe(),he(),ye(h.TRIGGER_MIN),me(h.TRIGGER_MAX),Oc("design:type",Number)],e.prototype,"triggerMode",void 0),bc([Xe(),Oc("design:type",Object)],e.prototype,"triggerN",void 0),bc([Xe(),Dt(),ye(0),me(4294967295),Oc("design:type",Number)],e.prototype,"triggerT",void 0),bc([Xe(),he(),ye(0),me(255),Oc("design:type",Number)],e.prototype,"triggerDomain",void 0),bc([Xe(),he(),ye(h.QOS_MIN),me(h.QOS_MAX),Oc("design:type",Number)],e.prototype,"qosLevel",void 0),bc([Xe(),we(),Oc("design:type",Number)],e.prototype,"history",void 0),bc([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Oc("design:type",String)],e.prototype,"format",void 0),bc([Xe(),Dt(),Oc("design:type",Number)],e.prototype,"scalingFactor",void 0),bc([Xe(),Dt(),Oc("design:type",Number)],e.prototype,"scalingOffset",void 0),bc([Xe(),Dt(),Oc("design:type",Number)],e.prototype,"writeRangeMin",void 0),bc([Xe(),Dt(),Oc("design:type",Number)],e.prototype,"writeRangeMax",void 0),e}(),Tc=function(e){function t(t,r){var o=e.call(this,t,pe.NodeModifyRequestMethod)||this;return o.params=r,o}return vc(t,e),bc([de(),H((function(){return wc})),ce(),Oc("design:type",wc)],t.prototype,"params",void 0),t}(Ge),Ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vc(t,e),t}(Le);function Ic(e){return e.method===pe.NodeModifyRequestMethod}function Pc(e){return W(Tc,e)}var Nc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Mc=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Uc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Gc=function(){function e(e,t,r,o,n){this.path=e,this.from=t,this.to=r,this.limit=o,this.ascending=n}return Mc([er(),Uc("design:type",String)],e.prototype,"path",void 0),Mc([Xe(),he(),ye(0),Uc("design:type",Number)],e.prototype,"from",void 0),Mc([Xe(),he(),ye(0),Uc("design:type",Number)],e.prototype,"to",void 0),Mc([Xe(),he(),ye(0),me(h.GETHISTORY_LIMIT),Uc("design:type",Number)],e.prototype,"limit",void 0),Mc([Xe(),Gt(),Uc("design:type",Boolean)],e.prototype,"ascending",void 0),e}(),qc=function(e){function t(t,r){var o=e.call(this,t,pe.NodeGetHistoryRequestMethod)||this;return o.params=r,o}return Nc(t,e),Mc([de(),H((function(){return Gc})),ce(),Uc("design:type",Gc)],t.prototype,"params",void 0),t}(Ge),Dc=function(e,t,r,o,n,i,s,a){this.value=e,this.timestamp=t,this.timestampBroker=r,this.quality=o,this.dataType=n,this.scalingFactor=i,this.scalingOffset=s,this.format=a},Sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nc(t,e),t}(Ce);function Ac(e){return e.method===pe.NodeGetHistoryRequestMethod}function Cc(e){return W(qc,e)}var jc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Lc=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Bc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},xc=function(){function e(e,t,r,o,n){this.project=e,this.description=t,this.limitHistoryPoint=r,this.limitHistoryUser=o,this.active=n}return Lc([Wo(),Bc("design:type",String)],e.prototype,"project",void 0),Lc([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),Bc("design:type",String)],e.prototype,"description",void 0),Lc([Xe(),he(),Bc("design:type",Number)],e.prototype,"limitHistoryPoint",void 0),Lc([Xe(),he(),Bc("design:type",Number)],e.prototype,"limitHistoryUser",void 0),Lc([Xe(),Gt(),Bc("design:type",Boolean)],e.prototype,"active",void 0),Lc([lt(),Bc("design:type",Number)],e.prototype,"kolibriMinVersion",void 0),Lc([lt(),Bc("design:type",Number)],e.prototype,"kolibriMaxVersion",void 0),e}(),Fc=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectModifyRequestMethod)||this;return o.params=r,o}return jc(t,e),Lc([de(),H((function(){return xc})),ce(),Bc("design:type",xc)],t.prototype,"params",void 0),t}(Ge);function Hc(e){return e.method===pe.ProjectModifyRequestMethod}function Vc(e){return W(Fc,e)}var kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t}(Le),Yc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),$c=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Xc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Wc=function(){function e(e,t,r,o,n,i,s){this.user=e,this.client=t,this.path=r,this.from=o,this.to=n,this.limit=i,this.ascending=s}return $c([Xe(),Bt(),Xc("design:type",String)],e.prototype,"user",void 0),$c([Xe(),ju(),Xc("design:type",String)],e.prototype,"client",void 0),$c([Xe(),er(),Xc("design:type",String)],e.prototype,"path",void 0),$c([Xe(),he(),ye(0),Xc("design:type",Number)],e.prototype,"from",void 0),$c([Xe(),he(),ye(0),Xc("design:type",Number)],e.prototype,"to",void 0),$c([Xe(),he(),ye(0),me(h.GETHISTORY_LIMIT),Xc("design:type",Number)],e.prototype,"limit",void 0),$c([Xe(),Gt(),Xc("design:type",Boolean)],e.prototype,"ascending",void 0),e}(),Kc=function(e){function t(t,r){var o=e.call(this,t,pe.UserGetHistoryRequestMethod)||this;return o.params=r,o}return Yc(t,e),$c([de(),H((function(){return Wc})),ko(),Xc("design:type",Wc)],t.prototype,"params",void 0),t}(Ge);function zc(e){return e.method===pe.UserGetHistoryRequestMethod}function Qc(e){return W(Kc,e)}var Zc=function(e,t,r,o,n,i){this.user=e,this.client=t,this.path=r,this.timestampLogin=o,this.timestampLogout=n,this.timeouts=i},Jc=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return Yc(t,e),t}(Ce),ep=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),tp=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rp=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},op=function(){function e(e,t,r){this.project=t,this.user=e,this.connected=r}return tp([Bt(),rp("design:type",String)],e.prototype,"user",void 0),tp([Xe(),Wo(),rp("design:type",String)],e.prototype,"project",void 0),tp([Xe(),Gt(),rp("design:type",Boolean)],e.prototype,"connected",void 0),e}(),np=function(e){function t(t,r){var o=e.call(this,t,pe.UserGetSessionRequestMethod)||this;return o.params=r,o}return ep(t,e),tp([de(),H((function(){return op})),ce(),rp("design:type",op)],t.prototype,"params",void 0),t}(Ge);function ip(e){return e.method===pe.UserGetSessionRequestMethod}function sp(e){return W(np,e)}var ap=function(e,t,r,o,n,i,s,a,u,c){this.client=e,this.rpcServer=t,this.connected=r,this.expiration=o,this.loginPath=n,this.timestampLogin=i,this.lastCommunication=s,this.timestampLogout=a,this.timeouts=u,this.emergencies=c},up=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return ep(t,e),t}(Ce),cp=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),pp=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},fp=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dp=function(){function e(e,t){this.user=e,this.client=t}return pp([Bt(),fp("design:type",String)],e.prototype,"user",void 0),pp([Xe(),ju(),fp("design:type",String)],e.prototype,"client",void 0),e}(),lp=function(e){function t(t,r){var o=e.call(this,t,pe.UserSubscribeRequestMethod)||this;return o.params=r,o}return cp(t,e),pp([de(),H((function(){return dp})),Kt(),fp("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function hp(e){return e.method===pe.UserSubscribeRequestMethod}function Rp(e){return W(lp,e)}var yp=function(e,t,r,o,n){this.user=e,this.client=t,this.connected=r,this.loginPath=o,this.emergencies=n},gp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cp(t,e),t}(Ce),mp=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),_p=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},vp=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},bp=function(){function e(e,t){this.user=e,this.client=t}return _p([Bt(),vp("design:type",String)],e.prototype,"user",void 0),_p([Xe(),ju(),vp("design:type",Object)],e.prototype,"client",void 0),e}(),Op=function(e){function t(t,r){var o=e.call(this,t,pe.UserUnsubscribeRequestMethod)||this;return o.params=r,o}return mp(t,e),_p([de(),H((function(){return bp})),ce(),vp("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function wp(e){return e.method===pe.UserUnsubscribeRequestMethod}function Tp(e){return W(Op,e)}var Ep=function(e,t){this.user=e,this.client=t},Ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t}(Ce),Pp=r(1875),Np=r.n(Pp);function Mp(e){return se({name:"isSemVer",validator:{validate:function(e,t){return function(e){return"string"==typeof e&&Np()(e)}(e)},defaultMessage:ie((function(e){return e+"$property must be a Semantic Versioning Specification"}),e)}},e)}var Up=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Gp=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qp=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Dp=function(){function e(e,t,r,o,n,i,s){this.project=e,this.description=t,this.limitHistoryPoint=r,this.limitHistoryUser=o,this.active=n,this.kolibriProdVersionRange=i,this.kolibriConsVersionRange=s}return Gp([Wo(),qp("design:type",String)],e.prototype,"project",void 0),Gp([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),qp("design:type",String)],e.prototype,"description",void 0),Gp([Xe(),he(),ye(0),qp("design:type",Number)],e.prototype,"limitHistoryPoint",void 0),Gp([Xe(),he(),ye(0),qp("design:type",Number)],e.prototype,"limitHistoryUser",void 0),Gp([Xe(),Gt(),qp("design:type",Boolean)],e.prototype,"active",void 0),Gp([Xe(),Mp(),qp("design:type",String)],e.prototype,"kolibriProdVersionRange",void 0),Gp([Xe(),Mp(),qp("design:type",String)],e.prototype,"kolibriConsVersionRange",void 0),e}(),Sp=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectCreateRequestMethod)||this;return o.params=r,o}return Up(t,e),Gp([de(),H((function(){return Dp})),ce(),qp("design:type",Dp)],t.prototype,"params",void 0),t}(Ge);function Ap(e){return e.method===pe.ProjectCreateRequestMethod}function Cp(e){return W(Sp,e)}var jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Up(t,e),t}(Le),Lp=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Bp=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xp=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fp=function(){function e(e,t,r,o,n,i,s){this.project=e,this.description=t,this.limitHistoryPoint=r,this.limitHistoryUser=o,this.active=n,this.kolibriProdVersionRange=i,this.kolibriConsVersionRange=s}return Bp([Wo(),xp("design:type",String)],e.prototype,"project",void 0),Bp([Xe(),Ee(),Qt(0,h.DT_STRING_MAXLEN),xp("design:type",String)],e.prototype,"description",void 0),Bp([Xe(),he(),ye(0),xp("design:type",Number)],e.prototype,"limitHistoryPoint",void 0),Bp([Xe(),he(),ye(0),xp("design:type",Number)],e.prototype,"limitHistoryUser",void 0),Bp([Xe(),Gt(),xp("design:type",Boolean)],e.prototype,"active",void 0),Bp([Xe(),Mp(),xp("design:type",String)],e.prototype,"kolibriProdVersionRange",void 0),Bp([Xe(),Mp(),xp("design:type",String)],e.prototype,"kolibriConsVersionRange",void 0),e}(),Hp=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectModifyRequestMethod)||this;return o.params=r,o}return Lp(t,e),Bp([de(),H((function(){return Fp})),ce(),xp("design:type",Fp)],t.prototype,"params",void 0),t}(Ge);function Vp(e){return e.method===pe.ProjectModifyRequestMethod}function kp(e){return W(Hp,e)}var Yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lp(t,e),t}(Le),$p=r(5061),Xp=r.n($p);function Wp(e,t){return function(e,t){return"string"==typeof e&&Xp()(e,t)}(e,t)}function Kp(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function zp(e){return zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zp(e)}function Qp(e){return Kp(1,arguments),e instanceof Date||"object"===zp(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Zp(e){return Zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zp(e)}function Jp(e){Kp(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Zp(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function ef(e){if(Kp(1,arguments),!Qp(e)&&"number"!=typeof e)return!1;var t=Jp(e);return!isNaN(Number(t))}function tf(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rf(e,t){Kp(2,arguments);var r=Jp(e).getTime(),o=tf(t);return new Date(r+o)}function of(e,t){Kp(2,arguments);var r=tf(t);return rf(e,-r)}var nf=864e5;function sf(e){Kp(1,arguments);var t=1,r=Jp(e),o=r.getUTCDay(),n=(o<t?7:0)+o-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function af(e){Kp(1,arguments);var t=Jp(e),r=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(r+1,0,4),o.setUTCHours(0,0,0,0);var n=sf(o),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var s=sf(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function uf(e){Kp(1,arguments);var t=af(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var o=sf(r);return o}var cf=6048e5,pf={};function ff(){return pf}function df(e,t){var r,o,n,i,s,a,u,c;Kp(1,arguments);var p=ff(),f=tf(null!==(r=null!==(o=null!==(n=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==n?n:p.weekStartsOn)&&void 0!==o?o:null===(u=p.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Jp(e),l=d.getUTCDay(),h=(l<f?7:0)+l-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function lf(e,t){var r,o,n,i,s,a,u,c;Kp(1,arguments);var p=Jp(e),f=p.getUTCFullYear(),d=ff(),l=tf(null!==(r=null!==(o=null!==(n=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==n?n:d.firstWeekContainsDate)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==r?r:1);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,l),h.setUTCHours(0,0,0,0);var R=df(h,t),y=new Date(0);y.setUTCFullYear(f,0,l),y.setUTCHours(0,0,0,0);var g=df(y,t);return p.getTime()>=R.getTime()?f+1:p.getTime()>=g.getTime()?f:f-1}function hf(e,t){var r,o,n,i,s,a,u,c;Kp(1,arguments);var p=ff(),f=tf(null!==(r=null!==(o=null!==(n=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==n?n:p.firstWeekContainsDate)&&void 0!==o?o:null===(u=p.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==r?r:1),d=lf(e,t),l=new Date(0);l.setUTCFullYear(d,0,f),l.setUTCHours(0,0,0,0);var h=df(l,t);return h}var Rf=6048e5;function yf(e,t){for(var r=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return r+o}const gf=function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return yf("yy"===t?o%100:o,t.length)},mf=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):yf(r+1,2)},_f=function(e,t){return yf(e.getUTCDate(),t.length)},vf=function(e,t){return yf(e.getUTCHours()%12||12,t.length)},bf=function(e,t){return yf(e.getUTCHours(),t.length)},Of=function(e,t){return yf(e.getUTCMinutes(),t.length)},wf=function(e,t){return yf(e.getUTCSeconds(),t.length)},Tf=function(e,t){var r=t.length,o=e.getUTCMilliseconds();return yf(Math.floor(o*Math.pow(10,r-3)),t.length)};function Ef(e,t){var r=e>0?"-":"+",o=Math.abs(e),n=Math.floor(o/60),i=o%60;if(0===i)return r+String(n);var s=t||"";return r+String(n)+s+yf(i,2)}function If(e,t){return e%60==0?(e>0?"-":"+")+yf(Math.abs(e)/60,2):Pf(e,t)}function Pf(e,t){var r=t||"",o=e>0?"-":"+",n=Math.abs(e);return o+yf(Math.floor(n/60),2)+r+yf(n%60,2)}const Nf={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var o=e.getUTCFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return gf(e,t)},Y:function(e,t,r,o){var n=lf(e,o),i=n>0?n:1-n;return"YY"===t?yf(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):yf(i,t.length)},R:function(e,t){return yf(af(e),t.length)},u:function(e,t){return yf(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return yf(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return yf(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return mf(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return yf(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var n=function(e,t){Kp(1,arguments);var r=Jp(e),o=df(r,t).getTime()-hf(r,t).getTime();return Math.round(o/Rf)+1}(e,o);return"wo"===t?r.ordinalNumber(n,{unit:"week"}):yf(n,t.length)},I:function(e,t,r){var o=function(e){Kp(1,arguments);var t=Jp(e),r=sf(t).getTime()-uf(t).getTime();return Math.round(r/cf)+1}(e);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):yf(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):_f(e,t)},D:function(e,t,r){var o=function(e){Kp(1,arguments);var t=Jp(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),n=r-o;return Math.floor(n/nf)+1}(e);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):yf(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var n=e.getUTCDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return yf(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var n=e.getUTCDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return yf(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),n=0===o?7:o;switch(t){case"i":return String(n);case"ii":return yf(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o,n=e.getUTCHours();switch(o=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o,n=e.getUTCHours();switch(o=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return vf(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bf(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(o,{unit:"hour"}):yf(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?r.ordinalNumber(o,{unit:"hour"}):yf(o,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Of(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):wf(e,t)},S:function(e,t){return Tf(e,t)},X:function(e,t,r,o){var n=(o._originalDate||e).getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return If(n);case"XXXX":case"XX":return Pf(n);default:return Pf(n,":")}},x:function(e,t,r,o){var n=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return If(n);case"xxxx":case"xx":return Pf(n);default:return Pf(n,":")}},O:function(e,t,r,o){var n=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ef(n,":");default:return"GMT"+Pf(n,":")}},z:function(e,t,r,o){var n=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ef(n,":");default:return"GMT"+Pf(n,":")}},t:function(e,t,r,o){var n=o._originalDate||e;return yf(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,o){return yf((o._originalDate||e).getTime(),t.length)}};var Mf=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Uf=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Gf={p:Uf,P:function(e,t){var r,o=e.match(/(P+)(p+)?/)||[],n=o[1],i=o[2];if(!i)return Mf(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",Mf(n,t)).replace("{{time}}",Uf(i,t))}};const qf=Gf;function Df(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Sf=["D","DD"],Af=["YY","YYYY"];function Cf(e){return-1!==Sf.indexOf(e)}function jf(e){return-1!==Af.indexOf(e)}function Lf(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function xf(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}var Ff,Hf={date:xf({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:xf({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:xf({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Vf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kf(e){return function(t,r){var o;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var n=e.defaultFormattingWidth||e.defaultWidth,i=null!=r&&r.width?String(r.width):n;o=e.formattingValues[i]||e.formattingValues[n]}else{var s=e.defaultWidth,a=null!=r&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function Yf(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var s,a=i[0],u=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?Xf(u,(function(e){return e.test(a)})):$f(u,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=r.valueCallback?r.valueCallback(s):s;var p=t.slice(a.length);return{value:s,rest:p}}}function $f(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Xf(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}const Wf={code:"en-US",formatDistance:function(e,t,r){var o,n=Bf[e];return o="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o},formatLong:Hf,formatRelative:function(e,t,r,o){return Vf[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:kf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kf({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:kf({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:kf({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:kf({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Ff={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(Ff.matchPattern);if(!r)return null;var o=r[0],n=e.match(Ff.parsePattern);if(!n)return null;var i=Ff.valueCallback?Ff.valueCallback(n[0]):n[0];i=t.valueCallback?t.valueCallback(i):i;var s=e.slice(o.length);return{value:i,rest:s}}),era:Yf({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Yf({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Yf({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Yf({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Yf({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var Kf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qf=/^'([^]*?)'?$/,Zf=/''/g,Jf=/[a-zA-Z]/;function ed(e){var t=e.match(Qf);return t?t[1].replace(Zf,"'"):e}function td(e){var t=function(e,t,r){var o,n,i,s,a,u,c,p,f,d,l,h,R,y,g,m,_,v;Kp(2,arguments);var b=String(t),O=ff(),w=null!==(o=null!==(n=null==r?void 0:r.locale)&&void 0!==n?n:O.locale)&&void 0!==o?o:Wf,T=tf(null!==(i=null!==(s=null!==(a=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(c=r.locale)||void 0===c||null===(p=c.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:O.firstWeekContainsDate)&&void 0!==s?s:null===(f=O.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=tf(null!==(l=null!==(h=null!==(R=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(g=r.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==R?R:O.weekStartsOn)&&void 0!==h?h:null===(_=O.locale)||void 0===_||null===(v=_.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==l?l:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var I=Jp(e);if(!ef(I))throw new RangeError("Invalid time value");var P=Df(I),N=of(I,P),M={firstWeekContainsDate:T,weekStartsOn:E,locale:w,_originalDate:I};return b.match(zf).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,qf[t])(e,w.formatLong):e})).join("").match(Kf).map((function(o){if("''"===o)return"'";var n=o[0];if("'"===n)return ed(o);var i=Nf[n];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!jf(o)||Lf(o,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!Cf(o)||Lf(o,t,String(e)),i(N,o,w.localize,M);if(n.match(Jf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return o})).join("")}(new Date(e),"yyyy-MM-dd");return Wp(e)&&e===t}var rd=function(){function e(){}return e.prototype.validate=function(e,t){return td(e)},e.prototype.defaultMessage=function(e){return"date invalid"},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriDate",async:!0})],e)}();function od(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:rd})}}var nd=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),id=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ad=function(){function e(e,t,r,o){this.from=e,this.to=t,this.project=r,this.path=o}return id([od(),sd("design:type",String)],e.prototype,"from",void 0),id([od(),sd("design:type",String)],e.prototype,"to",void 0),id([Xe(),Wo(),sd("design:type",String)],e.prototype,"project",void 0),id([Xe(),er(),sd("design:type",String)],e.prototype,"path",void 0),e}(),ud=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectGetHistoryUsageRequestMethod)||this;return o.params=r,o}return nd(t,e),id([de(),H((function(){return ad})),ce(),sd("design:type",ad)],t.prototype,"params",void 0),t}(Ge);function cd(e){return e.method===pe.ProjectGetHistoryUsageRequestMethod}function pd(e){return W(ud,e)}var fd=function(e,t){this.date=e,this.stored=t},dd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nd(t,e),t}(Ce),ld=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),hd=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Rd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yd=function(){function e(e,t,r,o,n,i){this.from=e,this.to=t,this.project=r,this.user=o,this.path=n,this.aggregate=i}return hd([od(),Rd("design:type",String)],e.prototype,"from",void 0),hd([od(),Rd("design:type",String)],e.prototype,"to",void 0),hd([Xe(),Wo(),Rd("design:type",String)],e.prototype,"project",void 0),hd([Xe(),Bt(),Rd("design:type",String)],e.prototype,"user",void 0),hd([Xe(),er(),Rd("design:type",String)],e.prototype,"path",void 0),hd([Xe(),Gt(),Rd("design:type",Boolean)],e.prototype,"aggregate",void 0),e}(),gd=function(e){function t(t,r){var o=e.call(this,t,pe.ProjectGetLiveUsageRequestMethod)||this;return o.params=r,o}return ld(t,e),hd([de(),H((function(){return yd})),ce(),Rd("design:type",yd)],t.prototype,"params",void 0),t}(Ge);function md(e){return e.method===pe.ProjectGetLiveUsageRequestMethod}function _d(e){return W(gd,e)}var vd,bd=function(e,t,r){this.date=e,this.in=t,this.out=r},Od=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ld(t,e),t}(Ce),wd=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Td=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ed=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.KOLIBRI_WRITE="kolibri.write",e.KOLIBRI_COMMIT="kolibri.commit"}(vd||(vd={}));var Id=function(){function e(e,t,r,o,n,i){this.path=e,this.formatted=t,this.ignoreMissing=r,this.respectCommit=o,this.resume=n,this.from=i}return Td([er(),Ed("design:type",String)],e.prototype,"path",void 0),Td([Xe(),Gt(),Ed("design:type",Boolean)],e.prototype,"formatted",void 0),Td([Xe(),Gt(),Ed("design:type",Boolean)],e.prototype,"ignoreMissing",void 0),Td([Xe(),Gt(),Ed("design:type",Boolean)],e.prototype,"respectCommit",void 0),Td([Xe(),Gt(),Ed("design:type",Boolean)],e.prototype,"resume",void 0),Td([Xe(),he(),ye(0),Ed("design:type",Number)],e.prototype,"from",void 0),e}(),Pd=function(e){function t(t,r){var o=e.call(this,t,pe.SubscribeRequestMethod)||this;return o.params=r,o}return wd(t,e),Td([de(),H((function(){return Id})),Kt(),Ed("design:type",Array)],t.prototype,"params",void 0),t}(Ge);function Nd(e){return e.method===pe.SubscribeRequestMethod}function Md(e){return W(Pd,e)}var Ud=function(){function e(e,t,r,o,n){this.path=e,this.dataType=t,this.format=r,this.scalingFactor=o,this.scalingOffset=n}return Td([er(),Ed("design:type",String)],e.prototype,"path",void 0),Td([Dt(),Ed("design:type",Number)],e.prototype,"dataType",void 0),Td([Ee(),Ed("design:type",String)],e.prototype,"format",void 0),Td([Ee(),Ed("design:type",String)],e.prototype,"scalingFactor",void 0),Td([Ee(),Ed("design:type",String)],e.prototype,"scalingOffset",void 0),e}(),Gd=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return wd(t,e),t}(Ce),qd=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Dd=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Sd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ad=function(){function e(e,t,r){this.path=e,this.from=t,this.to=r}return Dd([er(),Sd("design:type",String)],e.prototype,"path",void 0),Dd([Xe(),he(),ye(0),Sd("design:type",Number)],e.prototype,"from",void 0),Dd([Xe(),he(),ye(0),Sd("design:type",Number)],e.prototype,"to",void 0),e}(),Cd=function(e){function t(t,r){var o=e.call(this,t,pe.NodeDeleteHistoryRequestMethod)||this;return o.params=r,o}return qd(t,e),Dd([de(),H((function(){return Ad})),ce(),Sd("design:type",Ad)],t.prototype,"params",void 0),t}(Ge),jd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qd(t,e),t}(Le);function Ld(e){return e.method===pe.NodeDeleteHistoryRequestMethod}function Bd(e){return W(Cd,e)}var xd=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Fd=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Hd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Vd=function(){function e(e,t,r){this.project=t,this.user=e,this.effective=r}return Fd([Bt(),Hd("design:type",String)],e.prototype,"user",void 0),Fd([Xe(),Wo(),Hd("design:type",String)],e.prototype,"project",void 0),Fd([Xe(),Gt(),Hd("design:type",Boolean)],e.prototype,"effective",void 0),e}(),kd=function(e){function t(t,r){var o=e.call(this,t,pe.PermissionUserListRequestMethod)||this;return o.params=r,o}return xd(t,e),Fd([de(),H((function(){return Vd})),ce(),Hd("design:type",Vd)],t.prototype,"params",void 0),t}(Ge);function Yd(e){return e.method===pe.PermissionUserListRequestMethod}function $d(e){return W(kd,e)}var Xd=function(e,t,r,o){this.path=e,this.read=t,this.write=r,this.config=o},Wd=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.result=r,o}return xd(t,e),t}(Ce),Kd=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),zd=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zd=function(){function e(e,t,r,o,n,i,s,a,u){this.user=r,this.password=o,this.token=n,this.interval=e,this.timeout=t,this.pendingTransactions=i,this.client=s,this.sessionExpire=a,this.rpcServer=u}return zd([Xe(),Bt(),Qd("design:type",String)],e.prototype,"user",void 0),zd([Xe(),Ee(),Mt(h.PASSWORD_MAXLEN),Qd("design:type",String)],e.prototype,"password",void 0),zd([Xe(),Ee(),Qd("design:type",String)],e.prototype,"token",void 0),zd([he(),me(3600),ye(15),Qd("design:type",Number)],e.prototype,"interval",void 0),zd([he(),ye(1),me(255),Qd("design:type",Number)],e.prototype,"timeout",void 0),zd([Xe(),Gt(),Qd("design:type",Boolean)],e.prototype,"pendingTransactions",void 0),zd([Xe(),ju(),Qd("design:type",String)],e.prototype,"client",void 0),zd([Xe(),he(),Qd("design:type",Number)],e.prototype,"sessionExpire",void 0),zd([Xe(),Gt(),Qd("design:type",Boolean)],e.prototype,"rpcServer",void 0),e}(),Jd=function(e){function t(t,r){var o=e.call(this,t,pe.LoginRequestMethod)||this;return o.params=r,o}return Kd(t,e),zd([de(),H((function(){return Zd})),ce(),Qd("design:type",Zd)],t.prototype,"params",void 0),t}(Ge);function el(e){return e.method===pe.LoginRequestMethod}function tl(e){return W(Jd,e)}var rl=function(){function e(e,t){this.limit=e,this.period=t}return zd([he(),Qd("design:type",Number)],e.prototype,"limit",void 0),zd([he(),Qd("design:type",Number)],e.prototype,"period",void 0),e}(),ol=function(){function e(e,t,r){this.status=e,this.client=t,this.writeRateLimit=r}return zd([he(),Qd("design:type",Number)],e.prototype,"status",void 0),zd([ju(),Qd("design:type",String)],e.prototype,"client",void 0),zd([de(),Qd("design:type",rl)],e.prototype,"writeRateLimit",void 0),e}(),nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kd(t,e),t}(Ce),il=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),sl=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},al=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ul=function(){function e(e){this.token=e}return sl([Ee(),al("design:type",String)],e.prototype,"token",void 0),e}(),cl=function(e){function t(t,r){var o=e.call(this,t,pe.UpdateTokenMethod)||this;return o.params=r,o}return il(t,e),sl([de(),H((function(){return ul})),ce(),al("design:type",ul)],t.prototype,"params",void 0),t}(Ge),pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t}(Le);function fl(e){return e.method===pe.UpdateTokenMethod}function dl(e){return W(cl,e)}var ll=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),hl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Rl=function(e){function t(t){return e.call(this,t,pe.LogoutRequestMethod)||this}return ll(t,e),function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([Xe(),hl("design:type",void 0)],t.prototype,"params",void 0),t}(Ge),yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ll(t,e),t}(Le);function gl(e){return e.method===pe.LogoutRequestMethod}function ml(e){return W(Rl,e)}function _l(e,t){return se({name:"isEnum",constraints:[e],validator:{validate:function(e,t){return function(e,t){return Object.keys(t).map((function(e){return t[e]})).indexOf(e)>=0}(e,t.constraints[0])},defaultMessage:ie((function(e){return e+"$property must be a valid enum value"}),t)}},t)}function vl(e){return Te(e)&&Nt(e,h.DT_STRING_MAXLEN)}var bl,Ol=function(){function e(){}return e.prototype.validate=function(e,t){return null!=(r=e).description&&vl(r.description)||null!=r.flags&&qt(r.flags)||null!=r.dataType&&qt(r.dataType)||null!=r.triggerMode&&qt(r.triggerMode)||null!=r.triggerN&&function(e){return qt(e)||Te(e)||qt(e)}(r.triggerN)||null!=r.triggerT&&qt(n=r.triggerT)&&Re(n,0)&&ge(n,4294967295)||null!=r.triggerDomain&&qt(r.triggerDomain)||null!=r.qosLevel&&qt(r.qosLevel)||null!=r.format&&vl(r.format)||null!=r.scalingFactor&&qt(r.scalingFactor)||null!=r.scalingOffset&&qt(r.scalingOffset)||null!=r.writeRangeMin&&qt(r.writeRangeMin)||null!=r.writeRangeMax&&qt(r.writeRangeMax)||null!=r.permissions&&(Ut((o=r.permissions).config)||Ut(o.read)||Ut(o.write));var r,o,n},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isNodeNotifyObject",async:!0})],e)}(),wl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Tl=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},El=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.created=0]="created",e[e.changed=1]="changed",e[e.deleted=2]="deleted",e[e["permission-granted"]=3]="permission-granted",e[e["permission-revoked"]=4]="permission-revoked"}(bl||(bl={}));var Il=function(){function e(e,t,r,o){this.event=e,this.path=t,this.timestamp=r,this.data=o}return Tl([_l(bl),El("design:type",String)],e.prototype,"event",void 0),Tl([er(),El("design:type",String)],e.prototype,"path",void 0),Tl([Dt(),El("design:type",Number)],e.prototype,"timestamp",void 0),Tl([Xe(),function(e,t){ne({target:e.constructor,propertyName:t,options:undefined,constraints:[],validator:Ol})},El("design:type",Object)],e.prototype,"data",void 0),e}(),Pl=function(e,t,r,o,n,i,s,a,u,c,p,f,d,l,h){this.description=e,this.flags=t,this.dataType=r,this.triggerMode=o,this.triggerN=n,this.triggerT=i,this.triggerDomain=s,this.qosLevel=a,this.history=u,this.format=c,this.scalingFactor=p,this.scalingOffset=f,this.writeRangeMax=l,this.writeRangeMin=d,this.permissions=h},Nl=function(e,t,r){this.read=e,this.write=t,this.config=r},Ml=function(e){function t(t,r){var o=e.call(this,t,pe.NodeNotifyRequestMethod)||this;return o.params=r,o}return wl(t,e),Tl([de(),H((function(){return Il})),ce(),El("design:type",Il)],t.prototype,"params",void 0),t}(Ge),Ul=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wl(t,e),t}(Le);function Gl(e){return e.method===pe.NodeNotifyRequestMethod}function ql(e){return W(Ml,e)}var Dl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Sl=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Al=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Cl=function(){function e(e,t){this.path=e,this.recursive=t}return Sl([er(),Al("design:type",String)],e.prototype,"path",void 0),Sl([Xe(),Gt(),Al("design:type",Boolean)],e.prototype,"recursive",void 0),e}(),jl=function(e){function t(t,r){var o=e.call(this,t,pe.NodeSubscribeRequestMethod)||this;return o.params=r,o}return Dl(t,e),Sl([de(),H((function(){return Cl})),ce(),Al("design:type",Cl)],t.prototype,"params",void 0),t}(Ge),Ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dl(t,e),t}(Le);function Bl(e){return e.method===pe.NodeSubscribeRequestMethod}function xl(e){return W(jl,e)}var Fl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Hl=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Vl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kl=function(){function e(e){this.path=e}return Hl([er(),Vl("design:type",String)],e.prototype,"path",void 0),e}(),Yl=function(e){function t(t,r){var o=e.call(this,t,pe.NodeUnsubscribeRequestMethod)||this;return o.params=r,o}return Fl(t,e),Hl([de(),H((function(){return kl})),ce(),Vl("design:type",kl)],t.prototype,"params",void 0),t}(Ge),$l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fl(t,e),t}(Le);function Xl(e){return e.method===pe.NodeUnsubscribeRequestMethod}function Wl(e){return W(Yl,e)}var Kl=-32700,zl=-32600,Ql=-32601,Zl=-32602,Jl=-32603;function eh(e){switch(typeof e){case"string":return!0;case"number":return e%1!=0;case"object":return!(null!==e||(console.warn("Use of null ID in JSONRPC 2.0 is discouraged."),0));default:return!1}}function th(e){var t=e;return void 0!==t.code&&void 0!==t.message}function rh(e){var t=e;return!(!t||"object"!=typeof t||!t.jsonrpc||"2.0"!==t.jsonrpc||!t.method||"string"!=typeof t.method||t.params&&"object"!=typeof t.params||!t.id||"string"!=typeof t.id&&"number"!=typeof t.id)}function oh(e){return void 0!==e.result}function nh(e){var t=e;return void 0!==t.error&&th(t.error)}var ih=function(){function e(){}return e.prototype.validate=function(e,t){return jt(r=e)||function(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&!Array.isArray(e)}(r)&&jt(r.user)&&Au(r.client);var r},e.prototype.defaultMessage=function(e){return"_server field must be an object with user and client fields."},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriRpcServer",async:!0})],e)}();function sh(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:ih})}}var ah=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uh=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ch=function(){function e(e,t){this.user=e,this.client=t}return ah([Bt(),uh("design:type",String)],e.prototype,"user",void 0),ah([ju(),uh("design:type",String)],e.prototype,"client",void 0),e}(),ph=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),fh=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dh=function(e){function t(t,r,o,n){var i=e.call(this,t,o)||this;return i._server=r,i.params=n,i}return ph(t,e),function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)}([sh(),fh("design:type",ch)],t.prototype,"_server",void 0),t}(Ge);function lh(e){var t=e;return ue(t._server)&&ue(t.method)}var hh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Rh=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},yh=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},gh=function(e){function t(t,r,o){var n=e.call(this,t,o)||this;return n._server=r,n}return hh(t,e),Rh([sh(),yh("design:type",ch)],t.prototype,"_server",void 0),t}(Ce),mh=function(e){function t(t,r,o){var n=e.call(this,t,o)||this;return n._server=r,n}return hh(t,e),Rh([sh(),yh("design:type",ch)],t.prototype,"_server",void 0),t}(je);function _h(e){var t=e;return void 0!==t._server&&void 0!==t.result}function vh(e){var t=e;return void 0!==t._server&&void 0!==t.error}var bh=function(){function e(){}return e.mapTimestampFromMicroToSec=function(e){return this.validateNumber(e),Math.floor(e/1e6)},e.mapTimestampFromMicroToMilli=function(e){return this.validateNumber(e),Math.floor(e/1e3)},e.mapTimestampFromSecToMicro=function(e){return this.validateNumber(e),1e6*e},e.mapTimestampFromMilliToMicro=function(e){return this.validateNumber(e),1e3*e},e.mapTimestampFromMilliToSec=function(e){return this.validateNumber(e),Math.floor(e/1e3)},e.mapTimestampFromSecToMilli=function(e){return this.validateNumber(e),1e3*e},e.validateNumber=function(e){if("number"!=typeof e)throw TypeError("timestamp is not a number: "+e)},e}(),Oh=r(9042),wh=r.n(Oh),Th=function(){function e(){}return e.isValidRange=function(e){return!!wh()(e)},e.isVersionInRange=function(e,t){return(0,I.satisfies)(e.semVer,t)},e.getMaxKolibriVersion=function(e){return e.reduce((function(e,t){return(0,I.gt)(t.semVer,e.semVer)&&(e=t),e}),new P("kolibri"))},e}(),Eh=function(){function e(e){this.kolibriVersion=e}return e.prototype.map=function(e,t){return Th.isVersionInRange(this.kolibriVersion,"1.0")?this.mapKolibriKpo(e,t):Th.isVersionInRange(this.kolibriVersion,">=2.0")?this.mapKolibriV20Kpo(e,t):void 0},e.prototype.mapKolibriKpo=function(e,t){return t===h.INCOMING_DIRECTION&&this.mapIncomingKolibriKpo(e),t===h.OUTGOING_DIRECTION&&this.mapOutgoingKolibriKpo(e),e},e.prototype.mapKolibriV20Kpo=function(e,t){return t===h.OUTGOING_DIRECTION&&this.mapOutgoingKolibriV20Kpo(e),e},e.prototype.mapIncomingKolibriKpo=function(e){e.hasOwnProperty("nodes")&&Array.isArray(e.nodes)&&e.nodes.forEach((function(e){e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromSecToMicro(e.timestamp))})),e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromSecToMicro(e.timestamp))},e.prototype.mapOutgoingKolibriKpo=function(e){e.hasOwnProperty("nodes")&&Array.isArray(e.nodes)&&e.nodes.forEach((function(e){e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromMicroToSec(e.timestamp))})),e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromMilliToSec(e.timestamp))},e.prototype.mapOutgoingKolibriV20Kpo=function(e){e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromMilliToMicro(e.timestamp))},e}(),Ih=function(){function e(){}return e.prototype.map=function(e){return e.hasOwnProperty("method")?this.mapRequest(e):e.hasOwnProperty("result")?this.mapResult(e):e},e.prototype.mapRequest=function(e){return"kolibri.write"===e.method?this.mapKolibriWrite(e):"kolibri.user.notify"===e.method?this.mapKolibriUserNotify(e):e},e.prototype.mapKolibriWrite=function(e){return e.params.nodes.forEach((function(e){e.timestamp=bh.mapTimestampFromMicroToSec(e.timestamp),e.timestampBroker=bh.mapTimestampFromMilliToSec(e.timestampBroker)})),e},e.prototype.mapKolibriUserNotify=function(e){return e.params.forEach((function(e){e.timestamp=bh.mapTimestampFromMilliToSec(e.timestamp)})),e},e.prototype.mapResult=function(e){return e.result.hasOwnProperty("timestamp")&&(e.result.timestamp=bh.mapTimestampFromMicroToSec(e.result.timestamp)),e.result.hasOwnProperty("timestampBroker")&&(e.result.timestampBroker=bh.mapTimestampFromMilliToSec(e.result.timestampBroker)),e.result.hasOwnProperty("lastLogin")&&(e.result.lastLogin=bh.mapTimestampFromMilliToSec(e.result.lastLogin)),e.result.hasOwnProperty("lastCommunication")&&(e.result.lastCommunication=bh.mapTimestampFromMilliToSec(e.result.lastCommunication)),Array.isArray(e.result)&&this.mapResults(e.result),e},e.prototype.mapResults=function(e){e.forEach((function(e){e.hasOwnProperty("timestamp")&&(e.timestamp=bh.mapTimestampFromMicroToSec(e.timestamp)),e.hasOwnProperty("timestampBroker")&&(e.timestampBroker=bh.mapTimestampFromMilliToSec(e.timestampBroker)),e.hasOwnProperty("timestampLogin")&&(e.timestampLogin=bh.mapTimestampFromMilliToSec(e.timestampLogin)),e.hasOwnProperty("timestampLogout")&&(e.timestampLogout=bh.mapTimestampFromMilliToSec(e.timestampLogout))}))},e}(),Ph=function(){function e(){}return e.prototype.map=function(e){return e.hasOwnProperty("method")?this.mapRequest(e):e.hasOwnProperty("result")?this.mapResult(e):e},e.prototype.mapRequest=function(e){return"kolibri.write"===e.method?this.mapKolibriWrite(e):"kolibri.user.notify"===e.method?this.mapKolibriUserNotify(e):e},e.prototype.mapKolibriWrite=function(e){return e.params.nodes.forEach((function(e){e.timestampBroker=bh.mapTimestampFromMilliToMicro(e.timestampBroker)})),e},e.prototype.mapKolibriUserNotify=function(e){return e.params.forEach((function(e){e.timestamp=bh.mapTimestampFromMilliToMicro(e.timestamp)})),e},e.prototype.mapResult=function(e){return e.result.hasOwnProperty("updateUrl")&&delete e.result.updateUrl,e.result.hasOwnProperty("timestampBroker")&&(e.result.timestampBroker=bh.mapTimestampFromMilliToMicro(e.result.timestampBroker)),e.result.hasOwnProperty("timestampLogin")&&(e.result.timestampLogin=bh.mapTimestampFromMilliToMicro(e.result.timestampLogin)),e.result.hasOwnProperty("timestampLogout")&&(e.result.timestampLogout=bh.mapTimestampFromMilliToMicro(e.result.timestampLogout)),e.result.hasOwnProperty("lastLogin")&&(e.result.lastLogin=bh.mapTimestampFromMilliToMicro(e.result.lastLogin)),e.result.hasOwnProperty("lastCommunication")&&(e.result.lastCommunication=bh.mapTimestampFromMilliToMicro(e.result.lastCommunication)),e.result.hasOwnProperty("expiration")&&e.result.expiration>0&&(e.result.expiration=bh.mapTimestampFromMilliToMicro(e.result.expiration)),Array.isArray(e.result)&&e.result.forEach((function(e){e.hasOwnProperty("timestampBroker")&&(e.timestampBroker=bh.mapTimestampFromMilliToMicro(e.timestampBroker)),e.hasOwnProperty("timestampLogin")&&(e.timestampLogin=bh.mapTimestampFromMilliToMicro(e.timestampLogin)),e.hasOwnProperty("timestampLogout")&&(e.timestampLogout=bh.mapTimestampFromMilliToMicro(e.timestampLogout)),e.hasOwnProperty("lastCommunication")&&(e.lastCommunication=bh.mapTimestampFromMilliToMicro(e.lastCommunication)),e.hasOwnProperty("expiration")&&e.expiration>0&&(e.expiration=bh.mapTimestampFromMilliToMicro(e.expiration))})),e},e}(),Nh=function(){function e(e){this.kolibriVersion=e,this.rpcV10Mapper=new Ih,this.rpcV20Mapper=new Ph}return e.prototype.map=function(e){if(Th.isVersionInRange(this.kolibriVersion,"1.0"))return this.rpcV10Mapper.map(e);if(Th.isVersionInRange(this.kolibriVersion,">=2.0"))return this.rpcV20Mapper.map(e);throw new Error("Should never get here. All versions should be covered by the checks above")},e}(),Mh=function(){function e(){this.length=0}return e.prototype.add=function(e,t){return this.length+=this.getDataTypeSize(e,t),this},e.prototype.build=function(){var e=this.length;return this.length=0,e},e.prototype.getDataTypeSize=function(e,t){switch(e){case h.DT_BOOLEAN:case h.DT_UNSIGNED_8BIT:case h.DT_SIGNED_8BIT:return 1;case h.DT_UNSIGNED_16BIT:case h.DT_SIGNED_16BIT:return 2;case h.DT_UNSIGNED_32BIT:case h.DT_SIGNED_32BIT:case h.DT_FLOATING_32BIT:return 4;case h.DT_UNSIGNED_64BIT:case h.DT_SIGNED_64BIT:case h.DT_FLOATING_64BIT:return 8;case h.DT_STRING:return 2+Buffer.byteLength(t,"utf8");case h.DT_BYTEARRAY:return 2+Buffer.byteLength(t,"hex");default:throw new y(g.INVALID_DATA_TYPE)}},e}(),Uh=null;try{Uh=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function Gh(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function qh(e){return!0===(e&&e.__isLong__)}function Dh(e){var t=Math.clz32(e&-e);return e?31-t:t}Gh.prototype.__isLong__,Object.defineProperty(Gh.prototype,"__isLong__",{value:!0}),Gh.isLong=qh;var Sh={},Ah={};function Ch(e,t){var r,o,n;return t?(n=0<=(e>>>=0)&&e<256)&&(o=Ah[e])?o:(r=Lh(e,0,!0),n&&(Ah[e]=r),r):(n=-128<=(e|=0)&&e<128)&&(o=Sh[e])?o:(r=Lh(e,e<0?-1:0,!1),n&&(Sh[e]=r),r)}function jh(e,t){if(isNaN(e))return t?Xh:$h;if(t){if(e<0)return Xh;if(e>=Vh)return Zh}else{if(e<=-kh)return Jh;if(e+1>=kh)return Qh}return e<0?jh(-e,t).neg():Lh(e%Hh|0,e/Hh|0,t)}function Lh(e,t,r){return new Gh(e,t,r)}Gh.fromInt=Ch,Gh.fromNumber=jh,Gh.fromBits=Lh;var Bh=Math.pow;function xh(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?Xh:$h;if((r=r||10)<2||36<r)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return xh(e.substring(1),t,r).neg();for(var n=jh(Bh(r,8)),i=$h,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),r);if(a<8){var c=jh(Bh(r,a));i=i.mul(c).add(jh(u))}else i=(i=i.mul(n)).add(jh(u))}return i.unsigned=t,i}function Fh(e,t){return"number"==typeof e?jh(e,t):"string"==typeof e?xh(e,t):Lh(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}Gh.fromString=xh,Gh.fromValue=Fh;var Hh=4294967296,Vh=Hh*Hh,kh=Vh/2,Yh=Ch(1<<24),$h=Ch(0);Gh.ZERO=$h;var Xh=Ch(0,!0);Gh.UZERO=Xh;var Wh=Ch(1);Gh.ONE=Wh;var Kh=Ch(1,!0);Gh.UONE=Kh;var zh=Ch(-1);Gh.NEG_ONE=zh;var Qh=Lh(-1,2147483647,!1);Gh.MAX_VALUE=Qh;var Zh=Lh(-1,-1,!0);Gh.MAX_UNSIGNED_VALUE=Zh;var Jh=Lh(0,-2147483648,!1);Gh.MIN_VALUE=Jh;var eR=Gh.prototype;eR.toInt=function(){return this.unsigned?this.low>>>0:this.low},eR.toNumber=function(){return this.unsigned?(this.high>>>0)*Hh+(this.low>>>0):this.high*Hh+(this.low>>>0)},eR.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Jh)){var t=jh(e),r=this.div(t),o=r.mul(t).sub(this);return r.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var n=jh(Bh(e,6),this.unsigned),i=this,s="";;){var a=i.div(n),u=(i.sub(a.mul(n)).toInt()>>>0).toString(e);if((i=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},eR.getHighBits=function(){return this.high},eR.getHighBitsUnsigned=function(){return this.high>>>0},eR.getLowBits=function(){return this.low},eR.getLowBitsUnsigned=function(){return this.low>>>0},eR.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Jh)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},eR.isZero=function(){return 0===this.high&&0===this.low},eR.eqz=eR.isZero,eR.isNegative=function(){return!this.unsigned&&this.high<0},eR.isPositive=function(){return this.unsigned||this.high>=0},eR.isOdd=function(){return 1==(1&this.low)},eR.isEven=function(){return 0==(1&this.low)},eR.equals=function(e){return qh(e)||(e=Fh(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},eR.eq=eR.equals,eR.notEquals=function(e){return!this.eq(e)},eR.neq=eR.notEquals,eR.ne=eR.notEquals,eR.lessThan=function(e){return this.comp(e)<0},eR.lt=eR.lessThan,eR.lessThanOrEqual=function(e){return this.comp(e)<=0},eR.lte=eR.lessThanOrEqual,eR.le=eR.lessThanOrEqual,eR.greaterThan=function(e){return this.comp(e)>0},eR.gt=eR.greaterThan,eR.greaterThanOrEqual=function(e){return this.comp(e)>=0},eR.gte=eR.greaterThanOrEqual,eR.ge=eR.greaterThanOrEqual,eR.compare=function(e){if(qh(e)||(e=Fh(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},eR.comp=eR.compare,eR.negate=function(){return!this.unsigned&&this.eq(Jh)?Jh:this.not().add(Wh)},eR.neg=eR.negate,eR.add=function(e){qh(e)||(e=Fh(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,n=65535&this.low,i=e.high>>>16,s=65535&e.high,a=e.low>>>16,u=0,c=0,p=0,f=0;return p+=(f+=n+(65535&e.low))>>>16,c+=(p+=o+a)>>>16,u+=(c+=r+s)>>>16,u+=t+i,Lh((p&=65535)<<16|(f&=65535),(u&=65535)<<16|(c&=65535),this.unsigned)},eR.subtract=function(e){return qh(e)||(e=Fh(e)),this.add(e.neg())},eR.sub=eR.subtract,eR.multiply=function(e){if(this.isZero())return this;if(qh(e)||(e=Fh(e)),Uh)return Lh(Uh.mul(this.low,this.high,e.low,e.high),Uh.get_high(),this.unsigned);if(e.isZero())return this.unsigned?Xh:$h;if(this.eq(Jh))return e.isOdd()?Jh:$h;if(e.eq(Jh))return this.isOdd()?Jh:$h;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(Yh)&&e.lt(Yh))return jh(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,n=65535&this.low,i=e.high>>>16,s=65535&e.high,a=e.low>>>16,u=65535&e.low,c=0,p=0,f=0,d=0;return f+=(d+=n*u)>>>16,p+=(f+=o*u)>>>16,f&=65535,p+=(f+=n*a)>>>16,c+=(p+=r*u)>>>16,p&=65535,c+=(p+=o*a)>>>16,p&=65535,c+=(p+=n*s)>>>16,c+=t*u+r*a+o*s+n*i,Lh((f&=65535)<<16|(d&=65535),(c&=65535)<<16|(p&=65535),this.unsigned)},eR.mul=eR.multiply,eR.divide=function(e){if(qh(e)||(e=Fh(e)),e.isZero())throw Error("division by zero");var t,r,o;if(Uh)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?Lh((this.unsigned?Uh.div_u:Uh.div_s)(this.low,this.high,e.low,e.high),Uh.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Xh:$h;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Xh;if(e.gt(this.shru(1)))return Kh;o=Xh}else{if(this.eq(Jh))return e.eq(Wh)||e.eq(zh)?Jh:e.eq(Jh)?Wh:(t=this.shr(1).div(e).shl(1)).eq($h)?e.isNegative()?Wh:zh:(r=this.sub(e.mul(t)),o=t.add(r.div(e)));if(e.eq(Jh))return this.unsigned?Xh:$h;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=$h}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var n=Math.ceil(Math.log(t)/Math.LN2),i=n<=48?1:Bh(2,n-48),s=jh(t),a=s.mul(e);a.isNegative()||a.gt(r);)a=(s=jh(t-=i,this.unsigned)).mul(e);s.isZero()&&(s=Wh),o=o.add(s),r=r.sub(a)}return o},eR.div=eR.divide,eR.modulo=function(e){return qh(e)||(e=Fh(e)),Uh?Lh((this.unsigned?Uh.rem_u:Uh.rem_s)(this.low,this.high,e.low,e.high),Uh.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},eR.mod=eR.modulo,eR.rem=eR.modulo,eR.not=function(){return Lh(~this.low,~this.high,this.unsigned)},eR.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},eR.clz=eR.countLeadingZeros,eR.countTrailingZeros=function(){return this.low?Dh(this.low):Dh(this.high)+32},eR.ctz=eR.countTrailingZeros,eR.and=function(e){return qh(e)||(e=Fh(e)),Lh(this.low&e.low,this.high&e.high,this.unsigned)},eR.or=function(e){return qh(e)||(e=Fh(e)),Lh(this.low|e.low,this.high|e.high,this.unsigned)},eR.xor=function(e){return qh(e)||(e=Fh(e)),Lh(this.low^e.low,this.high^e.high,this.unsigned)},eR.shiftLeft=function(e){return qh(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Lh(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):Lh(0,this.low<<e-32,this.unsigned)},eR.shl=eR.shiftLeft,eR.shiftRight=function(e){return qh(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Lh(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):Lh(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},eR.shr=eR.shiftRight,eR.shiftRightUnsigned=function(e){return qh(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Lh(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):Lh(32===e?this.high:this.high>>>e-32,0,this.unsigned)},eR.shru=eR.shiftRightUnsigned,eR.shr_u=eR.shiftRightUnsigned,eR.rotateLeft=function(e){var t;return qh(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?Lh(this.high,this.low,this.unsigned):e<32?(t=32-e,Lh(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),Lh(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},eR.rotl=eR.rotateLeft,eR.rotateRight=function(e){var t;return qh(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?Lh(this.high,this.low,this.unsigned):e<32?(t=32-e,Lh(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),Lh(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},eR.rotr=eR.rotateRight,eR.toSigned=function(){return this.unsigned?Lh(this.low,this.high,!1):this},eR.toUnsigned=function(){return this.unsigned?this:Lh(this.low,this.high,!0)},eR.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},eR.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},eR.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},Gh.fromBytes=function(e,t,r){return r?Gh.fromBytesLE(e,t):Gh.fromBytesBE(e,t)},Gh.fromBytesLE=function(e,t){return new Gh(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},Gh.fromBytesBE=function(e,t){return new Gh(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};const tR=Gh;var rR=function(){function e(e){this._buf="number"==typeof e?Buffer.alloc(e):e,this.index=0}return Object.defineProperty(e.prototype,"buf",{get:function(){return this._buf},enumerable:!1,configurable:!0}),e.prototype.readBoolean=function(){var e=this.buf.readUInt8(this.index);return this.index+=1,0!==e},e.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.index);return this.index+=1,e},e.prototype.readInt8=function(){var e=this.buf.readInt8(this.index);return this.index+=1,e},e.prototype.readUInt16=function(){var e=this.buf.readUInt16BE(this.index);return this.index+=2,e},e.prototype.readInt16=function(){var e=this.buf.readInt16BE(this.index);return this.index+=2,e},e.prototype.readUInt32=function(){var e=this.buf.readUInt32BE(this.index);return this.index+=4,e},e.prototype.readInt32=function(){var e=this.buf.readInt32BE(this.index);return this.index+=4,e},e.prototype.readUInt64=function(){var e=tR.fromBytesBE(this.buf.slice(this.index,this.index+8),!0);return this.index+=8,e},e.prototype.readInt64=function(){var e=tR.fromBytesBE(this.buf.slice(this.index,this.index+8),!1);return this.index+=8,e},e.prototype.readFloat32=function(){var e=this.buf.readFloatBE(this.index);return this.index+=4,e},e.prototype.readFloat64=function(){var e=this.buf.readDoubleBE(this.index);return this.index+=8,e},e.prototype.readUtf8String=function(){var e=this.readUInt16();if(e>h.DT_STRING_MAXLEN)throw new RangeError("string too long");var t=this.buf.toString("utf8",this.index,this.index+e);return this.index+=e,t},e.prototype.readAsciiString=function(){var e=this.readUInt16();if(e>h.DT_STRING_MAXLEN)throw new RangeError("string too long");var t=this.buf.toString("ascii",this.index,this.index+e);return this.index+=e,t},e.prototype.readByteArray=function(){var e=this.readUInt16();if(e>h.DT_BYTEARRAY_MAXLEN)throw new RangeError("byte array too long");var t=this.buf.toString("hex",this.index,this.index+e);return this.index+=e,t},e.prototype.readOctets=function(e){var t=Buffer.allocUnsafe(e);return this.buf.copy(t,0,this.index,this.index+e),this.index+=e,t},e.prototype.readDataType=function(e){switch(e){case h.DT_BOOLEAN:return this.readBoolean();case h.DT_UNSIGNED_8BIT:return this.readUInt8();case h.DT_SIGNED_8BIT:return this.readInt8();case h.DT_UNSIGNED_16BIT:return this.readUInt16();case h.DT_SIGNED_16BIT:return this.readInt16();case h.DT_UNSIGNED_32BIT:return this.readUInt32();case h.DT_SIGNED_32BIT:return this.readInt32();case h.DT_UNSIGNED_64BIT:return this.readUInt64();case h.DT_SIGNED_64BIT:return this.readInt64();case h.DT_FLOATING_32BIT:return this.readFloat32();case h.DT_FLOATING_64BIT:return this.readFloat64();case h.DT_STRING:return this.readUtf8String();case h.DT_BYTEARRAY:return this.readByteArray();default:throw new TypeError("invalid data type")}},e.prototype.writeBoolean=function(e){if("boolean"!=typeof e)throw new TypeError("invalid data type");this.buf[this.index]=!0===e?1:0,this.index+=1},e.prototype.writeUInt8=function(e){this.validate(e),this.validateNumber(e),this.buf.writeUInt8(e,this.index),this.index+=1},e.prototype.writeInt8=function(e){this.validate(e),this.validateNumber(e),this.buf.writeInt8(e,this.index),this.index+=1},e.prototype.writeUInt16=function(e){this.validate(e),this.validateNumber(e),this.buf.writeUInt16BE(e,this.index),this.index+=2},e.prototype.writeInt16=function(e){this.validate(e),this.validateNumber(e),this.buf.writeInt16BE(e,this.index),this.index+=2},e.prototype.writeUInt32=function(e){this.validate(e),this.validateNumber(e),this.buf.writeUInt32BE(e,this.index),this.index+=4},e.prototype.writeInt32=function(e){this.validate(e),this.validateNumber(e),this.buf.writeInt32BE(e,this.index),this.index+=4},e.prototype.writeUInt64=function(e){this.validate(e);var t=tR.fromValue(e);if(t.lessThan(tR.ZERO))throw new RangeError("value out of bounds");Buffer.from(t.toBytesBE()).copy(this.buf,this.index),this.index+=8},e.prototype.writeInt64=function(e){this.validate(e);var t=tR.fromValue(e);Buffer.from(t.toBytesBE()).copy(this.buf,this.index),this.index+=8},e.prototype.writeFloat32=function(e){if("number"!=typeof e||0!==e&&Math.abs(e)<h.DT_FLOATING_32BIT_MIN||Math.abs(e)>h.DT_FLOATING_32BIT_MAX)throw new RangeError("value out of bounds");this.buf.writeFloatBE(e,this.index),this.index+=4},e.prototype.writeFloat64=function(e){if("number"!=typeof e||e===Number.NEGATIVE_INFINITY||e===Number.POSITIVE_INFINITY)throw new RangeError("value out of bounds");this.buf.writeDoubleBE(e,this.index),this.index+=8},e.prototype.writeUtf8String=function(e){if("string"!=typeof e)throw new TypeError("invalid data type");var t=Buffer.byteLength(e,"utf8");if(t>h.DT_STRING_MAXLEN)throw new RangeError("string too long");this.writeUInt16(t),this.buf.write(e,this.index,t,"utf8"),this.index+=t},e.prototype.writeAsciiString=function(e){if("string"!=typeof e)throw new TypeError("invalid data type");var t=Buffer.byteLength(e,"ascii");if(t>h.DT_STRING_MAXLEN)throw new RangeError("string too long");this.writeUInt16(t),this.buf.write(e,this.index,t,"ascii"),this.index+=t},e.prototype.writeByteArray=function(e){if("string"!=typeof e)throw new TypeError("invalid data type");var t=Buffer.byteLength(e,"hex");if(t>h.DT_BYTEARRAY_MAXLEN)throw new RangeError("byte array too long");this.writeUInt16(t),this.buf.write(e,this.index,t,"hex"),this.index+=t},e.prototype.writeOctets=function(e,t){e.copy(this.buf,this.index,0,t),this.index+=t},e.prototype.writeDataType=function(e,t){switch(t){case h.DT_BOOLEAN:this.writeBoolean(e);break;case h.DT_UNSIGNED_8BIT:this.writeUInt8(e);break;case h.DT_SIGNED_8BIT:this.writeInt8(e);break;case h.DT_UNSIGNED_16BIT:this.writeUInt16(e);break;case h.DT_SIGNED_16BIT:this.writeInt16(e);break;case h.DT_UNSIGNED_32BIT:this.writeUInt32(e);break;case h.DT_SIGNED_32BIT:this.writeInt32(e);break;case h.DT_UNSIGNED_64BIT:this.writeUInt64(e);break;case h.DT_SIGNED_64BIT:this.writeInt64(e);break;case h.DT_FLOATING_32BIT:this.writeFloat32(e);break;case h.DT_FLOATING_64BIT:this.writeFloat64(e);break;case h.DT_STRING:this.writeUtf8String(e);break;case h.DT_BYTEARRAY:this.writeByteArray(e);break;default:throw new TypeError("invalid data type")}},e.prototype.length=function(){return this.buf.length},e.prototype.setIndex=function(e){void 0===e&&(e=0),this.index=e},e.prototype.isEob=function(){return this.index===this.buf.length},e.prototype.toString=function(e,t,r){return this.buf.toString(e,t,r)},e.prototype.validate=function(e){if(null==e)throw TypeError("invalid value: "+e)},e.prototype.validateNumber=function(e){if("number"!=typeof e)throw TypeError("value is not a number: "+e)},e}(),oR=function(){function e(){}return e.prototype.encode=function(e,t){var r=new rR(this.encodeLength(e,t));return r.writeAsciiString(e.path),e.hasOwnProperty("nid")&&r.writeUInt16(e.nid),e.hasOwnProperty("value")&&r.writeDataType(e.value,t),e.hasOwnProperty("timestamp")&&r.writeUInt32(e.timestamp),e.hasOwnProperty("quality")&&r.writeUInt8(e.quality),e.hasOwnProperty("description")&&r.writeUtf8String(e.description),e.hasOwnProperty("flags")&&r.writeUInt8(e.flags),e.hasOwnProperty("dataType")&&r.writeUInt8(e.dataType),e.hasOwnProperty("triggerMode")&&(r.writeUInt8(e.triggerMode),e.hasOwnProperty("triggerN")&&r.writeDataType(e.triggerN,t),e.hasOwnProperty("triggerT")&&r.writeUInt32(e.triggerT)),e.hasOwnProperty("triggerDomain")&&r.writeUInt8(e.triggerDomain),e.hasOwnProperty("qosLevel")&&r.writeUInt8(e.qosLevel),e.hasOwnProperty("scalingFactor")&&r.writeFloat64(e.scalingFactor),e.hasOwnProperty("scalingOffset")&&r.writeFloat64(e.scalingOffset),e.hasOwnProperty("format")&&r.writeUtf8String(e.format),e.hasOwnProperty("writeRangeMin")&&r.writeFloat64(e.writeRangeMin),e.hasOwnProperty("writeRangeMax")&&r.writeFloat64(e.writeRangeMax),e.hasOwnProperty("updateUrl")&&r.writeUtf8String(e.updateUrl),e.hasOwnProperty("history")&&r.writeUInt16(e.history),r.buf},e.prototype.encodeLength=function(e,t){var r=2+Buffer.byteLength(e.path,"ascii");return e.hasOwnProperty("nid")&&(r+=2),e.hasOwnProperty("value")&&(r+=this._getDataTypeSize(t,e.value)),e.hasOwnProperty("timestamp")&&(r+=4),e.hasOwnProperty("quality")&&(r+=1),e.hasOwnProperty("description")&&(r+=2+Buffer.byteLength(e.description,"utf8")),e.hasOwnProperty("flags")&&(r+=1),e.hasOwnProperty("dataType")&&(r+=1),e.hasOwnProperty("triggerMode")&&(r+=1,e.hasOwnProperty("triggerN")&&(r+=this._getDataTypeSize(t)),e.hasOwnProperty("triggerT")&&(r+=4)),e.hasOwnProperty("triggerDomain")&&(r+=1),e.hasOwnProperty("qosLevel")&&(r+=1),e.hasOwnProperty("scalingFactor")&&(r+=8),e.hasOwnProperty("scalingOffset")&&(r+=8),e.hasOwnProperty("format")&&(r+=2+Buffer.byteLength(e.format,"utf8")),e.hasOwnProperty("writeRangeMin")&&(r+=8),e.hasOwnProperty("writeRangeMax")&&(r+=8),e.hasOwnProperty("updateUrl")&&(r+=2+Buffer.byteLength(e.updateUrl,"utf8")),e.hasOwnProperty("history")&&(r+=2),r},e.prototype._getDataTypeSize=function(e,t){switch(e){case 0:case 1:case 2:return 1;case 3:case 4:return 2;case 5:case 6:case 9:return 4;case 7:case 8:case 10:return 8;case 12:return 2+Buffer.byteLength(t,"utf8");case 13:return 2+Buffer.byteLength(t,"hex");default:throw new RangeError}},e}(),nR=function(){function e(){}return e.prototype.encode=function(e,t){var r=new rR(this.encodeLength(e,t));return r.writeAsciiString(e.path),e.hasOwnProperty("nid")&&r.writeUInt16(e.nid),e.hasOwnProperty("value")&&r.writeDataType(e.value,t),e.hasOwnProperty("timestamp")&&r.writeUInt64(tR.fromValue(e.timestamp)),e.hasOwnProperty("quality")&&r.writeUInt8(e.quality),e.hasOwnProperty("description")&&r.writeUtf8String(e.description),e.hasOwnProperty("flags")&&r.writeUInt8(e.flags),e.hasOwnProperty("dataType")&&r.writeUInt8(e.dataType),e.hasOwnProperty("triggerMode")&&(r.writeUInt8(e.triggerMode),e.hasOwnProperty("triggerN")&&(e.triggerMode===h.TRIGGER_R||e.triggerMode===h.TRIGGER_R_T?r.writeFloat32(e.triggerN):e.triggerMode===h.TRIGGER_T_S?r.writeUInt32(e.triggerN):r.writeDataType(e.triggerN,t)),e.hasOwnProperty("triggerT")&&r.writeUInt32(e.triggerT)),e.hasOwnProperty("triggerDomain")&&r.writeUInt8(e.triggerDomain),e.hasOwnProperty("qosLevel")&&r.writeUInt8(e.qosLevel),e.hasOwnProperty("scalingFactor")&&r.writeFloat64(e.scalingFactor),e.hasOwnProperty("scalingOffset")&&r.writeFloat64(e.scalingOffset),e.hasOwnProperty("format")&&r.writeUtf8String(e.format),e.hasOwnProperty("writeRangeMin")&&r.writeFloat64(e.writeRangeMin),e.hasOwnProperty("writeRangeMax")&&r.writeFloat64(e.writeRangeMax),e.hasOwnProperty("updateUrl")&&r.writeUtf8String(e.updateUrl),e.hasOwnProperty("history")&&r.writeUInt16(e.history),r.buf},e.prototype.encodeLength=function(e,t){var r=2+Buffer.byteLength(e.path,"ascii");return e.hasOwnProperty("nid")&&(r+=2),e.hasOwnProperty("value")&&(r+=this._getDataTypeSize(t,e.value)),e.hasOwnProperty("timestamp")&&(r+=8),e.hasOwnProperty("quality")&&(r+=1),e.hasOwnProperty("description")&&(r+=2+Buffer.byteLength(e.description,"utf8")),e.hasOwnProperty("flags")&&(r+=1),e.hasOwnProperty("dataType")&&(r+=1),e.hasOwnProperty("triggerMode")&&(r+=1,e.hasOwnProperty("triggerN")&&(e.triggerMode===h.TRIGGER_R||e.triggerMode===h.TRIGGER_R_T||e.triggerMode===h.TRIGGER_T_S?r+=4:r+=this._getDataTypeSize(t)),e.hasOwnProperty("triggerT")&&(r+=4)),e.hasOwnProperty("triggerDomain")&&(r+=1),e.hasOwnProperty("qosLevel")&&(r+=1),e.hasOwnProperty("scalingFactor")&&(r+=8),e.hasOwnProperty("scalingOffset")&&(r+=8),e.hasOwnProperty("format")&&(r+=2+Buffer.byteLength(e.format,"utf8")),e.hasOwnProperty("writeRangeMin")&&(r+=8),e.hasOwnProperty("writeRangeMax")&&(r+=8),e.hasOwnProperty("history")&&(r+=2),r},e.prototype._getDataTypeSize=function(e,t){switch(e){case 0:case 1:case 2:return 1;case 3:case 4:return 2;case 5:case 6:case 9:return 4;case 7:case 8:case 10:return 8;case 12:return 2+Buffer.byteLength(t,"utf8");case 13:return 2+Buffer.byteLength(t,"hex");default:throw new RangeError}},e}(),iR=function(){function e(e,t){this.name=e,this.code=t,this.bufferLengthBuilder=new Mh}return e.prototype.getName=function(){return this.name},e.prototype.getCode=function(){return this.code},e.prototype.getDataTypeSize=function(e,t){return this.bufferLengthBuilder.getDataTypeSize(e,t)},e.prototype.writeTriggerN=function(e,t,r){var o=r===h.DT_UNSIGNED_64BIT||r===h.DT_SIGNED_64BIT?tR.fromNumber(t):t;e.writeDataType(o,r)},e.prototype.readTriggerN=function(e,t,r){var o=t>h.DT_SIGNED_64BIT||t%2?t:t-1,n=e.readDataType(o);if(o===h.DT_UNSIGNED_64BIT){if(n.lessThan(tR.ZERO)||n.greaterThan(h.DT_FLOAT64_MAX_INT))throw new y(g.INVALID_VALUE,r);return n.toNumber()}return n},e}(),sR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),aR=function(e){function t(){return e.call(this,"ack",h.OPCODE_ACK)||this}return sR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_ACK};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(h.OPCODE_ACK),t.writeUInt16(e.sid),t.buf},t.prototype.encodeLength=function(){return 3},t}(iR),uR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),cR=function(e){function t(){return e.call(this,"cancel",18)||this}return uR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_CANCEL};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.transactions=[];!r.isEob();)t.transactions.push(r.readUInt16());if(0===t.transactions.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(18),t.writeUInt16(e.sid);for(var r=0,o=e.transactions.length;r<o;r++)t.writeUInt16(e.transactions[r]);return t.buf},t.prototype.encodeLength=function(e){return 3+2*e.transactions.length},t}(iR),pR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),fR=function(e){function t(){return e.call(this,"commit",11)||this}return pR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_COMMIT};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.tid=r.readUInt16(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt16(e.tid),t.buf},t.prototype.encodeLength=function(){return 5},t}(iR),dR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),lR=function(e){function t(){return e.call(this,"committedWrite",17)||this}return dR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_COMMITTEDWRITE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.tid=r.readUInt16(),t.nodes=[];!r.isEob();){var o={};o.nid=r.readUInt16(),o.dataType=r.readUInt8(),o.timestamp=r.readUInt32(),o.quality=r.readUInt8(),o.value=r.readDataType(o.dataType),t.nodes.push(o)}if(0===t.nodes.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt16(e.tid);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeUInt8(n.dataType),t.writeUInt32(n.timestamp),t.writeUInt8(n.quality),t.writeDataType(n.value,n.dataType)}return t.buf},t.prototype.encodeLength=function(e){for(var t=5,r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t+=8,t+=this.getDataTypeSize(n.dataType,n.value)}return t},t}(iR),hR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),RR=function(e){function t(){return e.call(this,"createModifyNode",14)||this}return hR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_CREATEMODIFYNODE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.options=r.readUInt16(),t.options&h.CREATEMODIFYNODE_RESERVED)throw new y(g.INVALID_OPTION,t);if(t.type=r.readUInt8(),t.options&h.CREATEMODIFYNODE_INDEX){if(!(t.options&h.CREATEMODIFYNODE_MODIFY))throw new y(g.INVALID_OPTION,t);t.nid=r.readUInt16()}else t.path=r.readAsciiString();if(t.options&h.CREATEMODIFYNODE_DESCRIPTION&&(t.description=r.readUtf8String()),t.options&h.CREATEMODIFYNODE_FLAGS&&(t.flags=r.readUInt8()),t.options&h.CREATEMODIFYNODE_DATATYPE){if(t.type===h.GROUP)throw new y(g.INVALID_OPTION,t);t.dataType=r.readUInt8()}if(t.options&h.CREATEMODIFYNODE_TRIGGERMODE){if(t.triggerMode=r.readUInt8(),t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T){if(!(t.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION,t);if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(r,t.dataType,t)}t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED||(t.triggerT=r.readUInt32())}if(t.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&(t.triggerDomain=r.readUInt8()),t.options&h.CREATEMODIFYNODE_QOSLEVEL&&(t.qosLevel=r.readUInt8()),t.options&h.CREATEMODIFYNODE_UPDATEURL&&(t.updateUrl=r.readUtf8String()),t.options&h.CREATEMODIFYNODE_HISTORY&&(t.history=r.readUInt16()),t.options&h.CREATEMODIFYNODE_FORMAT+h.CREATEMODIFYNODE_SCALING+h.CREATEMODIFYNODE_WRITERANGE&&t.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE,t);if(t.options&h.CREATEMODIFYNODE_FORMAT&&(t.format=r.readUtf8String()),t.options&h.CREATEMODIFYNODE_SCALING){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.scalingFactor=r.readFloat64(),t.scalingOffset=r.readFloat64()}if(t.options&h.CREATEMODIFYNODE_WRITERANGE){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.writeRangeMin=r.readFloat64(),t.writeRangeMax=r.readFloat64()}if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt16(e.options),t.writeUInt8(e.type),e.options&h.CREATEMODIFYNODE_INDEX?t.writeUInt16(e.nid):t.writeAsciiString(e.path),e.options&h.CREATEMODIFYNODE_DESCRIPTION&&t.writeUtf8String(e.description),e.options&h.CREATEMODIFYNODE_FLAGS&&t.writeUInt8(e.flags),e.options&h.CREATEMODIFYNODE_DATATYPE&&t.writeUInt8(e.dataType),e.options&h.CREATEMODIFYNODE_TRIGGERMODE&&(t.writeUInt8(e.triggerMode),e.triggerMode!==h.TRIGGER_N&&e.triggerMode!==h.TRIGGER_N_T||this.writeTriggerN(t,e.triggerN,e.dataType),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED||t.writeUInt32(e.triggerT)),e.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&t.writeUInt8(e.triggerDomain),e.options&h.CREATEMODIFYNODE_QOSLEVEL&&t.writeUInt8(e.qosLevel),e.options&h.CREATEMODIFYNODE_UPDATEURL&&t.writeUtf8String(e.updateUrl),e.options&h.CREATEMODIFYNODE_HISTORY&&t.writeUInt16(e.history),e.options&h.CREATEMODIFYNODE_FORMAT&&t.writeUtf8String(e.format),e.options&h.CREATEMODIFYNODE_SCALING&&(t.writeFloat64(e.scalingFactor),t.writeFloat64(e.scalingOffset)),e.options&h.CREATEMODIFYNODE_WRITERANGE&&(t.writeFloat64(e.writeRangeMin),t.writeFloat64(e.writeRangeMax)),t.buf},t.prototype.encodeLength=function(e){var t=6;if(e.options&h.CREATEMODIFYNODE_INDEX){if(!(e.options&h.CREATEMODIFYNODE_MODIFY))throw new y(g.INVALID_OPTION);t+=2}else t+=2+Buffer.byteLength(e.path,"ascii");if(e.options&h.CREATEMODIFYNODE_DESCRIPTION&&(t+=2+Buffer.byteLength(e.description,"utf8")),e.options&h.CREATEMODIFYNODE_FLAGS&&(t+=1),e.options&h.CREATEMODIFYNODE_DATATYPE){if(e.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE);t+=1}if(e.options&h.CREATEMODIFYNODE_TRIGGERMODE){if(t+=1,e.triggerMode===h.TRIGGER_N||e.triggerMode===h.TRIGGER_N_T){if(!(e.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION);t+=this.getDataTypeSize(e.dataType)}e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED||(t+=4)}if(e.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&(t+=1),e.options&h.CREATEMODIFYNODE_QOSLEVEL&&(t+=1),e.options&h.CREATEMODIFYNODE_UPDATEURL&&(t+=2+Buffer.byteLength(e.updateUrl,"utf8")),e.options&h.CREATEMODIFYNODE_HISTORY&&(t+=2),e.options&h.CREATEMODIFYNODE_FORMAT+h.CREATEMODIFYNODE_SCALING+h.CREATEMODIFYNODE_WRITERANGE&&e.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE);if(e.options&h.CREATEMODIFYNODE_FORMAT&&(t+=2+Buffer.byteLength(e.format,"utf8")),e.options&h.CREATEMODIFYNODE_SCALING){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=16}if(e.options&h.CREATEMODIFYNODE_WRITERANGE){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=16}return t},t}(iR),yR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),gR=function(e){function t(){return e.call(this,"deleteNode",15)||this}return yR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_DELETENODE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);switch(t.type=r.readUInt8(),t.type){case h.POINT:case h.GROUP:t.nid=r.readUInt16();break;case h.PATH:t.path=r.readAsciiString();break;default:throw new y(g.INVALID_NODE_TYPE,t)}if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));switch(t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.type),e.type){case h.POINT:case h.GROUP:t.writeUInt16(e.nid);break;case h.PATH:t.writeAsciiString(e.path);break;default:throw new y(g.INVALID_NODE_TYPE)}return t.buf},t.prototype.encodeLength=function(e){return e.type===h.PATH?6+Buffer.byteLength(e.path,"ascii"):6},t}(iR),mR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),_R=function(e){function t(){return e.call(this,"emergency",16)||this}return mR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_EMERGENCY};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.emergencies=r.readUInt32(),t.timestamp=r.readUInt32(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt32(e.emergencies),t.writeUInt32(e.timestamp),t.buf},t.prototype.encodeLength=function(){return 11},t}(iR),vR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),bR=function(e){function t(){return e.call(this,"enablePublish",7)||this}return vR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_ENABLEPUBLISH};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.options=r.readUInt8(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.options),t.buf},t.prototype.encodeLength=function(){return 4},t}(iR),OR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),wR=function(e){function t(){return e.call(this,"getHash",3)||this}return OR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETHASH};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.options=r.readUInt32(),t.path=r.readUtf8String(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt32(e.options),t.writeUtf8String(e.path),t.buf},t.prototype.encodeLength=function(e){return 9+Buffer.byteLength(e.path)},t}(iR),TR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ER=function(e){function t(){return e.call(this,"getHashResponse",4)||this}return TR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETHASH_RESPONSE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.hash=r.readOctets(20),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeOctets(e.hash,20),t.buf},t.prototype.encodeLength=function(){return 23},t}(iR),IR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),PR=function(e){function t(){return e.call(this,"getNodeProperties",12)||this}return IR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETNODEPROPERTIES};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);switch(t.type=r.readUInt8(),t.type){case h.POINT:case h.GROUP:t.nid=r.readUInt16();break;case h.PATH:t.path=r.readAsciiString();break;default:throw new y(g.INVALID_NODE_TYPE,t)}if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));switch(t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.type),e.type){case h.POINT:case h.GROUP:t.writeUInt16(e.nid);break;case h.PATH:t.writeAsciiString(e.path);break;default:throw new y(g.INVALID_NODE_TYPE)}return t.buf},t.prototype.encodeLength=function(e){return e.type===h.PATH?6+Buffer.byteLength(e.path,"ascii"):6},t}(iR),NR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),MR=function(e){function t(){return e.call(this,"getNodePropertiesResponse",13)||this}return NR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETNODEPROPERTIES_RESPONSE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.type=r.readUInt8(),t.nid=r.readUInt16(),t.path=r.readAsciiString(),t.description=r.readUtf8String(),t.flags=r.readUInt8(),t.type===h.POINT&&(t.dataType=r.readUInt8()),t.triggerMode=r.readUInt8(),t.type===h.POINT&&(t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T)){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(r,t.dataType,t)}if(t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED||(t.triggerT=r.readUInt32()),t.triggerDomain=r.readUInt8(),t.qosLevel=r.readUInt8(),t.updateUrl=r.readUtf8String(),t.history=r.readUInt16(),t.type===h.POINT&&(t.format=r.readUtf8String(),t.dataType>=h.DT_NUMERIC_MIN&&t.dataType<=h.DT_NUMERIC_MAX&&(t.scalingFactor=r.readFloat64(),t.scalingOffset=r.readFloat64(),t.writeRangeMin=r.readFloat64(),t.writeRangeMax=r.readFloat64())),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.type),t.writeUInt16(e.nid),t.writeAsciiString(e.path),t.writeUtf8String(e.description),t.writeUInt8(e.flags),e.type===h.POINT&&t.writeUInt8(e.dataType),t.writeUInt8(e.triggerMode),e.type===h.POINT&&(e.triggerMode!==h.TRIGGER_N&&e.triggerMode!==h.TRIGGER_N_T||this.writeTriggerN(t,e.triggerN,e.dataType)),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED||t.writeUInt32(e.triggerT),t.writeUInt8(e.triggerDomain),t.writeUInt8(e.qosLevel),t.writeUtf8String(e.updateUrl),t.writeUInt16(e.history),e.type===h.POINT&&(t.writeUtf8String(e.format),e.dataType>=h.DT_NUMERIC_MIN&&e.dataType<=h.DT_NUMERIC_MAX&&(t.writeFloat64(e.scalingFactor),t.writeFloat64(e.scalingOffset),t.writeFloat64(e.writeRangeMin),t.writeFloat64(e.writeRangeMax))),t.buf},t.prototype.encodeLength=function(e){var t=18;if(t+=Buffer.byteLength(e.path,"ascii"),t+=Buffer.byteLength(e.description,"utf8"),t+=Buffer.byteLength(e.updateUrl,"utf8"),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED||(t+=4),e.type===h.POINT){if(t+=3+Buffer.byteLength(e.format,"utf8"),e.triggerMode===h.TRIGGER_N||e.triggerMode===h.TRIGGER_N_T){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=this.getDataTypeSize(e.dataType)}e.dataType>=h.DT_NUMERIC_MIN&&e.dataType<=h.DT_NUMERIC_MAX&&(t+=32)}return t},t}(iR),UR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),GR=function(e){function t(){return e.call(this,"getTime",5)||this}return UR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETTIME};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.buf},t.prototype.encodeLength=function(){return 3},t}(iR),qR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),DR=function(e){function t(){return e.call(this,"getTimeResponse",6)||this}return qR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETTIME_RESPONSE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.timestamp=r.readUInt32(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt32(e.timestamp),t.buf},t.prototype.encodeLength=function(){return 7},t}(iR),SR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),AR=function(e){function t(){return e.call(this,"login",2)||this}return SR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_LOGIN};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.version=r.readUInt8(),t.options=r.readUInt8(),t.user=r.readUtf8String(),t.password=r.readOctets(20),t.interval=r.readUInt16(),t.timeout=r.readUInt8(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.version),t.writeUInt8(e.options),t.writeUtf8String(e.user),t.writeOctets(e.password,20),t.writeUInt16(e.interval),t.writeUInt8(e.timeout),t.buf},t.prototype.encodeLength=function(e){return 30+Buffer.byteLength(e.user)},t}(iR),CR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),jR=function(e){function t(){return e.call(this,"nak",1)||this}return CR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_NAK};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.error=r.readUInt8(),r.isEob()||(t.nid=r.readUInt16()),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.error),e.hasOwnProperty("nid")&&t.writeUInt16(e.nid),t.buf},t.prototype.encodeLength=function(e){var t=4;return e.hasOwnProperty("nid")&&(t+=2),t},t}(iR),LR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),BR=function(e){function t(){return e.call(this,"publish",8)||this}return LR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_PUBLISH};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.cmdflags=r.readUInt8(),t.nodes=[];!r.isEob();){var o={};if(o.nid=r.readUInt16(),o.path=r.readUtf8String(),!(t.cmdflags&h.PUBLISH_GROUP)){if(o.flags=r.readUInt8(),o.dataType=r.readUInt8(),o.triggerMode=r.readUInt8(),o.triggerMode===h.TRIGGER_N||o.triggerMode===h.TRIGGER_N_T){if(o.dataType<h.DT_NUMERIC_MIN||o.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);o.triggerN=this.readTriggerN(r,o.dataType,t)}o.triggerMode!==h.TRIGGER_T&&o.triggerMode!==h.TRIGGER_N_T&&o.triggerMode!==h.TRIGGER_T_CHANGED||(o.triggerT=r.readUInt32()),o.triggerDomain=r.readUInt8(),o.qosLevel=r.readUInt8()}t.nodes.push(o)}}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));if(t.writeUInt8(e.opcode),t.writeUInt16(e.sid),0===e.sid)throw new y(g.INVALID_SEQUENCE_NUMBER);t.writeUInt8(e.cmdflags);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeUtf8String(n.path),e.cmdflags&h.PUBLISH_GROUP||(t.writeUInt8(n.flags),t.writeUInt8(n.dataType),t.writeUInt8(n.triggerMode),n.triggerMode!==h.TRIGGER_N&&n.triggerMode!==h.TRIGGER_N_T||this.writeTriggerN(t,n.triggerN,n.dataType),n.triggerMode!==h.TRIGGER_T&&n.triggerMode!==h.TRIGGER_N_T&&n.triggerMode!==h.TRIGGER_T_CHANGED||t.writeUInt32(n.triggerT),t.writeUInt8(n.triggerDomain),t.writeUInt8(n.qosLevel))}return t.buf},t.prototype.encodeLength=function(e){for(var t=4,r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];if(t+=4+Buffer.byteLength(n.path,"ascii"),!(e.cmdflags&h.PUBLISH_GROUP)){if(t+=5,n.triggerMode===h.TRIGGER_N||n.triggerMode===h.TRIGGER_N_T){if(n.dataType<h.DT_NUMERIC_MIN||n.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=this.getDataTypeSize(n.dataType)}n.triggerMode!==h.TRIGGER_T&&n.triggerMode!==h.TRIGGER_N_T&&n.triggerMode!==h.TRIGGER_T_CHANGED||(t+=4)}}return t},t}(iR),xR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),FR=function(e){function t(){return e.call(this,"throttle",19)||this}return xR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_THROTTLE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.limit=r.readUInt16(),t.period=r.readUInt16(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(19),t.writeUInt16(e.sid),t.writeUInt16(e.limit),t.writeUInt16(e.period),t.buf},t.prototype.encodeLength=function(){return 7},t}(iR),HR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),VR=function(e){function t(){return e.call(this,"unPublish",9)||this}return HR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_UNPUBLISH};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.cmdflags=r.readUInt8(),t.nodes=[];!r.isEob();){var o={};o.nid=r.readUInt16(),t.nodes.push(o)}if(0===t.nodes.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(e.opcode),t.writeUInt16(e.sid),t.writeUInt8(e.cmdflags);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid)}return t.buf},t.prototype.encodeLength=function(e){return 4+2*e.nodes.length},t}(iR),kR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),YR=function(e){function t(){return e.call(this,"write",10)||this}return kR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_WRITE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.nodes=[];!r.isEob();){var o={};o.nid=r.readUInt16(),o.dataType=r.readUInt8(),o.timestamp=r.readUInt32(),o.quality=r.readUInt8(),o.value=r.readDataType(o.dataType),t.nodes.push(o)}if(0===t.nodes.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(e.opcode),t.writeUInt16(e.sid);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeUInt8(n.dataType),t.writeUInt32(n.timestamp),t.writeUInt8(n.quality),t.writeDataType(n.value,n.dataType)}return t.buf},t.prototype.encodeLength=function(e){for(var t=3,r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t+=8,t+=this.getDataTypeSize(n.dataType,n.value)}return t},t}(iR),$R=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),XR=function(e){function t(){return e.call(this,"committedWrite",17)||this}return $R(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_COMMITTEDWRITE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.tid=r.readUInt16(),t.nodes=[];!r.isEob();){var o={};o.nid=r.readUInt16(),o.dataType=r.readUInt8(),o.timestamp=tR.fromValue(r.readUInt64()).toNumber(),o.quality=r.readUInt8(),o.value=r.readDataType(o.dataType),t.nodes.push(o)}if(0===t.nodes.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(17),t.writeUInt16(e.sid),t.writeUInt16(e.tid);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeUInt8(n.dataType),t.writeUInt64(n.timestamp),t.writeUInt8(n.quality),t.writeDataType(n.value,n.dataType)}return t.buf},t.prototype.encodeLength=function(e){for(var t=5,r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t+=12,t+=this.getDataTypeSize(n.dataType,n.value)}return t},t}(iR),WR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),KR=function(e){function t(){return e.call(this,"createModifyNode",14)||this}return WR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_CREATEMODIFYNODE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.options=r.readUInt16(),t.options&h.CREATEMODIFYNODE_RESERVED)throw new y(g.INVALID_OPTION,t);if(t.type=r.readUInt8(),t.options&h.CREATEMODIFYNODE_INDEX){if(!(t.options&h.CREATEMODIFYNODE_MODIFY))throw new y(g.INVALID_OPTION,t);t.nid=r.readUInt16()}else t.path=r.readAsciiString();if(t.options&h.CREATEMODIFYNODE_DESCRIPTION&&(t.description=r.readUtf8String()),t.options&h.CREATEMODIFYNODE_FLAGS&&(t.flags=r.readUInt8()),t.options&h.CREATEMODIFYNODE_DATATYPE){if(t.type===h.GROUP)throw new y(g.INVALID_OPTION,t);t.dataType=r.readUInt8()}if(t.options&h.CREATEMODIFYNODE_TRIGGERMODE){if(t.triggerMode=r.readUInt8(),t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T){if(!(t.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION,t);if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(r,t.dataType,t)}if(t.triggerMode===h.TRIGGER_R||t.triggerMode===h.TRIGGER_R_T){if(!(t.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION,t);if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=r.readFloat32()}if(t.triggerMode===h.TRIGGER_T_S){if(!(t.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION,t);if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=r.readUInt32()}t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED&&t.triggerMode!==h.TRIGGER_R_T&&t.triggerMode!==h.TRIGGER_T_S||(t.triggerT=r.readUInt32())}if(t.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&(t.triggerDomain=r.readUInt8()),t.options&h.CREATEMODIFYNODE_QOSLEVEL&&(t.qosLevel=r.readUInt8()),t.options&h.CREATEMODIFYNODE_HISTORY&&(t.history=r.readUInt16()),t.options&h.CREATEMODIFYNODE_FORMAT+h.CREATEMODIFYNODE_SCALING+h.CREATEMODIFYNODE_WRITERANGE&&t.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE,t);if(t.options&h.CREATEMODIFYNODE_FORMAT&&(t.format=r.readUtf8String()),t.options&h.CREATEMODIFYNODE_SCALING){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.scalingFactor=r.readFloat64(),t.scalingOffset=r.readFloat64()}if(t.options&h.CREATEMODIFYNODE_WRITERANGE){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.writeRangeMin=r.readFloat64(),t.writeRangeMax=r.readFloat64()}if(!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(14),t.writeUInt16(e.sid),t.writeUInt16(e.options),t.writeUInt8(e.type),e.options&h.CREATEMODIFYNODE_INDEX?t.writeUInt16(e.nid):t.writeAsciiString(e.path),e.options&h.CREATEMODIFYNODE_DESCRIPTION&&t.writeUtf8String(e.description),e.options&h.CREATEMODIFYNODE_FLAGS&&t.writeUInt8(e.flags),e.options&h.CREATEMODIFYNODE_DATATYPE&&t.writeUInt8(e.dataType),e.options&h.CREATEMODIFYNODE_TRIGGERMODE&&(t.writeUInt8(e.triggerMode),e.triggerMode===h.TRIGGER_N||e.triggerMode===h.TRIGGER_N_T?this.writeTriggerN(t,e.triggerN,e.dataType):e.triggerMode===h.TRIGGER_R||e.triggerMode===h.TRIGGER_R_T?t.writeFloat32(e.triggerN):e.triggerMode===h.TRIGGER_T_S&&t.writeUInt32(e.triggerN),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED&&e.triggerMode!==h.TRIGGER_R_T&&e.triggerMode!==h.TRIGGER_T_S||t.writeUInt32(e.triggerT)),e.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&t.writeUInt8(e.triggerDomain),e.options&h.CREATEMODIFYNODE_QOSLEVEL&&t.writeUInt8(e.qosLevel),e.options&h.CREATEMODIFYNODE_HISTORY&&t.writeUInt16(e.history),e.options&h.CREATEMODIFYNODE_FORMAT&&t.writeUtf8String(e.format),e.options&h.CREATEMODIFYNODE_SCALING&&(t.writeFloat64(e.scalingFactor),t.writeFloat64(e.scalingOffset)),e.options&h.CREATEMODIFYNODE_WRITERANGE&&(t.writeFloat64(e.writeRangeMin),t.writeFloat64(e.writeRangeMax)),t.buf},t.prototype.encodeLength=function(e){var t=6;if(e.options&h.CREATEMODIFYNODE_INDEX){if(!(e.options&h.CREATEMODIFYNODE_MODIFY))throw new y(g.INVALID_OPTION);t+=2}else t+=2+Buffer.byteLength(e.path,"ascii");if(e.options&h.CREATEMODIFYNODE_DESCRIPTION&&(t+=2+Buffer.byteLength(e.description,"utf8")),e.options&h.CREATEMODIFYNODE_FLAGS&&(t+=1),e.options&h.CREATEMODIFYNODE_DATATYPE){if(e.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE);t+=1}if(e.options&h.CREATEMODIFYNODE_TRIGGERMODE){if(t+=1,e.triggerMode===h.TRIGGER_N||e.triggerMode===h.TRIGGER_N_T){if(!(e.options&h.CREATEMODIFYNODE_DATATYPE))throw new y(g.INVALID_OPTION);t+=this.getDataTypeSize(e.dataType)}(e.triggerMode===h.TRIGGER_R||e.triggerMode===h.TRIGGER_R_T||e.triggerMode===h.TRIGGER_T_S)&&(t+=4),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED&&e.triggerMode!==h.TRIGGER_R_T&&e.triggerMode!==h.TRIGGER_T_S||(t+=4)}if(e.options&h.CREATEMODIFYNODE_TRIGGERDOMAIN&&(t+=1),e.options&h.CREATEMODIFYNODE_QOSLEVEL&&(t+=1),e.options&h.CREATEMODIFYNODE_HISTORY&&(t+=2),e.options&h.CREATEMODIFYNODE_FORMAT+h.CREATEMODIFYNODE_SCALING+h.CREATEMODIFYNODE_WRITERANGE&&e.type===h.GROUP)throw new y(g.INVALID_NODE_TYPE);if(e.options&h.CREATEMODIFYNODE_FORMAT&&(t+=2+Buffer.byteLength(e.format,"utf8")),e.options&h.CREATEMODIFYNODE_SCALING){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=16}if(e.options&h.CREATEMODIFYNODE_WRITERANGE){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=16}return t},t}(iR),zR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),QR=function(e){function t(){return e.call(this,"emergency",16)||this}return zR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_EMERGENCY};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.emergencies=r.readUInt32(),t.timestamp=tR.fromValue(r.readUInt64()).toNumber(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(16),t.writeUInt16(e.sid),t.writeUInt32(e.emergencies),t.writeUInt64(e.timestamp),t.buf},t.prototype.encodeLength=function(){return 15},t}(iR),ZR=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),JR=function(e){function t(){return e.call(this,"getNodePropertiesResponse",13)||this}return ZR(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETNODEPROPERTIES_RESPONSE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.type=r.readUInt8(),t.nid=r.readUInt16(),t.path=r.readAsciiString(),t.description=r.readUtf8String(),t.flags=r.readUInt8(),t.type===h.POINT&&(t.dataType=r.readUInt8()),t.triggerMode=r.readUInt8(),t.type===h.POINT&&(t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T)){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(r,t.dataType,t)}if(t.triggerMode===h.TRIGGER_R||t.triggerMode===h.TRIGGER_R_T){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=r.readFloat32()}if(t.triggerMode===h.TRIGGER_T_S&&(t.triggerN=r.readUInt32()),t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED&&t.triggerMode!==h.TRIGGER_R_T&&t.triggerMode!==h.TRIGGER_T_S||(t.triggerT=r.readUInt32()),t.triggerDomain=r.readUInt8(),t.qosLevel=r.readUInt8(),t.history=r.readUInt16(),t.type===h.POINT&&(t.format=r.readUtf8String(),t.dataType>=h.DT_NUMERIC_MIN&&t.dataType<=h.DT_NUMERIC_MAX&&(t.scalingFactor=r.readFloat64(),t.scalingOffset=r.readFloat64(),t.writeRangeMin=r.readFloat64(),t.writeRangeMax=r.readFloat64())),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));return t.writeUInt8(13),t.writeUInt16(e.sid),t.writeUInt8(e.type),t.writeUInt16(e.nid),t.writeAsciiString(e.path),t.writeUtf8String(e.description),t.writeUInt8(e.flags),e.type===h.POINT&&t.writeUInt8(e.dataType),t.writeUInt8(e.triggerMode),e.type===h.POINT&&(e.triggerMode!==h.TRIGGER_N&&e.triggerMode!==h.TRIGGER_N_T||this.writeTriggerN(t,e.triggerN,e.dataType)),e.triggerMode!==h.TRIGGER_R&&e.triggerMode!==h.TRIGGER_R_T||t.writeFloat32(e.triggerN),e.triggerMode===h.TRIGGER_T_S&&t.writeUInt32(e.triggerN),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED&&e.triggerMode!==h.TRIGGER_R_T&&e.triggerMode!==h.TRIGGER_T_S||t.writeUInt32(e.triggerT),t.writeUInt8(e.triggerDomain),t.writeUInt8(e.qosLevel),t.writeUInt16(e.history),e.type===h.POINT&&(t.writeUtf8String(e.format),e.dataType>=h.DT_NUMERIC_MIN&&e.dataType<=h.DT_NUMERIC_MAX&&(t.writeFloat64(e.scalingFactor),t.writeFloat64(e.scalingOffset),t.writeFloat64(e.writeRangeMin),t.writeFloat64(e.writeRangeMax))),t.buf},t.prototype.encodeLength=function(e){var t=16;if(t+=Buffer.byteLength(e.path,"ascii"),t+=Buffer.byteLength(e.description,"utf8"),e.triggerMode!==h.TRIGGER_T&&e.triggerMode!==h.TRIGGER_N_T&&e.triggerMode!==h.TRIGGER_T_CHANGED&&e.triggerMode!==h.TRIGGER_R_T&&e.triggerMode!==h.TRIGGER_T_S||(t+=4),e.type===h.POINT){if(t+=3+Buffer.byteLength(e.format,"utf8"),e.triggerMode===h.TRIGGER_N||e.triggerMode===h.TRIGGER_N_T){if(e.dataType<h.DT_NUMERIC_MIN||e.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);t+=this.getDataTypeSize(e.dataType)}else e.triggerMode===h.TRIGGER_T_S&&(t+=4);e.dataType>=h.DT_NUMERIC_MIN&&e.dataType<=h.DT_NUMERIC_MAX&&(t+=32)}return e.triggerMode!==h.TRIGGER_R&&e.triggerMode!==h.TRIGGER_R_T||(t+=4),t},t}(iR),ey=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ty=function(e){function t(){return e.call(this,"getTimeResponse",6)||this}return ey(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_GETTIME_RESPONSE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.timestamp=tR.fromValue(r.readUInt64()).toNumber(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength());return t.writeUInt8(6),t.writeUInt16(e.sid),t.writeUInt64(e.timestamp),t.buf},t.prototype.encodeLength=function(){return 11},t}(iR),ry=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),oy=function(e){function t(){return e.call(this,"login",2)||this}return ry(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_LOGIN};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);if(t.options=r.readUInt8(),t.user=r.readUtf8String(),t.password=r.readUtf8String(),t.interval=r.readUInt16(),t.timeout=r.readUInt8(),t.publishOptions=r.readUInt8(),!r.isEob())throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=this.encodeLength(e),r=new rR(t);return r.writeUInt8(2),r.writeUInt16(e.sid),r.writeUInt8(e.options),r.writeUtf8String(e.user),r.writeUtf8String(e.password),r.writeUInt16(e.interval),r.writeUInt8(e.timeout),r.writeUInt8(e.publishOptions),r.buf},t.prototype.encodeLength=function(e){return 12+Buffer.byteLength(e.user)+Buffer.byteLength(e.password)},t}(iR),ny=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),iy=function(e){function t(){return e.call(this,"publish",8)||this}return ny(t,e),t.prototype.decode=function(e){var t;try{var r=new rR(e);for(r.setIndex(1),(t=this._decodeHeader(r)).nodes=[];!r.isEob();){var o={};t.cmdflags&h.PUBLISH_GROUP&&!(t.cmdflags&h.PUBLISH_DETAILED)?this._decodeSimpleGroupNode(r,o):t.cmdflags&h.PUBLISH_GROUP&&t.cmdflags&h.PUBLISH_DETAILED?this._decodeDetailedGroupNode(r,o):t.cmdflags&h.PUBLISH_GROUP||t.cmdflags&h.PUBLISH_DETAILED?!(t.cmdflags&h.PUBLISH_GROUP)&&t.cmdflags&h.PUBLISH_DETAILED&&this._decodeDetailedPointNode(r,o):this._decodeSimplePointNode(r,o),t.nodes.push(o)}}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){if(0===e.sid)throw new y(g.INVALID_SEQUENCE_NUMBER);var t=new rR(this.encodeLength(e));return e.cmdflags&h.PUBLISH_GROUP&&!(e.cmdflags&h.PUBLISH_DETAILED)?this._encodeSimpleGroupNode(e,t):e.cmdflags&h.PUBLISH_GROUP&&e.cmdflags&h.PUBLISH_DETAILED?this._encodeDetailedGroupNode(e,t):e.cmdflags&h.PUBLISH_GROUP||e.cmdflags&h.PUBLISH_DETAILED?!(e.cmdflags&h.PUBLISH_GROUP)&&e.cmdflags&h.PUBLISH_DETAILED&&this._encodeDetailedPointNode(e,t):this._encodeSimplePointNode(e,t),t.buf},t.prototype._encodeHeader=function(e,t){t.writeUInt8(8),t.writeUInt16(e.sid),t.writeUInt8(e.cmdflags)},t.prototype._decodeHeader=function(e){var t={opcode:h.OPCODE_PUBLISH};if(t.sid=e.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);return t.cmdflags=e.readUInt8(),t},t.prototype._encodeSimpleGroupNode=function(e,t){this._encodeHeader(e,t);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeAsciiString(n.path)}},t.prototype._decodeSimpleGroupNode=function(e,t){t.nid=e.readUInt16(),t.path=e.readAsciiString()},t.prototype._encodeDetailedGroupNode=function(e,t){this._encodeHeader(e,t);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt8(n.type),t.writeUInt16(n.nid),t.writeAsciiString(n.path),t.writeUtf8String(n.description),t.writeUInt8(n.flags),t.writeUInt8(n.triggerMode),n.triggerMode!==h.TRIGGER_T&&n.triggerMode!==h.TRIGGER_N_T&&n.triggerMode!==h.TRIGGER_T_CHANGED&&n.triggerMode!==h.TRIGGER_R_T&&n.triggerMode!==h.TRIGGER_T_S||t.writeUInt32(n.triggerT),t.writeUInt8(n.triggerDomain),t.writeUInt8(n.qosLevel),t.writeUInt16(n.history)}},t.prototype._decodeDetailedGroupNode=function(e,t){t.type=e.readUInt8(),t.nid=e.readUInt16(),t.path=e.readAsciiString(),t.description=e.readUtf8String(),t.flags=e.readUInt8(),t.triggerMode=e.readUInt8(),t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED&&t.triggerMode!==h.TRIGGER_R_T&&t.triggerMode!==h.TRIGGER_T_S||(t.triggerT=e.readUInt32()),t.triggerDomain=e.readUInt8(),t.qosLevel=e.readUInt8(),t.history=e.readUInt16()},t.prototype._encodeSimplePointNode=function(e,t){this._encodeHeader(e,t);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeAsciiString(n.path),t.writeUInt8(n.flags),t.writeUInt8(n.dataType),t.writeUInt8(n.triggerMode),n.triggerMode===h.TRIGGER_N||n.triggerMode===h.TRIGGER_N_T?this.writeTriggerN(t,n.triggerN,n.dataType):n.triggerMode===h.TRIGGER_R||n.triggerMode===h.TRIGGER_R_T?t.writeFloat32(n.triggerN):n.triggerMode===h.TRIGGER_T_S&&t.writeUInt32(n.triggerN),n.triggerMode!==h.TRIGGER_T&&n.triggerMode!==h.TRIGGER_N_T&&n.triggerMode!==h.TRIGGER_T_CHANGED&&n.triggerMode!==h.TRIGGER_R_T&&n.triggerMode!==h.TRIGGER_T_S||t.writeUInt32(n.triggerT),t.writeUInt8(n.triggerDomain),t.writeUInt8(n.qosLevel)}},t.prototype._decodeSimplePointNode=function(e,t){if(t.nid=e.readUInt16(),t.path=e.readAsciiString(),t.flags=e.readUInt8(),t.dataType=e.readUInt8(),t.triggerMode=e.readUInt8(),t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(e,t.dataType,t)}else if(t.triggerMode===h.TRIGGER_R||t.triggerMode===h.TRIGGER_R_T){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=e.readFloat32()}else t.triggerMode===h.TRIGGER_T_S&&(t.triggerN=e.readUInt32());t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED&&t.triggerMode!==h.TRIGGER_R_T&&t.triggerMode!==h.TRIGGER_T_S||(t.triggerT=e.readUInt32()),t.triggerDomain=e.readUInt8(),t.qosLevel=e.readUInt8()},t.prototype._encodeDetailedPointNode=function(e,t){this._encodeHeader(e,t);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt8(n.type),t.writeUInt16(n.nid),t.writeAsciiString(n.path),t.writeUtf8String(n.description),t.writeUInt8(n.flags),t.writeUInt8(n.dataType),t.writeUInt8(n.triggerMode),n.triggerMode===h.TRIGGER_N||n.triggerMode===h.TRIGGER_N_T?this.writeTriggerN(t,n.triggerN,n.dataType):n.triggerMode===h.TRIGGER_R||n.triggerMode===h.TRIGGER_R_T?t.writeFloat32(n.triggerN):n.triggerMode===h.TRIGGER_T_S&&t.writeUInt32(n.triggerN),n.triggerMode!==h.TRIGGER_T&&n.triggerMode!==h.TRIGGER_N_T&&n.triggerMode!==h.TRIGGER_T_CHANGED&&n.triggerMode!==h.TRIGGER_R_T&&n.triggerMode!==h.TRIGGER_T_S||t.writeUInt32(n.triggerT),t.writeUInt8(n.triggerDomain),t.writeUInt8(n.qosLevel),t.writeUInt16(n.history),t.writeUtf8String(n.format),n.dataType>=h.DT_NUMERIC_MIN&&n.dataType<=h.DT_NUMERIC_MAX&&(t.writeFloat64(n.scalingFactor),t.writeFloat64(n.scalingOffset),t.writeFloat64(n.writeRangeMin),t.writeFloat64(n.writeRangeMax))}},t.prototype._decodeDetailedPointNode=function(e,t){if(t.type=e.readUInt8(),t.nid=e.readUInt16(),t.path=e.readAsciiString(),t.description=e.readUtf8String(),t.flags=e.readUInt8(),t.dataType=e.readUInt8(),t.triggerMode=e.readUInt8(),t.triggerMode===h.TRIGGER_N||t.triggerMode===h.TRIGGER_N_T){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=this.readTriggerN(e,t.dataType,t)}if(t.triggerMode===h.TRIGGER_R||t.triggerMode===h.TRIGGER_R_T){if(t.dataType<h.DT_NUMERIC_MIN||t.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE,t);t.triggerN=e.readFloat32()}t.triggerMode===h.TRIGGER_T_S&&(t.triggerN=e.readUInt32()),t.triggerMode!==h.TRIGGER_T&&t.triggerMode!==h.TRIGGER_N_T&&t.triggerMode!==h.TRIGGER_T_CHANGED&&t.triggerMode!==h.TRIGGER_R_T&&t.triggerMode!==h.TRIGGER_T_S||(t.triggerT=e.readUInt32()),t.triggerDomain=e.readUInt8(),t.qosLevel=e.readUInt8(),t.history=e.readUInt16(),t.format=e.readUtf8String(),t.dataType>=h.DT_NUMERIC_MIN&&t.dataType<=h.DT_NUMERIC_MAX&&(t.scalingFactor=e.readFloat64(),t.scalingOffset=e.readFloat64(),t.writeRangeMin=e.readFloat64(),t.writeRangeMax=e.readFloat64())},t.prototype.encodeLength=function(e){this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_16BIT).add(h.DT_UNSIGNED_8BIT);for(var t=0,r=e.nodes.length;t<r;t++){var o=e.nodes[t];if(e.cmdflags&h.PUBLISH_GROUP&&!(e.cmdflags&h.PUBLISH_DETAILED)&&this.bufferLengthBuilder.add(h.DT_UNSIGNED_16BIT).add(h.DT_STRING,o.path),e.cmdflags&h.PUBLISH_GROUP&&e.cmdflags&h.PUBLISH_DETAILED&&(this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_16BIT).add(h.DT_STRING,o.path).add(h.DT_STRING,o.description).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT),o.triggerMode!==h.TRIGGER_T&&o.triggerMode!==h.TRIGGER_N_T&&o.triggerMode!==h.TRIGGER_T_CHANGED&&o.triggerMode!==h.TRIGGER_R_T&&o.triggerMode!==h.TRIGGER_T_S||this.bufferLengthBuilder.add(h.DT_UNSIGNED_32BIT),this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_16BIT)),!(e.cmdflags&h.PUBLISH_GROUP||e.cmdflags&h.PUBLISH_DETAILED)){if(this.bufferLengthBuilder.add(h.DT_UNSIGNED_16BIT).add(h.DT_STRING,o.path).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT),o.triggerMode===h.TRIGGER_N||o.triggerMode===h.TRIGGER_N_T){if(o.dataType<h.DT_NUMERIC_MIN||o.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);this.bufferLengthBuilder.add(o.dataType)}if(o.triggerMode===h.TRIGGER_R||o.triggerMode===h.TRIGGER_R_T){if(o.dataType<h.DT_NUMERIC_MIN||o.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);this.bufferLengthBuilder.add(h.DT_FLOATING_32BIT)}if(o.triggerMode===h.TRIGGER_T_S&&this.bufferLengthBuilder.add(h.DT_UNSIGNED_32BIT),o.triggerMode!==h.TRIGGER_T&&o.triggerMode!==h.TRIGGER_N_T&&o.triggerMode!==h.TRIGGER_T_CHANGED&&o.triggerMode!==h.TRIGGER_R_T&&o.triggerMode!==h.TRIGGER_T_S||this.bufferLengthBuilder.add(h.DT_UNSIGNED_32BIT),this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT),!(e.cmdflags&h.PUBLISH_GROUP)&&e.cmdflags&h.PUBLISH_DETAILED){if(this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_16BIT).add(h.DT_STRING,o.path).add(h.DT_STRING,o.description).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT),o.triggerMode===h.TRIGGER_N||o.triggerMode===h.TRIGGER_N_T){if(o.dataType<h.DT_NUMERIC_MIN||o.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);this.bufferLengthBuilder.add(o.dataType)}else if(o.triggerMode===h.TRIGGER_R||o.triggerMode===h.TRIGGER_R_T){if(o.dataType<h.DT_NUMERIC_MIN||o.dataType>h.DT_NUMERIC_MAX)throw new y(g.INVALID_DATA_TYPE);this.bufferLengthBuilder.add(h.DT_FLOATING_32BIT)}else o.triggerMode===h.TRIGGER_T_S&&this.bufferLengthBuilder.add(h.DT_UNSIGNED_32BIT);o.triggerMode!==h.TRIGGER_T&&o.triggerMode!==h.TRIGGER_N_T&&o.triggerMode!==h.TRIGGER_T_CHANGED&&o.triggerMode!==h.TRIGGER_R_T&&o.triggerMode!==h.TRIGGER_T_S||this.bufferLengthBuilder.add(h.DT_UNSIGNED_32BIT),this.bufferLengthBuilder.add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_8BIT).add(h.DT_UNSIGNED_16BIT).add(h.DT_STRING),e.dataType>=h.DT_NUMERIC_MIN&&e.dataType<=h.DT_NUMERIC_MAX&&this.bufferLengthBuilder.add(h.DT_FLOATING_64BIT).add(h.DT_FLOATING_64BIT).add(h.DT_FLOATING_64BIT).add(h.DT_FLOATING_64BIT)}}}return this.bufferLengthBuilder.build()},t}(iR),sy=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ay=function(e){function t(){return e.call(this,"write",10)||this}return sy(t,e),t.prototype.decode=function(e){var t={opcode:h.OPCODE_WRITE};try{var r=new rR(e);if(r.setIndex(1),t.sid=r.readUInt16(),0===t.sid)throw new y(g.INVALID_SEQUENCE_NUMBER,t);for(t.nodes=[];!r.isEob();){var o={};o.nid=r.readUInt16(),o.dataType=r.readUInt8(),o.timestamp=tR.fromValue(r.readUInt64()).toNumber(),o.quality=r.readUInt8(),o.value=r.readDataType(o.dataType),t.nodes.push(o)}if(0===t.nodes.length)throw new y(g.PROTOCOL_ERROR,t)}catch(e){throw e instanceof y?e:new y(g.PROTOCOL_ERROR,t)}return t},t.prototype.encode=function(e){var t=new rR(this.encodeLength(e));t.writeUInt8(10),t.writeUInt16(e.sid);for(var r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t.writeUInt16(n.nid),t.writeUInt8(n.dataType),t.writeUInt64(n.timestamp),t.writeUInt8(n.quality),t.writeDataType(n.value,n.dataType)}return t.buf},t.prototype.encodeLength=function(e){for(var t=3,r=0,o=e.nodes.length;r<o;r++){var n=e.nodes[r];t+=12,t+=this.getDataTypeSize(n.dataType,n.value)}return t},t}(iR),uy=function(){function e(e,t){var r=this;this.opcodes=e,this.opcodeCompatMapper=t,this.opcodesMap=new Map,this.opcodes.forEach((function(e){r.opcodesMap.set(e.getCode(),e)}))}return e.prototype.getOpcode=function(e){var t=this.opcodesMap.get(e);if(!t)throw new y(g.INVALID_OPCODE);return t},e.prototype.getNameFromOpcode=function(e){return this.getOpcode(e).getName()},e.prototype.decode=function(e){var t=this.getOpcode(e[0]).decode(e);return this.opcodeCompatMapper.map(t,h.INCOMING_DIRECTION)},e.prototype.encode=function(e){var t=this.getOpcode(e.opcode),r=this.opcodeCompatMapper.map(e,h.OUTGOING_DIRECTION);return t.encode(r)},e}(),cy=function(){function e(){this.init()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.plainToRequest=function(t,r){var o=e.map.get(t.semVer.raw);if(!o)throw new Error("mappers for version ".concat(t," not found"));var n=o.get(r.method);if(!n)throw new Error("mapper function for method ".concat(r.method," not found"));return n(r)},e.prototype.init=function(){this.initV1ConsumerKolibriRequestMappers(),this.initV21ConsumerKolibriRequestMappers(),this.initV30ConsumerKolibriRequestMappers(),this.initV31ConsumerKolibriRequestMappers(),this.initV32ConsumerKolibriRequestMappers(),this.initV33ConsumerKolibriRequestMappers()},e.prototype.initV1ConsumerKolibriRequestMappers=function(){var t=new P("kolibri"),r=new Map;r.set(pe.GetChallengeRequestMethod,dt),r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.LoginRequestMethod,$t),r.set(pe.CloseRequestMethod,Je),r.set(pe.SubscribeRequestMethod,yr),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.WriteRequestMethod,Ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.UserSubscribeRequestMethod,Cs),r.set(pe.UserUnsubscribeRequestMethod,Ys),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectCreateRequestMethod,Jn),r.set(pe.ProjectModifyRequestMethod,Di),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeBrowseRequestMethod,Yr),r.set(pe.NodeCreateRequestMethod,uo),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.NodeGetHistoryRequestMethod,Io),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UserGetHistoryRequestMethod,ds),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),e.map.set(t.semVer.raw,r)},e.prototype.initV21ConsumerKolibriRequestMappers=function(){var t=new P("v2.1.kolibri"),r=new Map;r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.CloseRequestMethod,Je),r.set(pe.SubscribeRequestMethod,yr),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectCreateRequestMethod,Jn),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.LoginRequestMethod,ku),r.set(pe.WriteRequestMethod,tc),r.set(pe.UserSubscribeRequestMethod,Rp),r.set(pe.UserUnsubscribeRequestMethod,Tp),r.set(pe.UserGetSessionRequestMethod,sp),r.set(pe.ProjectModifyRequestMethod,Vc),r.set(pe.NodeBrowseRequestMethod,fc),r.set(pe.NodeCreateRequestMethod,_c),r.set(pe.NodeGetHistoryRequestMethod,Cc),r.set(pe.UserGetHistoryRequestMethod,Qc),e.map.set(t.semVer.raw,r)},e.prototype.initV30ConsumerKolibriRequestMappers=function(){var t=new P("v3.0.c.kolibri"),r=new Map;r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.CloseRequestMethod,Je),r.set(pe.SubscribeRequestMethod,yr),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.LoginRequestMethod,ku),r.set(pe.WriteRequestMethod,tc),r.set(pe.UserSubscribeRequestMethod,Rp),r.set(pe.UserUnsubscribeRequestMethod,Tp),r.set(pe.UserGetSessionRequestMethod,sp),r.set(pe.NodeBrowseRequestMethod,fc),r.set(pe.NodeCreateRequestMethod,_c),r.set(pe.NodeGetHistoryRequestMethod,Cc),r.set(pe.UserGetHistoryRequestMethod,Qc),r.set(pe.ProjectCreateRequestMethod,Cp),r.set(pe.ProjectModifyRequestMethod,kp),e.map.set(t.semVer.raw,r)},e.prototype.initV31ConsumerKolibriRequestMappers=function(){var t=new P("v3.1.c.kolibri"),r=new Map;r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.CloseRequestMethod,Je),r.set(pe.SubscribeRequestMethod,yr),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.LoginRequestMethod,ku),r.set(pe.WriteRequestMethod,tc),r.set(pe.UserSubscribeRequestMethod,Rp),r.set(pe.UserUnsubscribeRequestMethod,Tp),r.set(pe.UserGetSessionRequestMethod,sp),r.set(pe.NodeBrowseRequestMethod,fc),r.set(pe.NodeCreateRequestMethod,_c),r.set(pe.NodeGetHistoryRequestMethod,Cc),r.set(pe.UserGetHistoryRequestMethod,Qc),r.set(pe.ProjectCreateRequestMethod,Cp),r.set(pe.ProjectModifyRequestMethod,kp),r.set(pe.ProjectGetHistoryUsageRequestMethod,pd),r.set(pe.ProjectGetLiveUsageRequestMethod,_d),e.map.set(t.semVer.raw,r)},e.prototype.initV32ConsumerKolibriRequestMappers=function(){var t=new P("v3.2.c.kolibri"),r=new Map;r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.CloseRequestMethod,Je),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.LoginRequestMethod,ku),r.set(pe.WriteRequestMethod,tc),r.set(pe.UserSubscribeRequestMethod,Rp),r.set(pe.UserUnsubscribeRequestMethod,Tp),r.set(pe.UserGetSessionRequestMethod,sp),r.set(pe.NodeBrowseRequestMethod,fc),r.set(pe.NodeCreateRequestMethod,_c),r.set(pe.NodeGetHistoryRequestMethod,Cc),r.set(pe.UserGetHistoryRequestMethod,Qc),r.set(pe.ProjectCreateRequestMethod,Cp),r.set(pe.ProjectModifyRequestMethod,kp),r.set(pe.ProjectGetHistoryUsageRequestMethod,pd),r.set(pe.ProjectGetLiveUsageRequestMethod,_d),r.set(pe.SubscribeRequestMethod,Md),r.set(pe.NodeDeleteHistoryRequestMethod,Bd),r.set(pe.PermissionUserListRequestMethod,$d),e.map.set(t.semVer.raw,r)},e.prototype.initV33ConsumerKolibriRequestMappers=function(){var t=new P("v3.3.c.kolibri"),r=new Map;r.set(pe.GetRpcInfoRequestMethod,mt),r.set(pe.GetStatisticsRequestMethod,Et),r.set(pe.CloseRequestMethod,Je),r.set(pe.UnsubscribeRequestMethod,Er),r.set(pe.ReadRequestMethod,ar),r.set(pe.CommitRequestMethod,st),r.set(pe.CancelRequestMethod,Ye),r.set(pe.ProjectBrowseRequestMethod,kn),r.set(pe.ProjectDeleteRequestMethod,ai),r.set(pe.ProjectGetPropertiesRequestMethod,Ri),r.set(pe.ProjectGetStatisticsRequestMethod,Ti),r.set(pe.NodeModifyRequestMethod,Vo),r.set(pe.NodeDeleteRequestMethod,go),r.set(pe.NodeGetPropertiesRequestMethod,Ao),r.set(pe.UserBrowseRequestMethod,Fi),r.set(pe.UserCreateRequestMethod,zi),r.set(pe.UserModifyRequestMethod,Ns),r.set(pe.UserDeleteRequestMethod,ns),r.set(pe.UserGetPropertiesRequestMethod,_s),r.set(pe.UsergroupBrowseRequestMethod,la),r.set(pe.UsergroupCreateRequestMethod,ba),r.set(pe.UserGroupModifyRequestMethod,uu),r.set(pe.UsergroupDeleteRequestMethod,Ma),r.set(pe.UserGroupGetPropertiesRequestMethod,La),r.set(pe.UserGroupListMembersRequestMethod,eu),r.set(pe.UserGroupAddMemberRequestMethod,na),r.set(pe.UserGroupRemoveMemberMethod,yu),r.set(pe.UserGroupIsMemberRequestMethod,$a),r.set(pe.PermissionNodeSetRequestMethod,fn),r.set(pe.PermissionNodeListRequestMethod,tn),r.set(pe.PermissionRpcAddRequestMethod,_n),r.set(pe.PermissionRpcRemoveRequestMethod,Cn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.PermissionRpcListRequestMethod,Pn),r.set(pe.WriteRequestMethod,tc),r.set(pe.UserSubscribeRequestMethod,Rp),r.set(pe.UserUnsubscribeRequestMethod,Tp),r.set(pe.UserGetSessionRequestMethod,sp),r.set(pe.NodeBrowseRequestMethod,fc),r.set(pe.NodeCreateRequestMethod,_c),r.set(pe.NodeGetHistoryRequestMethod,Cc),r.set(pe.UserGetHistoryRequestMethod,Qc),r.set(pe.ProjectCreateRequestMethod,Cp),r.set(pe.ProjectModifyRequestMethod,kp),r.set(pe.ProjectGetHistoryUsageRequestMethod,pd),r.set(pe.ProjectGetLiveUsageRequestMethod,_d),r.set(pe.SubscribeRequestMethod,Md),r.set(pe.NodeDeleteHistoryRequestMethod,Bd),r.set(pe.PermissionUserListRequestMethod,$d),r.set(pe.LoginRequestMethod,tl),r.set(pe.LogoutRequestMethod,ml),r.set(pe.UpdateTokenMethod,dl),r.set(pe.NodeSubscribeRequestMethod,xl),r.set(pe.NodeUnsubscribeRequestMethod,Wl),e.map.set(t.semVer.raw,r)},e.map=new Map,e}();function py(e){return null!=e}var fy=function(){function e(){}return e.create=function(e){if(Th.isVersionInRange(e,"1.0"))return this.createV1();if(Th.isVersionInRange(e,"2.0"))return this.createV2();throw new Error("Cannot create OpcodeDecoder for provided version")},e.createV1=function(){var e=new P("kolibri"),t=new Eh(e);return new uy(this.getV1Opcodes(),t)},e.createV2=function(){var e=new P("v2.0.kolibri"),t=new Eh(e);return new uy(this.getV2Opcodes(),t)},e.getV1Opcodes=function(){return[new aR,new cR,new fR,new lR,new RR,new gR,new _R,new bR,new wR,new ER,new PR,new MR,new GR,new DR,new AR,new jR,new BR,new FR,new VR,new YR]},e.getV2Opcodes=function(){return[new aR,new cR,new fR,new gR,new bR,new wR,new ER,new PR,new GR,new jR,new FR,new VR,new XR,new KR,new ay,new iy,new ty,new oy,new JR,new QR]},e}();function dy(e){if(!le(e)||!Re(e,0)||!ge(e,h.DT_UINT_32BIT_MAX))throw new y(g.INVALID_VALUE,"triggerT invalid");return!0}var ly=function(){function e(){}return e.prototype.validate=function(e,t){return dy(e)},e.prototype.defaultMessage=function(e){return"TriggerT invalid"},function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([_e({name:"isKolibriNodeTriggerT",async:!0})],e)}();function hy(e){return function(t,r){ne({target:t.constructor,propertyName:r,options:e,constraints:[],validator:ly})}}function Ry(e,t){if((t=t||0)<h.DT_UNSIGNED_8BIT||t>h.DT_FLOATING_64BIT)throw new y(g.INVALID_PARAMETER,"triggerN");if((t=t>h.DT_SIGNED_64BIT||t%2?t:t-1)===h.DT_UNSIGNED_64BIT){var r=tR.fromNumber(e,!0);if(r.lessThan(tR.ZERO)||r.greaterThan(h.DT_FLOAT64_MAX_INT))throw new y(g.INVALID_VALUE,null===e?"(null)":e.toString());e=r.toNumber(),t=h.DT_FLOATING_64BIT}yy(e,t)}function yy(e,t){if(null===e)throw new y(g.INVALID_VALUE,"(null)");switch(t){case h.DT_BOOLEAN:if("boolean"!=typeof e)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_UNSIGNED_8BIT:if("number"!=typeof e||e<0||e>255||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_SIGNED_8BIT:if("number"!=typeof e||e<-128||e>127||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_UNSIGNED_16BIT:if("number"!=typeof e||e<0||e>65535||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_SIGNED_16BIT:if("number"!=typeof e||e<-32768||e>32767||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_UNSIGNED_32BIT:if("number"!=typeof e||e<0||e>4294967295||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_SIGNED_32BIT:if("number"!=typeof e||e<-2147483648||e>2147483647||e%1!=0)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_UNSIGNED_64BIT:var r=e;if("string"==typeof e&&(r=tR.fromString(e,!0)),"number"==typeof e&&(r=tR.fromNumber(e,!0)),!tR.isLong(r)||r.lessThan(tR.ZERO)||r.toString()!==e.toString())throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_SIGNED_64BIT:if(r=e,"string"==typeof e&&(r=tR.fromString(e,!1)),!tR.isLong(r)||r.lessThan(tR.MIN_VALUE)||r.greaterThan(tR.MAX_VALUE)||r.toString()!==e.toString())throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_FLOATING_32BIT:if("number"!=typeof e||0!==e&&(Math.abs(e)<h.DT_FLOATING_32BIT_MIN||Math.abs(e)>h.DT_FLOATING_32BIT_MAX))throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_FLOATING_64BIT:if("number"!=typeof e)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_STRING:if("string"!=typeof e||e.length>h.DT_STRING_MAXLEN)throw new y(g.INVALID_VALUE,e.toString());break;case h.DT_BYTEARRAY:if("string"!=typeof e||e.length>2*h.DT_BYTEARRAY_MAXLEN||e.length%2||e.match(/[^0-9a-fA-F]/))throw new y(g.INVALID_VALUE,e.toString());break;default:throw new y(g.INVALID_DATA_TYPE)}}})(),o})()));
//# sourceMappingURL=kolibri-js-core.umd.min.js.map