tachyon-protocol 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.d.cts → index.d.mts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -3
- package/dist/{index.cjs → index.mjs} +3 -30
- package/dist/validators.d.mts +3 -0
- package/dist/validators.d.ts +3 -0
- package/dist/validators.js +1 -1
- package/dist/validators.mjs +6 -0
- package/package.json +16 -12
- package/dist/validators.cjs +0 -1
package/dist/validators.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.autohost_slave_request = validate10;const schema11 = {"$id":"autohost/slave/request","roles":["autohost"],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/slave/request","type":"string"},"data":{"type":"object","properties":{"maxBattles":{"minimum":1,"default":4,"type":"integer"}},"required":["maxBattles"]}},"required":["messageId","commandId","data"]};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/slave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate10.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate10.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/slave/request" !== data1){validate10.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.maxBattles === undefined) && (missing1 = "maxBattles")){validate10.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.maxBattles !== undefined){let data3 = data2.maxBattles;const _errs7 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){validate10.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate10.errors = [{instancePath:instancePath+"/data/maxBattles",schemaPath:"#/properties/data/properties/maxBattles/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}}}else {validate10.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}exports.autohost_slave_response = validate11;const schema12 = {"$id":"autohost/slave/response","roles":["autohost"],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/slave/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/slave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/slave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/slave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/slave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("autohost/slave/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("autohost/slave/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("autohost/slave/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("autohost/slave/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/slave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate11.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate11.errors = vErrors;return errors === 0;}exports.autohost_unslave_request = validate12;const schema13 = {"$id":"autohost/unslave/request","roles":["autohost"],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave/request","type":"string"}},"required":["messageId","commandId"]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/unslave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate12.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate12.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate12.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("autohost/unslave/request" !== data1){validate12.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate12.errors = vErrors;return errors === 0;}exports.autohost_unslave_response = validate13;const schema14 = {"$id":"autohost/unslave/response","roles":["autohost"],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"autohost/unslave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="autohost/unslave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("autohost/unslave/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("autohost/unslave/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("autohost/unslave/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("autohost/unslave/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "autohost/unslave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate13.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate13.errors = vErrors;return errors === 0;}exports.game_launch_response = validate14;const schema15 = {"$id":"game/launch/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"game/launch/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"script":{"type":"string"}},"required":["script"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"game/launch/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"game/launch/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"game/launch/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="game/launch/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("game/launch/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "game/launch/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.script === undefined) && (missing1 = "script")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.script !== undefined){if(typeof data3.script !== "string"){const err7 = {instancePath:instancePath+"/data/script",schemaPath:"#/anyOf/0/properties/data/properties/script/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err9 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs13 = errors;if(errors === _errs13){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err10 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err11 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err12 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("game/launch/response" !== data6){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "game/launch/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err14 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("failed" !== data7){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("internal_error" !== data8){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}}}}}}else {const err18 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err19 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data.messageId !== undefined){const _errs25 = errors;if(typeof data.messageId !== "string"){const err20 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data10 = data.commandId;const _errs27 = errors;if(typeof data10 !== "string"){const err21 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("game/launch/response" !== data10){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "game/launch/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data11 = data.status;const _errs29 = errors;if(typeof data11 !== "string"){const err23 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("failed" !== data11){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data12 = data.reason;const _errs31 = errors;if(typeof data12 !== "string"){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("unauthorized" !== data12){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}}}}}}else {const err27 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs33 = errors;if(errors === _errs33){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err28 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data.messageId !== undefined){const _errs35 = errors;if(typeof data.messageId !== "string"){const err29 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data14 = data.commandId;const _errs37 = errors;if(typeof data14 !== "string"){const err30 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("game/launch/response" !== data14){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "game/launch/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data15 = data.status;const _errs39 = errors;if(typeof data15 !== "string"){const err32 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("failed" !== data15){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs41 = errors;if(typeof data16 !== "string"){const err34 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("invalid_command" !== data16){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}}}}}}else {const err36 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid0 = _errs33 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}exports.lobby_close_request = validate15;const schema16 = {"$id":"lobby/close/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/close/request","type":"string"}},"required":["messageId","commandId"]};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/close/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate15.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate15.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate15.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/close/request" !== data1){validate15.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate15.errors = vErrors;return errors === 0;}exports.lobby_close_response = validate16;const schema17 = {"$id":"lobby/close/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/close/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/close/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/close/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/close/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/close/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/close/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/close/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/close/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/close/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/close/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate16.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate16.errors = vErrors;return errors === 0;}exports.lobby_create_request = validate17;const schema18 = {"$id":"lobby/create/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/request","type":"string"},"data":{"examples":[{"title":"8v8 | All Welcome","private":false,"region":"EU","maxPlayers":16}],"type":"object","properties":{"title":{"minLength":2,"maxLength":30,"type":"string"},"private":{"default":true,"type":"boolean"},"region":{"type":"string"},"maxPlayers":{"minimum":0,"default":16,"type":"integer"}},"required":["title","private","region","maxPlayers"]}},"required":["messageId","commandId","data"]};const func2 = require("ajv/dist/runtime/ucs2length").default;function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/create/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate17.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate17.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate17.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/create/request" !== data1){validate17.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((((data2.title === undefined) && (missing1 = "title")) || ((data2.private === undefined) && (missing1 = "private"))) || ((data2.region === undefined) && (missing1 = "region"))) || ((data2.maxPlayers === undefined) && (missing1 = "maxPlayers"))){validate17.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.title !== undefined){let data3 = data2.title;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func2(data3) > 30){validate17.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/maxLength",keyword:"maxLength",params:{limit: 30},message:"must NOT have more than 30 characters"}];return false;}else {if(func2(data3) < 2){validate17.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}}else {validate17.errors = [{instancePath:instancePath+"/data/title",schemaPath:"#/properties/data/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data2.private !== undefined){const _errs9 = errors;if(typeof data2.private !== "boolean"){validate17.errors = [{instancePath:instancePath+"/data/private",schemaPath:"#/properties/data/properties/private/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data2.region !== undefined){const _errs11 = errors;if(typeof data2.region !== "string"){validate17.errors = [{instancePath:instancePath+"/data/region",schemaPath:"#/properties/data/properties/region/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data2.maxPlayers !== undefined){let data6 = data2.maxPlayers;const _errs13 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){validate17.errors = [{instancePath:instancePath+"/data/maxPlayers",schemaPath:"#/properties/data/properties/maxPlayers/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){validate17.errors = [{instancePath:instancePath+"/data/maxPlayers",schemaPath:"#/properties/data/properties/maxPlayers/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid1 = _errs13 === errors;}else {var valid1 = true;}}}}}}else {validate17.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate17.errors = vErrors;return errors === 0;}exports.lobby_create_response = validate18;const schema19 = {"$id":"lobby/create/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_hosts_available","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_region","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/create/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/create/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/create/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/create/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("no_hosts_available" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_hosts_available"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/create/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("invalid_region" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_region"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/create/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("internal_error" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("lobby/create/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("unauthorized" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs49 = errors;if(errors === _errs49){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((data.messageId === undefined) && (missing5 = "messageId")) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err43 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err44 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data20 = data.commandId;const _errs53 = errors;if(typeof data20 !== "string"){const err45 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("lobby/create/response" !== data20){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/create/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data21 = data.status;const _errs55 = errors;if(typeof data21 !== "string"){const err47 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("failed" !== data21){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data22 = data.reason;const _errs57 = errors;if(typeof data22 !== "string"){const err49 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("invalid_command" !== data22){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}}else {const err51 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var _valid0 = _errs49 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err52 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;validate18.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate18.errors = vErrors;return errors === 0;}exports.lobby_join_request = validate19;const schema20 = {"$id":"lobby/join/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/request","type":"string"},"data":{"examples":[{"lobbyId":27,"password":"fish"}],"type":"object","properties":{"lobbyId":{"type":"string"},"password":{"type":"string"}},"required":["lobbyId"]}},"required":["messageId","commandId","data"]};function validate19(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/join/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate19.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate19.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate19.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/join/request" !== data1){validate19.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.lobbyId === undefined) && (missing1 = "lobbyId")){validate19.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.lobbyId !== undefined){const _errs7 = errors;if(typeof data2.lobbyId !== "string"){validate19.errors = [{instancePath:instancePath+"/data/lobbyId",schemaPath:"#/properties/data/properties/lobbyId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data2.password !== undefined){const _errs9 = errors;if(typeof data2.password !== "string"){validate19.errors = [{instancePath:instancePath+"/data/password",schemaPath:"#/properties/data/properties/password/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}else {validate19.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate19.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate19.errors = vErrors;return errors === 0;}exports.lobby_join_response = validate20;const schema21 = {"$id":"lobby/join/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"locked","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"requires_password","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_password","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"max_participants_reached","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"rank_too_low","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"rank_too_high","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"banned","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/join/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/join/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/join/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/join/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("locked" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "locked"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/join/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("requires_password" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "requires_password"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/join/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_password" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_password"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("lobby/join/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("max_participants_reached" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "max_participants_reached"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs49 = errors;if(errors === _errs49){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((data.messageId === undefined) && (missing5 = "messageId")) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err43 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err44 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data20 = data.commandId;const _errs53 = errors;if(typeof data20 !== "string"){const err45 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("lobby/join/response" !== data20){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data21 = data.status;const _errs55 = errors;if(typeof data21 !== "string"){const err47 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("failed" !== data21){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data22 = data.reason;const _errs57 = errors;if(typeof data22 !== "string"){const err49 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("rank_too_low" !== data22){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "rank_too_low"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}}else {const err51 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var _valid0 = _errs49 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs59 = errors;if(errors === _errs59){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if(((((data.messageId === undefined) && (missing6 = "messageId")) || ((data.commandId === undefined) && (missing6 = "commandId"))) || ((data.status === undefined) && (missing6 = "status"))) || ((data.reason === undefined) && (missing6 = "reason"))){const err52 = {instancePath,schemaPath:"#/anyOf/6/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data.messageId !== undefined){const _errs61 = errors;if(typeof data.messageId !== "string"){const err53 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/6/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid7 = _errs61 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data24 = data.commandId;const _errs63 = errors;if(typeof data24 !== "string"){const err54 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("lobby/join/response" !== data24){const err55 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/6/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid7 = _errs63 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data25 = data.status;const _errs65 = errors;if(typeof data25 !== "string"){const err56 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("failed" !== data25){const err57 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/6/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid7 = _errs65 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data26 = data.reason;const _errs67 = errors;if(typeof data26 !== "string"){const err58 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if("rank_too_high" !== data26){const err59 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/6/properties/reason/const",keyword:"const",params:{allowedValue: "rank_too_high"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid7 = _errs67 === errors;}else {var valid7 = true;}}}}}}else {const err60 = {instancePath,schemaPath:"#/anyOf/6/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}var _valid0 = _errs59 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs69 = errors;if(errors === _errs69){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((((data.messageId === undefined) && (missing7 = "messageId")) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err61 = {instancePath,schemaPath:"#/anyOf/7/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data.messageId !== undefined){const _errs71 = errors;if(typeof data.messageId !== "string"){const err62 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/7/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid8 = _errs71 === errors;}else {var valid8 = true;}if(valid8){if(data.commandId !== undefined){let data28 = data.commandId;const _errs73 = errors;if(typeof data28 !== "string"){const err63 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("lobby/join/response" !== data28){const err64 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/7/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid8 = _errs73 === errors;}else {var valid8 = true;}if(valid8){if(data.status !== undefined){let data29 = data.status;const _errs75 = errors;if(typeof data29 !== "string"){const err65 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("failed" !== data29){const err66 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/7/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid8 = _errs75 === errors;}else {var valid8 = true;}if(valid8){if(data.reason !== undefined){let data30 = data.reason;const _errs77 = errors;if(typeof data30 !== "string"){const err67 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("banned" !== data30){const err68 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/7/properties/reason/const",keyword:"const",params:{allowedValue: "banned"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid8 = _errs77 === errors;}else {var valid8 = true;}}}}}}else {const err69 = {instancePath,schemaPath:"#/anyOf/7/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid0 = _errs69 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs79 = errors;if(errors === _errs79){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((((data.messageId === undefined) && (missing8 = "messageId")) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err70 = {instancePath,schemaPath:"#/anyOf/8/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data.messageId !== undefined){const _errs81 = errors;if(typeof data.messageId !== "string"){const err71 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/8/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid9 = _errs81 === errors;}else {var valid9 = true;}if(valid9){if(data.commandId !== undefined){let data32 = data.commandId;const _errs83 = errors;if(typeof data32 !== "string"){const err72 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/8/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("lobby/join/response" !== data32){const err73 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/8/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid9 = _errs83 === errors;}else {var valid9 = true;}if(valid9){if(data.status !== undefined){let data33 = data.status;const _errs85 = errors;if(typeof data33 !== "string"){const err74 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/8/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if("failed" !== data33){const err75 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/8/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var valid9 = _errs85 === errors;}else {var valid9 = true;}if(valid9){if(data.reason !== undefined){let data34 = data.reason;const _errs87 = errors;if(typeof data34 !== "string"){const err76 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/8/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("internal_error" !== data34){const err77 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/8/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid9 = _errs87 === errors;}else {var valid9 = true;}}}}}}else {const err78 = {instancePath,schemaPath:"#/anyOf/8/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}var _valid0 = _errs79 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs89 = errors;if(errors === _errs89){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if(((((data.messageId === undefined) && (missing9 = "messageId")) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err79 = {instancePath,schemaPath:"#/anyOf/9/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {if(data.messageId !== undefined){const _errs91 = errors;if(typeof data.messageId !== "string"){const err80 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/9/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var valid10 = _errs91 === errors;}else {var valid10 = true;}if(valid10){if(data.commandId !== undefined){let data36 = data.commandId;const _errs93 = errors;if(typeof data36 !== "string"){const err81 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/9/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if("lobby/join/response" !== data36){const err82 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/9/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var valid10 = _errs93 === errors;}else {var valid10 = true;}if(valid10){if(data.status !== undefined){let data37 = data.status;const _errs95 = errors;if(typeof data37 !== "string"){const err83 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/9/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("failed" !== data37){const err84 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/9/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid10 = _errs95 === errors;}else {var valid10 = true;}if(valid10){if(data.reason !== undefined){let data38 = data.reason;const _errs97 = errors;if(typeof data38 !== "string"){const err85 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/9/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if("unauthorized" !== data38){const err86 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/9/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var valid10 = _errs97 === errors;}else {var valid10 = true;}}}}}}else {const err87 = {instancePath,schemaPath:"#/anyOf/9/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}var _valid0 = _errs89 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs99 = errors;if(errors === _errs99){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if(((((data.messageId === undefined) && (missing10 = "messageId")) || ((data.commandId === undefined) && (missing10 = "commandId"))) || ((data.status === undefined) && (missing10 = "status"))) || ((data.reason === undefined) && (missing10 = "reason"))){const err88 = {instancePath,schemaPath:"#/anyOf/10/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data.messageId !== undefined){const _errs101 = errors;if(typeof data.messageId !== "string"){const err89 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/10/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid11 = _errs101 === errors;}else {var valid11 = true;}if(valid11){if(data.commandId !== undefined){let data40 = data.commandId;const _errs103 = errors;if(typeof data40 !== "string"){const err90 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/10/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if("lobby/join/response" !== data40){const err91 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/10/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/join/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid11 = _errs103 === errors;}else {var valid11 = true;}if(valid11){if(data.status !== undefined){let data41 = data.status;const _errs105 = errors;if(typeof data41 !== "string"){const err92 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/10/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("failed" !== data41){const err93 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/10/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid11 = _errs105 === errors;}else {var valid11 = true;}if(valid11){if(data.reason !== undefined){let data42 = data.reason;const _errs107 = errors;if(typeof data42 !== "string"){const err94 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/10/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("invalid_command" !== data42){const err95 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/10/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid11 = _errs107 === errors;}else {var valid11 = true;}}}}}}else {const err96 = {instancePath,schemaPath:"#/anyOf/10/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}var _valid0 = _errs99 === errors;valid0 = valid0 || _valid0;}}}}}}}}}}if(!valid0){const err97 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;validate20.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate20.errors = vErrors;return errors === 0;}exports.lobby_joined_response = validate21;const schema22 = {"$id":"lobby/joined/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/joined/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[]}],"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","roles","status","battleStatus"]}}},"required":["battleId","hostId","engine","game","map","startPosType","startAreas","startTime","ip","port","scriptPassword","modOptions","bots","users"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/joined/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/joined/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/joined/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};const pattern0 = new RegExp("^(0|[1-9][0-9]*)$", "u");const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/joined/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/joined/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/joined/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((((((((((((((data3.battleId === undefined) && (missing1 = "battleId")) || ((data3.hostId === undefined) && (missing1 = "hostId"))) || ((data3.engine === undefined) && (missing1 = "engine"))) || ((data3.game === undefined) && (missing1 = "game"))) || ((data3.map === undefined) && (missing1 = "map"))) || ((data3.startPosType === undefined) && (missing1 = "startPosType"))) || ((data3.startAreas === undefined) && (missing1 = "startAreas"))) || ((data3.startTime === undefined) && (missing1 = "startTime"))) || ((data3.ip === undefined) && (missing1 = "ip"))) || ((data3.port === undefined) && (missing1 = "port"))) || ((data3.scriptPassword === undefined) && (missing1 = "scriptPassword"))) || ((data3.modOptions === undefined) && (missing1 = "modOptions"))) || ((data3.bots === undefined) && (missing1 = "bots"))) || ((data3.users === undefined) && (missing1 = "users"))){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.battleId !== undefined){const _errs11 = errors;if(typeof data3.battleId !== "string"){const err7 = {instancePath:instancePath+"/data/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data3.hostId !== undefined){const _errs13 = errors;if(typeof data3.hostId !== "string"){const err8 = {instancePath:instancePath+"/data/hostId",schemaPath:"#/anyOf/0/properties/data/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data3.engine !== undefined){const _errs15 = errors;if(typeof data3.engine !== "string"){const err9 = {instancePath:instancePath+"/data/engine",schemaPath:"#/anyOf/0/properties/data/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data3.game !== undefined){const _errs17 = errors;if(typeof data3.game !== "string"){const err10 = {instancePath:instancePath+"/data/game",schemaPath:"#/anyOf/0/properties/data/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data3.map !== undefined){const _errs19 = errors;if(typeof data3.map !== "string"){const err11 = {instancePath:instancePath+"/data/map",schemaPath:"#/anyOf/0/properties/data/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid2 = _errs19 === errors;}else {var valid2 = true;}if(valid2){if(data3.startPosType !== undefined){let data9 = data3.startPosType;const _errs21 = errors;const _errs22 = errors;let valid3 = false;const _errs23 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err12 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(0 !== data9){const err13 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs23 === errors;valid3 = valid3 || _valid1;if(!valid3){const _errs25 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err14 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(1 !== data9){const err15 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid1 = _errs25 === errors;valid3 = valid3 || _valid1;if(!valid3){const _errs27 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){const err16 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(2 !== data9){const err17 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs27 === errors;valid3 = valid3 || _valid1;}}if(!valid3){const err18 = {instancePath:instancePath+"/data/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid2 = _errs21 === errors;}else {var valid2 = true;}if(valid2){if(data3.startAreas !== undefined){let data10 = data3.startAreas;const _errs29 = errors;if(errors === _errs29){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){var valid4 = true;for(const key0 in data10){if(pattern0.test(key0)){let data11 = data10[key0];const _errs31 = errors;if(errors === _errs31){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if(((((data11.x === undefined) && (missing2 = "x")) || ((data11.y === undefined) && (missing2 = "y"))) || ((data11.width === undefined) && (missing2 = "width"))) || ((data11.height === undefined) && (missing2 = "height"))){const err19 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data11.x !== undefined){let data12 = data11.x;const _errs33 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){const err20 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid5 = _errs33 === errors;}else {var valid5 = true;}if(valid5){if(data11.y !== undefined){let data13 = data11.y;const _errs35 = errors;if(!((typeof data13 == "number") && (isFinite(data13)))){const err21 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data11.width !== undefined){let data14 = data11.width;const _errs37 = errors;if(!((typeof data14 == "number") && (isFinite(data14)))){const err22 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data11.height !== undefined){let data15 = data11.height;const _errs39 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){const err23 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}}}}}}else {const err24 = {instancePath:instancePath+"/data/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid4 = _errs31 === errors;if(!valid4){break;}}}}else {const err25 = {instancePath:instancePath+"/data/startAreas",schemaPath:"#/anyOf/0/properties/data/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var valid2 = _errs29 === errors;}else {var valid2 = true;}if(valid2){if(data3.startTime !== undefined){let data16 = data3.startTime;const _errs41 = errors;const _errs42 = errors;let valid6 = false;const _errs43 = errors;if(!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))){const err26 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/anyOf/0/properties/data/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid2 = _errs43 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs45 = errors;if(data16 !== null){const err27 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/anyOf/0/properties/data/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs45 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err28 = {instancePath:instancePath+"/data/startTime",schemaPath:"#/anyOf/0/properties/data/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid2 = _errs41 === errors;}else {var valid2 = true;}if(valid2){if(data3.ip !== undefined){let data17 = data3.ip;const _errs47 = errors;const _errs48 = errors;let valid7 = false;const _errs49 = errors;if(typeof data17 !== "string"){const err29 = {instancePath:instancePath+"/data/ip",schemaPath:"#/anyOf/0/properties/data/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid3 = _errs49 === errors;valid7 = valid7 || _valid3;if(!valid7){const _errs51 = errors;if(data17 !== null){const err30 = {instancePath:instancePath+"/data/ip",schemaPath:"#/anyOf/0/properties/data/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs51 === errors;valid7 = valid7 || _valid3;}if(!valid7){const err31 = {instancePath:instancePath+"/data/ip",schemaPath:"#/anyOf/0/properties/data/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}}var valid2 = _errs47 === errors;}else {var valid2 = true;}if(valid2){if(data3.port !== undefined){let data18 = data3.port;const _errs53 = errors;const _errs54 = errors;let valid8 = false;const _errs55 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err32 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid4 = _errs55 === errors;valid8 = valid8 || _valid4;if(!valid8){const _errs57 = errors;if(data18 !== null){const err33 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid4 = _errs57 === errors;valid8 = valid8 || _valid4;}if(!valid8){const err34 = {instancePath:instancePath+"/data/port",schemaPath:"#/anyOf/0/properties/data/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs54;if(vErrors !== null){if(_errs54){vErrors.length = _errs54;}else {vErrors = null;}}}var valid2 = _errs53 === errors;}else {var valid2 = true;}if(valid2){if(data3.scriptPassword !== undefined){let data19 = data3.scriptPassword;const _errs59 = errors;const _errs60 = errors;let valid9 = false;const _errs61 = errors;if(typeof data19 !== "string"){const err35 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid5 = _errs61 === errors;valid9 = valid9 || _valid5;if(!valid9){const _errs63 = errors;if(data19 !== null){const err36 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid5 = _errs63 === errors;valid9 = valid9 || _valid5;}if(!valid9){const err37 = {instancePath:instancePath+"/data/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var valid2 = _errs59 === errors;}else {var valid2 = true;}if(valid2){if(data3.modOptions !== undefined){let data20 = data3.modOptions;const _errs65 = errors;if(errors === _errs65){if(!(data20 && typeof data20 == "object" && !Array.isArray(data20))){const err38 = {instancePath:instancePath+"/data/modOptions",schemaPath:"#/anyOf/0/properties/data/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid2 = _errs65 === errors;}else {var valid2 = true;}if(valid2){if(data3.bots !== undefined){let data21 = data3.bots;const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data21)){var valid10 = true;const len0 = data21.length;for(let i0=0; i0<len0; i0++){let data22 = data21[i0];const _errs69 = errors;if(errors === _errs69){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing3;if(((((((((((((data22.playerId === undefined) && (missing3 = "playerId")) || ((data22.teamId === undefined) && (missing3 = "teamId"))) || ((data22.color === undefined) && (missing3 = "color"))) || ((data22.bonus === undefined) && (missing3 = "bonus"))) || ((data22.inGame === undefined) && (missing3 = "inGame"))) || ((data22.isSpectator === undefined) && (missing3 = "isSpectator"))) || ((data22.isBot === undefined) && (missing3 = "isBot"))) || ((data22.ownerId === undefined) && (missing3 = "ownerId"))) || ((data22.aiShortName === undefined) && (missing3 = "aiShortName"))) || ((data22.name === undefined) && (missing3 = "name"))) || ((data22.aiOptions === undefined) && (missing3 = "aiOptions"))) || ((data22.faction === undefined) && (missing3 = "faction"))){const err39 = {instancePath:instancePath+"/data/bots/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/bots/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {if(data22.playerId !== undefined){let data23 = data22.playerId;const _errs71 = errors;if(!(((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23))) && (isFinite(data23)))){const err40 = {instancePath:instancePath+"/data/bots/" + i0+"/playerId",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid11 = _errs71 === errors;}else {var valid11 = true;}if(valid11){if(data22.teamId !== undefined){let data24 = data22.teamId;const _errs73 = errors;if(!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))){const err41 = {instancePath:instancePath+"/data/bots/" + i0+"/teamId",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid11 = _errs73 === errors;}else {var valid11 = true;}if(valid11){if(data22.color !== undefined){const _errs75 = errors;if(typeof data22.color !== "string"){const err42 = {instancePath:instancePath+"/data/bots/" + i0+"/color",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid11 = _errs75 === errors;}else {var valid11 = true;}if(valid11){if(data22.bonus !== undefined){let data26 = data22.bonus;const _errs77 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){const err43 = {instancePath:instancePath+"/data/bots/" + i0+"/bonus",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid11 = _errs77 === errors;}else {var valid11 = true;}if(valid11){if(data22.inGame !== undefined){const _errs79 = errors;if(typeof data22.inGame !== "boolean"){const err44 = {instancePath:instancePath+"/data/bots/" + i0+"/inGame",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid11 = _errs79 === errors;}else {var valid11 = true;}if(valid11){if(data22.isSpectator !== undefined){let data28 = data22.isSpectator;const _errs81 = errors;if(typeof data28 !== "boolean"){const err45 = {instancePath:instancePath+"/data/bots/" + i0+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(false !== data28){const err46 = {instancePath:instancePath+"/data/bots/" + i0+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid11 = _errs81 === errors;}else {var valid11 = true;}if(valid11){if(data22.isBot !== undefined){let data29 = data22.isBot;const _errs83 = errors;if(typeof data29 !== "boolean"){const err47 = {instancePath:instancePath+"/data/bots/" + i0+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(true !== data29){const err48 = {instancePath:instancePath+"/data/bots/" + i0+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid11 = _errs83 === errors;}else {var valid11 = true;}if(valid11){if(data22.ownerId !== undefined){const _errs85 = errors;if(typeof data22.ownerId !== "string"){const err49 = {instancePath:instancePath+"/data/bots/" + i0+"/ownerId",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid11 = _errs85 === errors;}else {var valid11 = true;}if(valid11){if(data22.aiShortName !== undefined){const _errs87 = errors;if(typeof data22.aiShortName !== "string"){const err50 = {instancePath:instancePath+"/data/bots/" + i0+"/aiShortName",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid11 = _errs87 === errors;}else {var valid11 = true;}if(valid11){if(data22.name !== undefined){const _errs89 = errors;if(typeof data22.name !== "string"){const err51 = {instancePath:instancePath+"/data/bots/" + i0+"/name",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid11 = _errs89 === errors;}else {var valid11 = true;}if(valid11){if(data22.aiOptions !== undefined){let data33 = data22.aiOptions;const _errs91 = errors;if(errors === _errs91){if(!(data33 && typeof data33 == "object" && !Array.isArray(data33))){const err52 = {instancePath:instancePath+"/data/bots/" + i0+"/aiOptions",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var valid11 = _errs91 === errors;}else {var valid11 = true;}if(valid11){if(data22.faction !== undefined){const _errs93 = errors;if(typeof data22.faction !== "string"){const err53 = {instancePath:instancePath+"/data/bots/" + i0+"/faction",schemaPath:"#/anyOf/0/properties/data/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid11 = _errs93 === errors;}else {var valid11 = true;}}}}}}}}}}}}}}else {const err54 = {instancePath:instancePath+"/data/bots/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid10 = _errs69 === errors;if(!valid10){break;}}}else {const err55 = {instancePath:instancePath+"/data/bots",schemaPath:"#/anyOf/0/properties/data/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid2 = _errs67 === errors;}else {var valid2 = true;}if(valid2){if(data3.users !== undefined){let data35 = data3.users;const _errs95 = errors;if(errors === _errs95){if(Array.isArray(data35)){var valid12 = true;const len1 = data35.length;for(let i1=0; i1<len1; i1++){let data36 = data35[i1];const _errs97 = errors;if(errors === _errs97){if(data36 && typeof data36 == "object" && !Array.isArray(data36)){let missing4;if((((((((((data36.userId === undefined) && (missing4 = "userId")) || ((data36.username === undefined) && (missing4 = "username"))) || ((data36.displayName === undefined) && (missing4 = "displayName"))) || ((data36.avatarUrl === undefined) && (missing4 = "avatarUrl"))) || ((data36.clanId === undefined) && (missing4 = "clanId"))) || ((data36.partyId === undefined) && (missing4 = "partyId"))) || ((data36.roles === undefined) && (missing4 = "roles"))) || ((data36.status === undefined) && (missing4 = "status"))) || ((data36.battleStatus === undefined) && (missing4 = "battleStatus"))){const err56 = {instancePath:instancePath+"/data/users/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/users/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data36.userId !== undefined){const _errs99 = errors;if(typeof data36.userId !== "string"){const err57 = {instancePath:instancePath+"/data/users/" + i1+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid13 = _errs99 === errors;}else {var valid13 = true;}if(valid13){if(data36.username !== undefined){const _errs101 = errors;if(typeof data36.username !== "string"){const err58 = {instancePath:instancePath+"/data/users/" + i1+"/username",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid13 = _errs101 === errors;}else {var valid13 = true;}if(valid13){if(data36.displayName !== undefined){const _errs103 = errors;if(typeof data36.displayName !== "string"){const err59 = {instancePath:instancePath+"/data/users/" + i1+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid13 = _errs103 === errors;}else {var valid13 = true;}if(valid13){if(data36.avatarUrl !== undefined){let data40 = data36.avatarUrl;const _errs105 = errors;const _errs106 = errors;let valid14 = false;const _errs107 = errors;if(errors === _errs107){if(errors === _errs107){if(typeof data40 === "string"){if(!(formats0(data40))){const err60 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid6 = _errs107 === errors;valid14 = valid14 || _valid6;if(!valid14){const _errs109 = errors;if(data40 !== null){const err62 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var _valid6 = _errs109 === errors;valid14 = valid14 || _valid6;}if(!valid14){const err63 = {instancePath:instancePath+"/data/users/" + i1+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {errors = _errs106;if(vErrors !== null){if(_errs106){vErrors.length = _errs106;}else {vErrors = null;}}}var valid13 = _errs105 === errors;}else {var valid13 = true;}if(valid13){if(data36.clanId !== undefined){let data41 = data36.clanId;const _errs111 = errors;const _errs112 = errors;let valid15 = false;const _errs113 = errors;if(typeof data41 !== "string"){const err64 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid7 = _errs113 === errors;valid15 = valid15 || _valid7;if(!valid15){const _errs115 = errors;if(data41 !== null){const err65 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var _valid7 = _errs115 === errors;valid15 = valid15 || _valid7;}if(!valid15){const err66 = {instancePath:instancePath+"/data/users/" + i1+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}var valid13 = _errs111 === errors;}else {var valid13 = true;}if(valid13){if(data36.partyId !== undefined){let data42 = data36.partyId;const _errs117 = errors;const _errs118 = errors;let valid16 = false;const _errs119 = errors;if(typeof data42 !== "string"){const err67 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid8 = _errs119 === errors;valid16 = valid16 || _valid8;if(!valid16){const _errs121 = errors;if(data42 !== null){const err68 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid8 = _errs121 === errors;valid16 = valid16 || _valid8;}if(!valid16){const err69 = {instancePath:instancePath+"/data/users/" + i1+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}}var valid13 = _errs117 === errors;}else {var valid13 = true;}if(valid13){if(data36.roles !== undefined){let data43 = data36.roles;const _errs123 = errors;if(errors === _errs123){if(Array.isArray(data43)){var valid17 = true;const len2 = data43.length;for(let i2=0; i2<len2; i2++){const _errs125 = errors;if(typeof data43[i2] !== "string"){const err70 = {instancePath:instancePath+"/data/users/" + i1+"/roles/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid17 = _errs125 === errors;if(!valid17){break;}}}else {const err71 = {instancePath:instancePath+"/data/users/" + i1+"/roles",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var valid13 = _errs123 === errors;}else {var valid13 = true;}if(valid13){if(data36.countryCode !== undefined){const _errs127 = errors;if(typeof data36.countryCode !== "string"){const err72 = {instancePath:instancePath+"/data/users/" + i1+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid13 = _errs127 === errors;}else {var valid13 = true;}if(valid13){if(data36.status !== undefined){let data46 = data36.status;const _errs129 = errors;const _errs130 = errors;let valid18 = false;const _errs131 = errors;if(typeof data46 !== "string"){const err73 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("offline" !== data46){const err74 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid9 = _errs131 === errors;valid18 = valid18 || _valid9;if(!valid18){const _errs133 = errors;if(typeof data46 !== "string"){const err75 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if("menu" !== data46){const err76 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid9 = _errs133 === errors;valid18 = valid18 || _valid9;if(!valid18){const _errs135 = errors;if(typeof data46 !== "string"){const err77 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("playing" !== data46){const err78 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid9 = _errs135 === errors;valid18 = valid18 || _valid9;if(!valid18){const _errs137 = errors;if(typeof data46 !== "string"){const err79 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("lobby" !== data46){const err80 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid9 = _errs137 === errors;valid18 = valid18 || _valid9;}}}if(!valid18){const err81 = {instancePath:instancePath+"/data/users/" + i1+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var valid13 = _errs129 === errors;}else {var valid13 = true;}if(valid13){if(data36.battleStatus !== undefined){let data47 = data36.battleStatus;const _errs139 = errors;const _errs140 = errors;let valid19 = false;const _errs141 = errors;const _errs142 = errors;if(errors === _errs142){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing5;if((data47.battleId === undefined) && (missing5 = "battleId")){const err82 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {if(data47.battleId !== undefined){if(typeof data47.battleId !== "string"){const err83 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}}else {const err84 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var valid20 = _errs142 === errors;if(valid20){const _errs146 = errors;const _errs147 = errors;let valid22 = false;const _errs148 = errors;if(!(data47 && typeof data47 == "object" && !Array.isArray(data47))){const err85 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs150 = errors;if(errors === _errs150){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing6;if((((((data47.playerId === undefined) && (missing6 = "playerId")) || ((data47.teamId === undefined) && (missing6 = "teamId"))) || ((data47.color === undefined) && (missing6 = "color"))) || ((data47.bonus === undefined) && (missing6 = "bonus"))) || ((data47.inGame === undefined) && (missing6 = "inGame"))){const err86 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data47.playerId !== undefined){let data49 = data47.playerId;const _errs152 = errors;if(!(((typeof data49 == "number") && (!(data49 % 1) && !isNaN(data49))) && (isFinite(data49)))){const err87 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}var valid24 = _errs152 === errors;}else {var valid24 = true;}if(valid24){if(data47.teamId !== undefined){let data50 = data47.teamId;const _errs154 = errors;if(!(((typeof data50 == "number") && (!(data50 % 1) && !isNaN(data50))) && (isFinite(data50)))){const err88 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid24 = _errs154 === errors;}else {var valid24 = true;}if(valid24){if(data47.color !== undefined){const _errs156 = errors;if(typeof data47.color !== "string"){const err89 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid24 = _errs156 === errors;}else {var valid24 = true;}if(valid24){if(data47.bonus !== undefined){let data52 = data47.bonus;const _errs158 = errors;if(!((typeof data52 == "number") && (isFinite(data52)))){const err90 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid24 = _errs158 === errors;}else {var valid24 = true;}if(valid24){if(data47.inGame !== undefined){const _errs160 = errors;if(typeof data47.inGame !== "boolean"){const err91 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid24 = _errs160 === errors;}else {var valid24 = true;}}}}}}}else {const err92 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}var valid23 = _errs150 === errors;if(valid23){const _errs162 = errors;if(errors === _errs162){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing7;if(((((data47.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data47.isBot === undefined) && (missing7 = "isBot"))) || ((data47.ready === undefined) && (missing7 = "ready"))) || ((data47.sync === undefined) && (missing7 = "sync"))){const err93 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data47.isSpectator !== undefined){let data54 = data47.isSpectator;const _errs164 = errors;if(typeof data54 !== "boolean"){const err94 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(false !== data54){const err95 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid25 = _errs164 === errors;}else {var valid25 = true;}if(valid25){if(data47.isBot !== undefined){let data55 = data47.isBot;const _errs166 = errors;if(typeof data55 !== "boolean"){const err96 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(false !== data55){const err97 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid25 = _errs166 === errors;}else {var valid25 = true;}if(valid25){if(data47.ready !== undefined){const _errs168 = errors;if(typeof data47.ready !== "boolean"){const err98 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid25 = _errs168 === errors;}else {var valid25 = true;}if(valid25){if(data47.sync !== undefined){let data57 = data47.sync;const _errs170 = errors;if(errors === _errs170){if(data57 && typeof data57 == "object" && !Array.isArray(data57)){let missing8;if((((data57.engine === undefined) && (missing8 = "engine")) || ((data57.game === undefined) && (missing8 = "game"))) || ((data57.map === undefined) && (missing8 = "map"))){const err99 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data57.engine !== undefined){let data58 = data57.engine;const _errs172 = errors;if(!((typeof data58 == "number") && (isFinite(data58)))){const err100 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var valid26 = _errs172 === errors;}else {var valid26 = true;}if(valid26){if(data57.game !== undefined){let data59 = data57.game;const _errs174 = errors;if(!((typeof data59 == "number") && (isFinite(data59)))){const err101 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid26 = _errs174 === errors;}else {var valid26 = true;}if(valid26){if(data57.map !== undefined){let data60 = data57.map;const _errs176 = errors;if(!((typeof data60 == "number") && (isFinite(data60)))){const err102 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid26 = _errs176 === errors;}else {var valid26 = true;}}}}}else {const err103 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}var valid25 = _errs170 === errors;}else {var valid25 = true;}}}}}}else {const err104 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var valid23 = _errs162 === errors;}var _valid11 = _errs148 === errors;valid22 = valid22 || _valid11;if(!valid22){const _errs178 = errors;if(errors === _errs178){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){let missing9;if(((data47.isSpectator === undefined) && (missing9 = "isSpectator")) || ((data47.isBot === undefined) && (missing9 = "isBot"))){const err105 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data47.isSpectator !== undefined){let data61 = data47.isSpectator;const _errs180 = errors;if(typeof data61 !== "boolean"){const err106 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(true !== data61){const err107 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid27 = _errs180 === errors;}else {var valid27 = true;}if(valid27){if(data47.isBot !== undefined){let data62 = data47.isBot;const _errs182 = errors;if(typeof data62 !== "boolean"){const err108 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(false !== data62){const err109 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var valid27 = _errs182 === errors;}else {var valid27 = true;}}}}else {const err110 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid11 = _errs178 === errors;valid22 = valid22 || _valid11;}if(!valid22){const err111 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}var valid20 = _errs146 === errors;}var _valid10 = _errs141 === errors;valid19 = valid19 || _valid10;if(!valid19){const _errs184 = errors;if(data47 !== null){const err112 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}var _valid10 = _errs184 === errors;valid19 = valid19 || _valid10;}if(!valid19){const err113 = {instancePath:instancePath+"/data/users/" + i1+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}var valid13 = _errs139 === errors;}else {var valid13 = true;}}}}}}}}}}}}else {const err114 = {instancePath:instancePath+"/data/users/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var valid12 = _errs97 === errors;if(!valid12){break;}}}else {const err115 = {instancePath:instancePath+"/data/users",schemaPath:"#/anyOf/0/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var valid2 = _errs95 === errors;}else {var valid2 = true;}}}}}}}}}}}}}}}}else {const err116 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err117 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs186 = errors;if(errors === _errs186){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if(((((data.messageId === undefined) && (missing10 = "messageId")) || ((data.commandId === undefined) && (missing10 = "commandId"))) || ((data.status === undefined) && (missing10 = "status"))) || ((data.reason === undefined) && (missing10 = "reason"))){const err118 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data.messageId !== undefined){const _errs188 = errors;if(typeof data.messageId !== "string"){const err119 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid28 = _errs188 === errors;}else {var valid28 = true;}if(valid28){if(data.commandId !== undefined){let data64 = data.commandId;const _errs190 = errors;if(typeof data64 !== "string"){const err120 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if("lobby/joined/response" !== data64){const err121 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/joined/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid28 = _errs190 === errors;}else {var valid28 = true;}if(valid28){if(data.status !== undefined){let data65 = data.status;const _errs192 = errors;if(typeof data65 !== "string"){const err122 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if("failed" !== data65){const err123 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid28 = _errs192 === errors;}else {var valid28 = true;}if(valid28){if(data.reason !== undefined){let data66 = data.reason;const _errs194 = errors;if(typeof data66 !== "string"){const err124 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if("internal_error" !== data66){const err125 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid28 = _errs194 === errors;}else {var valid28 = true;}}}}}}else {const err126 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid0 = _errs186 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs196 = errors;if(errors === _errs196){if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if(((((data.messageId === undefined) && (missing11 = "messageId")) || ((data.commandId === undefined) && (missing11 = "commandId"))) || ((data.status === undefined) && (missing11 = "status"))) || ((data.reason === undefined) && (missing11 = "reason"))){const err127 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data.messageId !== undefined){const _errs198 = errors;if(typeof data.messageId !== "string"){const err128 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var valid29 = _errs198 === errors;}else {var valid29 = true;}if(valid29){if(data.commandId !== undefined){let data68 = data.commandId;const _errs200 = errors;if(typeof data68 !== "string"){const err129 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if("lobby/joined/response" !== data68){const err130 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/joined/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var valid29 = _errs200 === errors;}else {var valid29 = true;}if(valid29){if(data.status !== undefined){let data69 = data.status;const _errs202 = errors;if(typeof data69 !== "string"){const err131 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if("failed" !== data69){const err132 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var valid29 = _errs202 === errors;}else {var valid29 = true;}if(valid29){if(data.reason !== undefined){let data70 = data.reason;const _errs204 = errors;if(typeof data70 !== "string"){const err133 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if("unauthorized" !== data70){const err134 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid29 = _errs204 === errors;}else {var valid29 = true;}}}}}}else {const err135 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid0 = _errs196 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs206 = errors;if(errors === _errs206){if(data && typeof data == "object" && !Array.isArray(data)){let missing12;if(((((data.messageId === undefined) && (missing12 = "messageId")) || ((data.commandId === undefined) && (missing12 = "commandId"))) || ((data.status === undefined) && (missing12 = "status"))) || ((data.reason === undefined) && (missing12 = "reason"))){const err136 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {if(data.messageId !== undefined){const _errs208 = errors;if(typeof data.messageId !== "string"){const err137 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var valid30 = _errs208 === errors;}else {var valid30 = true;}if(valid30){if(data.commandId !== undefined){let data72 = data.commandId;const _errs210 = errors;if(typeof data72 !== "string"){const err138 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("lobby/joined/response" !== data72){const err139 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/joined/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}var valid30 = _errs210 === errors;}else {var valid30 = true;}if(valid30){if(data.status !== undefined){let data73 = data.status;const _errs212 = errors;if(typeof data73 !== "string"){const err140 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if("failed" !== data73){const err141 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid30 = _errs212 === errors;}else {var valid30 = true;}if(valid30){if(data.reason !== undefined){let data74 = data.reason;const _errs214 = errors;if(typeof data74 !== "string"){const err142 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if("invalid_command" !== data74){const err143 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}var valid30 = _errs214 === errors;}else {var valid30 = true;}}}}}}else {const err144 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid0 = _errs206 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err145 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;validate21.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate21.errors = vErrors;return errors === 0;}exports.lobby_leave_request = validate22;const schema23 = {"$id":"lobby/leave/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/request","type":"string"}},"required":["messageId","commandId"]};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/leave/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate22.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate22.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate22.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/leave/request" !== data1){validate22.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}exports.lobby_leave_response = validate23;const schema24 = {"$id":"lobby/leave/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_lobby","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/leave/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/leave/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/leave/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/leave/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("no_lobby" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/leave/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/leave/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("lobby/leave/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/leave/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate23.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate23.errors = vErrors;return errors === 0;}exports.lobby_left_response = validate24;const schema25 = {"$id":"lobby/left/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/left/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/left/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/left/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/left/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/left/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/left/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/left/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/left/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/left/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/left/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/left/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/left/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/left/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate24.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate24.errors = vErrors;return errors === 0;}exports.lobby_list_request = validate25;const schema26 = {"$id":"lobby/list/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/list/request","type":"string"}},"required":["messageId","commandId"]};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/list/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate25.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate25.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate25.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/list/request" !== data1){validate25.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate25.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate25.errors = vErrors;return errors === 0;}exports.lobby_list_response = validate26;const schema27 = {"$id":"lobby/list/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/list/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"battles":{"type":"array","items":{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[],"title":"8v8 | All Welcome","bossIds":[123,456],"locked":false,"passworded":false,"spectatorIds":[88],"limits":{"minTeamsize":3,"maxTeamsize":3,"minRating":null,"maxRating":25}}],"type":"object","allOf":[{"examples":[{"battleId":27,"hostId":822,"engine":"105.1.1-1821-gaca6f20 BAR105","game":"Beyond All Reason test-23561-0abff7c","map":"Red Comet Remake 1.8","startPosType":2,"startAreas":{"0":{"x":0,"y":0,"width":1,"height":0.3},"1":{"x":0,"y":0.7,"width":1,"height":0.3}},"startTime":1705432698,"ip":"121.32.201.76","port":41403,"scriptPassword":"10sdfi90sid0sjkdf","modOptions":{"emprework":0},"bots":[],"users":[]}],"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","roles","status","battleStatus"]}}},"required":["battleId","hostId","engine","game","map","startPosType","startAreas","startTime","ip","port","scriptPassword","modOptions","bots","users"]},{"type":"object","properties":{"title":{"type":"string"},"locked":{"type":"boolean"},"passworded":{"type":"boolean"},"bossIds":{"type":"array","items":{"type":"string"}},"joinQueueIds":{"type":"array","items":{"type":"string"}},"limits":{"type":"object","properties":{"minTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minRating":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxRating":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["minTeamsize","maxTeamsize","minRating","maxRating"]}},"required":["title","locked","passworded","bossIds","joinQueueIds","limits"]}]}}},"required":["battles"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/list/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/list/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.battles === undefined) && (missing1 = "battles")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.battles !== undefined){let data4 = data3.battles;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err7 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}const _errs15 = errors;if(errors === _errs15){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if(((((((((((((((data5.battleId === undefined) && (missing2 = "battleId")) || ((data5.hostId === undefined) && (missing2 = "hostId"))) || ((data5.engine === undefined) && (missing2 = "engine"))) || ((data5.game === undefined) && (missing2 = "game"))) || ((data5.map === undefined) && (missing2 = "map"))) || ((data5.startPosType === undefined) && (missing2 = "startPosType"))) || ((data5.startAreas === undefined) && (missing2 = "startAreas"))) || ((data5.startTime === undefined) && (missing2 = "startTime"))) || ((data5.ip === undefined) && (missing2 = "ip"))) || ((data5.port === undefined) && (missing2 = "port"))) || ((data5.scriptPassword === undefined) && (missing2 = "scriptPassword"))) || ((data5.modOptions === undefined) && (missing2 = "modOptions"))) || ((data5.bots === undefined) && (missing2 = "bots"))) || ((data5.users === undefined) && (missing2 = "users"))){const err8 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data5.battleId !== undefined){const _errs17 = errors;if(typeof data5.battleId !== "string"){const err9 = {instancePath:instancePath+"/data/battles/" + i0+"/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data5.hostId !== undefined){const _errs19 = errors;if(typeof data5.hostId !== "string"){const err10 = {instancePath:instancePath+"/data/battles/" + i0+"/hostId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data5.engine !== undefined){const _errs21 = errors;if(typeof data5.engine !== "string"){const err11 = {instancePath:instancePath+"/data/battles/" + i0+"/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid5 = _errs21 === errors;}else {var valid5 = true;}if(valid5){if(data5.game !== undefined){const _errs23 = errors;if(typeof data5.game !== "string"){const err12 = {instancePath:instancePath+"/data/battles/" + i0+"/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid5 = _errs23 === errors;}else {var valid5 = true;}if(valid5){if(data5.map !== undefined){const _errs25 = errors;if(typeof data5.map !== "string"){const err13 = {instancePath:instancePath+"/data/battles/" + i0+"/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data5.startPosType !== undefined){let data11 = data5.startPosType;const _errs27 = errors;const _errs28 = errors;let valid6 = false;const _errs29 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err14 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(0 !== data11){const err15 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid1 = _errs29 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs31 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err16 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(1 !== data11){const err17 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs31 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs33 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err18 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(2 !== data11){const err19 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;}}if(!valid6){const err20 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data5.startAreas !== undefined){let data12 = data5.startAreas;const _errs35 = errors;if(errors === _errs35){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){var valid7 = true;for(const key0 in data12){if(pattern0.test(key0)){let data13 = data12[key0];const _errs37 = errors;if(errors === _errs37){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing3;if(((((data13.x === undefined) && (missing3 = "x")) || ((data13.y === undefined) && (missing3 = "y"))) || ((data13.width === undefined) && (missing3 = "width"))) || ((data13.height === undefined) && (missing3 = "height"))){const err21 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {if(data13.x !== undefined){let data14 = data13.x;const _errs39 = errors;if(!((typeof data14 == "number") && (isFinite(data14)))){const err22 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid8 = _errs39 === errors;}else {var valid8 = true;}if(valid8){if(data13.y !== undefined){let data15 = data13.y;const _errs41 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){const err23 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data13.width !== undefined){let data16 = data13.width;const _errs43 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){const err24 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data13.height !== undefined){let data17 = data13.height;const _errs45 = errors;if(!((typeof data17 == "number") && (isFinite(data17)))){const err25 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid8 = _errs45 === errors;}else {var valid8 = true;}}}}}}else {const err26 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid7 = _errs37 === errors;if(!valid7){break;}}}}else {const err27 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data5.startTime !== undefined){let data18 = data5.startTime;const _errs47 = errors;const _errs48 = errors;let valid9 = false;const _errs49 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err28 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid2 = _errs49 === errors;valid9 = valid9 || _valid2;if(!valid9){const _errs51 = errors;if(data18 !== null){const err29 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid2 = _errs51 === errors;valid9 = valid9 || _valid2;}if(!valid9){const err30 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}}var valid5 = _errs47 === errors;}else {var valid5 = true;}if(valid5){if(data5.ip !== undefined){let data19 = data5.ip;const _errs53 = errors;const _errs54 = errors;let valid10 = false;const _errs55 = errors;if(typeof data19 !== "string"){const err31 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid3 = _errs55 === errors;valid10 = valid10 || _valid3;if(!valid10){const _errs57 = errors;if(data19 !== null){const err32 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid3 = _errs57 === errors;valid10 = valid10 || _valid3;}if(!valid10){const err33 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs54;if(vErrors !== null){if(_errs54){vErrors.length = _errs54;}else {vErrors = null;}}}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data5.port !== undefined){let data20 = data5.port;const _errs59 = errors;const _errs60 = errors;let valid11 = false;const _errs61 = errors;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err34 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid4 = _errs61 === errors;valid11 = valid11 || _valid4;if(!valid11){const _errs63 = errors;if(data20 !== null){const err35 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid4 = _errs63 === errors;valid11 = valid11 || _valid4;}if(!valid11){const err36 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var valid5 = _errs59 === errors;}else {var valid5 = true;}if(valid5){if(data5.scriptPassword !== undefined){let data21 = data5.scriptPassword;const _errs65 = errors;const _errs66 = errors;let valid12 = false;const _errs67 = errors;if(typeof data21 !== "string"){const err37 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid5 = _errs67 === errors;valid12 = valid12 || _valid5;if(!valid12){const _errs69 = errors;if(data21 !== null){const err38 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid5 = _errs69 === errors;valid12 = valid12 || _valid5;}if(!valid12){const err39 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}var valid5 = _errs65 === errors;}else {var valid5 = true;}if(valid5){if(data5.modOptions !== undefined){let data22 = data5.modOptions;const _errs71 = errors;if(errors === _errs71){if(!(data22 && typeof data22 == "object" && !Array.isArray(data22))){const err40 = {instancePath:instancePath+"/data/battles/" + i0+"/modOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var valid5 = _errs71 === errors;}else {var valid5 = true;}if(valid5){if(data5.bots !== undefined){let data23 = data5.bots;const _errs73 = errors;if(errors === _errs73){if(Array.isArray(data23)){var valid13 = true;const len1 = data23.length;for(let i1=0; i1<len1; i1++){let data24 = data23[i1];const _errs75 = errors;if(errors === _errs75){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing4;if(((((((((((((data24.playerId === undefined) && (missing4 = "playerId")) || ((data24.teamId === undefined) && (missing4 = "teamId"))) || ((data24.color === undefined) && (missing4 = "color"))) || ((data24.bonus === undefined) && (missing4 = "bonus"))) || ((data24.inGame === undefined) && (missing4 = "inGame"))) || ((data24.isSpectator === undefined) && (missing4 = "isSpectator"))) || ((data24.isBot === undefined) && (missing4 = "isBot"))) || ((data24.ownerId === undefined) && (missing4 = "ownerId"))) || ((data24.aiShortName === undefined) && (missing4 = "aiShortName"))) || ((data24.name === undefined) && (missing4 = "name"))) || ((data24.aiOptions === undefined) && (missing4 = "aiOptions"))) || ((data24.faction === undefined) && (missing4 = "faction"))){const err41 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data24.playerId !== undefined){let data25 = data24.playerId;const _errs77 = errors;if(!(((typeof data25 == "number") && (!(data25 % 1) && !isNaN(data25))) && (isFinite(data25)))){const err42 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data24.teamId !== undefined){let data26 = data24.teamId;const _errs79 = errors;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err43 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data24.color !== undefined){const _errs81 = errors;if(typeof data24.color !== "string"){const err44 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data24.bonus !== undefined){let data28 = data24.bonus;const _errs83 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err45 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}if(valid14){if(data24.inGame !== undefined){const _errs85 = errors;if(typeof data24.inGame !== "boolean"){const err46 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid14 = _errs85 === errors;}else {var valid14 = true;}if(valid14){if(data24.isSpectator !== undefined){let data30 = data24.isSpectator;const _errs87 = errors;if(typeof data30 !== "boolean"){const err47 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(false !== data30){const err48 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid14 = _errs87 === errors;}else {var valid14 = true;}if(valid14){if(data24.isBot !== undefined){let data31 = data24.isBot;const _errs89 = errors;if(typeof data31 !== "boolean"){const err49 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(true !== data31){const err50 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs89 === errors;}else {var valid14 = true;}if(valid14){if(data24.ownerId !== undefined){const _errs91 = errors;if(typeof data24.ownerId !== "string"){const err51 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/ownerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _errs91 === errors;}else {var valid14 = true;}if(valid14){if(data24.aiShortName !== undefined){const _errs93 = errors;if(typeof data24.aiShortName !== "string"){const err52 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiShortName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs93 === errors;}else {var valid14 = true;}if(valid14){if(data24.name !== undefined){const _errs95 = errors;if(typeof data24.name !== "string"){const err53 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/name",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid14 = _errs95 === errors;}else {var valid14 = true;}if(valid14){if(data24.aiOptions !== undefined){let data35 = data24.aiOptions;const _errs97 = errors;if(errors === _errs97){if(!(data35 && typeof data35 == "object" && !Array.isArray(data35))){const err54 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid14 = _errs97 === errors;}else {var valid14 = true;}if(valid14){if(data24.faction !== undefined){const _errs99 = errors;if(typeof data24.faction !== "string"){const err55 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/faction",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid14 = _errs99 === errors;}else {var valid14 = true;}}}}}}}}}}}}}}else {const err56 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid13 = _errs75 === errors;if(!valid13){break;}}}else {const err57 = {instancePath:instancePath+"/data/battles/" + i0+"/bots",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}var valid5 = _errs73 === errors;}else {var valid5 = true;}if(valid5){if(data5.users !== undefined){let data37 = data5.users;const _errs101 = errors;if(errors === _errs101){if(Array.isArray(data37)){var valid15 = true;const len2 = data37.length;for(let i2=0; i2<len2; i2++){let data38 = data37[i2];const _errs103 = errors;if(errors === _errs103){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){let missing5;if((((((((((data38.userId === undefined) && (missing5 = "userId")) || ((data38.username === undefined) && (missing5 = "username"))) || ((data38.displayName === undefined) && (missing5 = "displayName"))) || ((data38.avatarUrl === undefined) && (missing5 = "avatarUrl"))) || ((data38.clanId === undefined) && (missing5 = "clanId"))) || ((data38.partyId === undefined) && (missing5 = "partyId"))) || ((data38.roles === undefined) && (missing5 = "roles"))) || ((data38.status === undefined) && (missing5 = "status"))) || ((data38.battleStatus === undefined) && (missing5 = "battleStatus"))){const err58 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {if(data38.userId !== undefined){const _errs105 = errors;if(typeof data38.userId !== "string"){const err59 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs105 === errors;}else {var valid16 = true;}if(valid16){if(data38.username !== undefined){const _errs107 = errors;if(typeof data38.username !== "string"){const err60 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/username",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid16 = _errs107 === errors;}else {var valid16 = true;}if(valid16){if(data38.displayName !== undefined){const _errs109 = errors;if(typeof data38.displayName !== "string"){const err61 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid16 = _errs109 === errors;}else {var valid16 = true;}if(valid16){if(data38.avatarUrl !== undefined){let data42 = data38.avatarUrl;const _errs111 = errors;const _errs112 = errors;let valid17 = false;const _errs113 = errors;if(errors === _errs113){if(errors === _errs113){if(typeof data42 === "string"){if(!(formats0(data42))){const err62 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}var _valid6 = _errs113 === errors;valid17 = valid17 || _valid6;if(!valid17){const _errs115 = errors;if(data42 !== null){const err64 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid6 = _errs115 === errors;valid17 = valid17 || _valid6;}if(!valid17){const err65 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}var valid16 = _errs111 === errors;}else {var valid16 = true;}if(valid16){if(data38.clanId !== undefined){let data43 = data38.clanId;const _errs117 = errors;const _errs118 = errors;let valid18 = false;const _errs119 = errors;if(typeof data43 !== "string"){const err66 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid7 = _errs119 === errors;valid18 = valid18 || _valid7;if(!valid18){const _errs121 = errors;if(data43 !== null){const err67 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid7 = _errs121 === errors;valid18 = valid18 || _valid7;}if(!valid18){const err68 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}}var valid16 = _errs117 === errors;}else {var valid16 = true;}if(valid16){if(data38.partyId !== undefined){let data44 = data38.partyId;const _errs123 = errors;const _errs124 = errors;let valid19 = false;const _errs125 = errors;if(typeof data44 !== "string"){const err69 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var _valid8 = _errs125 === errors;valid19 = valid19 || _valid8;if(!valid19){const _errs127 = errors;if(data44 !== null){const err70 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var _valid8 = _errs127 === errors;valid19 = valid19 || _valid8;}if(!valid19){const err71 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}}var valid16 = _errs123 === errors;}else {var valid16 = true;}if(valid16){if(data38.roles !== undefined){let data45 = data38.roles;const _errs129 = errors;if(errors === _errs129){if(Array.isArray(data45)){var valid20 = true;const len3 = data45.length;for(let i3=0; i3<len3; i3++){const _errs131 = errors;if(typeof data45[i3] !== "string"){const err72 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/roles/" + i3,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid20 = _errs131 === errors;if(!valid20){break;}}}else {const err73 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/roles",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var valid16 = _errs129 === errors;}else {var valid16 = true;}if(valid16){if(data38.countryCode !== undefined){const _errs133 = errors;if(typeof data38.countryCode !== "string"){const err74 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid16 = _errs133 === errors;}else {var valid16 = true;}if(valid16){if(data38.status !== undefined){let data48 = data38.status;const _errs135 = errors;const _errs136 = errors;let valid21 = false;const _errs137 = errors;if(typeof data48 !== "string"){const err75 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if("offline" !== data48){const err76 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var _valid9 = _errs137 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs139 = errors;if(typeof data48 !== "string"){const err77 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if("menu" !== data48){const err78 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var _valid9 = _errs139 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs141 = errors;if(typeof data48 !== "string"){const err79 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if("playing" !== data48){const err80 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid9 = _errs141 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs143 = errors;if(typeof data48 !== "string"){const err81 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if("lobby" !== data48){const err82 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid9 = _errs143 === errors;valid21 = valid21 || _valid9;}}}if(!valid21){const err83 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}var valid16 = _errs135 === errors;}else {var valid16 = true;}if(valid16){if(data38.battleStatus !== undefined){let data49 = data38.battleStatus;const _errs145 = errors;const _errs146 = errors;let valid22 = false;const _errs147 = errors;const _errs148 = errors;if(errors === _errs148){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing6;if((data49.battleId === undefined) && (missing6 = "battleId")){const err84 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {if(data49.battleId !== undefined){if(typeof data49.battleId !== "string"){const err85 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}else {const err86 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var valid23 = _errs148 === errors;if(valid23){const _errs152 = errors;const _errs153 = errors;let valid25 = false;const _errs154 = errors;if(!(data49 && typeof data49 == "object" && !Array.isArray(data49))){const err87 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}const _errs156 = errors;if(errors === _errs156){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing7;if((((((data49.playerId === undefined) && (missing7 = "playerId")) || ((data49.teamId === undefined) && (missing7 = "teamId"))) || ((data49.color === undefined) && (missing7 = "color"))) || ((data49.bonus === undefined) && (missing7 = "bonus"))) || ((data49.inGame === undefined) && (missing7 = "inGame"))){const err88 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data49.playerId !== undefined){let data51 = data49.playerId;const _errs158 = errors;if(!(((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51))) && (isFinite(data51)))){const err89 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid27 = _errs158 === errors;}else {var valid27 = true;}if(valid27){if(data49.teamId !== undefined){let data52 = data49.teamId;const _errs160 = errors;if(!(((typeof data52 == "number") && (!(data52 % 1) && !isNaN(data52))) && (isFinite(data52)))){const err90 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid27 = _errs160 === errors;}else {var valid27 = true;}if(valid27){if(data49.color !== undefined){const _errs162 = errors;if(typeof data49.color !== "string"){const err91 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid27 = _errs162 === errors;}else {var valid27 = true;}if(valid27){if(data49.bonus !== undefined){let data54 = data49.bonus;const _errs164 = errors;if(!((typeof data54 == "number") && (isFinite(data54)))){const err92 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid27 = _errs164 === errors;}else {var valid27 = true;}if(valid27){if(data49.inGame !== undefined){const _errs166 = errors;if(typeof data49.inGame !== "boolean"){const err93 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid27 = _errs166 === errors;}else {var valid27 = true;}}}}}}}else {const err94 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}var valid26 = _errs156 === errors;if(valid26){const _errs168 = errors;if(errors === _errs168){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing8;if(((((data49.isSpectator === undefined) && (missing8 = "isSpectator")) || ((data49.isBot === undefined) && (missing8 = "isBot"))) || ((data49.ready === undefined) && (missing8 = "ready"))) || ((data49.sync === undefined) && (missing8 = "sync"))){const err95 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data49.isSpectator !== undefined){let data56 = data49.isSpectator;const _errs170 = errors;if(typeof data56 !== "boolean"){const err96 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(false !== data56){const err97 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid28 = _errs170 === errors;}else {var valid28 = true;}if(valid28){if(data49.isBot !== undefined){let data57 = data49.isBot;const _errs172 = errors;if(typeof data57 !== "boolean"){const err98 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(false !== data57){const err99 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid28 = _errs172 === errors;}else {var valid28 = true;}if(valid28){if(data49.ready !== undefined){const _errs174 = errors;if(typeof data49.ready !== "boolean"){const err100 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var valid28 = _errs174 === errors;}else {var valid28 = true;}if(valid28){if(data49.sync !== undefined){let data59 = data49.sync;const _errs176 = errors;if(errors === _errs176){if(data59 && typeof data59 == "object" && !Array.isArray(data59)){let missing9;if((((data59.engine === undefined) && (missing9 = "engine")) || ((data59.game === undefined) && (missing9 = "game"))) || ((data59.map === undefined) && (missing9 = "map"))){const err101 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data59.engine !== undefined){let data60 = data59.engine;const _errs178 = errors;if(!((typeof data60 == "number") && (isFinite(data60)))){const err102 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid29 = _errs178 === errors;}else {var valid29 = true;}if(valid29){if(data59.game !== undefined){let data61 = data59.game;const _errs180 = errors;if(!((typeof data61 == "number") && (isFinite(data61)))){const err103 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid29 = _errs180 === errors;}else {var valid29 = true;}if(valid29){if(data59.map !== undefined){let data62 = data59.map;const _errs182 = errors;if(!((typeof data62 == "number") && (isFinite(data62)))){const err104 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid29 = _errs182 === errors;}else {var valid29 = true;}}}}}else {const err105 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}var valid28 = _errs176 === errors;}else {var valid28 = true;}}}}}}else {const err106 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}var valid26 = _errs168 === errors;}var _valid11 = _errs154 === errors;valid25 = valid25 || _valid11;if(!valid25){const _errs184 = errors;if(errors === _errs184){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing10;if(((data49.isSpectator === undefined) && (missing10 = "isSpectator")) || ((data49.isBot === undefined) && (missing10 = "isBot"))){const err107 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data49.isSpectator !== undefined){let data63 = data49.isSpectator;const _errs186 = errors;if(typeof data63 !== "boolean"){const err108 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(true !== data63){const err109 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var valid30 = _errs186 === errors;}else {var valid30 = true;}if(valid30){if(data49.isBot !== undefined){let data64 = data49.isBot;const _errs188 = errors;if(typeof data64 !== "boolean"){const err110 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(false !== data64){const err111 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid30 = _errs188 === errors;}else {var valid30 = true;}}}}else {const err112 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var _valid11 = _errs184 === errors;valid25 = valid25 || _valid11;}if(!valid25){const err113 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}}var valid23 = _errs152 === errors;}var _valid10 = _errs147 === errors;valid22 = valid22 || _valid10;if(!valid22){const _errs190 = errors;if(data49 !== null){const err114 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var _valid10 = _errs190 === errors;valid22 = valid22 || _valid10;}if(!valid22){const err115 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var valid16 = _errs145 === errors;}else {var valid16 = true;}}}}}}}}}}}}else {const err116 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid15 = _errs103 === errors;if(!valid15){break;}}}else {const err117 = {instancePath:instancePath+"/data/battles/" + i0+"/users",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var valid5 = _errs101 === errors;}else {var valid5 = true;}}}}}}}}}}}}}}}}else {const err118 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var valid4 = _errs15 === errors;if(valid4){const _errs192 = errors;if(errors === _errs192){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing11;if(((((((data5.title === undefined) && (missing11 = "title")) || ((data5.locked === undefined) && (missing11 = "locked"))) || ((data5.passworded === undefined) && (missing11 = "passworded"))) || ((data5.bossIds === undefined) && (missing11 = "bossIds"))) || ((data5.joinQueueIds === undefined) && (missing11 = "joinQueueIds"))) || ((data5.limits === undefined) && (missing11 = "limits"))){const err119 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data5.title !== undefined){const _errs194 = errors;if(typeof data5.title !== "string"){const err120 = {instancePath:instancePath+"/data/battles/" + i0+"/title",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var valid31 = _errs194 === errors;}else {var valid31 = true;}if(valid31){if(data5.locked !== undefined){const _errs196 = errors;if(typeof data5.locked !== "boolean"){const err121 = {instancePath:instancePath+"/data/battles/" + i0+"/locked",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/locked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid31 = _errs196 === errors;}else {var valid31 = true;}if(valid31){if(data5.passworded !== undefined){const _errs198 = errors;if(typeof data5.passworded !== "boolean"){const err122 = {instancePath:instancePath+"/data/battles/" + i0+"/passworded",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/passworded/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid31 = _errs198 === errors;}else {var valid31 = true;}if(valid31){if(data5.bossIds !== undefined){let data68 = data5.bossIds;const _errs200 = errors;if(errors === _errs200){if(Array.isArray(data68)){var valid32 = true;const len4 = data68.length;for(let i4=0; i4<len4; i4++){const _errs202 = errors;if(typeof data68[i4] !== "string"){const err123 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds/" + i4,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid32 = _errs202 === errors;if(!valid32){break;}}}else {const err124 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var valid31 = _errs200 === errors;}else {var valid31 = true;}if(valid31){if(data5.joinQueueIds !== undefined){let data70 = data5.joinQueueIds;const _errs204 = errors;if(errors === _errs204){if(Array.isArray(data70)){var valid33 = true;const len5 = data70.length;for(let i5=0; i5<len5; i5++){const _errs206 = errors;if(typeof data70[i5] !== "string"){const err125 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds/" + i5,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid33 = _errs206 === errors;if(!valid33){break;}}}else {const err126 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var valid31 = _errs204 === errors;}else {var valid31 = true;}if(valid31){if(data5.limits !== undefined){let data72 = data5.limits;const _errs208 = errors;if(errors === _errs208){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing12;if(((((data72.minTeamsize === undefined) && (missing12 = "minTeamsize")) || ((data72.maxTeamsize === undefined) && (missing12 = "maxTeamsize"))) || ((data72.minRating === undefined) && (missing12 = "minRating"))) || ((data72.maxRating === undefined) && (missing12 = "maxRating"))){const err127 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data72.minTeamsize !== undefined){let data73 = data72.minTeamsize;const _errs210 = errors;const _errs211 = errors;let valid35 = false;const _errs212 = errors;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err128 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var _valid12 = _errs212 === errors;valid35 = valid35 || _valid12;if(!valid35){const _errs214 = errors;if(data73 !== null){const err129 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid12 = _errs214 === errors;valid35 = valid35 || _valid12;}if(!valid35){const err130 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {errors = _errs211;if(vErrors !== null){if(_errs211){vErrors.length = _errs211;}else {vErrors = null;}}}var valid34 = _errs210 === errors;}else {var valid34 = true;}if(valid34){if(data72.maxTeamsize !== undefined){let data74 = data72.maxTeamsize;const _errs216 = errors;const _errs217 = errors;let valid36 = false;const _errs218 = errors;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err131 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var _valid13 = _errs218 === errors;valid36 = valid36 || _valid13;if(!valid36){const _errs220 = errors;if(data74 !== null){const err132 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs220 === errors;valid36 = valid36 || _valid13;}if(!valid36){const err133 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}var valid34 = _errs216 === errors;}else {var valid34 = true;}if(valid34){if(data72.minRating !== undefined){let data75 = data72.minRating;const _errs222 = errors;const _errs223 = errors;let valid37 = false;const _errs224 = errors;if(!(((typeof data75 == "number") && (!(data75 % 1) && !isNaN(data75))) && (isFinite(data75)))){const err134 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var _valid14 = _errs224 === errors;valid37 = valid37 || _valid14;if(!valid37){const _errs226 = errors;if(data75 !== null){const err135 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var _valid14 = _errs226 === errors;valid37 = valid37 || _valid14;}if(!valid37){const err136 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}var valid34 = _errs222 === errors;}else {var valid34 = true;}if(valid34){if(data72.maxRating !== undefined){let data76 = data72.maxRating;const _errs228 = errors;const _errs229 = errors;let valid38 = false;const _errs230 = errors;if(!(((typeof data76 == "number") && (!(data76 % 1) && !isNaN(data76))) && (isFinite(data76)))){const err137 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid15 = _errs230 === errors;valid38 = valid38 || _valid15;if(!valid38){const _errs232 = errors;if(data76 !== null){const err138 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var _valid15 = _errs232 === errors;valid38 = valid38 || _valid15;}if(!valid38){const err139 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs229;if(vErrors !== null){if(_errs229){vErrors.length = _errs229;}else {vErrors = null;}}}var valid34 = _errs228 === errors;}else {var valid34 = true;}}}}}}else {const err140 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var valid31 = _errs208 === errors;}else {var valid31 = true;}}}}}}}}else {const err141 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var valid4 = _errs192 === errors;}var valid3 = _errs13 === errors;if(!valid3){break;}}}else {const err142 = {instancePath:instancePath+"/data/battles",schemaPath:"#/anyOf/0/properties/data/properties/battles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}}else {const err143 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err144 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs234 = errors;if(errors === _errs234){if(data && typeof data == "object" && !Array.isArray(data)){let missing13;if(((((data.messageId === undefined) && (missing13 = "messageId")) || ((data.commandId === undefined) && (missing13 = "commandId"))) || ((data.status === undefined) && (missing13 = "status"))) || ((data.reason === undefined) && (missing13 = "reason"))){const err145 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data.messageId !== undefined){const _errs236 = errors;if(typeof data.messageId !== "string"){const err146 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var valid39 = _errs236 === errors;}else {var valid39 = true;}if(valid39){if(data.commandId !== undefined){let data78 = data.commandId;const _errs238 = errors;if(typeof data78 !== "string"){const err147 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("lobby/list/response" !== data78){const err148 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid39 = _errs238 === errors;}else {var valid39 = true;}if(valid39){if(data.status !== undefined){let data79 = data.status;const _errs240 = errors;if(typeof data79 !== "string"){const err149 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if("failed" !== data79){const err150 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var valid39 = _errs240 === errors;}else {var valid39 = true;}if(valid39){if(data.reason !== undefined){let data80 = data.reason;const _errs242 = errors;if(typeof data80 !== "string"){const err151 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if("internal_error" !== data80){const err152 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}var valid39 = _errs242 === errors;}else {var valid39 = true;}}}}}}else {const err153 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid0 = _errs234 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs244 = errors;if(errors === _errs244){if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if(((((data.messageId === undefined) && (missing14 = "messageId")) || ((data.commandId === undefined) && (missing14 = "commandId"))) || ((data.status === undefined) && (missing14 = "status"))) || ((data.reason === undefined) && (missing14 = "reason"))){const err154 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data.messageId !== undefined){const _errs246 = errors;if(typeof data.messageId !== "string"){const err155 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var valid40 = _errs246 === errors;}else {var valid40 = true;}if(valid40){if(data.commandId !== undefined){let data82 = data.commandId;const _errs248 = errors;if(typeof data82 !== "string"){const err156 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if("lobby/list/response" !== data82){const err157 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var valid40 = _errs248 === errors;}else {var valid40 = true;}if(valid40){if(data.status !== undefined){let data83 = data.status;const _errs250 = errors;if(typeof data83 !== "string"){const err158 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("failed" !== data83){const err159 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}var valid40 = _errs250 === errors;}else {var valid40 = true;}if(valid40){if(data.reason !== undefined){let data84 = data.reason;const _errs252 = errors;if(typeof data84 !== "string"){const err160 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("unauthorized" !== data84){const err161 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var valid40 = _errs252 === errors;}else {var valid40 = true;}}}}}}else {const err162 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}var _valid0 = _errs244 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs254 = errors;if(errors === _errs254){if(data && typeof data == "object" && !Array.isArray(data)){let missing15;if(((((data.messageId === undefined) && (missing15 = "messageId")) || ((data.commandId === undefined) && (missing15 = "commandId"))) || ((data.status === undefined) && (missing15 = "status"))) || ((data.reason === undefined) && (missing15 = "reason"))){const err163 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing15},message:"must have required property '"+missing15+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data.messageId !== undefined){const _errs256 = errors;if(typeof data.messageId !== "string"){const err164 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}var valid41 = _errs256 === errors;}else {var valid41 = true;}if(valid41){if(data.commandId !== undefined){let data86 = data.commandId;const _errs258 = errors;if(typeof data86 !== "string"){const err165 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("lobby/list/response" !== data86){const err166 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid41 = _errs258 === errors;}else {var valid41 = true;}if(valid41){if(data.status !== undefined){let data87 = data.status;const _errs260 = errors;if(typeof data87 !== "string"){const err167 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("failed" !== data87){const err168 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var valid41 = _errs260 === errors;}else {var valid41 = true;}if(valid41){if(data.reason !== undefined){let data88 = data.reason;const _errs262 = errors;if(typeof data88 !== "string"){const err169 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("invalid_command" !== data88){const err170 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}var valid41 = _errs262 === errors;}else {var valid41 = true;}}}}}}else {const err171 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}var _valid0 = _errs254 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err172 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;validate26.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate26.errors = vErrors;return errors === 0;}exports.lobby_receiveMessage_response = validate27;const schema28 = {"$id":"lobby/receiveMessage/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/receiveMessage/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"examples":[{"userId":27,"message":"Hello lobby!"}],"type":"object","properties":{"userId":{"type":"string"},"message":{"type":"string"}},"required":["userId","message"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/receiveMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/receiveMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/receiveMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/receiveMessage/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/receiveMessage/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/receiveMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.userId === undefined) && (missing1 = "userId")) || ((data3.message === undefined) && (missing1 = "message"))){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.userId !== undefined){const _errs11 = errors;if(typeof data3.userId !== "string"){const err7 = {instancePath:instancePath+"/data/userId",schemaPath:"#/anyOf/0/properties/data/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data3.message !== undefined){const _errs13 = errors;if(typeof data3.message !== "string"){const err8 = {instancePath:instancePath+"/data/message",schemaPath:"#/anyOf/0/properties/data/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}}}}else {const err9 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err10 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs15 = errors;if(errors === _errs15){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err11 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data.messageId !== undefined){const _errs17 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data7 = data.commandId;const _errs19 = errors;if(typeof data7 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("lobby/receiveMessage/response" !== data7){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/receiveMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data8 = data.status;const _errs21 = errors;if(typeof data8 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data8){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data9 = data.reason;const _errs23 = errors;if(typeof data9 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data9){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs15 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs25 = errors;if(errors === _errs25){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err21 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("lobby/receiveMessage/response" !== data11){const err23 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/receiveMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("failed" !== data12){const err25 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("unauthorized" !== data13){const err27 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}}}}}}else {const err28 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid0 = _errs25 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err29 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data.messageId !== undefined){const _errs37 = errors;if(typeof data.messageId !== "string"){const err30 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data15 = data.commandId;const _errs39 = errors;if(typeof data15 !== "string"){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("lobby/receiveMessage/response" !== data15){const err32 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/receiveMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data16 = data.status;const _errs41 = errors;if(typeof data16 !== "string"){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("failed" !== data16){const err34 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data17 = data.reason;const _errs43 = errors;if(typeof data17 !== "string"){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("invalid_command" !== data17){const err36 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}}}}}}else {const err37 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err38 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;validate27.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate27.errors = vErrors;return errors === 0;}exports.lobby_sendMessage_request = validate28;const schema29 = {"$id":"lobby/sendMessage/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/request","type":"string"},"data":{"examples":[{"message":"Hello lobby!"}],"type":"object","properties":{"message":{"maxLength":300,"type":"string"}},"required":["message"]}},"required":["messageId","commandId","data"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/sendMessage/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate28.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate28.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate28.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/sendMessage/request" !== data1){validate28.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.message === undefined) && (missing1 = "message")){validate28.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.message !== undefined){let data3 = data2.message;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func2(data3) > 300){validate28.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/maxLength",keyword:"maxLength",params:{limit: 300},message:"must NOT have more than 300 characters"}];return false;}}else {validate28.errors = [{instancePath:instancePath+"/data/message",schemaPath:"#/properties/data/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}else {validate28.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate28.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate28.errors = vErrors;return errors === 0;}exports.lobby_sendMessage_response = validate29;const schema30 = {"$id":"lobby/sendMessage/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"not_in_lobby","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"muted","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/sendMessage/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate29(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/sendMessage/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/sendMessage/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/sendMessage/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("not_in_lobby" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "not_in_lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/sendMessage/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("muted" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "muted"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/sendMessage/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("internal_error" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("lobby/sendMessage/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("unauthorized" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs49 = errors;if(errors === _errs49){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((data.messageId === undefined) && (missing5 = "messageId")) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err43 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err44 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data20 = data.commandId;const _errs53 = errors;if(typeof data20 !== "string"){const err45 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("lobby/sendMessage/response" !== data20){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/sendMessage/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data21 = data.status;const _errs55 = errors;if(typeof data21 !== "string"){const err47 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("failed" !== data21){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data22 = data.reason;const _errs57 = errors;if(typeof data22 !== "string"){const err49 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("invalid_command" !== data22){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}}else {const err51 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var _valid0 = _errs49 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err52 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;validate29.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate29.errors = vErrors;return errors === 0;}exports.lobby_subscribe_request = validate30;const schema31 = {"$id":"lobby/subscribe/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe/request","type":"string"},"data":{"type":"object","properties":{"battleIds":{"type":"array","items":{"type":"string"}}},"required":["battleIds"]}},"required":["messageId","commandId","data"]};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/subscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate30.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate30.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate30.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/subscribe/request" !== data1){validate30.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.battleIds === undefined) && (missing1 = "battleIds")){validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.battleIds !== undefined){let data3 = data2.battleIds;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid2 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data3[i0] !== "string"){validate30.errors = [{instancePath:instancePath+"/data/battleIds/" + i0,schemaPath:"#/properties/data/properties/battleIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}else {validate30.errors = [{instancePath:instancePath+"/data/battleIds",schemaPath:"#/properties/data/properties/battleIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate30.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}exports.lobby_subscribe_response = validate31;const schema32 = {"$id":"lobby/subscribe/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/subscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/subscribe/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/subscribe/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/subscribe/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/subscribe/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate31.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate31.errors = vErrors;return errors === 0;}exports.lobby_unsubscribe_request = validate32;const schema33 = {"$id":"lobby/unsubscribe/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/request","type":"string"},"data":{"type":"object","properties":{"battleIds":{"type":"array","items":{"type":"string"}}}}},"required":["messageId","commandId","data"]};function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/unsubscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate32.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate32.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate32.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("lobby/unsubscribe/request" !== data1){validate32.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.battleIds !== undefined){let data3 = data2.battleIds;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid2 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data3[i0] !== "string"){validate32.errors = [{instancePath:instancePath+"/data/battleIds/" + i0,schemaPath:"#/properties/data/properties/battleIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}else {validate32.errors = [{instancePath:instancePath+"/data/battleIds",schemaPath:"#/properties/data/properties/battleIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}else {validate32.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate32.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate32.errors = vErrors;return errors === 0;}exports.lobby_unsubscribe_response = validate33;const schema34 = {"$id":"lobby/unsubscribe/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"cannot_unsub_own_battle","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/unsubscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/unsubscribe/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("lobby/unsubscribe/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("cannot_unsub_own_battle" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "cannot_unsub_own_battle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("lobby/unsubscribe/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("lobby/unsubscribe/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("lobby/unsubscribe/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate33.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate33.errors = vErrors;return errors === 0;}exports.lobby_updated_response = validate34;const schema35 = {"$id":"lobby/updated/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/updated/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"battles":{"type":"array","items":{"examples":[{"title":"3v3 | Newbies only","limits":{"minTeamsize":3,"maxTeamsize":3,"minRating":null,"maxRating":25}}],"type":"object","allOf":[{"type":"object","properties":{"battleId":{"type":"string"},"hostId":{"type":"string"},"engine":{"type":"string"},"game":{"type":"string"},"map":{"type":"string"},"startPosType":{"anyOf":[{"description":"Fixed","const":0,"type":"number"},{"description":"Random","const":1,"type":"number"},{"description":"Boxes","const":2,"type":"number"}]},"startAreas":{"type":"object","patternProperties":{"^(0|[1-9][0-9]*)$":{"examples":[{"x":0,"y":0,"width":1,"height":0.3}],"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]}}},"startTime":{"anyOf":[{"description":"Unix time","examples":[1705432698,null],"type":"integer"},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"port":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scriptPassword":{"anyOf":[{"type":"string"},{"type":"null"}]},"modOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"bots":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"},"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":true,"type":"boolean"},"ownerId":{"type":"string"},"aiShortName":{"type":"string"},"name":{"type":"string"},"aiOptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"faction":{"type":"string"}},"required":["playerId","teamId","color","bonus","inGame","isSpectator","isBot","ownerId","aiShortName","name","aiOptions","faction"]}},"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","roles","status","battleStatus"]}}}},{"type":"object","properties":{"title":{"type":"string"},"locked":{"type":"boolean"},"passworded":{"type":"boolean"},"bossIds":{"type":"array","items":{"type":"string"}},"joinQueueIds":{"type":"array","items":{"type":"string"}},"limits":{"type":"object","properties":{"minTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxTeamsize":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minRating":{"anyOf":[{"type":"integer"},{"type":"null"}]},"maxRating":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["minTeamsize","maxTeamsize","minRating","maxRating"]}}}]}}},"required":["battles"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"lobby/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="lobby/updated/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("lobby/updated/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.battles === undefined) && (missing1 = "battles")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.battles !== undefined){let data4 = data3.battles;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err7 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}const _errs15 = errors;if(errors === _errs15){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.battleId !== undefined){const _errs17 = errors;if(typeof data5.battleId !== "string"){const err8 = {instancePath:instancePath+"/data/battles/" + i0+"/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data5.hostId !== undefined){const _errs19 = errors;if(typeof data5.hostId !== "string"){const err9 = {instancePath:instancePath+"/data/battles/" + i0+"/hostId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/hostId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data5.engine !== undefined){const _errs21 = errors;if(typeof data5.engine !== "string"){const err10 = {instancePath:instancePath+"/data/battles/" + i0+"/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/engine/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid5 = _errs21 === errors;}else {var valid5 = true;}if(valid5){if(data5.game !== undefined){const _errs23 = errors;if(typeof data5.game !== "string"){const err11 = {instancePath:instancePath+"/data/battles/" + i0+"/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/game/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid5 = _errs23 === errors;}else {var valid5 = true;}if(valid5){if(data5.map !== undefined){const _errs25 = errors;if(typeof data5.map !== "string"){const err12 = {instancePath:instancePath+"/data/battles/" + i0+"/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/map/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data5.startPosType !== undefined){let data11 = data5.startPosType;const _errs27 = errors;const _errs28 = errors;let valid6 = false;const _errs29 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err13 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(0 !== data11){const err14 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/0/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid1 = _errs29 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs31 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err15 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(1 !== data11){const err16 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/1/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs31 === errors;valid6 = valid6 || _valid1;if(!valid6){const _errs33 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){const err17 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(2 !== data11){const err18 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf/2/const",keyword:"const",params:{allowedValue: 2},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;}}if(!valid6){const err19 = {instancePath:instancePath+"/data/battles/" + i0+"/startPosType",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startPosType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data5.startAreas !== undefined){let data12 = data5.startAreas;const _errs35 = errors;if(errors === _errs35){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){var valid7 = true;for(const key0 in data12){if(pattern0.test(key0)){let data13 = data12[key0];const _errs37 = errors;if(errors === _errs37){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing2;if(((((data13.x === undefined) && (missing2 = "x")) || ((data13.y === undefined) && (missing2 = "y"))) || ((data13.width === undefined) && (missing2 = "width"))) || ((data13.height === undefined) && (missing2 = "height"))){const err20 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data13.x !== undefined){let data14 = data13.x;const _errs39 = errors;if(!((typeof data14 == "number") && (isFinite(data14)))){const err21 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/x",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/x/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid8 = _errs39 === errors;}else {var valid8 = true;}if(valid8){if(data13.y !== undefined){let data15 = data13.y;const _errs41 = errors;if(!((typeof data15 == "number") && (isFinite(data15)))){const err22 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/y",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data13.width !== undefined){let data16 = data13.width;const _errs43 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){const err23 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/width",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data13.height !== undefined){let data17 = data13.height;const _errs45 = errors;if(!((typeof data17 == "number") && (isFinite(data17)))){const err24 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/height",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid8 = _errs45 === errors;}else {var valid8 = true;}}}}}}else {const err25 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/patternProperties/%5E(0%7C%5B1-9%5D%5B0-9%5D*)%24/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var valid7 = _errs37 === errors;if(!valid7){break;}}}}else {const err26 = {instancePath:instancePath+"/data/battles/" + i0+"/startAreas",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startAreas/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data5.startTime !== undefined){let data18 = data5.startTime;const _errs47 = errors;const _errs48 = errors;let valid9 = false;const _errs49 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err27 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs49 === errors;valid9 = valid9 || _valid2;if(!valid9){const _errs51 = errors;if(data18 !== null){const err28 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid2 = _errs51 === errors;valid9 = valid9 || _valid2;}if(!valid9){const err29 = {instancePath:instancePath+"/data/battles/" + i0+"/startTime",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/startTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}}var valid5 = _errs47 === errors;}else {var valid5 = true;}if(valid5){if(data5.ip !== undefined){let data19 = data5.ip;const _errs53 = errors;const _errs54 = errors;let valid10 = false;const _errs55 = errors;if(typeof data19 !== "string"){const err30 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs55 === errors;valid10 = valid10 || _valid3;if(!valid10){const _errs57 = errors;if(data19 !== null){const err31 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid3 = _errs57 === errors;valid10 = valid10 || _valid3;}if(!valid10){const err32 = {instancePath:instancePath+"/data/battles/" + i0+"/ip",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/ip/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs54;if(vErrors !== null){if(_errs54){vErrors.length = _errs54;}else {vErrors = null;}}}var valid5 = _errs53 === errors;}else {var valid5 = true;}if(valid5){if(data5.port !== undefined){let data20 = data5.port;const _errs59 = errors;const _errs60 = errors;let valid11 = false;const _errs61 = errors;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err33 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid4 = _errs61 === errors;valid11 = valid11 || _valid4;if(!valid11){const _errs63 = errors;if(data20 !== null){const err34 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid4 = _errs63 === errors;valid11 = valid11 || _valid4;}if(!valid11){const err35 = {instancePath:instancePath+"/data/battles/" + i0+"/port",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/port/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var valid5 = _errs59 === errors;}else {var valid5 = true;}if(valid5){if(data5.scriptPassword !== undefined){let data21 = data5.scriptPassword;const _errs65 = errors;const _errs66 = errors;let valid12 = false;const _errs67 = errors;if(typeof data21 !== "string"){const err36 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid5 = _errs67 === errors;valid12 = valid12 || _valid5;if(!valid12){const _errs69 = errors;if(data21 !== null){const err37 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid5 = _errs69 === errors;valid12 = valid12 || _valid5;}if(!valid12){const err38 = {instancePath:instancePath+"/data/battles/" + i0+"/scriptPassword",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/scriptPassword/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}}var valid5 = _errs65 === errors;}else {var valid5 = true;}if(valid5){if(data5.modOptions !== undefined){let data22 = data5.modOptions;const _errs71 = errors;if(errors === _errs71){if(!(data22 && typeof data22 == "object" && !Array.isArray(data22))){const err39 = {instancePath:instancePath+"/data/battles/" + i0+"/modOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/modOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid5 = _errs71 === errors;}else {var valid5 = true;}if(valid5){if(data5.bots !== undefined){let data23 = data5.bots;const _errs73 = errors;if(errors === _errs73){if(Array.isArray(data23)){var valid13 = true;const len1 = data23.length;for(let i1=0; i1<len1; i1++){let data24 = data23[i1];const _errs75 = errors;if(errors === _errs75){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing3;if(((((((((((((data24.playerId === undefined) && (missing3 = "playerId")) || ((data24.teamId === undefined) && (missing3 = "teamId"))) || ((data24.color === undefined) && (missing3 = "color"))) || ((data24.bonus === undefined) && (missing3 = "bonus"))) || ((data24.inGame === undefined) && (missing3 = "inGame"))) || ((data24.isSpectator === undefined) && (missing3 = "isSpectator"))) || ((data24.isBot === undefined) && (missing3 = "isBot"))) || ((data24.ownerId === undefined) && (missing3 = "ownerId"))) || ((data24.aiShortName === undefined) && (missing3 = "aiShortName"))) || ((data24.name === undefined) && (missing3 = "name"))) || ((data24.aiOptions === undefined) && (missing3 = "aiOptions"))) || ((data24.faction === undefined) && (missing3 = "faction"))){const err40 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data24.playerId !== undefined){let data25 = data24.playerId;const _errs77 = errors;if(!(((typeof data25 == "number") && (!(data25 % 1) && !isNaN(data25))) && (isFinite(data25)))){const err41 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data24.teamId !== undefined){let data26 = data24.teamId;const _errs79 = errors;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err42 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data24.color !== undefined){const _errs81 = errors;if(typeof data24.color !== "string"){const err43 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid14 = _errs81 === errors;}else {var valid14 = true;}if(valid14){if(data24.bonus !== undefined){let data28 = data24.bonus;const _errs83 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err44 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid14 = _errs83 === errors;}else {var valid14 = true;}if(valid14){if(data24.inGame !== undefined){const _errs85 = errors;if(typeof data24.inGame !== "boolean"){const err45 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs85 === errors;}else {var valid14 = true;}if(valid14){if(data24.isSpectator !== undefined){let data30 = data24.isSpectator;const _errs87 = errors;if(typeof data30 !== "boolean"){const err46 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(false !== data30){const err47 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs87 === errors;}else {var valid14 = true;}if(valid14){if(data24.isBot !== undefined){let data31 = data24.isBot;const _errs89 = errors;if(typeof data31 !== "boolean"){const err48 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(true !== data31){const err49 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/isBot/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid14 = _errs89 === errors;}else {var valid14 = true;}if(valid14){if(data24.ownerId !== undefined){const _errs91 = errors;if(typeof data24.ownerId !== "string"){const err50 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/ownerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/ownerId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid14 = _errs91 === errors;}else {var valid14 = true;}if(valid14){if(data24.aiShortName !== undefined){const _errs93 = errors;if(typeof data24.aiShortName !== "string"){const err51 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiShortName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiShortName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _errs93 === errors;}else {var valid14 = true;}if(valid14){if(data24.name !== undefined){const _errs95 = errors;if(typeof data24.name !== "string"){const err52 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/name",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid14 = _errs95 === errors;}else {var valid14 = true;}if(valid14){if(data24.aiOptions !== undefined){let data35 = data24.aiOptions;const _errs97 = errors;if(errors === _errs97){if(!(data35 && typeof data35 == "object" && !Array.isArray(data35))){const err53 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/aiOptions",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/aiOptions/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var valid14 = _errs97 === errors;}else {var valid14 = true;}if(valid14){if(data24.faction !== undefined){const _errs99 = errors;if(typeof data24.faction !== "string"){const err54 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1+"/faction",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/properties/faction/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid14 = _errs99 === errors;}else {var valid14 = true;}}}}}}}}}}}}}}else {const err55 = {instancePath:instancePath+"/data/battles/" + i0+"/bots/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid13 = _errs75 === errors;if(!valid13){break;}}}else {const err56 = {instancePath:instancePath+"/data/battles/" + i0+"/bots",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/bots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid5 = _errs73 === errors;}else {var valid5 = true;}if(valid5){if(data5.users !== undefined){let data37 = data5.users;const _errs101 = errors;if(errors === _errs101){if(Array.isArray(data37)){var valid15 = true;const len2 = data37.length;for(let i2=0; i2<len2; i2++){let data38 = data37[i2];const _errs103 = errors;if(errors === _errs103){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){let missing4;if((((((((((data38.userId === undefined) && (missing4 = "userId")) || ((data38.username === undefined) && (missing4 = "username"))) || ((data38.displayName === undefined) && (missing4 = "displayName"))) || ((data38.avatarUrl === undefined) && (missing4 = "avatarUrl"))) || ((data38.clanId === undefined) && (missing4 = "clanId"))) || ((data38.partyId === undefined) && (missing4 = "partyId"))) || ((data38.roles === undefined) && (missing4 = "roles"))) || ((data38.status === undefined) && (missing4 = "status"))) || ((data38.battleStatus === undefined) && (missing4 = "battleStatus"))){const err57 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data38.userId !== undefined){const _errs105 = errors;if(typeof data38.userId !== "string"){const err58 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid16 = _errs105 === errors;}else {var valid16 = true;}if(valid16){if(data38.username !== undefined){const _errs107 = errors;if(typeof data38.username !== "string"){const err59 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/username",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs107 === errors;}else {var valid16 = true;}if(valid16){if(data38.displayName !== undefined){const _errs109 = errors;if(typeof data38.displayName !== "string"){const err60 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid16 = _errs109 === errors;}else {var valid16 = true;}if(valid16){if(data38.avatarUrl !== undefined){let data42 = data38.avatarUrl;const _errs111 = errors;const _errs112 = errors;let valid17 = false;const _errs113 = errors;if(errors === _errs113){if(errors === _errs113){if(typeof data42 === "string"){if(!(formats0(data42))){const err61 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs113 === errors;valid17 = valid17 || _valid6;if(!valid17){const _errs115 = errors;if(data42 !== null){const err63 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var _valid6 = _errs115 === errors;valid17 = valid17 || _valid6;}if(!valid17){const err64 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}}var valid16 = _errs111 === errors;}else {var valid16 = true;}if(valid16){if(data38.clanId !== undefined){let data43 = data38.clanId;const _errs117 = errors;const _errs118 = errors;let valid18 = false;const _errs119 = errors;if(typeof data43 !== "string"){const err65 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var _valid7 = _errs119 === errors;valid18 = valid18 || _valid7;if(!valid18){const _errs121 = errors;if(data43 !== null){const err66 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid7 = _errs121 === errors;valid18 = valid18 || _valid7;}if(!valid18){const err67 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}}var valid16 = _errs117 === errors;}else {var valid16 = true;}if(valid16){if(data38.partyId !== undefined){let data44 = data38.partyId;const _errs123 = errors;const _errs124 = errors;let valid19 = false;const _errs125 = errors;if(typeof data44 !== "string"){const err68 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid8 = _errs125 === errors;valid19 = valid19 || _valid8;if(!valid19){const _errs127 = errors;if(data44 !== null){const err69 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var _valid8 = _errs127 === errors;valid19 = valid19 || _valid8;}if(!valid19){const err70 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}}var valid16 = _errs123 === errors;}else {var valid16 = true;}if(valid16){if(data38.roles !== undefined){let data45 = data38.roles;const _errs129 = errors;if(errors === _errs129){if(Array.isArray(data45)){var valid20 = true;const len3 = data45.length;for(let i3=0; i3<len3; i3++){const _errs131 = errors;if(typeof data45[i3] !== "string"){const err71 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/roles/" + i3,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid20 = _errs131 === errors;if(!valid20){break;}}}else {const err72 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/roles",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid16 = _errs129 === errors;}else {var valid16 = true;}if(valid16){if(data38.countryCode !== undefined){const _errs133 = errors;if(typeof data38.countryCode !== "string"){const err73 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid16 = _errs133 === errors;}else {var valid16 = true;}if(valid16){if(data38.status !== undefined){let data48 = data38.status;const _errs135 = errors;const _errs136 = errors;let valid21 = false;const _errs137 = errors;if(typeof data48 !== "string"){const err74 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if("offline" !== data48){const err75 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid9 = _errs137 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs139 = errors;if(typeof data48 !== "string"){const err76 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("menu" !== data48){const err77 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var _valid9 = _errs139 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs141 = errors;if(typeof data48 !== "string"){const err78 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("playing" !== data48){const err79 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid9 = _errs141 === errors;valid21 = valid21 || _valid9;if(!valid21){const _errs143 = errors;if(typeof data48 !== "string"){const err80 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("lobby" !== data48){const err81 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid9 = _errs143 === errors;valid21 = valid21 || _valid9;}}}if(!valid21){const err82 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/status",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}var valid16 = _errs135 === errors;}else {var valid16 = true;}if(valid16){if(data38.battleStatus !== undefined){let data49 = data38.battleStatus;const _errs145 = errors;const _errs146 = errors;let valid22 = false;const _errs147 = errors;const _errs148 = errors;if(errors === _errs148){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing5;if((data49.battleId === undefined) && (missing5 = "battleId")){const err83 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data49.battleId !== undefined){if(typeof data49.battleId !== "string"){const err84 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}}else {const err85 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var valid23 = _errs148 === errors;if(valid23){const _errs152 = errors;const _errs153 = errors;let valid25 = false;const _errs154 = errors;if(!(data49 && typeof data49 == "object" && !Array.isArray(data49))){const err86 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const _errs156 = errors;if(errors === _errs156){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing6;if((((((data49.playerId === undefined) && (missing6 = "playerId")) || ((data49.teamId === undefined) && (missing6 = "teamId"))) || ((data49.color === undefined) && (missing6 = "color"))) || ((data49.bonus === undefined) && (missing6 = "bonus"))) || ((data49.inGame === undefined) && (missing6 = "inGame"))){const err87 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data49.playerId !== undefined){let data51 = data49.playerId;const _errs158 = errors;if(!(((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51))) && (isFinite(data51)))){const err88 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid27 = _errs158 === errors;}else {var valid27 = true;}if(valid27){if(data49.teamId !== undefined){let data52 = data49.teamId;const _errs160 = errors;if(!(((typeof data52 == "number") && (!(data52 % 1) && !isNaN(data52))) && (isFinite(data52)))){const err89 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid27 = _errs160 === errors;}else {var valid27 = true;}if(valid27){if(data49.color !== undefined){const _errs162 = errors;if(typeof data49.color !== "string"){const err90 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid27 = _errs162 === errors;}else {var valid27 = true;}if(valid27){if(data49.bonus !== undefined){let data54 = data49.bonus;const _errs164 = errors;if(!((typeof data54 == "number") && (isFinite(data54)))){const err91 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var valid27 = _errs164 === errors;}else {var valid27 = true;}if(valid27){if(data49.inGame !== undefined){const _errs166 = errors;if(typeof data49.inGame !== "boolean"){const err92 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid27 = _errs166 === errors;}else {var valid27 = true;}}}}}}}else {const err93 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var valid26 = _errs156 === errors;if(valid26){const _errs168 = errors;if(errors === _errs168){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing7;if(((((data49.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data49.isBot === undefined) && (missing7 = "isBot"))) || ((data49.ready === undefined) && (missing7 = "ready"))) || ((data49.sync === undefined) && (missing7 = "sync"))){const err94 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(data49.isSpectator !== undefined){let data56 = data49.isSpectator;const _errs170 = errors;if(typeof data56 !== "boolean"){const err95 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(false !== data56){const err96 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var valid28 = _errs170 === errors;}else {var valid28 = true;}if(valid28){if(data49.isBot !== undefined){let data57 = data49.isBot;const _errs172 = errors;if(typeof data57 !== "boolean"){const err97 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if(false !== data57){const err98 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid28 = _errs172 === errors;}else {var valid28 = true;}if(valid28){if(data49.ready !== undefined){const _errs174 = errors;if(typeof data49.ready !== "boolean"){const err99 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid28 = _errs174 === errors;}else {var valid28 = true;}if(valid28){if(data49.sync !== undefined){let data59 = data49.sync;const _errs176 = errors;if(errors === _errs176){if(data59 && typeof data59 == "object" && !Array.isArray(data59)){let missing8;if((((data59.engine === undefined) && (missing8 = "engine")) || ((data59.game === undefined) && (missing8 = "game"))) || ((data59.map === undefined) && (missing8 = "map"))){const err100 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data59.engine !== undefined){let data60 = data59.engine;const _errs178 = errors;if(!((typeof data60 == "number") && (isFinite(data60)))){const err101 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid29 = _errs178 === errors;}else {var valid29 = true;}if(valid29){if(data59.game !== undefined){let data61 = data59.game;const _errs180 = errors;if(!((typeof data61 == "number") && (isFinite(data61)))){const err102 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid29 = _errs180 === errors;}else {var valid29 = true;}if(valid29){if(data59.map !== undefined){let data62 = data59.map;const _errs182 = errors;if(!((typeof data62 == "number") && (isFinite(data62)))){const err103 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid29 = _errs182 === errors;}else {var valid29 = true;}}}}}else {const err104 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}var valid28 = _errs176 === errors;}else {var valid28 = true;}}}}}}else {const err105 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}var valid26 = _errs168 === errors;}var _valid11 = _errs154 === errors;valid25 = valid25 || _valid11;if(!valid25){const _errs184 = errors;if(errors === _errs184){if(data49 && typeof data49 == "object" && !Array.isArray(data49)){let missing9;if(((data49.isSpectator === undefined) && (missing9 = "isSpectator")) || ((data49.isBot === undefined) && (missing9 = "isBot"))){const err106 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data49.isSpectator !== undefined){let data63 = data49.isSpectator;const _errs186 = errors;if(typeof data63 !== "boolean"){const err107 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(true !== data63){const err108 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}var valid30 = _errs186 === errors;}else {var valid30 = true;}if(valid30){if(data49.isBot !== undefined){let data64 = data49.isBot;const _errs188 = errors;if(typeof data64 !== "boolean"){const err109 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(false !== data64){const err110 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid30 = _errs188 === errors;}else {var valid30 = true;}}}}else {const err111 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}var _valid11 = _errs184 === errors;valid25 = valid25 || _valid11;}if(!valid25){const err112 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}else {errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}}var valid23 = _errs152 === errors;}var _valid10 = _errs147 === errors;valid22 = valid22 || _valid10;if(!valid22){const _errs190 = errors;if(data49 !== null){const err113 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid10 = _errs190 === errors;valid22 = valid22 || _valid10;}if(!valid22){const err114 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}var valid16 = _errs145 === errors;}else {var valid16 = true;}}}}}}}}}}}}else {const err115 = {instancePath:instancePath+"/data/battles/" + i0+"/users/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var valid15 = _errs103 === errors;if(!valid15){break;}}}else {const err116 = {instancePath:instancePath+"/data/battles/" + i0+"/users",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var valid5 = _errs101 === errors;}else {var valid5 = true;}}}}}}}}}}}}}}}else {const err117 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}var valid4 = _errs15 === errors;if(valid4){const _errs192 = errors;if(errors === _errs192){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.title !== undefined){const _errs194 = errors;if(typeof data5.title !== "string"){const err118 = {instancePath:instancePath+"/data/battles/" + i0+"/title",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}var valid31 = _errs194 === errors;}else {var valid31 = true;}if(valid31){if(data5.locked !== undefined){const _errs196 = errors;if(typeof data5.locked !== "boolean"){const err119 = {instancePath:instancePath+"/data/battles/" + i0+"/locked",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/locked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid31 = _errs196 === errors;}else {var valid31 = true;}if(valid31){if(data5.passworded !== undefined){const _errs198 = errors;if(typeof data5.passworded !== "boolean"){const err120 = {instancePath:instancePath+"/data/battles/" + i0+"/passworded",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/passworded/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var valid31 = _errs198 === errors;}else {var valid31 = true;}if(valid31){if(data5.bossIds !== undefined){let data68 = data5.bossIds;const _errs200 = errors;if(errors === _errs200){if(Array.isArray(data68)){var valid32 = true;const len4 = data68.length;for(let i4=0; i4<len4; i4++){const _errs202 = errors;if(typeof data68[i4] !== "string"){const err121 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds/" + i4,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid32 = _errs202 === errors;if(!valid32){break;}}}else {const err122 = {instancePath:instancePath+"/data/battles/" + i0+"/bossIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/bossIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var valid31 = _errs200 === errors;}else {var valid31 = true;}if(valid31){if(data5.joinQueueIds !== undefined){let data70 = data5.joinQueueIds;const _errs204 = errors;if(errors === _errs204){if(Array.isArray(data70)){var valid33 = true;const len5 = data70.length;for(let i5=0; i5<len5; i5++){const _errs206 = errors;if(typeof data70[i5] !== "string"){const err123 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds/" + i5,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid33 = _errs206 === errors;if(!valid33){break;}}}else {const err124 = {instancePath:instancePath+"/data/battles/" + i0+"/joinQueueIds",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/joinQueueIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var valid31 = _errs204 === errors;}else {var valid31 = true;}if(valid31){if(data5.limits !== undefined){let data72 = data5.limits;const _errs208 = errors;if(errors === _errs208){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing10;if(((((data72.minTeamsize === undefined) && (missing10 = "minTeamsize")) || ((data72.maxTeamsize === undefined) && (missing10 = "maxTeamsize"))) || ((data72.minRating === undefined) && (missing10 = "minRating"))) || ((data72.maxRating === undefined) && (missing10 = "maxRating"))){const err125 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data72.minTeamsize !== undefined){let data73 = data72.minTeamsize;const _errs210 = errors;const _errs211 = errors;let valid35 = false;const _errs212 = errors;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err126 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid12 = _errs212 === errors;valid35 = valid35 || _valid12;if(!valid35){const _errs214 = errors;if(data73 !== null){const err127 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid12 = _errs214 === errors;valid35 = valid35 || _valid12;}if(!valid35){const err128 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {errors = _errs211;if(vErrors !== null){if(_errs211){vErrors.length = _errs211;}else {vErrors = null;}}}var valid34 = _errs210 === errors;}else {var valid34 = true;}if(valid34){if(data72.maxTeamsize !== undefined){let data74 = data72.maxTeamsize;const _errs216 = errors;const _errs217 = errors;let valid36 = false;const _errs218 = errors;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err129 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid13 = _errs218 === errors;valid36 = valid36 || _valid13;if(!valid36){const _errs220 = errors;if(data74 !== null){const err130 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var _valid13 = _errs220 === errors;valid36 = valid36 || _valid13;}if(!valid36){const err131 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxTeamsize",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxTeamsize/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}var valid34 = _errs216 === errors;}else {var valid34 = true;}if(valid34){if(data72.minRating !== undefined){let data75 = data72.minRating;const _errs222 = errors;const _errs223 = errors;let valid37 = false;const _errs224 = errors;if(!(((typeof data75 == "number") && (!(data75 % 1) && !isNaN(data75))) && (isFinite(data75)))){const err132 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid14 = _errs224 === errors;valid37 = valid37 || _valid14;if(!valid37){const _errs226 = errors;if(data75 !== null){const err133 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid14 = _errs226 === errors;valid37 = valid37 || _valid14;}if(!valid37){const err134 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/minRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/minRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}var valid34 = _errs222 === errors;}else {var valid34 = true;}if(valid34){if(data72.maxRating !== undefined){let data76 = data72.maxRating;const _errs228 = errors;const _errs229 = errors;let valid38 = false;const _errs230 = errors;if(!(((typeof data76 == "number") && (!(data76 % 1) && !isNaN(data76))) && (isFinite(data76)))){const err135 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var _valid15 = _errs230 === errors;valid38 = valid38 || _valid15;if(!valid38){const _errs232 = errors;if(data76 !== null){const err136 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid15 = _errs232 === errors;valid38 = valid38 || _valid15;}if(!valid38){const err137 = {instancePath:instancePath+"/data/battles/" + i0+"/limits/maxRating",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/properties/maxRating/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs229;if(vErrors !== null){if(_errs229){vErrors.length = _errs229;}else {vErrors = null;}}}var valid34 = _errs228 === errors;}else {var valid34 = true;}}}}}}else {const err138 = {instancePath:instancePath+"/data/battles/" + i0+"/limits",schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/properties/limits/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var valid31 = _errs208 === errors;}else {var valid31 = true;}}}}}}}else {const err139 = {instancePath:instancePath+"/data/battles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/battles/items/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var valid4 = _errs192 === errors;}var valid3 = _errs13 === errors;if(!valid3){break;}}}else {const err140 = {instancePath:instancePath+"/data/battles",schemaPath:"#/anyOf/0/properties/data/properties/battles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}}else {const err141 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err142 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs234 = errors;if(errors === _errs234){if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if(((((data.messageId === undefined) && (missing11 = "messageId")) || ((data.commandId === undefined) && (missing11 = "commandId"))) || ((data.status === undefined) && (missing11 = "status"))) || ((data.reason === undefined) && (missing11 = "reason"))){const err143 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {if(data.messageId !== undefined){const _errs236 = errors;if(typeof data.messageId !== "string"){const err144 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid39 = _errs236 === errors;}else {var valid39 = true;}if(valid39){if(data.commandId !== undefined){let data78 = data.commandId;const _errs238 = errors;if(typeof data78 !== "string"){const err145 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("lobby/updated/response" !== data78){const err146 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var valid39 = _errs238 === errors;}else {var valid39 = true;}if(valid39){if(data.status !== undefined){let data79 = data.status;const _errs240 = errors;if(typeof data79 !== "string"){const err147 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("failed" !== data79){const err148 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid39 = _errs240 === errors;}else {var valid39 = true;}if(valid39){if(data.reason !== undefined){let data80 = data.reason;const _errs242 = errors;if(typeof data80 !== "string"){const err149 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if("internal_error" !== data80){const err150 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var valid39 = _errs242 === errors;}else {var valid39 = true;}}}}}}else {const err151 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid0 = _errs234 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs244 = errors;if(errors === _errs244){if(data && typeof data == "object" && !Array.isArray(data)){let missing12;if(((((data.messageId === undefined) && (missing12 = "messageId")) || ((data.commandId === undefined) && (missing12 = "commandId"))) || ((data.status === undefined) && (missing12 = "status"))) || ((data.reason === undefined) && (missing12 = "reason"))){const err152 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {if(data.messageId !== undefined){const _errs246 = errors;if(typeof data.messageId !== "string"){const err153 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var valid40 = _errs246 === errors;}else {var valid40 = true;}if(valid40){if(data.commandId !== undefined){let data82 = data.commandId;const _errs248 = errors;if(typeof data82 !== "string"){const err154 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("lobby/updated/response" !== data82){const err155 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var valid40 = _errs248 === errors;}else {var valid40 = true;}if(valid40){if(data.status !== undefined){let data83 = data.status;const _errs250 = errors;if(typeof data83 !== "string"){const err156 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if("failed" !== data83){const err157 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var valid40 = _errs250 === errors;}else {var valid40 = true;}if(valid40){if(data.reason !== undefined){let data84 = data.reason;const _errs252 = errors;if(typeof data84 !== "string"){const err158 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("unauthorized" !== data84){const err159 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}var valid40 = _errs252 === errors;}else {var valid40 = true;}}}}}}else {const err160 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var _valid0 = _errs244 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs254 = errors;if(errors === _errs254){if(data && typeof data == "object" && !Array.isArray(data)){let missing13;if(((((data.messageId === undefined) && (missing13 = "messageId")) || ((data.commandId === undefined) && (missing13 = "commandId"))) || ((data.status === undefined) && (missing13 = "status"))) || ((data.reason === undefined) && (missing13 = "reason"))){const err161 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {if(data.messageId !== undefined){const _errs256 = errors;if(typeof data.messageId !== "string"){const err162 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var valid41 = _errs256 === errors;}else {var valid41 = true;}if(valid41){if(data.commandId !== undefined){let data86 = data.commandId;const _errs258 = errors;if(typeof data86 !== "string"){const err163 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("lobby/updated/response" !== data86){const err164 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "lobby/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}var valid41 = _errs258 === errors;}else {var valid41 = true;}if(valid41){if(data.status !== undefined){let data87 = data.status;const _errs260 = errors;if(typeof data87 !== "string"){const err165 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("failed" !== data87){const err166 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid41 = _errs260 === errors;}else {var valid41 = true;}if(valid41){if(data.reason !== undefined){let data88 = data.reason;const _errs262 = errors;if(typeof data88 !== "string"){const err167 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("invalid_command" !== data88){const err168 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var valid41 = _errs262 === errors;}else {var valid41 = true;}}}}}}else {const err169 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var _valid0 = _errs254 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err170 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;validate34.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate34.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_request = validate35;const schema36 = {"$id":"matchmaking/cancel/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/request","type":"string"}},"required":["messageId","commandId"]};function validate35(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/cancel/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate35.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate35.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate35.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/cancel/request" !== data1){validate35.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate35.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate35.errors = vErrors;return errors === 0;}exports.matchmaking_cancel_response = validate36;const schema37 = {"$id":"matchmaking/cancel/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"not_queued","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/cancel/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/cancel/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/cancel/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("matchmaking/cancel/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("not_queued" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "not_queued"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("matchmaking/cancel/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("matchmaking/cancel/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("matchmaking/cancel/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/cancel/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate36.errors = vErrors;return errors === 0;}exports.matchmaking_found_response = validate37;const schema38 = {"$id":"matchmaking/found/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"queueId":{"type":"string"}},"required":["queueId"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/found/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/found/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/found/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.queueId === undefined) && (missing1 = "queueId")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.queueId !== undefined){if(typeof data3.queueId !== "string"){const err7 = {instancePath:instancePath+"/data/queueId",schemaPath:"#/anyOf/0/properties/data/properties/queueId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err9 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs13 = errors;if(errors === _errs13){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err10 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err11 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err12 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("matchmaking/found/response" !== data6){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err14 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("failed" !== data7){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("internal_error" !== data8){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}}}}}}else {const err18 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err19 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data.messageId !== undefined){const _errs25 = errors;if(typeof data.messageId !== "string"){const err20 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data10 = data.commandId;const _errs27 = errors;if(typeof data10 !== "string"){const err21 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("matchmaking/found/response" !== data10){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data11 = data.status;const _errs29 = errors;if(typeof data11 !== "string"){const err23 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("failed" !== data11){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data12 = data.reason;const _errs31 = errors;if(typeof data12 !== "string"){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("unauthorized" !== data12){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}}}}}}else {const err27 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs33 = errors;if(errors === _errs33){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err28 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data.messageId !== undefined){const _errs35 = errors;if(typeof data.messageId !== "string"){const err29 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data14 = data.commandId;const _errs37 = errors;if(typeof data14 !== "string"){const err30 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("matchmaking/found/response" !== data14){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/found/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data15 = data.status;const _errs39 = errors;if(typeof data15 !== "string"){const err32 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("failed" !== data15){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs41 = errors;if(typeof data16 !== "string"){const err34 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("invalid_command" !== data16){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}}}}}}else {const err36 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid0 = _errs33 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate37.errors = vErrors;return errors === 0;}exports.matchmaking_list_request = validate38;const schema39 = {"$id":"matchmaking/list/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list/request","type":"string"}},"required":["messageId","commandId"]};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/list/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate38.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate38.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/list/request" !== data1){validate38.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}exports.matchmaking_list_response = validate39;const schema40 = {"$id":"matchmaking/list/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"examples":[{"playlists":[{"id":"1v1","name":"Duel","ranked":true,"teamSize":1},{"id":"2v2","name":"2v2","ranked":true,"teamSize":2}]}],"type":"object","properties":{"playlists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"ranked":{"type":"boolean"},"teamSize":{"type":"integer"}},"required":["id","name","ranked","teamSize"]}}},"required":["playlists"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/list/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/list/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/list/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.playlists === undefined) && (missing1 = "playlists")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.playlists !== undefined){let data4 = data3.playlists;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if(((((data5.id === undefined) && (missing2 = "id")) || ((data5.name === undefined) && (missing2 = "name"))) || ((data5.ranked === undefined) && (missing2 = "ranked"))) || ((data5.teamSize === undefined) && (missing2 = "teamSize"))){const err7 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data5.id !== undefined){const _errs15 = errors;if(typeof data5.id !== "string"){const err8 = {instancePath:instancePath+"/data/playlists/" + i0+"/id",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data5.name !== undefined){const _errs17 = errors;if(typeof data5.name !== "string"){const err9 = {instancePath:instancePath+"/data/playlists/" + i0+"/name",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data5.ranked !== undefined){const _errs19 = errors;if(typeof data5.ranked !== "boolean"){const err10 = {instancePath:instancePath+"/data/playlists/" + i0+"/ranked",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/ranked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data5.teamSize !== undefined){let data9 = data5.teamSize;const _errs21 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err11 = {instancePath:instancePath+"/data/playlists/" + i0+"/teamSize",schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/properties/teamSize/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}}}}}}else {const err12 = {instancePath:instancePath+"/data/playlists/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/playlists/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid3 = _errs13 === errors;if(!valid3){break;}}}else {const err13 = {instancePath:instancePath+"/data/playlists",schemaPath:"#/anyOf/0/properties/data/properties/playlists/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}}else {const err14 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs25 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid5 = _errs25 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data11 = data.commandId;const _errs27 = errors;if(typeof data11 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("matchmaking/list/response" !== data11){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data12 = data.status;const _errs29 = errors;if(typeof data12 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data12){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid5 = _errs29 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data13 = data.reason;const _errs31 = errors;if(typeof data13 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data13){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid5 = _errs31 === errors;}else {var valid5 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs33 = errors;if(errors === _errs33){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs35 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid6 = _errs35 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data15 = data.commandId;const _errs37 = errors;if(typeof data15 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("matchmaking/list/response" !== data15){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid6 = _errs37 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data16 = data.status;const _errs39 = errors;if(typeof data16 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data16){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid6 = _errs39 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data17 = data.reason;const _errs41 = errors;if(typeof data17 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data17){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid6 = _errs41 === errors;}else {var valid6 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs33 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs43 = errors;if(errors === _errs43){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((data.messageId === undefined) && (missing5 = "messageId")) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs45 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid7 = _errs45 === errors;}else {var valid7 = true;}if(valid7){if(data.commandId !== undefined){let data19 = data.commandId;const _errs47 = errors;if(typeof data19 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("matchmaking/list/response" !== data19){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/list/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid7 = _errs47 === errors;}else {var valid7 = true;}if(valid7){if(data.status !== undefined){let data20 = data.status;const _errs49 = errors;if(typeof data20 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data20){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid7 = _errs49 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data21 = data.reason;const _errs51 = errors;if(typeof data21 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data21){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid7 = _errs51 === errors;}else {var valid7 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs43 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate39.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate39.errors = vErrors;return errors === 0;}exports.matchmaking_lost_response = validate40;const schema41 = {"$id":"matchmaking/lost/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/lost/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/lost/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/lost/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("matchmaking/lost/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("matchmaking/lost/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("matchmaking/lost/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/lost/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate40.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate40.errors = vErrors;return errors === 0;}exports.matchmaking_queue_request = validate41;const schema42 = {"$id":"matchmaking/queue/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/request","type":"string"},"data":{"type":"object","properties":{"queues":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["queues"]}},"required":["messageId","commandId","data"]};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queue/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate41.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate41.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate41.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/queue/request" !== data1){validate41.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.queues === undefined) && (missing1 = "queues")){validate41.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.queues !== undefined){let data3 = data2.queues;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){if(data3.length < 1){validate41.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid2 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data3[i0] !== "string"){validate41.errors = [{instancePath:instancePath+"/data/queues/" + i0,schemaPath:"#/properties/data/properties/queues/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}}else {validate41.errors = [{instancePath:instancePath+"/data/queues",schemaPath:"#/properties/data/properties/queues/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate41.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate41.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate41.errors = vErrors;return errors === 0;}exports.matchmaking_queue_response = validate42;const schema43 = {"$id":"matchmaking/queue/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_queue_specified","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"already_ingame","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queue/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queue/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/queue/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("matchmaking/queue/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("invalid_queue_specified" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_queue_specified"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("matchmaking/queue/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("already_ingame" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "already_ingame"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("matchmaking/queue/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("internal_error" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("matchmaking/queue/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("unauthorized" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs49 = errors;if(errors === _errs49){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((((data.messageId === undefined) && (missing5 = "messageId")) || ((data.commandId === undefined) && (missing5 = "commandId"))) || ((data.status === undefined) && (missing5 = "status"))) || ((data.reason === undefined) && (missing5 = "reason"))){const err43 = {instancePath,schemaPath:"#/anyOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data.messageId !== undefined){const _errs51 = errors;if(typeof data.messageId !== "string"){const err44 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/5/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid6 = _errs51 === errors;}else {var valid6 = true;}if(valid6){if(data.commandId !== undefined){let data20 = data.commandId;const _errs53 = errors;if(typeof data20 !== "string"){const err45 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("matchmaking/queue/response" !== data20){const err46 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/5/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queue/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid6 = _errs53 === errors;}else {var valid6 = true;}if(valid6){if(data.status !== undefined){let data21 = data.status;const _errs55 = errors;if(typeof data21 !== "string"){const err47 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if("failed" !== data21){const err48 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/5/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid6 = _errs55 === errors;}else {var valid6 = true;}if(valid6){if(data.reason !== undefined){let data22 = data.reason;const _errs57 = errors;if(typeof data22 !== "string"){const err49 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("invalid_command" !== data22){const err50 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/5/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid6 = _errs57 === errors;}else {var valid6 = true;}}}}}}else {const err51 = {instancePath,schemaPath:"#/anyOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var _valid0 = _errs49 === errors;valid0 = valid0 || _valid0;}}}}}if(!valid0){const err52 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;validate42.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate42.errors = vErrors;return errors === 0;}exports.matchmaking_queueUpdate_response = validate43;const schema44 = {"$id":"matchmaking/queueUpdate/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"playersQueued":{"type":"string"}},"required":["playersQueued"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/queueUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate43(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/queueUpdate/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/queueUpdate/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.playersQueued === undefined) && (missing1 = "playersQueued")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.playersQueued !== undefined){if(typeof data3.playersQueued !== "string"){const err7 = {instancePath:instancePath+"/data/playersQueued",schemaPath:"#/anyOf/0/properties/data/properties/playersQueued/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err9 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs13 = errors;if(errors === _errs13){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err10 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err11 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err12 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("matchmaking/queueUpdate/response" !== data6){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err14 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("failed" !== data7){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("internal_error" !== data8){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}}}}}}else {const err18 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err19 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data.messageId !== undefined){const _errs25 = errors;if(typeof data.messageId !== "string"){const err20 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data10 = data.commandId;const _errs27 = errors;if(typeof data10 !== "string"){const err21 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("matchmaking/queueUpdate/response" !== data10){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data11 = data.status;const _errs29 = errors;if(typeof data11 !== "string"){const err23 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("failed" !== data11){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data12 = data.reason;const _errs31 = errors;if(typeof data12 !== "string"){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("unauthorized" !== data12){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}}}}}}else {const err27 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs33 = errors;if(errors === _errs33){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err28 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data.messageId !== undefined){const _errs35 = errors;if(typeof data.messageId !== "string"){const err29 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data14 = data.commandId;const _errs37 = errors;if(typeof data14 !== "string"){const err30 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("matchmaking/queueUpdate/response" !== data14){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/queueUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data15 = data.status;const _errs39 = errors;if(typeof data15 !== "string"){const err32 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("failed" !== data15){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs41 = errors;if(typeof data16 !== "string"){const err34 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("invalid_command" !== data16){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}}}}}}else {const err36 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid0 = _errs33 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate43.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate43.errors = vErrors;return errors === 0;}exports.matchmaking_ready_request = validate44;const schema45 = {"$id":"matchmaking/ready/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/request","type":"string"}},"required":["messageId","commandId"]};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/ready/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate44.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate44.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate44.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("matchmaking/ready/request" !== data1){validate44.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate44.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate44.errors = vErrors;return errors === 0;}exports.matchmaking_ready_response = validate45;const schema46 = {"$id":"matchmaking/ready/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"no_match","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/ready/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate45(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/ready/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/ready/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("matchmaking/ready/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("no_match" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "no_match"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("matchmaking/ready/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("matchmaking/ready/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("matchmaking/ready/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/ready/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate45.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate45.errors = vErrors;return errors === 0;}exports.matchmaking_readyUpdate_response = validate46;const schema47 = {"$id":"matchmaking/readyUpdate/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"readyMax":{"type":"integer"},"readyCurrent":{"type":"integer"}},"required":["readyMax","readyCurrent"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"matchmaking/readyUpdate/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="matchmaking/readyUpdate/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("matchmaking/readyUpdate/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if(((data3.readyMax === undefined) && (missing1 = "readyMax")) || ((data3.readyCurrent === undefined) && (missing1 = "readyCurrent"))){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.readyMax !== undefined){let data4 = data3.readyMax;const _errs11 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err7 = {instancePath:instancePath+"/data/readyMax",schemaPath:"#/anyOf/0/properties/data/properties/readyMax/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data3.readyCurrent !== undefined){let data5 = data3.readyCurrent;const _errs13 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err8 = {instancePath:instancePath+"/data/readyCurrent",schemaPath:"#/anyOf/0/properties/data/properties/readyCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}}}}else {const err9 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err10 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs15 = errors;if(errors === _errs15){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err11 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data.messageId !== undefined){const _errs17 = errors;if(typeof data.messageId !== "string"){const err12 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data7 = data.commandId;const _errs19 = errors;if(typeof data7 !== "string"){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("matchmaking/readyUpdate/response" !== data7){const err14 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data8 = data.status;const _errs21 = errors;if(typeof data8 !== "string"){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("failed" !== data8){const err16 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data9 = data.reason;const _errs23 = errors;if(typeof data9 !== "string"){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("internal_error" !== data9){const err18 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs15 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs25 = errors;if(errors === _errs25){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err20 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data.messageId !== undefined){const _errs27 = errors;if(typeof data.messageId !== "string"){const err21 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data11 = data.commandId;const _errs29 = errors;if(typeof data11 !== "string"){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("matchmaking/readyUpdate/response" !== data11){const err23 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data12 = data.status;const _errs31 = errors;if(typeof data12 !== "string"){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("failed" !== data12){const err25 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data13 = data.reason;const _errs33 = errors;if(typeof data13 !== "string"){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("unauthorized" !== data13){const err27 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}}}}}}else {const err28 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid0 = _errs25 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err29 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {if(data.messageId !== undefined){const _errs37 = errors;if(typeof data.messageId !== "string"){const err30 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data15 = data.commandId;const _errs39 = errors;if(typeof data15 !== "string"){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("matchmaking/readyUpdate/response" !== data15){const err32 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "matchmaking/readyUpdate/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data16 = data.status;const _errs41 = errors;if(typeof data16 !== "string"){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("failed" !== data16){const err34 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data17 = data.reason;const _errs43 = errors;if(typeof data17 !== "string"){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("invalid_command" !== data17){const err36 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}}}}}}else {const err37 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}var _valid0 = _errs35 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err38 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;validate46.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate46.errors = vErrors;return errors === 0;}exports.system_connected_response = validate47;const schema48 = {"$id":"system/connected/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/connected/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]},"friendIds":{"type":"array","items":{"type":"string"}},"outgoingFriendRequestIds":{"type":"array","items":{"type":"string"}},"incomingFriendRequestIds":{"type":"array","items":{"type":"string"}},"ignoreIds":{"type":"array","items":{"type":"string"}}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","roles","status","battleStatus","friendIds","outgoingFriendRequestIds","incomingFriendRequestIds","ignoreIds"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/connected/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/connected/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/connected/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/connected/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("system/connected/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/connected/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((((((((((((data3.userId === undefined) && (missing1 = "userId")) || ((data3.username === undefined) && (missing1 = "username"))) || ((data3.displayName === undefined) && (missing1 = "displayName"))) || ((data3.avatarUrl === undefined) && (missing1 = "avatarUrl"))) || ((data3.clanId === undefined) && (missing1 = "clanId"))) || ((data3.partyId === undefined) && (missing1 = "partyId"))) || ((data3.roles === undefined) && (missing1 = "roles"))) || ((data3.status === undefined) && (missing1 = "status"))) || ((data3.battleStatus === undefined) && (missing1 = "battleStatus"))) || ((data3.friendIds === undefined) && (missing1 = "friendIds"))) || ((data3.outgoingFriendRequestIds === undefined) && (missing1 = "outgoingFriendRequestIds"))) || ((data3.incomingFriendRequestIds === undefined) && (missing1 = "incomingFriendRequestIds"))) || ((data3.ignoreIds === undefined) && (missing1 = "ignoreIds"))){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.userId !== undefined){const _errs11 = errors;if(typeof data3.userId !== "string"){const err7 = {instancePath:instancePath+"/data/userId",schemaPath:"#/anyOf/0/properties/data/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data3.username !== undefined){const _errs13 = errors;if(typeof data3.username !== "string"){const err8 = {instancePath:instancePath+"/data/username",schemaPath:"#/anyOf/0/properties/data/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data3.displayName !== undefined){const _errs15 = errors;if(typeof data3.displayName !== "string"){const err9 = {instancePath:instancePath+"/data/displayName",schemaPath:"#/anyOf/0/properties/data/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data3.avatarUrl !== undefined){let data7 = data3.avatarUrl;const _errs17 = errors;const _errs18 = errors;let valid3 = false;const _errs19 = errors;if(errors === _errs19){if(errors === _errs19){if(typeof data7 === "string"){if(!(formats0(data7))){const err10 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid1 = _errs19 === errors;valid3 = valid3 || _valid1;if(!valid3){const _errs21 = errors;if(data7 !== null){const err12 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid1 = _errs21 === errors;valid3 = valid3 || _valid1;}if(!valid3){const err13 = {instancePath:instancePath+"/data/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data3.clanId !== undefined){let data8 = data3.clanId;const _errs23 = errors;const _errs24 = errors;let valid4 = false;const _errs25 = errors;if(typeof data8 !== "string"){const err14 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/anyOf/0/properties/data/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs25 === errors;valid4 = valid4 || _valid2;if(!valid4){const _errs27 = errors;if(data8 !== null){const err15 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/anyOf/0/properties/data/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs27 === errors;valid4 = valid4 || _valid2;}if(!valid4){const err16 = {instancePath:instancePath+"/data/clanId",schemaPath:"#/anyOf/0/properties/data/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid2 = _errs23 === errors;}else {var valid2 = true;}if(valid2){if(data3.partyId !== undefined){let data9 = data3.partyId;const _errs29 = errors;const _errs30 = errors;let valid5 = false;const _errs31 = errors;if(typeof data9 !== "string"){const err17 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/anyOf/0/properties/data/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid3 = _errs31 === errors;valid5 = valid5 || _valid3;if(!valid5){const _errs33 = errors;if(data9 !== null){const err18 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/anyOf/0/properties/data/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid3 = _errs33 === errors;valid5 = valid5 || _valid3;}if(!valid5){const err19 = {instancePath:instancePath+"/data/partyId",schemaPath:"#/anyOf/0/properties/data/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid2 = _errs29 === errors;}else {var valid2 = true;}if(valid2){if(data3.roles !== undefined){let data10 = data3.roles;const _errs35 = errors;if(errors === _errs35){if(Array.isArray(data10)){var valid6 = true;const len0 = data10.length;for(let i0=0; i0<len0; i0++){const _errs37 = errors;if(typeof data10[i0] !== "string"){const err20 = {instancePath:instancePath+"/data/roles/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid6 = _errs37 === errors;if(!valid6){break;}}}else {const err21 = {instancePath:instancePath+"/data/roles",schemaPath:"#/anyOf/0/properties/data/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var valid2 = _errs35 === errors;}else {var valid2 = true;}if(valid2){if(data3.countryCode !== undefined){const _errs39 = errors;if(typeof data3.countryCode !== "string"){const err22 = {instancePath:instancePath+"/data/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid2 = _errs39 === errors;}else {var valid2 = true;}if(valid2){if(data3.status !== undefined){let data13 = data3.status;const _errs41 = errors;const _errs42 = errors;let valid7 = false;const _errs43 = errors;if(typeof data13 !== "string"){const err23 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("offline" !== data13){const err24 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid4 = _errs43 === errors;valid7 = valid7 || _valid4;if(!valid7){const _errs45 = errors;if(typeof data13 !== "string"){const err25 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("menu" !== data13){const err26 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid4 = _errs45 === errors;valid7 = valid7 || _valid4;if(!valid7){const _errs47 = errors;if(typeof data13 !== "string"){const err27 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("playing" !== data13){const err28 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid4 = _errs47 === errors;valid7 = valid7 || _valid4;if(!valid7){const _errs49 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("lobby" !== data13){const err30 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid4 = _errs49 === errors;valid7 = valid7 || _valid4;}}}if(!valid7){const err31 = {instancePath:instancePath+"/data/status",schemaPath:"#/anyOf/0/properties/data/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid2 = _errs41 === errors;}else {var valid2 = true;}if(valid2){if(data3.battleStatus !== undefined){let data14 = data3.battleStatus;const _errs51 = errors;const _errs52 = errors;let valid8 = false;const _errs53 = errors;const _errs54 = errors;if(errors === _errs54){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing2;if((data14.battleId === undefined) && (missing2 = "battleId")){const err32 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data14.battleId !== undefined){if(typeof data14.battleId !== "string"){const err33 = {instancePath:instancePath+"/data/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}}else {const err34 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid9 = _errs54 === errors;if(valid9){const _errs58 = errors;const _errs59 = errors;let valid11 = false;const _errs60 = errors;if(!(data14 && typeof data14 == "object" && !Array.isArray(data14))){const err35 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}const _errs62 = errors;if(errors === _errs62){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing3;if((((((data14.playerId === undefined) && (missing3 = "playerId")) || ((data14.teamId === undefined) && (missing3 = "teamId"))) || ((data14.color === undefined) && (missing3 = "color"))) || ((data14.bonus === undefined) && (missing3 = "bonus"))) || ((data14.inGame === undefined) && (missing3 = "inGame"))){const err36 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {if(data14.playerId !== undefined){let data16 = data14.playerId;const _errs64 = errors;if(!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))){const err37 = {instancePath:instancePath+"/data/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid13 = _errs64 === errors;}else {var valid13 = true;}if(valid13){if(data14.teamId !== undefined){let data17 = data14.teamId;const _errs66 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err38 = {instancePath:instancePath+"/data/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid13 = _errs66 === errors;}else {var valid13 = true;}if(valid13){if(data14.color !== undefined){const _errs68 = errors;if(typeof data14.color !== "string"){const err39 = {instancePath:instancePath+"/data/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid13 = _errs68 === errors;}else {var valid13 = true;}if(valid13){if(data14.bonus !== undefined){let data19 = data14.bonus;const _errs70 = errors;if(!((typeof data19 == "number") && (isFinite(data19)))){const err40 = {instancePath:instancePath+"/data/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid13 = _errs70 === errors;}else {var valid13 = true;}if(valid13){if(data14.inGame !== undefined){const _errs72 = errors;if(typeof data14.inGame !== "boolean"){const err41 = {instancePath:instancePath+"/data/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid13 = _errs72 === errors;}else {var valid13 = true;}}}}}}}else {const err42 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var valid12 = _errs62 === errors;if(valid12){const _errs74 = errors;if(errors === _errs74){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing4;if(((((data14.isSpectator === undefined) && (missing4 = "isSpectator")) || ((data14.isBot === undefined) && (missing4 = "isBot"))) || ((data14.ready === undefined) && (missing4 = "ready"))) || ((data14.sync === undefined) && (missing4 = "sync"))){const err43 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data14.isSpectator !== undefined){let data21 = data14.isSpectator;const _errs76 = errors;if(typeof data21 !== "boolean"){const err44 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(false !== data21){const err45 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs76 === errors;}else {var valid14 = true;}if(valid14){if(data14.isBot !== undefined){let data22 = data14.isBot;const _errs78 = errors;if(typeof data22 !== "boolean"){const err46 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(false !== data22){const err47 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs78 === errors;}else {var valid14 = true;}if(valid14){if(data14.ready !== undefined){const _errs80 = errors;if(typeof data14.ready !== "boolean"){const err48 = {instancePath:instancePath+"/data/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid14 = _errs80 === errors;}else {var valid14 = true;}if(valid14){if(data14.sync !== undefined){let data24 = data14.sync;const _errs82 = errors;if(errors === _errs82){if(data24 && typeof data24 == "object" && !Array.isArray(data24)){let missing5;if((((data24.engine === undefined) && (missing5 = "engine")) || ((data24.game === undefined) && (missing5 = "game"))) || ((data24.map === undefined) && (missing5 = "map"))){const err49 = {instancePath:instancePath+"/data/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data24.engine !== undefined){let data25 = data24.engine;const _errs84 = errors;if(!((typeof data25 == "number") && (isFinite(data25)))){const err50 = {instancePath:instancePath+"/data/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid15 = _errs84 === errors;}else {var valid15 = true;}if(valid15){if(data24.game !== undefined){let data26 = data24.game;const _errs86 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){const err51 = {instancePath:instancePath+"/data/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid15 = _errs86 === errors;}else {var valid15 = true;}if(valid15){if(data24.map !== undefined){let data27 = data24.map;const _errs88 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){const err52 = {instancePath:instancePath+"/data/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid15 = _errs88 === errors;}else {var valid15 = true;}}}}}else {const err53 = {instancePath:instancePath+"/data/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var valid14 = _errs82 === errors;}else {var valid14 = true;}}}}}}else {const err54 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid12 = _errs74 === errors;}var _valid6 = _errs60 === errors;valid11 = valid11 || _valid6;if(!valid11){const _errs90 = errors;if(errors === _errs90){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing6;if(((data14.isSpectator === undefined) && (missing6 = "isSpectator")) || ((data14.isBot === undefined) && (missing6 = "isBot"))){const err55 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(data14.isSpectator !== undefined){let data28 = data14.isSpectator;const _errs92 = errors;if(typeof data28 !== "boolean"){const err56 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(true !== data28){const err57 = {instancePath:instancePath+"/data/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid16 = _errs92 === errors;}else {var valid16 = true;}if(valid16){if(data14.isBot !== undefined){let data29 = data14.isBot;const _errs94 = errors;if(typeof data29 !== "boolean"){const err58 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(false !== data29){const err59 = {instancePath:instancePath+"/data/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid16 = _errs94 === errors;}else {var valid16 = true;}}}}else {const err60 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}var _valid6 = _errs90 === errors;valid11 = valid11 || _valid6;}if(!valid11){const err61 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var valid9 = _errs58 === errors;}var _valid5 = _errs53 === errors;valid8 = valid8 || _valid5;if(!valid8){const _errs96 = errors;if(data14 !== null){const err62 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var _valid5 = _errs96 === errors;valid8 = valid8 || _valid5;}if(!valid8){const err63 = {instancePath:instancePath+"/data/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid2 = _errs51 === errors;}else {var valid2 = true;}if(valid2){if(data3.friendIds !== undefined){let data30 = data3.friendIds;const _errs98 = errors;if(errors === _errs98){if(Array.isArray(data30)){var valid17 = true;const len1 = data30.length;for(let i1=0; i1<len1; i1++){const _errs100 = errors;if(typeof data30[i1] !== "string"){const err64 = {instancePath:instancePath+"/data/friendIds/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/friendIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid17 = _errs100 === errors;if(!valid17){break;}}}else {const err65 = {instancePath:instancePath+"/data/friendIds",schemaPath:"#/anyOf/0/properties/data/properties/friendIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid2 = _errs98 === errors;}else {var valid2 = true;}if(valid2){if(data3.outgoingFriendRequestIds !== undefined){let data32 = data3.outgoingFriendRequestIds;const _errs102 = errors;if(errors === _errs102){if(Array.isArray(data32)){var valid18 = true;const len2 = data32.length;for(let i2=0; i2<len2; i2++){const _errs104 = errors;if(typeof data32[i2] !== "string"){const err66 = {instancePath:instancePath+"/data/outgoingFriendRequestIds/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/outgoingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid18 = _errs104 === errors;if(!valid18){break;}}}else {const err67 = {instancePath:instancePath+"/data/outgoingFriendRequestIds",schemaPath:"#/anyOf/0/properties/data/properties/outgoingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var valid2 = _errs102 === errors;}else {var valid2 = true;}if(valid2){if(data3.incomingFriendRequestIds !== undefined){let data34 = data3.incomingFriendRequestIds;const _errs106 = errors;if(errors === _errs106){if(Array.isArray(data34)){var valid19 = true;const len3 = data34.length;for(let i3=0; i3<len3; i3++){const _errs108 = errors;if(typeof data34[i3] !== "string"){const err68 = {instancePath:instancePath+"/data/incomingFriendRequestIds/" + i3,schemaPath:"#/anyOf/0/properties/data/properties/incomingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid19 = _errs108 === errors;if(!valid19){break;}}}else {const err69 = {instancePath:instancePath+"/data/incomingFriendRequestIds",schemaPath:"#/anyOf/0/properties/data/properties/incomingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var valid2 = _errs106 === errors;}else {var valid2 = true;}if(valid2){if(data3.ignoreIds !== undefined){let data36 = data3.ignoreIds;const _errs110 = errors;if(errors === _errs110){if(Array.isArray(data36)){var valid20 = true;const len4 = data36.length;for(let i4=0; i4<len4; i4++){const _errs112 = errors;if(typeof data36[i4] !== "string"){const err70 = {instancePath:instancePath+"/data/ignoreIds/" + i4,schemaPath:"#/anyOf/0/properties/data/properties/ignoreIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid20 = _errs112 === errors;if(!valid20){break;}}}else {const err71 = {instancePath:instancePath+"/data/ignoreIds",schemaPath:"#/anyOf/0/properties/data/properties/ignoreIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var valid2 = _errs110 === errors;}else {var valid2 = true;}}}}}}}}}}}}}}}}else {const err72 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err73 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs114 = errors;if(errors === _errs114){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((((data.messageId === undefined) && (missing7 = "messageId")) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err74 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data.messageId !== undefined){const _errs116 = errors;if(typeof data.messageId !== "string"){const err75 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var valid21 = _errs116 === errors;}else {var valid21 = true;}if(valid21){if(data.commandId !== undefined){let data39 = data.commandId;const _errs118 = errors;if(typeof data39 !== "string"){const err76 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("system/connected/response" !== data39){const err77 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/connected/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid21 = _errs118 === errors;}else {var valid21 = true;}if(valid21){if(data.status !== undefined){let data40 = data.status;const _errs120 = errors;if(typeof data40 !== "string"){const err78 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("failed" !== data40){const err79 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var valid21 = _errs120 === errors;}else {var valid21 = true;}if(valid21){if(data.reason !== undefined){let data41 = data.reason;const _errs122 = errors;if(typeof data41 !== "string"){const err80 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("internal_error" !== data41){const err81 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid21 = _errs122 === errors;}else {var valid21 = true;}}}}}}else {const err82 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var _valid0 = _errs114 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs124 = errors;if(errors === _errs124){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((((data.messageId === undefined) && (missing8 = "messageId")) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err83 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {if(data.messageId !== undefined){const _errs126 = errors;if(typeof data.messageId !== "string"){const err84 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var valid22 = _errs126 === errors;}else {var valid22 = true;}if(valid22){if(data.commandId !== undefined){let data43 = data.commandId;const _errs128 = errors;if(typeof data43 !== "string"){const err85 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if("system/connected/response" !== data43){const err86 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "system/connected/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var valid22 = _errs128 === errors;}else {var valid22 = true;}if(valid22){if(data.status !== undefined){let data44 = data.status;const _errs130 = errors;if(typeof data44 !== "string"){const err87 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("failed" !== data44){const err88 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid22 = _errs130 === errors;}else {var valid22 = true;}if(valid22){if(data.reason !== undefined){let data45 = data.reason;const _errs132 = errors;if(typeof data45 !== "string"){const err89 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("unauthorized" !== data45){const err90 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid22 = _errs132 === errors;}else {var valid22 = true;}}}}}}else {const err91 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid0 = _errs124 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs134 = errors;if(errors === _errs134){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if(((((data.messageId === undefined) && (missing9 = "messageId")) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err92 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data.messageId !== undefined){const _errs136 = errors;if(typeof data.messageId !== "string"){const err93 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid23 = _errs136 === errors;}else {var valid23 = true;}if(valid23){if(data.commandId !== undefined){let data47 = data.commandId;const _errs138 = errors;if(typeof data47 !== "string"){const err94 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("system/connected/response" !== data47){const err95 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "system/connected/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid23 = _errs138 === errors;}else {var valid23 = true;}if(valid23){if(data.status !== undefined){let data48 = data.status;const _errs140 = errors;if(typeof data48 !== "string"){const err96 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("failed" !== data48){const err97 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid23 = _errs140 === errors;}else {var valid23 = true;}if(valid23){if(data.reason !== undefined){let data49 = data.reason;const _errs142 = errors;if(typeof data49 !== "string"){const err98 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if("invalid_command" !== data49){const err99 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid23 = _errs142 === errors;}else {var valid23 = true;}}}}}}else {const err100 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}var _valid0 = _errs134 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err101 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;validate47.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate47.errors = vErrors;return errors === 0;}exports.system_disconnect_request = validate48;const schema49 = {"$id":"system/disconnect/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/disconnect/request","type":"string"},"data":{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]}},"required":["messageId","commandId"]};function validate48(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/disconnect/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate48.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate48.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate48.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("system/disconnect/request" !== data1){validate48.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.reason === undefined) && (missing1 = "reason")){validate48.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.reason !== undefined){if(typeof data2.reason !== "string"){validate48.errors = [{instancePath:instancePath+"/data/reason",schemaPath:"#/properties/data/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate48.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate48.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate48.errors = vErrors;return errors === 0;}exports.system_disconnect_response = validate49;const schema50 = {"$id":"system/disconnect/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/disconnect/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/disconnect/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/disconnect/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/disconnect/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/disconnect/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("system/disconnect/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("system/disconnect/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("internal_error" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("system/disconnect/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unauthorized" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("system/disconnect/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "system/disconnect/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("invalid_command" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err34 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;validate49.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate49.errors = vErrors;return errors === 0;}exports.system_serverStats_request = validate50;const schema51 = {"$id":"system/serverStats/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/serverStats/request","type":"string"}},"required":["messageId","commandId"]};function validate50(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/serverStats/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))){validate50.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate50.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate50.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("system/serverStats/request" !== data1){validate50.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate50.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate50.errors = vErrors;return errors === 0;}exports.system_serverStats_response = validate51;const schema52 = {"$id":"system/serverStats/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/serverStats/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"userCount":{"type":"integer"}},"required":["userCount"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/serverStats/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/serverStats/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"system/serverStats/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate51(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="system/serverStats/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("system/serverStats/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.userCount === undefined) && (missing1 = "userCount")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.userCount !== undefined){let data4 = data3.userCount;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err7 = {instancePath:instancePath+"/data/userCount",schemaPath:"#/anyOf/0/properties/data/properties/userCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err9 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs13 = errors;if(errors === _errs13){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err10 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {if(data.messageId !== undefined){const _errs15 = errors;if(typeof data.messageId !== "string"){const err11 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data6 = data.commandId;const _errs17 = errors;if(typeof data6 !== "string"){const err12 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("system/serverStats/response" !== data6){const err13 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data7 = data.status;const _errs19 = errors;if(typeof data7 !== "string"){const err14 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("failed" !== data7){const err15 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data8 = data.reason;const _errs21 = errors;if(typeof data8 !== "string"){const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("internal_error" !== data8){const err17 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}}}}}}else {const err18 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs23 = errors;if(errors === _errs23){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err19 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data.messageId !== undefined){const _errs25 = errors;if(typeof data.messageId !== "string"){const err20 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid4 = _errs25 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data10 = data.commandId;const _errs27 = errors;if(typeof data10 !== "string"){const err21 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("system/serverStats/response" !== data10){const err22 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data11 = data.status;const _errs29 = errors;if(typeof data11 !== "string"){const err23 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("failed" !== data11){const err24 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid4 = _errs29 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data12 = data.reason;const _errs31 = errors;if(typeof data12 !== "string"){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("unauthorized" !== data12){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}}}}}}else {const err27 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs23 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs33 = errors;if(errors === _errs33){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err28 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data.messageId !== undefined){const _errs35 = errors;if(typeof data.messageId !== "string"){const err29 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid5 = _errs35 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data14 = data.commandId;const _errs37 = errors;if(typeof data14 !== "string"){const err30 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("system/serverStats/response" !== data14){const err31 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "system/serverStats/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data15 = data.status;const _errs39 = errors;if(typeof data15 !== "string"){const err32 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("failed" !== data15){const err33 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data16 = data.reason;const _errs41 = errors;if(typeof data16 !== "string"){const err34 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("invalid_command" !== data16){const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}}}}}}else {const err36 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var _valid0 = _errs33 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;validate51.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate51.errors = vErrors;return errors === 0;}exports.user_subscribe_request = validate52;const schema53 = {"$id":"user/subscribe/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/subscribe/request","type":"string"},"data":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]}},"required":["messageId","commandId","data"]};function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/subscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate52.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate52.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate52.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("user/subscribe/request" !== data1){validate52.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.userIds === undefined) && (missing1 = "userIds")){validate52.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.userIds !== undefined){let data3 = data2.userIds;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid2 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data3[i0] !== "string"){validate52.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"#/properties/data/properties/userIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}else {validate52.errors = [{instancePath:instancePath+"/data/userIds",schemaPath:"#/properties/data/properties/userIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate52.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate52.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate52.errors = vErrors;return errors === 0;}exports.user_subscribe_response = validate53;const schema54 = {"$id":"user/subscribe/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/subscribe/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]}},"required":["userId","username","displayName","avatarUrl","clanId","partyId","roles","status","battleStatus"]}}},"required":["users"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/subscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/subscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("user/subscribe/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.users === undefined) && (missing1 = "users")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.users !== undefined){let data4 = data3.users;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if((((((((((data5.userId === undefined) && (missing2 = "userId")) || ((data5.username === undefined) && (missing2 = "username"))) || ((data5.displayName === undefined) && (missing2 = "displayName"))) || ((data5.avatarUrl === undefined) && (missing2 = "avatarUrl"))) || ((data5.clanId === undefined) && (missing2 = "clanId"))) || ((data5.partyId === undefined) && (missing2 = "partyId"))) || ((data5.roles === undefined) && (missing2 = "roles"))) || ((data5.status === undefined) && (missing2 = "status"))) || ((data5.battleStatus === undefined) && (missing2 = "battleStatus"))){const err7 = {instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/users/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data5.userId !== undefined){const _errs15 = errors;if(typeof data5.userId !== "string"){const err8 = {instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data5.username !== undefined){const _errs17 = errors;if(typeof data5.username !== "string"){const err9 = {instancePath:instancePath+"/data/users/" + i0+"/username",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data5.displayName !== undefined){const _errs19 = errors;if(typeof data5.displayName !== "string"){const err10 = {instancePath:instancePath+"/data/users/" + i0+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data5.avatarUrl !== undefined){let data9 = data5.avatarUrl;const _errs21 = errors;const _errs22 = errors;let valid5 = false;const _errs23 = errors;if(errors === _errs23){if(errors === _errs23){if(typeof data9 === "string"){if(!(formats0(data9))){const err11 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}var _valid1 = _errs23 === errors;valid5 = valid5 || _valid1;if(!valid5){const _errs25 = errors;if(data9 !== null){const err13 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs25 === errors;valid5 = valid5 || _valid1;}if(!valid5){const err14 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data5.clanId !== undefined){let data10 = data5.clanId;const _errs27 = errors;const _errs28 = errors;let valid6 = false;const _errs29 = errors;if(typeof data10 !== "string"){const err15 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs29 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs31 = errors;if(data10 !== null){const err16 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid2 = _errs31 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err17 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data5.partyId !== undefined){let data11 = data5.partyId;const _errs33 = errors;const _errs34 = errors;let valid7 = false;const _errs35 = errors;if(typeof data11 !== "string"){const err18 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid3 = _errs35 === errors;valid7 = valid7 || _valid3;if(!valid7){const _errs37 = errors;if(data11 !== null){const err19 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid3 = _errs37 === errors;valid7 = valid7 || _valid3;}if(!valid7){const err20 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data5.roles !== undefined){let data12 = data5.roles;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data12)){var valid8 = true;const len1 = data12.length;for(let i1=0; i1<len1; i1++){const _errs41 = errors;if(typeof data12[i1] !== "string"){const err21 = {instancePath:instancePath+"/data/users/" + i0+"/roles/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid8 = _errs41 === errors;if(!valid8){break;}}}else {const err22 = {instancePath:instancePath+"/data/users/" + i0+"/roles",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data5.countryCode !== undefined){const _errs43 = errors;if(typeof data5.countryCode !== "string"){const err23 = {instancePath:instancePath+"/data/users/" + i0+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data5.status !== undefined){let data15 = data5.status;const _errs45 = errors;const _errs46 = errors;let valid9 = false;const _errs47 = errors;if(typeof data15 !== "string"){const err24 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("offline" !== data15){const err25 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid4 = _errs47 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs49 = errors;if(typeof data15 !== "string"){const err26 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("menu" !== data15){const err27 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid4 = _errs49 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs51 = errors;if(typeof data15 !== "string"){const err28 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("playing" !== data15){const err29 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid4 = _errs51 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs53 = errors;if(typeof data15 !== "string"){const err30 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("lobby" !== data15){const err31 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;}}}if(!valid9){const err32 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid4 = _errs45 === errors;}else {var valid4 = true;}if(valid4){if(data5.battleStatus !== undefined){let data16 = data5.battleStatus;const _errs55 = errors;const _errs56 = errors;let valid10 = false;const _errs57 = errors;const _errs58 = errors;if(errors === _errs58){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing3;if((data16.battleId === undefined) && (missing3 = "battleId")){const err33 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {if(data16.battleId !== undefined){if(typeof data16.battleId !== "string"){const err34 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}}else {const err35 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}var valid11 = _errs58 === errors;if(valid11){const _errs62 = errors;const _errs63 = errors;let valid13 = false;const _errs64 = errors;if(!(data16 && typeof data16 == "object" && !Array.isArray(data16))){const err36 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}const _errs66 = errors;if(errors === _errs66){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing4;if((((((data16.playerId === undefined) && (missing4 = "playerId")) || ((data16.teamId === undefined) && (missing4 = "teamId"))) || ((data16.color === undefined) && (missing4 = "color"))) || ((data16.bonus === undefined) && (missing4 = "bonus"))) || ((data16.inGame === undefined) && (missing4 = "inGame"))){const err37 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {if(data16.playerId !== undefined){let data18 = data16.playerId;const _errs68 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err38 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid15 = _errs68 === errors;}else {var valid15 = true;}if(valid15){if(data16.teamId !== undefined){let data19 = data16.teamId;const _errs70 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err39 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid15 = _errs70 === errors;}else {var valid15 = true;}if(valid15){if(data16.color !== undefined){const _errs72 = errors;if(typeof data16.color !== "string"){const err40 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid15 = _errs72 === errors;}else {var valid15 = true;}if(valid15){if(data16.bonus !== undefined){let data21 = data16.bonus;const _errs74 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){const err41 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid15 = _errs74 === errors;}else {var valid15 = true;}if(valid15){if(data16.inGame !== undefined){const _errs76 = errors;if(typeof data16.inGame !== "boolean"){const err42 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid15 = _errs76 === errors;}else {var valid15 = true;}}}}}}}else {const err43 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}var valid14 = _errs66 === errors;if(valid14){const _errs78 = errors;if(errors === _errs78){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing5;if(((((data16.isSpectator === undefined) && (missing5 = "isSpectator")) || ((data16.isBot === undefined) && (missing5 = "isBot"))) || ((data16.ready === undefined) && (missing5 = "ready"))) || ((data16.sync === undefined) && (missing5 = "sync"))){const err44 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {if(data16.isSpectator !== undefined){let data23 = data16.isSpectator;const _errs80 = errors;if(typeof data23 !== "boolean"){const err45 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(false !== data23){const err46 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid16 = _errs80 === errors;}else {var valid16 = true;}if(valid16){if(data16.isBot !== undefined){let data24 = data16.isBot;const _errs82 = errors;if(typeof data24 !== "boolean"){const err47 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(false !== data24){const err48 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid16 = _errs82 === errors;}else {var valid16 = true;}if(valid16){if(data16.ready !== undefined){const _errs84 = errors;if(typeof data16.ready !== "boolean"){const err49 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid16 = _errs84 === errors;}else {var valid16 = true;}if(valid16){if(data16.sync !== undefined){let data26 = data16.sync;const _errs86 = errors;if(errors === _errs86){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing6;if((((data26.engine === undefined) && (missing6 = "engine")) || ((data26.game === undefined) && (missing6 = "game"))) || ((data26.map === undefined) && (missing6 = "map"))){const err50 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data26.engine !== undefined){let data27 = data26.engine;const _errs88 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){const err51 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid17 = _errs88 === errors;}else {var valid17 = true;}if(valid17){if(data26.game !== undefined){let data28 = data26.game;const _errs90 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err52 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid17 = _errs90 === errors;}else {var valid17 = true;}if(valid17){if(data26.map !== undefined){let data29 = data26.map;const _errs92 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err53 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid17 = _errs92 === errors;}else {var valid17 = true;}}}}}else {const err54 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid16 = _errs86 === errors;}else {var valid16 = true;}}}}}}else {const err55 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid14 = _errs78 === errors;}var _valid6 = _errs64 === errors;valid13 = valid13 || _valid6;if(!valid13){const _errs94 = errors;if(errors === _errs94){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing7;if(((data16.isSpectator === undefined) && (missing7 = "isSpectator")) || ((data16.isBot === undefined) && (missing7 = "isBot"))){const err56 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}else {if(data16.isSpectator !== undefined){let data30 = data16.isSpectator;const _errs96 = errors;if(typeof data30 !== "boolean"){const err57 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(true !== data30){const err58 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid18 = _errs96 === errors;}else {var valid18 = true;}if(valid18){if(data16.isBot !== undefined){let data31 = data16.isBot;const _errs98 = errors;if(typeof data31 !== "boolean"){const err59 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(false !== data31){const err60 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}}}}else {const err61 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var _valid6 = _errs94 === errors;valid13 = valid13 || _valid6;}if(!valid13){const err62 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}}var valid11 = _errs62 === errors;}var _valid5 = _errs57 === errors;valid10 = valid10 || _valid5;if(!valid10){const _errs100 = errors;if(data16 !== null){const err63 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var _valid5 = _errs100 === errors;valid10 = valid10 || _valid5;}if(!valid10){const err64 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}var valid4 = _errs55 === errors;}else {var valid4 = true;}}}}}}}}}}}}else {const err65 = {instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid3 = _errs13 === errors;if(!valid3){break;}}}else {const err66 = {instancePath:instancePath+"/data/users",schemaPath:"#/anyOf/0/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}}else {const err67 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err68 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs102 = errors;if(errors === _errs102){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((((data.messageId === undefined) && (missing8 = "messageId")) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err69 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data.messageId !== undefined){const _errs104 = errors;if(typeof data.messageId !== "string"){const err70 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid19 = _errs104 === errors;}else {var valid19 = true;}if(valid19){if(data.commandId !== undefined){let data33 = data.commandId;const _errs106 = errors;if(typeof data33 !== "string"){const err71 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("user/subscribe/response" !== data33){const err72 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid19 = _errs106 === errors;}else {var valid19 = true;}if(valid19){if(data.status !== undefined){let data34 = data.status;const _errs108 = errors;if(typeof data34 !== "string"){const err73 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("failed" !== data34){const err74 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var valid19 = _errs108 === errors;}else {var valid19 = true;}if(valid19){if(data.reason !== undefined){let data35 = data.reason;const _errs110 = errors;if(typeof data35 !== "string"){const err75 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if("internal_error" !== data35){const err76 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}var valid19 = _errs110 === errors;}else {var valid19 = true;}}}}}}else {const err77 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}var _valid0 = _errs102 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs112 = errors;if(errors === _errs112){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if(((((data.messageId === undefined) && (missing9 = "messageId")) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err78 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data.messageId !== undefined){const _errs114 = errors;if(typeof data.messageId !== "string"){const err79 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var valid20 = _errs114 === errors;}else {var valid20 = true;}if(valid20){if(data.commandId !== undefined){let data37 = data.commandId;const _errs116 = errors;if(typeof data37 !== "string"){const err80 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("user/subscribe/response" !== data37){const err81 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid20 = _errs116 === errors;}else {var valid20 = true;}if(valid20){if(data.status !== undefined){let data38 = data.status;const _errs118 = errors;if(typeof data38 !== "string"){const err82 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("failed" !== data38){const err83 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid20 = _errs118 === errors;}else {var valid20 = true;}if(valid20){if(data.reason !== undefined){let data39 = data.reason;const _errs120 = errors;if(typeof data39 !== "string"){const err84 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("unauthorized" !== data39){const err85 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var valid20 = _errs120 === errors;}else {var valid20 = true;}}}}}}else {const err86 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid0 = _errs112 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs122 = errors;if(errors === _errs122){if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if(((((data.messageId === undefined) && (missing10 = "messageId")) || ((data.commandId === undefined) && (missing10 = "commandId"))) || ((data.status === undefined) && (missing10 = "status"))) || ((data.reason === undefined) && (missing10 = "reason"))){const err87 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data.messageId !== undefined){const _errs124 = errors;if(typeof data.messageId !== "string"){const err88 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid21 = _errs124 === errors;}else {var valid21 = true;}if(valid21){if(data.commandId !== undefined){let data41 = data.commandId;const _errs126 = errors;if(typeof data41 !== "string"){const err89 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("user/subscribe/response" !== data41){const err90 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "user/subscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid21 = _errs126 === errors;}else {var valid21 = true;}if(valid21){if(data.status !== undefined){let data42 = data.status;const _errs128 = errors;if(typeof data42 !== "string"){const err91 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("failed" !== data42){const err92 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid21 = _errs128 === errors;}else {var valid21 = true;}if(valid21){if(data.reason !== undefined){let data43 = data.reason;const _errs130 = errors;if(typeof data43 !== "string"){const err93 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("invalid_command" !== data43){const err94 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var valid21 = _errs130 === errors;}else {var valid21 = true;}}}}}}else {const err95 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var _valid0 = _errs122 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err96 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate53.errors = vErrors;return errors === 0;}exports.user_unsubscribe_request = validate54;const schema55 = {"$id":"user/unsubscribe/request","roles":[],"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/request","type":"string"},"data":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]}},"required":["messageId","commandId","data"]};function validate54(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/unsubscribe/request" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.data === undefined) && (missing0 = "data"))){validate54.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.messageId !== undefined){const _errs1 = errors;if(typeof data.messageId !== "string"){validate54.errors = [{instancePath:instancePath+"/messageId",schemaPath:"#/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.commandId !== undefined){let data1 = data.commandId;const _errs3 = errors;if(typeof data1 !== "string"){validate54.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("user/unsubscribe/request" !== data1){validate54.errors = [{instancePath:instancePath+"/commandId",schemaPath:"#/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/request"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.data !== undefined){let data2 = data.data;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.userIds === undefined) && (missing1 = "userIds")){validate54.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.userIds !== undefined){let data3 = data2.userIds;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid2 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(typeof data3[i0] !== "string"){validate54.errors = [{instancePath:instancePath+"/data/userIds/" + i0,schemaPath:"#/properties/data/properties/userIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;if(!valid2){break;}}}else {validate54.errors = [{instancePath:instancePath+"/data/userIds",schemaPath:"#/properties/data/properties/userIds/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate54.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate54.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate54.errors = vErrors;return errors === 0;}exports.user_unsubscribe_response = validate55;const schema56 = {"$id":"user/unsubscribe/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/response","type":"string"},"status":{"const":"success","type":"string"}},"required":["messageId","commandId","status"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"cannot_unsub_own_user","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/unsubscribe/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate55(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/unsubscribe/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("user/unsubscribe/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}}}}}else {const err6 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.messageId === undefined) && (missing1 = "messageId")) || ((data.commandId === undefined) && (missing1 = "commandId"))) || ((data.status === undefined) && (missing1 = "status"))) || ((data.reason === undefined) && (missing1 = "reason"))){const err7 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data.messageId !== undefined){const _errs11 = errors;if(typeof data.messageId !== "string"){const err8 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid2 = _errs11 === errors;}else {var valid2 = true;}if(valid2){if(data.commandId !== undefined){let data4 = data.commandId;const _errs13 = errors;if(typeof data4 !== "string"){const err9 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("user/unsubscribe/response" !== data4){const err10 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid2 = _errs13 === errors;}else {var valid2 = true;}if(valid2){if(data.status !== undefined){let data5 = data.status;const _errs15 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("failed" !== data5){const err12 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){let data6 = data.reason;const _errs17 = errors;if(typeof data6 !== "string"){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("cannot_unsub_own_user" !== data6){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "cannot_unsub_own_user"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid2 = _errs17 === errors;}else {var valid2 = true;}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs9 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((data.messageId === undefined) && (missing2 = "messageId")) || ((data.commandId === undefined) && (missing2 = "commandId"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.reason === undefined) && (missing2 = "reason"))){const err16 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.messageId !== undefined){const _errs21 = errors;if(typeof data.messageId !== "string"){const err17 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data.commandId !== undefined){let data8 = data.commandId;const _errs23 = errors;if(typeof data8 !== "string"){const err18 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("user/unsubscribe/response" !== data8){const err19 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid3 = _errs23 === errors;}else {var valid3 = true;}if(valid3){if(data.status !== undefined){let data9 = data.status;const _errs25 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("failed" !== data9){const err21 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid3 = _errs25 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data10 = data.reason;const _errs27 = errors;if(typeof data10 !== "string"){const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("internal_error" !== data10){const err23 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid3 = _errs27 === errors;}else {var valid3 = true;}}}}}}else {const err24 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var _valid0 = _errs19 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs29 = errors;if(errors === _errs29){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((((data.messageId === undefined) && (missing3 = "messageId")) || ((data.commandId === undefined) && (missing3 = "commandId"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.reason === undefined) && (missing3 = "reason"))){const err25 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {if(data.messageId !== undefined){const _errs31 = errors;if(typeof data.messageId !== "string"){const err26 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid4 = _errs31 === errors;}else {var valid4 = true;}if(valid4){if(data.commandId !== undefined){let data12 = data.commandId;const _errs33 = errors;if(typeof data12 !== "string"){const err27 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("user/unsubscribe/response" !== data12){const err28 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data.status !== undefined){let data13 = data.status;const _errs35 = errors;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("failed" !== data13){const err30 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data.reason !== undefined){let data14 = data.reason;const _errs37 = errors;if(typeof data14 !== "string"){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("unauthorized" !== data14){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid4 = _errs37 === errors;}else {var valid4 = true;}}}}}}else {const err33 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid0 = _errs29 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs39 = errors;if(errors === _errs39){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((((data.messageId === undefined) && (missing4 = "messageId")) || ((data.commandId === undefined) && (missing4 = "commandId"))) || ((data.status === undefined) && (missing4 = "status"))) || ((data.reason === undefined) && (missing4 = "reason"))){const err34 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {if(data.messageId !== undefined){const _errs41 = errors;if(typeof data.messageId !== "string"){const err35 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/4/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data.commandId !== undefined){let data16 = data.commandId;const _errs43 = errors;if(typeof data16 !== "string"){const err36 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("user/unsubscribe/response" !== data16){const err37 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/4/properties/commandId/const",keyword:"const",params:{allowedValue: "user/unsubscribe/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid5 = _errs43 === errors;}else {var valid5 = true;}if(valid5){if(data.status !== undefined){let data17 = data.status;const _errs45 = errors;if(typeof data17 !== "string"){const err38 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if("failed" !== data17){const err39 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/4/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid5 = _errs45 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data18 = data.reason;const _errs47 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("invalid_command" !== data18){const err41 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/4/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid5 = _errs47 === errors;}else {var valid5 = true;}}}}}}else {const err42 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var _valid0 = _errs39 === errors;valid0 = valid0 || _valid0;}}}}if(!valid0){const err43 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;validate55.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate55.errors = vErrors;return errors === 0;}exports.user_updated_response = validate56;const schema57 = {"$id":"user/updated/response","roles":[],"anyOf":[{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/updated/response","type":"string"},"status":{"const":"success","type":"string"},"data":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"format":"uri","type":"string"},{"type":"null"}]},"clanId":{"anyOf":[{"type":"string"},{"type":"null"}]},"partyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"roles":{"type":"array","items":{"type":"string"}},"countryCode":{"type":"string"},"status":{"anyOf":[{"const":"offline","type":"string"},{"const":"menu","type":"string"},{"const":"playing","type":"string"},{"const":"lobby","type":"string"}]},"battleStatus":{"anyOf":[{"allOf":[{"type":"object","properties":{"battleId":{"type":"string"}},"required":["battleId"]},{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"playerId":{"type":"integer"},"teamId":{"type":"integer"},"color":{"type":"string"},"bonus":{"type":"number"},"inGame":{"type":"boolean"}},"required":["playerId","teamId","color","bonus","inGame"]},{"type":"object","properties":{"isSpectator":{"const":false,"type":"boolean"},"isBot":{"const":false,"type":"boolean"},"ready":{"type":"boolean"},"sync":{"type":"object","properties":{"engine":{"type":"number"},"game":{"type":"number"},"map":{"type":"number"}},"required":["engine","game","map"]}},"required":["isSpectator","isBot","ready","sync"]}]},{"type":"object","properties":{"isSpectator":{"const":true,"type":"boolean"},"isBot":{"const":false,"type":"boolean"}},"required":["isSpectator","isBot"]}]}]},{"type":"null"}]},"friendIds":{"type":"array","items":{"type":"string"}},"outgoingFriendRequestIds":{"type":"array","items":{"type":"string"}},"incomingFriendRequestIds":{"type":"array","items":{"type":"string"}},"ignoreIds":{"type":"array","items":{"type":"string"}}}}}},"required":["users"]}},"required":["messageId","commandId","status","data"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"internal_error","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"unauthorized","type":"string"}},"required":["messageId","commandId","status","reason"]},{"type":"object","properties":{"messageId":{"type":"string"},"commandId":{"const":"user/updated/response","type":"string"},"status":{"const":"failed","type":"string"},"reason":{"const":"invalid_command","type":"string"}},"required":["messageId","commandId","status","reason"]}]};function validate56(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="user/updated/response" */;let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.messageId === undefined) && (missing0 = "messageId")) || ((data.commandId === undefined) && (missing0 = "commandId"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.data === undefined) && (missing0 = "data"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.messageId !== undefined){const _errs3 = errors;if(typeof data.messageId !== "string"){const err1 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/0/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.commandId !== undefined){let data1 = data.commandId;const _errs5 = errors;if(typeof data1 !== "string"){const err2 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("user/updated/response" !== data1){const err3 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/0/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.status !== undefined){let data2 = data.status;const _errs7 = errors;if(typeof data2 !== "string"){const err4 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("success" !== data2){const err5 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/0/properties/status/const",keyword:"const",params:{allowedValue: "success"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.data !== undefined){let data3 = data.data;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((data3.users === undefined) && (missing1 = "users")){const err6 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data3.users !== undefined){let data4 = data3.users;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid3 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(errors === _errs13){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.userId !== undefined){const _errs15 = errors;if(typeof data5.userId !== "string"){const err7 = {instancePath:instancePath+"/data/users/" + i0+"/userId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/userId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data5.username !== undefined){const _errs17 = errors;if(typeof data5.username !== "string"){const err8 = {instancePath:instancePath+"/data/users/" + i0+"/username",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/username/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data5.displayName !== undefined){const _errs19 = errors;if(typeof data5.displayName !== "string"){const err9 = {instancePath:instancePath+"/data/users/" + i0+"/displayName",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/displayName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid4 = _errs19 === errors;}else {var valid4 = true;}if(valid4){if(data5.avatarUrl !== undefined){let data9 = data5.avatarUrl;const _errs21 = errors;const _errs22 = errors;let valid5 = false;const _errs23 = errors;if(errors === _errs23){if(errors === _errs23){if(typeof data9 === "string"){if(!(formats0(data9))){const err10 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid1 = _errs23 === errors;valid5 = valid5 || _valid1;if(!valid5){const _errs25 = errors;if(data9 !== null){const err12 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid1 = _errs25 === errors;valid5 = valid5 || _valid1;}if(!valid5){const err13 = {instancePath:instancePath+"/data/users/" + i0+"/avatarUrl",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/avatarUrl/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data5.clanId !== undefined){let data10 = data5.clanId;const _errs27 = errors;const _errs28 = errors;let valid6 = false;const _errs29 = errors;if(typeof data10 !== "string"){const err14 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs29 === errors;valid6 = valid6 || _valid2;if(!valid6){const _errs31 = errors;if(data10 !== null){const err15 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs31 === errors;valid6 = valid6 || _valid2;}if(!valid6){const err16 = {instancePath:instancePath+"/data/users/" + i0+"/clanId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/clanId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data5.partyId !== undefined){let data11 = data5.partyId;const _errs33 = errors;const _errs34 = errors;let valid7 = false;const _errs35 = errors;if(typeof data11 !== "string"){const err17 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid3 = _errs35 === errors;valid7 = valid7 || _valid3;if(!valid7){const _errs37 = errors;if(data11 !== null){const err18 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid3 = _errs37 === errors;valid7 = valid7 || _valid3;}if(!valid7){const err19 = {instancePath:instancePath+"/data/users/" + i0+"/partyId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/partyId/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid4 = _errs33 === errors;}else {var valid4 = true;}if(valid4){if(data5.roles !== undefined){let data12 = data5.roles;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data12)){var valid8 = true;const len1 = data12.length;for(let i1=0; i1<len1; i1++){const _errs41 = errors;if(typeof data12[i1] !== "string"){const err20 = {instancePath:instancePath+"/data/users/" + i0+"/roles/" + i1,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid8 = _errs41 === errors;if(!valid8){break;}}}else {const err21 = {instancePath:instancePath+"/data/users/" + i0+"/roles",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/roles/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var valid4 = _errs39 === errors;}else {var valid4 = true;}if(valid4){if(data5.countryCode !== undefined){const _errs43 = errors;if(typeof data5.countryCode !== "string"){const err22 = {instancePath:instancePath+"/data/users/" + i0+"/countryCode",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/countryCode/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid4 = _errs43 === errors;}else {var valid4 = true;}if(valid4){if(data5.status !== undefined){let data15 = data5.status;const _errs45 = errors;const _errs46 = errors;let valid9 = false;const _errs47 = errors;if(typeof data15 !== "string"){const err23 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("offline" !== data15){const err24 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/0/const",keyword:"const",params:{allowedValue: "offline"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid4 = _errs47 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs49 = errors;if(typeof data15 !== "string"){const err25 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("menu" !== data15){const err26 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/1/const",keyword:"const",params:{allowedValue: "menu"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid4 = _errs49 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs51 = errors;if(typeof data15 !== "string"){const err27 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("playing" !== data15){const err28 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/2/const",keyword:"const",params:{allowedValue: "playing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid4 = _errs51 === errors;valid9 = valid9 || _valid4;if(!valid9){const _errs53 = errors;if(typeof data15 !== "string"){const err29 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("lobby" !== data15){const err30 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf/3/const",keyword:"const",params:{allowedValue: "lobby"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid4 = _errs53 === errors;valid9 = valid9 || _valid4;}}}if(!valid9){const err31 = {instancePath:instancePath+"/data/users/" + i0+"/status",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/status/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid4 = _errs45 === errors;}else {var valid4 = true;}if(valid4){if(data5.battleStatus !== undefined){let data16 = data5.battleStatus;const _errs55 = errors;const _errs56 = errors;let valid10 = false;const _errs57 = errors;const _errs58 = errors;if(errors === _errs58){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing2;if((data16.battleId === undefined) && (missing2 = "battleId")){const err32 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data16.battleId !== undefined){if(typeof data16.battleId !== "string"){const err33 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/battleId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/properties/battleId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}}else {const err34 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid11 = _errs58 === errors;if(valid11){const _errs62 = errors;const _errs63 = errors;let valid13 = false;const _errs64 = errors;if(!(data16 && typeof data16 == "object" && !Array.isArray(data16))){const err35 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}const _errs66 = errors;if(errors === _errs66){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing3;if((((((data16.playerId === undefined) && (missing3 = "playerId")) || ((data16.teamId === undefined) && (missing3 = "teamId"))) || ((data16.color === undefined) && (missing3 = "color"))) || ((data16.bonus === undefined) && (missing3 = "bonus"))) || ((data16.inGame === undefined) && (missing3 = "inGame"))){const err36 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {if(data16.playerId !== undefined){let data18 = data16.playerId;const _errs68 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err37 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/playerId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/playerId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid15 = _errs68 === errors;}else {var valid15 = true;}if(valid15){if(data16.teamId !== undefined){let data19 = data16.teamId;const _errs70 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err38 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/teamId",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/teamId/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid15 = _errs70 === errors;}else {var valid15 = true;}if(valid15){if(data16.color !== undefined){const _errs72 = errors;if(typeof data16.color !== "string"){const err39 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/color",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid15 = _errs72 === errors;}else {var valid15 = true;}if(valid15){if(data16.bonus !== undefined){let data21 = data16.bonus;const _errs74 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){const err40 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/bonus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/bonus/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid15 = _errs74 === errors;}else {var valid15 = true;}if(valid15){if(data16.inGame !== undefined){const _errs76 = errors;if(typeof data16.inGame !== "boolean"){const err41 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/inGame",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/properties/inGame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid15 = _errs76 === errors;}else {var valid15 = true;}}}}}}}else {const err42 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}var valid14 = _errs66 === errors;if(valid14){const _errs78 = errors;if(errors === _errs78){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing4;if(((((data16.isSpectator === undefined) && (missing4 = "isSpectator")) || ((data16.isBot === undefined) && (missing4 = "isBot"))) || ((data16.ready === undefined) && (missing4 = "ready"))) || ((data16.sync === undefined) && (missing4 = "sync"))){const err43 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {if(data16.isSpectator !== undefined){let data23 = data16.isSpectator;const _errs80 = errors;if(typeof data23 !== "boolean"){const err44 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(false !== data23){const err45 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid16 = _errs80 === errors;}else {var valid16 = true;}if(valid16){if(data16.isBot !== undefined){let data24 = data16.isBot;const _errs82 = errors;if(typeof data24 !== "boolean"){const err46 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(false !== data24){const err47 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid16 = _errs82 === errors;}else {var valid16 = true;}if(valid16){if(data16.ready !== undefined){const _errs84 = errors;if(typeof data16.ready !== "boolean"){const err48 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/ready",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid16 = _errs84 === errors;}else {var valid16 = true;}if(valid16){if(data16.sync !== undefined){let data26 = data16.sync;const _errs86 = errors;if(errors === _errs86){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing5;if((((data26.engine === undefined) && (missing5 = "engine")) || ((data26.game === undefined) && (missing5 = "game"))) || ((data26.map === undefined) && (missing5 = "map"))){const err49 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data26.engine !== undefined){let data27 = data26.engine;const _errs88 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){const err50 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/engine",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/engine/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid17 = _errs88 === errors;}else {var valid17 = true;}if(valid17){if(data26.game !== undefined){let data28 = data26.game;const _errs90 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){const err51 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/game",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/game/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid17 = _errs90 === errors;}else {var valid17 = true;}if(valid17){if(data26.map !== undefined){let data29 = data26.map;const _errs92 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err52 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync/map",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/properties/map/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid17 = _errs92 === errors;}else {var valid17 = true;}}}}}else {const err53 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/sync",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/properties/sync/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var valid16 = _errs86 === errors;}else {var valid16 = true;}}}}}}else {const err54 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/0/allOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid14 = _errs78 === errors;}var _valid6 = _errs64 === errors;valid13 = valid13 || _valid6;if(!valid13){const _errs94 = errors;if(errors === _errs94){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing6;if(((data16.isSpectator === undefined) && (missing6 = "isSpectator")) || ((data16.isBot === undefined) && (missing6 = "isBot"))){const err55 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {if(data16.isSpectator !== undefined){let data30 = data16.isSpectator;const _errs96 = errors;if(typeof data30 !== "boolean"){const err56 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(true !== data30){const err57 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isSpectator",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isSpectator/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid18 = _errs96 === errors;}else {var valid18 = true;}if(valid18){if(data16.isBot !== undefined){let data31 = data16.isBot;const _errs98 = errors;if(typeof data31 !== "boolean"){const err58 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(false !== data31){const err59 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus/isBot",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/properties/isBot/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid18 = _errs98 === errors;}else {var valid18 = true;}}}}else {const err60 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}var _valid6 = _errs94 === errors;valid13 = valid13 || _valid6;}if(!valid13){const err61 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/0/allOf/1/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs63;if(vErrors !== null){if(_errs63){vErrors.length = _errs63;}else {vErrors = null;}}}var valid11 = _errs62 === errors;}var _valid5 = _errs57 === errors;valid10 = valid10 || _valid5;if(!valid10){const _errs100 = errors;if(data16 !== null){const err62 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var _valid5 = _errs100 === errors;valid10 = valid10 || _valid5;}if(!valid10){const err63 = {instancePath:instancePath+"/data/users/" + i0+"/battleStatus",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/battleStatus/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}var valid4 = _errs55 === errors;}else {var valid4 = true;}if(valid4){if(data5.friendIds !== undefined){let data32 = data5.friendIds;const _errs102 = errors;if(errors === _errs102){if(Array.isArray(data32)){var valid19 = true;const len2 = data32.length;for(let i2=0; i2<len2; i2++){const _errs104 = errors;if(typeof data32[i2] !== "string"){const err64 = {instancePath:instancePath+"/data/users/" + i0+"/friendIds/" + i2,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/friendIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid19 = _errs104 === errors;if(!valid19){break;}}}else {const err65 = {instancePath:instancePath+"/data/users/" + i0+"/friendIds",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/friendIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid4 = _errs102 === errors;}else {var valid4 = true;}if(valid4){if(data5.outgoingFriendRequestIds !== undefined){let data34 = data5.outgoingFriendRequestIds;const _errs106 = errors;if(errors === _errs106){if(Array.isArray(data34)){var valid20 = true;const len3 = data34.length;for(let i3=0; i3<len3; i3++){const _errs108 = errors;if(typeof data34[i3] !== "string"){const err66 = {instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds/" + i3,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/outgoingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid20 = _errs108 === errors;if(!valid20){break;}}}else {const err67 = {instancePath:instancePath+"/data/users/" + i0+"/outgoingFriendRequestIds",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/outgoingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var valid4 = _errs106 === errors;}else {var valid4 = true;}if(valid4){if(data5.incomingFriendRequestIds !== undefined){let data36 = data5.incomingFriendRequestIds;const _errs110 = errors;if(errors === _errs110){if(Array.isArray(data36)){var valid21 = true;const len4 = data36.length;for(let i4=0; i4<len4; i4++){const _errs112 = errors;if(typeof data36[i4] !== "string"){const err68 = {instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds/" + i4,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/incomingFriendRequestIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid21 = _errs112 === errors;if(!valid21){break;}}}else {const err69 = {instancePath:instancePath+"/data/users/" + i0+"/incomingFriendRequestIds",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/incomingFriendRequestIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var valid4 = _errs110 === errors;}else {var valid4 = true;}if(valid4){if(data5.ignoreIds !== undefined){let data38 = data5.ignoreIds;const _errs114 = errors;if(errors === _errs114){if(Array.isArray(data38)){var valid22 = true;const len5 = data38.length;for(let i5=0; i5<len5; i5++){const _errs116 = errors;if(typeof data38[i5] !== "string"){const err70 = {instancePath:instancePath+"/data/users/" + i0+"/ignoreIds/" + i5,schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/ignoreIds/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid22 = _errs116 === errors;if(!valid22){break;}}}else {const err71 = {instancePath:instancePath+"/data/users/" + i0+"/ignoreIds",schemaPath:"#/anyOf/0/properties/data/properties/users/items/properties/ignoreIds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var valid4 = _errs114 === errors;}else {var valid4 = true;}}}}}}}}}}}}}}}else {const err72 = {instancePath:instancePath+"/data/users/" + i0,schemaPath:"#/anyOf/0/properties/data/properties/users/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid3 = _errs13 === errors;if(!valid3){break;}}}else {const err73 = {instancePath:instancePath+"/data/users",schemaPath:"#/anyOf/0/properties/data/properties/users/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}}else {const err74 = {instancePath:instancePath+"/data",schemaPath:"#/anyOf/0/properties/data/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var valid1 = _errs9 === errors;}else {var valid1 = true;}}}}}}else {const err75 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs118 = errors;if(errors === _errs118){if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((((data.messageId === undefined) && (missing7 = "messageId")) || ((data.commandId === undefined) && (missing7 = "commandId"))) || ((data.status === undefined) && (missing7 = "status"))) || ((data.reason === undefined) && (missing7 = "reason"))){const err76 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data.messageId !== undefined){const _errs120 = errors;if(typeof data.messageId !== "string"){const err77 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/1/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}var valid23 = _errs120 === errors;}else {var valid23 = true;}if(valid23){if(data.commandId !== undefined){let data41 = data.commandId;const _errs122 = errors;if(typeof data41 !== "string"){const err78 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("user/updated/response" !== data41){const err79 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/1/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var valid23 = _errs122 === errors;}else {var valid23 = true;}if(valid23){if(data.status !== undefined){let data42 = data.status;const _errs124 = errors;if(typeof data42 !== "string"){const err80 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("failed" !== data42){const err81 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/1/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var valid23 = _errs124 === errors;}else {var valid23 = true;}if(valid23){if(data.reason !== undefined){let data43 = data.reason;const _errs126 = errors;if(typeof data43 !== "string"){const err82 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("internal_error" !== data43){const err83 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/const",keyword:"const",params:{allowedValue: "internal_error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid23 = _errs126 === errors;}else {var valid23 = true;}}}}}}else {const err84 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var _valid0 = _errs118 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs128 = errors;if(errors === _errs128){if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((((data.messageId === undefined) && (missing8 = "messageId")) || ((data.commandId === undefined) && (missing8 = "commandId"))) || ((data.status === undefined) && (missing8 = "status"))) || ((data.reason === undefined) && (missing8 = "reason"))){const err85 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data.messageId !== undefined){const _errs130 = errors;if(typeof data.messageId !== "string"){const err86 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/2/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var valid24 = _errs130 === errors;}else {var valid24 = true;}if(valid24){if(data.commandId !== undefined){let data45 = data.commandId;const _errs132 = errors;if(typeof data45 !== "string"){const err87 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("user/updated/response" !== data45){const err88 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/2/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid24 = _errs132 === errors;}else {var valid24 = true;}if(valid24){if(data.status !== undefined){let data46 = data.status;const _errs134 = errors;if(typeof data46 !== "string"){const err89 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("failed" !== data46){const err90 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/2/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var valid24 = _errs134 === errors;}else {var valid24 = true;}if(valid24){if(data.reason !== undefined){let data47 = data.reason;const _errs136 = errors;if(typeof data47 !== "string"){const err91 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("unauthorized" !== data47){const err92 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/const",keyword:"const",params:{allowedValue: "unauthorized"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var valid24 = _errs136 === errors;}else {var valid24 = true;}}}}}}else {const err93 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}var _valid0 = _errs128 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs138 = errors;if(errors === _errs138){if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if(((((data.messageId === undefined) && (missing9 = "messageId")) || ((data.commandId === undefined) && (missing9 = "commandId"))) || ((data.status === undefined) && (missing9 = "status"))) || ((data.reason === undefined) && (missing9 = "reason"))){const err94 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {if(data.messageId !== undefined){const _errs140 = errors;if(typeof data.messageId !== "string"){const err95 = {instancePath:instancePath+"/messageId",schemaPath:"#/anyOf/3/properties/messageId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid25 = _errs140 === errors;}else {var valid25 = true;}if(valid25){if(data.commandId !== undefined){let data49 = data.commandId;const _errs142 = errors;if(typeof data49 !== "string"){const err96 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("user/updated/response" !== data49){const err97 = {instancePath:instancePath+"/commandId",schemaPath:"#/anyOf/3/properties/commandId/const",keyword:"const",params:{allowedValue: "user/updated/response"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid25 = _errs142 === errors;}else {var valid25 = true;}if(valid25){if(data.status !== undefined){let data50 = data.status;const _errs144 = errors;if(typeof data50 !== "string"){const err98 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if("failed" !== data50){const err99 = {instancePath:instancePath+"/status",schemaPath:"#/anyOf/3/properties/status/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid25 = _errs144 === errors;}else {var valid25 = true;}if(valid25){if(data.reason !== undefined){let data51 = data.reason;const _errs146 = errors;if(typeof data51 !== "string"){const err100 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if("invalid_command" !== data51){const err101 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/3/properties/reason/const",keyword:"const",params:{allowedValue: "invalid_command"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid25 = _errs146 === errors;}else {var valid25 = true;}}}}}}else {const err102 = {instancePath,schemaPath:"#/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}var _valid0 = _errs138 === errors;valid0 = valid0 || _valid0;}}}if(!valid0){const err103 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;validate56.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate56.errors = vErrors;return errors === 0;}
|