module.exports = "(function(n,t,e){var r=e(54),i=e(462),o=n.exports=r.patterns.OrSchema=r.extend({initialize:function(n){this.schemas=n},errors:function(n){var t=[];return!this.validate(n)&&(this.schemas.forEach((function(e){var r=e.errors(n);r&&t.push(r)})),t.length>0)&&t},validate:function(n){return this.schemas.some((function(t){return t.validate(n)}))},toJSON:r.session((function(){var n=r.prototype.toJSON.call(this,!0),t=this.schemas.map((function(n){return n.toJSON()})),e=t.every((function(n){return n.enum instanceof Array&&1===n.enum.length}));return null!=n.$ref||(e?n.enum=t.map((function(n){return n.enum[0]})):n.type=t.map((function(n){return\"string\"==typeof n.type&&1===Object.keys(n).length?n.type:n}))),n}))});r.fromJS.def((function(n){if(n instanceof Array)return new o(n.map((function(n){return void 0===n?r.self:r.fromJS(n)})))})),r.fromJSON.def((function(n){if(n)return n.enum instanceof Array?new o(n.enum.map((function(n){return new i(n)}))):n.type instanceof Array?new o(n.type.map((function(n){return r.fromJSON(\"string\"==typeof n?{type:n}:n)}))):void 0}))})";