UNPKG

@mrmory/bggclient

Version:

Javascript client to interact with BoardGameGeek public XML API based on boardgamegeekjsclient

1 lines 51.1 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("jackson-js"),r=require("tslib"),n=(e=require("isomorphic-unfetch"))&&"object"==typeof e&&"default"in e?e.default:e,o=require("fast-xml-parser");function s(e,t,r,n,o,s,i){try{var a=e[s](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}var a,u=(function(e){var t=function(e){var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=Object.create((t&&t.prototype instanceof y?t:y).prototype),s=new C(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(o,s){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw s;return{value:void 0,done:!0}}for(r.method=o,r.arg=s;;){var i=r.delegate;if(i){var a=g(i,r);if(a){if(a===c)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,s),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function y(){}function l(){}function d(){}var f={};f[o]=function(){return this};var J=Object.getPrototypeOf,_=J&&J(J(b([])));_&&_!==t&&r.call(_,o)&&(f=_);var v=d.prototype=y.prototype=Object.create(f);function m(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function h(e,t){var n;this._invoke=function(o,s){function i(){return new t((function(n,i){!function n(o,s,i,a){var u=p(e[o],e,s);if("throw"!==u.type){var c=u.arg,y=c.value;return y&&"object"==typeof y&&r.call(y,"__await")?t.resolve(y.__await).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(y).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,a)}))}a(u.arg)}(o,s,n,i)}))}return n=n?n.then(i,i):i()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=p(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,c;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function b(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,s=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return s.next=s}}return{next:w}}function w(){return{value:void 0,done:!0}}return l.prototype=v.constructor=d,d.constructor=l,l.displayName=a(d,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},m(h.prototype),h.prototype[s]=function(){return this},e.AsyncIterator=h,e.async=function(t,r,n,o,s){void 0===s&&(s=Promise);var i=new h(u(t,r,n,o),s);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(v),a(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=b,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],i=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var a=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(a&&u){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var i=s?s.completion:{};return i.type=e,i.arg=t,s?(this.method="next",this.next=s.finallyLoc,c):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:b(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}(a={exports:{}}),a.exports),p=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/thing",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),c=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/family",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),y=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/forumlist",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),l=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/forum",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),d=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/thread",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),f=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/user",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),J=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/guild",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),_=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/plays",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),v=function(){function e(e,t,r,n){this.resource="https://www.boardgamegeek.com/xmlapi2/collection",this.builder=e,this.fetcher=t,this.responseParser=r,this.dtoParser=n}return e.prototype.query=function(){var e=i(u.mark((function e(t){var r,n,o;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.builder.build(t),e.next=3,this.fetcher.doFetch(this.resource+"?"+r);case 3:return n=e.sent,e.next=6,this.responseParser.parseResponse(n);case 6:return o=e.sent,e.next=9,this.dtoParser.jsonToDto(o);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}(),m=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],m.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_title"]})],m.prototype,"title",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_totalvotes"]})],m.prototype,"totalvotes",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[h]]}}),t.JsonManagedReference(),t.JsonAlias({values:["results"]})],m.prototype,"results",void 0);var h=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numplayers"]})],h.prototype,"numplayers",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[g]]}}),t.JsonManagedReference(),t.JsonAlias({values:["result"]})],h.prototype,"result",void 0);var g=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_value"]})],g.prototype,"value",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numvotes"]})],g.prototype,"numvotes",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_level"]})],g.prototype,"level",void 0);var P=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_page"]})],P.prototype,"page",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[T]}}),t.JsonDeserialize({using:function(e){return e[0]}})],P.prototype,"ratings",void 0);var T=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"average",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"usersrated",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"bayesaverage",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"stddev",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"median",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"owned",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"trading",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"wanting",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"wishing",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"numcomments",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"numweights",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],T.prototype,"averageweight",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[C]]}}),t.JsonDeserialize({using:function(e){return e[0].rank}})],T.prototype,"ranks",void 0);var C=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_type"]})],C.prototype,"type",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],C.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],C.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_friendlyname"]})],C.prototype,"friendlyname",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_value"]})],C.prototype,"value",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_bayesaverage"]})],C.prototype,"bayesaverage",void 0);var b=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_page"]})],b.prototype,"page",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_totalitems"]})],b.prototype,"totalitems",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[w]]}}),t.JsonManagedReference(),t.JsonAlias({values:["comment"]})],b.prototype,"items",void 0);var w=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_value"]})],w.prototype,"value",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_username"]})],w.prototype,"username",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],w.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_rating"]})],w.prototype,"rating",void 0);var A=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_total"]})],A.prototype,"total",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[S]]}}),t.JsonManagedReference(),t.JsonAlias({values:["video"]})],A.prototype,"items",void 0);var S=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_category"]})],S.prototype,"category",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_language"]})],S.prototype,"language",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_link"]})],S.prototype,"link",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_postdate"]})],S.prototype,"postdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_title"]})],S.prototype,"title",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_username"]})],S.prototype,"username",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],S.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_userid"]})],S.prototype,"userid",void 0);var N=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["condition"]}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],N.prototype,"condition",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Object,[String,String]]}}),t.JsonAlias({values:["link"]}),t.JsonDeserialize({using:function(e){return e.map((function(e){return{href:e["@_href"],title:e["@_title"]}}))[0]}})],N.prototype,"link",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["listdate"]}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],N.prototype,"listdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["notes"]}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],N.prototype,"notes",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Object,[String,Number]]}}),t.JsonAlias({values:["price"]}),t.JsonDeserialize({using:function(e){return e.map((function(e){return{currency:e["@_currency"],value:e["@_value"]}}))[0]}})],N.prototype,"price",void 0);var x=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],x.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_type"]})],x.prototype,"type",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_value"]})],x.prototype,"value",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Boolean]}}),t.JsonAlias({values:["@_inbound"]})],x.prototype,"inbound",void 0);var D=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],D.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_userid"]})],D.prototype,"userid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_date"]})],D.prototype,"date",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_quantity"]})],D.prototype,"quantity",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_length"]})],D.prototype,"length",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_incomplete"]})],D.prototype,"incomplete",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_nowinstats"]})],D.prototype,"nowinstats",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_location"]})],D.prototype,"location",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[z]}}),t.JsonAlias({values:["item"]}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0]}})],D.prototype,"item",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[z]}}),t.JsonAlias({values:["players"]}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0].player}})],D.prototype,"players",void 0);var z=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],z.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_objecttype"]})],z.prototype,"objecttype",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_objectid"]})],z.prototype,"objectid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[j]]}}),t.JsonDeserialize({using:function(e){return e[0].subtype}}),t.JsonManagedReference()],z.prototype,"subtypes",void 0);var j=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_value"]})],j.prototype,"value",void 0);var k=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_color"]})],k.prototype,"color",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],k.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_new"]})],k.prototype,"new",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_rating"]})],k.prototype,"rating",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_score"]})],k.prototype,"score",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_startposition"]})],k.prototype,"startposition",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_userid"]})],k.prototype,"userid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_username"]})],k.prototype,"username",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_win"]})],k.prototype,"win",void 0);var R=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_objectid"]})],R.prototype,"objectid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_collid"]})],R.prototype,"collid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_objecttype"]})],R.prototype,"objecttype",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_subtype"]})],R.prototype,"subtype",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}})],R.prototype,"yearpublished",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}})],R.prototype,"numplays",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],R.prototype,"image",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],R.prototype,"thumbnail",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],R.prototype,"comment",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["#text"]}))[0]}})],R.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],R.prototype,"originalname",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[L]}}),t.JsonDeserialize({using:function(e){return e[0]}}),t.JsonManagedReference()],R.prototype,"status",void 0);var L=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_own"]})],L.prototype,"own",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_prevowned"]})],L.prototype,"prevowned",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_fortrade"]})],L.prototype,"fortrade",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_want"]})],L.prototype,"want",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_wanttoplay"]})],L.prototype,"wanttoplay",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_wanttobuy"]})],L.prototype,"wanttobuy",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_wishlist"]})],L.prototype,"wishlist",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_wishlistpriority"]})],L.prototype,"wishlistpriority",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_preordered"]})],L.prototype,"preordered",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_lastmodified"]})],L.prototype,"lastmodified",void 0);var E=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],E.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_type"]})],E.prototype,"type",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],E.prototype,"description",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],E.prototype,"thumbnail",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],E.prototype,"image",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"yearpublished",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"minplayers",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"maxplayers",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"playingtime",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"minplaytime",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"maxplaytime",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],E.prototype,"minage",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[m]]}}),t.JsonManagedReference(),t.JsonAlias({values:["poll"]})],E.prototype,"poll",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[x]]}}),t.JsonManagedReference(),t.JsonAlias({values:["link"]})],E.prototype,"links",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[P]}}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0]}})],E.prototype,"statistics",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[A]}}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0]}})],E.prototype,"videos",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[b]}}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0]}})],E.prototype,"comments",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[N]]}}),t.JsonManagedReference(),t.JsonDeserialize({using:function(e){return e[0].listing}})],E.prototype,"marketplacelistings",void 0),E=r.__decorate([t.JsonIgnoreProperties({value:["versions"]})],E);var F=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],F.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],F.prototype,"description",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],F.prototype,"thumbnail",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],F.prototype,"image",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],F.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_type"]})],F.prototype,"type",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],F.prototype,"value",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[x]]}}),t.JsonManagedReference(),t.JsonAlias({values:["link"]})],F.prototype,"things",void 0);var M=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],M.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_groupid"]})],M.prototype,"groupid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_lastpostdate"]})],M.prototype,"lastpostdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_noposting"]})],M.prototype,"noposting",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numthreads"]})],M.prototype,"numthreads",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numposts"]})],M.prototype,"numposts",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_title"]})],M.prototype,"title",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_description"]})],M.prototype,"description",void 0);var O=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],O.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_type"]})],O.prototype,"type",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[M]]}}),t.JsonAlias({values:["forum"]})],O.prototype,"forums",void 0),O=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],O);var q=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],q.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numarticles"]})],q.prototype,"numarticles",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_subject"]})],q.prototype,"subject",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_author"]})],q.prototype,"author",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_postdate"]})],q.prototype,"postdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_lastpostdate"]})],q.prototype,"lastpostdate",void 0);var I=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],I.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_lastpostdate"]})],I.prototype,"lastpostdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_noposting"]})],I.prototype,"numposting",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numthreads"]})],I.prototype,"numthreads",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numposts"]})],I.prototype,"numposts",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_title"]})],I.prototype,"title",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[q]]}}),t.JsonAlias({values:["threads"]}),t.JsonDeserialize({using:function(e){return e[0].thread}})],I.prototype,"threads",void 0),I=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],I);var G=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],G.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_username"]})],G.prototype,"username",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["body"]})],G.prototype,"body",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["subject"]})],G.prototype,"subject",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numedits"]})],G.prototype,"numedits",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_editdate"]})],G.prototype,"editdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_postdate"]})],G.prototype,"postdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_link"]})],G.prototype,"link",void 0);var B=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],B.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_link"]})],B.prototype,"link",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_numarticles"]})],B.prototype,"numarticles",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["subject"]})],B.prototype,"subject",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[G]]}}),t.JsonAlias({values:["articles"]}),t.JsonDeserialize({using:function(e){return e[0].article}})],B.prototype,"articles",void 0),B=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],B);var V=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],V.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],V.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"firstname",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"lastname",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"avatarlink",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"yearregistered",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"lastlogin",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"stateorprovince",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"country",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"webaddress",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"xboxaccount",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"wiiaccount",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"psnaccount",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"battlenetaccount",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"steamaccount",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"traderating",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonDeserialize({using:function(e){return e.map((function(e){return e["@_value"]}))[0]}})],V.prototype,"marketrating",void 0),V=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],V);var Y=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],Y.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_name"]})],Y.prototype,"name",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_created"]})],Y.prototype,"created",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],Y.prototype,"category",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],Y.prototype,"website",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],Y.prototype,"manager",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}})],Y.prototype,"description",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[Object]]}}),t.JsonFormat({shape:t.JsonFormatShape.ARRAY}),t.JsonDeserialize({using:function(e){return e[0].member.map((function(e){return{name:e["@_name"],date:e["@_date"]}}))}}),t.JsonAlias({values:["members"]})],Y.prototype,"members",void 0),Y=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse","location"]})],Y);var H=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_id"]})],H.prototype,"id",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_userid"]})],H.prototype,"userid",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_total"]})],H.prototype,"total",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_page"]})],H.prototype,"page",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_username"]})],H.prototype,"username",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[D]]}}),t.JsonAlias({values:["play"]}),t.JsonManagedReference()],H.prototype,"plays",void 0),H=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],H);var K=function(){};r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Number]}}),t.JsonAlias({values:["@_totalitems"]})],K.prototype,"totalitems",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[String]}}),t.JsonAlias({values:["@_pubdate"]})],K.prototype,"pubdate",void 0),r.__decorate([t.JsonProperty(),t.JsonClassType({type:function(){return[Array,[R]]}}),t.JsonAlias({values:["item"]}),t.JsonManagedReference()],K.prototype,"items",void 0),K=r.__decorate([t.JsonIgnoreProperties({value:["@_termsofuse"]})],K);var Q=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.items[0].item,{mainCreator:function(){return[Array,[E]]}}))}))},e}(),U=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.items[0].item,{mainCreator:function(){return[Array,[F]]}}))}))},e}(),W=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.forums,{mainCreator:function(){return[Array,[O]]}}))}))},e}(),X=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.forum,{mainCreator:function(){return[Array,[I]]}}))}))},e}(),Z=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.thread,{mainCreator:function(){return[Array,[B]]}}))}))},e}(),$=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.user,{mainCreator:function(){return[Array,[V]]}}))}))},e}(),ee=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.guild,{mainCreator:function(){return[Array,[Y]]}}))}))},e}(),te=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.plays,{mainCreator:function(){return[Array,[H]]}}))}))},e}(),re=function(){function e(){this.parser=new t.JsonParser}return e.prototype.jsonToDto=function(e){var t=this;return new Promise((function(r){r(t.parser.transform(e.items,{mainCreator:function(){return[Array,[K]]}}))}))},e}(),ne=function(){function e(){}var t=e.prototype;return t.doFetch=function(){var e=i(u.mark((function e(t){var r;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.internalFetch(t);case 2:r=e.sent;case 3:if(202!==r.status){e.next=11;break}return e.next=6,this.delay(6e3);case 6:return e.next=8,this.internalFetch(t);case 8:r=e.sent,e.next=3;break;case 11:return e.abrupt("return",r.text());case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.internalFetch=function(){var e=i(u.mark((function e(t){return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.delay=function(){var e=i(u.mark((function e(t){return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}(),oe=function(){function e(){}return e.prototype.build=function(e){return Object.keys(e).map((function(t){return t+"="+e[t