var i=function(){var o=function(e,t){o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a))r[a]=n[a]};return o(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();import{UpdateArrayCommand as u}from"../AbstractCommand";var c=function(o){i(e,o);function e(t){var r=o.call(this)||this;r.value=t;return r}Object.defineProperty(e.prototype,"operator",{get:function(){return"$addToSet"},enumerable:false,configurable:true});e.prototype.stringify=function(){if(Array.isArray(this.value)){return{$each:this.value}}if(typeof this.value==="object"&&this.value.hasOwnProperty("each")){return{$each:this.value.each}}return this.value};return e}(u);export{c as AddToSetCommand};