!functiona(b,c,d){functione(g,h){if(!c[g]){if(!b[g]){vari="function"==typeofrequire&&require;if(!h&&i)returni(g,!0);if(f)returnf(g,!0);thrownewError("Cannot find module '"+g+"'")}varj=c[g]={exports:{}};b[g][0].call(j.exports,function(a){varc=b[g][1][a];returne(c?c:a)},j,j.exports,a,b,c,d)}returnc[g].exports}for(varf="function"==typeofrequire&&require,g=0;g<d.length;g++)e(d[g]);returne}({1:[function(a,b){varc;c=function(a){varb,c,d,e,f,g,h;returnf={},c=newDUIClient,c.connect(function(a){varb;returnnull!=(b=f[a.action])?b.map(function(b){returnsetTimeout(function(){returnb(a)},0)}):void0}),c.initOK(),h=null,g=null,b=function(){functiona(a,b,d,e){vari,j,k;this.engine=a,this.HB=b,this.execution_listener=d,this.yatta=e,this.duiClient=c,this.iwcHandler=f,k=function(a){returnfunction(b){returna.send(b)}}(this),this.execution_listener.push(k),i=function(a){returnfunction(b){varc;returnc=b.extras,a.receive(c)}}(this),this.iwcHandler.Yatta_new_operation=[i],null!=h&&this.engine.applyOps(g),j=function(a){returnfunction(){varb;returnb={root_element:a.yatta.getRootElement(),HB:a.yatta.getHistoryBuffer()._encode()},a.sendIwcIntent("Yatta_push_root_element",b)}}(this),this.iwcHandler.Yatta_get_root_element=[j]}returna.prototype.getRootElement=function(){returnh},a.prototype.send=function(a){returna.uid.creator===this.HB.getUserId()&&"string"!=typeofa.uid.op_number?this.sendIwcIntent("Yatta_new_operation",a):void0},a.prototype.receive=function(a){returna.uid.creator!==this.HB.getUserId()?this.engine.applyOp(a):void0},a.prototype.sendIwcIntent=function(a,b){varc;returnc={action:a,component:"",data:"",dataType:"",extras:b},this.duiClient.sendIntent(c)},a.prototype.sync=function(){thrownewError("Can't use this a.t.m.")},a}(),d={action:"Yatta_get_root_element",component:"",data:"",dataType:"",extras:{}},e=function(){vare,i;returnc.sendIntent(d),e=!1,i=function(d){varf;returnf=c.getIwcClient()._componentName,h=null!=d?d.extras.root_element:void0,g=null!=d?d.extras.HB:void0,e?void0:(e=!0,a(b,f))},f.Yatta_push_root_element=[i],setTimeout(i,800)},voidsetTimeout(e,4e3*Math.random())},b.exports=c,"undefined"!=typeofwindow&&null!==window&&(window.createConnector=c)},{}],2:[function(a,b){varc;c=function(){functiona(a,b){this.HB=a,this.parser=b,this.unprocessed_ops=[]}returna.prototype.parseOperation=function(a){varb;if(b=this.parser[a.type],null!=b)returnb(a);thrownewError("You forgot to specify a parser for type "+a.type+". The message is "+JSON.stringify(a)+".")},a.prototype.applyOps=function(a){varb,c,d,e,f,g,h,i;for(c=[],d=0,g=a.length;g>d;d++)b=a[d],c.push(this.parseOperation(b));for(e=0,h=c.length;h>e;e++)b=c[e],this.HB.addOperation(b);for(f=0,i=c.length;i>f;f++)b=c[f],b.execute()||this.unprocessed_ops.push(b);returnthis.tryUnprocessed()},a.prototype.applyOp=function(a){varb;returnb=this.parseOperation(a),this.HB.addOperation(b),b.execute()||this.unprocessed_ops.push(b),this.tryUnprocessed()},a.prototype.tryUnprocessed=function(){vara,b,c,d,e,f,g;for(g=[];;){for(a=this.unprocessed_ops.length,c=[],f=this.unprocessed_ops,d=0,e=f.length;e>d;d++)b=f[d],b.execute()||c.push(b);if(this.unprocessed_ops=c,this.unprocessed_ops.length===a)break;g.push(void0)}returng},a}(),b.exports=c},{}],3:[function(a,b){varc,d,e,f;f=a("../Types/JsonTypes.coffee"),d=a("../HistoryBuffer.coffee"),c=a("../Engine.coffee"),e=function(){functiona(a,b){vare,g,h;this.HB=newd(a),g=f(this.HB),this.engine=newc(this.HB,g.parser),this.connector=newb(this.engine,this.HB,g.execution_listener,this),h=this.connector.getRootElement(),null==h?(e=newg.types.JsonType(this.HB.getNextOperationIdentifier()),this.HB.addOperation(e),e.execute(),this.root_element=e):this.root_element=this.HB.getOperation(h)}returna.prototype.getRootElement=function(){returnthis.root_element},a.prototype.getEngine=function(){returnthis.engine},a.prototype.getConnector=function(){returnthis.connector},a.prototype.getHistoryBuffer=function(){returnthis.HB},a.prototype.setMutableDefault=function(a){returnthis.root_element.setMutableDef
}if(null!=b&&null!=d){if(e=null!=e?e===!0||"mutable"===e?!0:!1:this.mutable_default,"function"==typeofd)returnthis;if(e&&"number"!=typeofd||d.constructor===Object){if("string"==typeofd)returnk=a.addOperation(newh.Word(a.getNextOperationIdentifier(),d)).execute(),c.__super__.val.call(this,b,k);if(d.constructor===Object)returnf=a.addOperation(newc(a.getNextOperationIdentifier(),d,e)).execute(),c.__super__.val.call(this,b,f);thrownewError("You must not set "+typeofd+"-types in collaborative Json-objects!")}returnj=a.addOperation(newh.ImmutableObject(void0,d)).execute(),c.__super__.val.call(this,b,j)}returnc.__super__.val.call(this,b,d)},Object.defineProperty(c.prototype,"value",{get:function(){returnd(this)},set:function(a){varb,c,d;if(a.constructor==={}.constructor){d=[];for(bina)c=a[b],d.push(this.val(b,c,"immutable"));returnd}thrownewError("You must only set Object values!")}}),c.prototype._encode=function(){return{type:"JsonType",uid:this.getUid()}},c}(h.MapManager),f.JsonType=function(a){varc;returnc=a.uid,newb(c)},h.JsonType=b,g}},{"./TextTypes.coffee":8}],7:[function(a,b){varc,d={}.hasOwnProperty,e=function(a,b){functionc(){this.constructor=a}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a};c=a("./BasicTypes.coffee"),b.exports=function(a){varb,d,f,g,h,i,j,k;returni=c(a),k=i.types,j=i.parser,f=function(c){functiond(a){this.map={},d.__super__.constructor.call(this,a)}returne(d,c),d.prototype.val=function(c,e){varf,g,h,i,j;if(null!=e)returnnull==this.map[c]&&a.addOperation(newb(a.getNextOperationIdentifier(),this,c)).execute(),this.map[c].replace(e),this;if(null!=c)returng=null!=(i=this.map[c])?i.val():void0,ginstanceofk.ImmutableObject?g.val():g;h={},j=this.map;for(cinj)f=j[c],g=f.val(),(ginstanceofk.ImmutableObject||ginstanceofd)&&(g=g.val()),h[c]=g;returnh},d}(k.Operation),b=function(b){functionc(a,b,d){this.name=d,this.saveOperation("map_manager",b),c.__super__.constructor.call(this,a)}returne(c,b),c.prototype.execute=function(){varb,d,e,f,h;returnthis.validateSavedOperations()?(h=this.map_manager.getUid(),h.op_number="_"+h.op_number+"_RM_"+this.name,null==a.getOperation(h)&&(e=this.map_manager.getUid(),e.op_number="_"+e.op_number+"_RM_"+this.name+"_beginning",f=this.map_manager.getUid(),f.op_number="_"+f.op_number+"_RM_"+this.name+"_end",b=a.addOperation(newk.Delimiter(e,void0,f)),d=a.addOperation(newk.Delimiter(f,b,void0)).execute(),b.execute(),this.map_manager.map[this.name]=a.addOperation(newg(void0,h,b,d)).execute()),c.__super__.execute.apply(this,arguments)):!1},c.prototype._encode=function(){return{type:"AddName",uid:this.getUid(),map_manager:this.map_manager.getUid(),name:this.name}},c}(k.Operation),j.AddName=function(a){varc,d,e;returnc=a.map_manager,e=a.uid,d=a.name,newb(e,c,d)},d=function(b){functionc(b,d,e,f,g,h){null!=d&&null!=e?(this.saveOperation("beginning",d),this.saveOperation("end",e)):(this.beginning=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),void0,void0)),this.end=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),this.beginning,void0)),this.beginning.next_cl=this.end,this.beginning.execute(),this.end.execute()),c.__super__.constructor.call(this,b,f,g,h)}returne(c,b),c.prototype.getLastOperation=function(){returnthis.end.prev_cl},c.prototype.getFirstOperation=function(){returnthis.beginning.next_cl},c.prototype.toArray=function(){vara,b;for(a=this.beginning.next_cl,b=[];a!==this.end;)b.push(a),a=a.next_cl;returnb},c.prototype.getOperationByPosition=function(a){varb;if(b=this.beginning.next_cl,a>0)for(;b=b.next_cl,b.isDeleted()||(a-=1),0!==a;)if(binstanceofk.Delimiter)thrownewError("position parameter exceeded the length of the document!");returnb},c}(k.Insert),g=function(b){functionc(a,b,d,e,f,g,h){c.__super__.constructor.call(this,b,d,e,f,g,h),null!=a&&this.replace(a)}returne(c,b),c.prototype.replace=function(b){varc,d;returnc=this.getLastOperation(),d=newh(b,this,a.getNextOperationIdentifier(),c,c.next_cl),a.addOperation
returnthis.tryUnprocessed()},a.prototype.applyOp=function(a){varb;returnb=this.parseOperation(a),this.HB.addOperation(b),b.execute()||this.unprocessed_ops.push(b),this.tryUnprocessed()},a.prototype.tryUnprocessed=function(){vara,b,c,d,e,f,g;for(g=[];;){for(a=this.unprocessed_ops.length,c=[],f=this.unprocessed_ops,d=0,e=f.length;e>d;d++)b=f[d],b.execute()||c.push(b);if(this.unprocessed_ops=c,this.unprocessed_ops.length===a)break;g.push(void0)}returng},a}(),b.exports=c},{}],3:[function(a,b){varc,d,e,f;f=a("../Types/JsonTypes.coffee"),d=a("../HistoryBuffer.coffee"),c=a("../Engine.coffee"),e=function(){functiona(a,b){vare,g,h;this.HB=newd(a),g=f(this.HB),this.engine=newc(this.HB,g.parser),this.connector=newb(this.engine,this.HB,g.execution_listener,this),h=this.connector.getRootElement(),null==h?(e=newg.types.JsonType(this.HB.getNextOperationIdentifier()),this.HB.addOperation(e),e.execute(),this.root_element=e):this.root_element=this.HB.getOperation(h)}returna.prototype.getRootElement=function(){returnthis.root_element},a.prototype.getEngine=function(){returnthis.engine},a.prototype.getConnector=function(){returnthis.connector},a.prototype.getHistoryBuffer=function(){returnthis.HB},a.prototype.setMutableDefault=function(a){returnthis.root_element.setMutableDefault(a)},a.prototype.getUserId=function(){returnthis.HB.getUserId()},a.prototype.val=function(a,b,c){returnthis.root_element.val(a,b,c)},Object.defineProperty(a.prototype,"value",{get:function(){returnthis.root_element.value},set:function(a){varb,c,d;if(a.constructor==={}.constructor){d=[];for(bina)c=a[b],d.push(this.val(b,c,"immutable"));returnd}thrownewError("You must only set Object values!")}}),a}(),"undefined"!=typeofwindow&&null!==window&&(window.JsonYatta=e),b.exports=e},{"../Engine.coffee":2,"../HistoryBuffer.coffee":4,"../Types/JsonTypes.coffee":6}],4:[function(a,b){varc;c=function(){functiona(a){this.user_id=a,this.operation_counter={},this.buffer={},this.change_listeners=[]}returna.prototype.getUserId=function(){returnthis.user_id},a.prototype.getOperationCounter=function(){vara,b,c,d;b={},d=this.operation_counter;for(cind)a=d[c],b[c]=a;returnb},a.prototype._encode=function(){vara,b,c,d,e,f;a=[],f=this.buffer;for(dinf){e=f[d];for(cine)b=e[c],isNaN(parseInt(c))||a.push(b._encode())}returna},a.prototype.getNextOperationIdentifier=function(a){varb;returnnull==a&&(a=this.user_id),null==this.operation_counter[a]&&(this.operation_counter[a]=0),b={creator:a,op_number:this.operation_counter[a]},this.operation_counter[a]++,b},a.prototype.getOperation=function(a){varb;if(ainstanceofObject)returnnull!=(b=this.buffer[a.creator])?b[a.op_number]:void0;if(null!=a)thrownewError("This type of uid is not defined!")},a.prototype.addOperation=function(a){if(null==this.buffer[a.creator]&&(this.buffer[a.creator]={}),null==this.operation_counter[a.creator]&&(this.operation_counter[a.creator]=0),null!=this.buffer[a.creator][a.op_number])thrownewError("You must not overwrite operations!");returnthis.buffer[a.creator][a.op_number]=a,"number"==typeofa.op_number&&a.creator!==this.getUserId()&&this.operation_counter[a.creator]++,a},a}(),b.exports=c},{}],5:[function(a,b){varc={}.hasOwnProperty,d=function(a,b){functiond(){this.constructor=a}for(vareinb)c.call(b,e)&&(a[e]=b[e]);returnd.prototype=b.prototype,a.prototype=newd,a.__super__=b.prototype,a};b.exports=function(a){varb,c,e,f,g,h,i;returni={},h=[],g=function(){functionb(b){null==b&&(b=a.getNextOperationIdentifier()),this.creator=b.creator,this.op_number=b.op_number}returnb.prototype.getUid=function(){return{creator:this.creator,op_number:this.op_number}},b.prototype.execute=function(){vara,b,c;for(this.is_executed=!0,b=0,c=h.length;c>b;b++)(a=h[b])(this._encode());returnthis},b.prototype.saveOperation=function(a,b){returnnull!=(null!=b?b.execute:void0)?this[a]=b:null!=b?(null==this.unchecked&&(this.unchecked={}),this.unchecked[a]=b):void0},b.prototype.validateSavedOperations=function(){varb,c,d,e,f,g;f={},e=this,g=this.unchecked;for(bing)d=g[b],c=a.getOperati
},d=function(b){functionc(b,d,e,f,g,h){null!=d&&null!=e?(this.saveOperation("beginning",d),this.saveOperation("end",e)):(this.beginning=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),void0,void0)),this.end=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),this.beginning,void0)),this.beginning.next_cl=this.end,this.beginning.execute(),this.end.execute()),c.__super__.constructor.call(this,b,f,g,h)}returne(c,b),c.prototype.getLastOperation=function(){returnthis.end.prev_cl},c.prototype.getFirstOperation=function(){returnthis.beginning.next_cl},c.prototype.toArray=function(){vara,b;for(a=this.beginning.next_cl,b=[];a!==this.end;)b.push(a),a=a.next_cl;returnb},c.prototype.getOperationByPosition=function(a){varb;if(b=this.beginning.next_cl,a>0)for(;b=b.next_cl,b.isDeleted()||(a-=1),0!==a;)if(binstanceofk.Delimiter)thrownewError("position parameter exceeded the length of the document!");returnb},c}(k.Insert),g=function(b){functionc(a,b,d,e,f,g,h){c.__super__.constructor.call(this,b,d,e,f,g,h),null!=a&&this.replace(a)}returne(c,b),c.prototype.replace=function(b){varc,d;returnc=this.getLastOperation(),d=newh(b,this,a.getNextOperationIdentifier(),c,c.next_cl),a.addOperation(d).execute()},c.prototype.val=function(){vara;if(a=this.getLastOperation(),ainstanceofk.Delimiter)thrownewError("dtrn");returna.val()},c.prototype._encode=function(){vara;returna={type:"ReplaceManager",uid:this.getUid(),beginning:this.beginning.getUid(),end:this.end.getUid()},null!=this.prev_cl&&null!=this.next_cl&&(a.prev=this.prev_cl.getUid(),a.next=this.next_cl.getUid()),null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},c}(d),j.ReplaceManager=function(a){varb,c,d,e,f,h,i;returnc=a.content,i=a.uid,h=a.prev,e=a.next,f=a.origin,b=a.beginning,d=a.end,newg(c,i,b,d,h,e,f)},h=function(a){functionb(a,c,d,e,f,g){if(this.saveOperation("content",a),this.saveOperation("parent",c),null==e||null==f||null==a)thrownewError("You must define content, prev, and next for Replaceable-types!");b.__super__.constructor.call(this,d,e,f,g)}returne(b,a),b.prototype.val=function(){returnthis.content},b.prototype.replace=function(a){returnthis.parent.replace(a)},b.prototype.execute=function(){vara;returnthis.validateSavedOperations()?("function"==typeof(a=this.content).setReplaceManager&&a.setReplaceManager(this.parent),b.__super__.execute.apply(this,arguments),this):!1},b.prototype._encode=function(){vara;returna={type:"Replaceable",content:this.content.getUid(),ReplaceManager:this.parent.getUid(),prev:this.prev_cl.getUid(),next:this.next_cl.getUid(),uid:this.getUid()},null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},b}(k.Insert),j.Replaceable=function(a){varb,c,d,e,f,g;returnb=a.content,e=a.ReplaceManager,g=a.uid,f=a.prev,c=a.next,d=a.origin,newh(b,e,g,f,c,d)},k.ListManager=d,k.MapManager=f,k.ReplaceManager=g,k.Replaceable=h,i}},{"./BasicTypes.coffee":5}],8:[function(a,b){varc,d={}.hasOwnProperty,e=function(a,b){functionc(){this.constructor=a}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a};c=a("./StructuredTypes.coffee"),b.exports=function(a){varb,d,f,g,h,i;returnh=c(a),i=h.types,g=h.parser,b=function(a){functionb(){returnb.__super__.constructor.apply(this,arguments)}returne(b,a),b}(i.Delete),g.TextDelete=g.Delete,d=function(a){functionb(a,c,d,e,f){if(this.content=a,null==d||null==e)thrownewError("You must define prev, and next for TextInsert-types!");b.__super__.constructor.call(this,c,d,e,f)}returne(b,a),b.prototype.getLength=function(){returnthis.isDeleted()?0:this.content.length},b.prototype.val=function(){returnthis.isDeleted()?"":this.content},b.prototype._encode=function(){vara;returna={type:"TextInsert",content:this.content,uid:this.getUid(),prev:this.prev_cl.getUid(),next:this.next_cl.getUid()},null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},b}(i.Insert),g.TextInsert=function(a){varb,c,e,f,g;returnb=a.content,g=a.uid,f=a.pre
returnthis.buffer[a.creator][a.op_number]=a,"number"==typeofa.op_number&&a.creator!==this.getUserId()&&this.operation_counter[a.creator]++,a},a}(),b.exports=c},{}],5:[function(a,b){varc={}.hasOwnProperty,d=function(a,b){functiond(){this.constructor=a}for(vareinb)c.call(b,e)&&(a[e]=b[e]);returnd.prototype=b.prototype,a.prototype=newd,a.__super__=b.prototype,a};b.exports=function(a){varb,c,e,f,g,h,i;returni={},h=[],g=function(){functionb(b){null==b&&(b=a.getNextOperationIdentifier()),this.creator=b.creator,this.op_number=b.op_number}returnb.prototype.getUid=function(){return{creator:this.creator,op_number:this.op_number}},b.prototype.execute=function(){vara,b,c;for(this.is_executed=!0,b=0,c=h.length;c>b;b++)(a=h[b])(this._encode());returnthis},b.prototype.saveOperation=function(a,b){returnnull!=(null!=b?b.execute:void0)?this[a]=b:null!=b?(null==this.unchecked&&(this.unchecked={}),this.unchecked[a]=b):void0},b.prototype.validateSavedOperations=function(){varb,c,d,e,f,g;f={},e=this,g=this.unchecked;for(bing)d=g[b],c=a.getOperation(d),c?this[b]=c:(f[b]=d,e=!1);returndeletethis.unchecked,e||(this.unchecked=f),e},b}(),b=function(a){functionb(a,c){this.saveOperation("deletes",c),b.__super__.constructor.call(this,a)}returnd(b,a),b.prototype._encode=function(){return{type:"Delete",uid:this.getUid(),deletes:this.deletes.getUid()}},b.prototype.execute=function(){returnthis.validateSavedOperations()?(this.deletes.applyDelete(this),b.__super__.execute.apply(this,arguments),this):!1},b}(g),i.Delete=function(a){varc,d;returnd=a.uid,c=a.deletes,newb(d,c)},f=function(a){functionb(a,c,d,e){this.saveOperation("prev_cl",c),this.saveOperation("next_cl",d),null!=e?this.saveOperation("origin",e):this.saveOperation("origin",c),b.__super__.constructor.call(this,a)}returnd(b,a),b.prototype.applyDelete=function(a){returnnull==this.deleted_by&&(this.deleted_by=[]),this.deleted_by.push(a)},b.prototype.isDeleted=function(){vara;return(null!=(a=this.deleted_by)?a.length:void0)>0},b.prototype.getDistanceToOrigin=function(){vara,b;for(a=0,b=this.prev_cl;this.origin!==b;){if(a++,this===this.prev_cl)thrownewError("this should not happen ;) ");b=b.prev_cl}returna},b.prototype.update_sl=function(){vara;returna=this.prev_cl,update("prev_cl","prev_sl"),update("next_cl","prev_sl")},b.prototype.execute=function(){vara,c,d,e,f;if(null!=this.is_executed)returnthis;if(this.validateSavedOperations()){if((null!=(e=this.prev_cl)?e.validateSavedOperations():void0)&&(null!=(f=this.next_cl)?f.validateSavedOperations():void0)&&this.prev_cl.next_cl!==this){for(a=0,d=this.prev_cl.next_cl,c=0;null==d&&(console.log(JSON.stringify(this.prev_cl.getUid())),console.log(JSON.stringify(this.next_cl.getUid()))),d!==this.next_cl;){if(d.getDistanceToOrigin()===c)d.creator<this.creator&&(this.prev_cl=d,a=c+1);else{if(!(d.getDistanceToOrigin()<c))break;c-a<=d.getDistanceToOrigin()&&(this.prev_cl=d,a=c+1)}c++,d=d.next_cl}this.next_cl=this.prev_cl.next_cl,this.prev_cl.next_cl=this,this.next_cl.prev_cl=this}returnb.__super__.execute.apply(this,arguments),this}return!1},b}(g),e=function(a){functionb(a,c,d,e,f){this.content=null!=c?c:"",b.__super__.constructor.call(this,a,d,e,f)}returnd(b,a),b.prototype.val=function(){returnthis.content},b.prototype._encode=function(){vara;returna={type:"ImmutableObject",uid:this.getUid(),content:this.content},null!=this.prev_cl&&(a.prev=this.prev_cl.getUid()),null!=this.next_cl&&(a.next=this.next_cl.getUid()),null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},b}(f),i.ImmutableObject=function(a){varb,c,d,f,g;returng=a.uid,b=a.content,f=a.prev,c=a.next,d=a.origin,newe(g,b,f,c,d)},c=function(a){functionb(){returnb.__super__.constructor.apply(this,arguments)}returnd(b,a),b.prototype.execute=function(){vara,b,c;if(this.validateSavedOperations()){for(b=0,c=h.length;c>b;b++)(a=h[b])(this._encode());returnthis}return!1},b.prototype._encode=function(){vara,b;return{type:"Delimiter",uid:this.getUid(),prev:null!=(a=this.prev_cl)?a.getUid():void0,next:null!=(b=this.next_cl)?b.ge
}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a};c=a("./StructuredTypes.coffee"),b.exports=function(a){varb,d,f,g,h,i;returnh=c(a),i=h.types,g=h.parser,b=function(a){functionb(){returnb.__super__.constructor.apply(this,arguments)}returne(b,a),b}(i.Delete),g.TextDelete=g.Delete,d=function(a){functionb(a,c,d,e,f){if(this.content=a,null==d||null==e)thrownewError("You must define prev, and next for TextInsert-types!");b.__super__.constructor.call(this,c,d,e,f)}returne(b,a),b.prototype.getLength=function(){returnthis.isDeleted()?0:this.content.length},b.prototype.val=function(){returnthis.isDeleted()?"":this.content},b.prototype._encode=function(){vara;returna={type:"TextInsert",content:this.content,uid:this.getUid(),prev:this.prev_cl.getUid(),next:this.next_cl.getUid()},null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},b}(i.Insert),g.TextInsert=function(a){varb,c,e,f,g;returnb=a.content,g=a.uid,f=a.prev,c=a.next,e=a.origin,newd(b,g,f,c,e)},f=function(c){functionf(a,b,c,d,e,g,h){f.__super__.constructor.call(this,a,c,d,e,g,h),null!=b&&this.insertText(0,b)}returne(f,c),f.prototype.insertText=function(b,c){vare,f,g,h,i,j;for(f=this.getOperationByPosition(b),j=[],h=0,i=c.length;i>h;h++)e=c[h],g=newd(e,a.getNextOperationIdentifier(),f.prev_cl,f),j.push(a.addOperation(g).execute());returnj},f.prototype.deleteText=function(c,d){vare,f,g,h,j;for(g=this.getOperationByPosition(c),j=[],f=h=0;d>=0?d>h:h>d;f=d>=0?++h:--h){for(e=a.addOperation(newb(a.getNextOperationIdentifier(),g)).execute(),g=g.next_cl;g.isDeleted();){if(ginstanceofi.Delimiter)thrownewError("You can't delete more than there is..");g=g.next_cl}j.push(e._encode())}returnj},f.prototype.replaceText=function(b){varc;if(null!=this.replace_manager)returnc=a.addOperation(newf(a.getNextOperationIdentifier())).execute(),c.insertText(0,b),this.replace_manager.replace(c);thrownewError("This type is currently not maintained by a ReplaceManager!")},f.prototype.val=function(){vara,b;returna=function(){vara,c,d,e;for(d=this.toArray(),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(null!=b.val?b.val():"");returne}.call(this),a.join("")},f.prototype.setReplaceManager=function(a){returnthis.saveOperation("replace_manager",a),this.validateSavedOperations},f.prototype._encode=function(){vara;returna={type:"Word",uid:this.getUid(),beginning:this.beginning.getUid(),end:this.end.getUid()},null!=this.prev_cl&&(a.prev=this.prev_cl.getUid()),null!=this.next_cl&&(a.next=this.next_cl.getUid()),null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},f}(i.ListManager),g.Word=function(a){varb,c,d,e,g,h;returnh=a.uid,b=a.beginning,c=a.end,g=a.prev,d=a.next,e=a.origin,newf(h,void0,b,c,g,d,e)},i.TextInsert=d,i.TextDelete=b,i.Word=f,h}},{"./StructuredTypes.coffee":7}]},{},[3,1]),!functioni(a,b,c){functiond(f,g){if(!b[f]){if(!a[f]){varh="function"==typeofrequire&&require;if(!g&&h)returnh(f,!0);if(e)returne(f,!0);thrownewError("Cannot find module '"+f+"'")}varj=b[f]={exports:{}};a[f][0].call(j.exports,function(b){varc=a[f][1][b];returnd(c?c:b)},j,j.exports,i,a,b,c)}returnb[f].exports}for(vare="function"==typeofrequire&&require,f=0;f<c.length;f++)d(c[f]);returnd}({1:[function(a,b){varc;c=function(a){varb,c,d,e,f,g,h;returnf={},c=newDUIClient,c.connect(function(a){varb;returnnull!=(b=f[a.action])?b.map(function(b){returnsetTimeout(function(){returnb(a)},0)}):void0}),c.initOK(),h=null,g=null,b=function(){functiona(a,b,d,e){vari,j,k;this.engine=a,this.HB=b,this.execution_listener=d,this.yatta=e,this.duiClient=c,this.iwcHandler=f,k=function(a){returnfunction(b){returna.send(b)}}(this),this.execution_listener.push(k),i=function(a){returnfunction(b){varc;returnc=b.extras,a.receive(c)}}(this),this.iwcHandler.Yatta_new_operation=[i],null!=h&&this.engine.applyOps(g),j=function(a){returnfunction(){varb;returnb={root_element:a.yatta.getRootElement(),HB:a.yatta.getHistoryBuffer()._encode()},a.sendIwcIntent("Yatta_push_root_el
c-a<=d.getDistanceToOrigin()&&(this.prev_cl=d,a=c+1)}c++,d=d.next_cl}this.next_cl=this.prev_cl.next_cl,this.prev_cl.next_cl=this,this.next_cl.prev_cl=this}returnb.__super__.execute.apply(this,arguments),this}return!1},b}(g),e=function(a){functionb(a,c,d,e,f){this.content=null!=c?c:"",b.__super__.constructor.call(this,a,d,e,f)}returnd(b,a),b.prototype.val=function(){returnthis.content},b.prototype._encode=function(){vara;returna={type:"ImmutableObject",uid:this.getUid(),content:this.content},null!=this.prev_cl&&(a.prev=this.prev_cl.getUid()),null!=this.next_cl&&(a.next=this.next_cl.getUid()),null!=this.origin&&this.origin!==this.prev_cl&&(a.origin=this.origin.getUid()),a},b}(f),i.ImmutableObject=function(a){varb,c,d,f,g;returng=a.uid,b=a.content,f=a.prev,c=a.next,d=a.origin,newe(g,b,f,c,d)},c=function(a){functionb(){returnb.__super__.constructor.apply(this,arguments)}returnd(b,a),b.prototype.execute=function(){vara,b,c;if(this.validateSavedOperations()){for(b=0,c=h.length;c>b;b++)(a=h[b])(this._encode());returnthis}return!1},b.prototype._encode=function(){vara,b;return{type:"Delimiter",uid:this.getUid(),prev:null!=(a=this.prev_cl)?a.getUid():void0,next:null!=(b=this.next_cl)?b.getUid():void0}},b}(f),i.Delimiter=function(a){varb,d,e;returne=a.uid,d=a.prev,b=a.next,newc(e,d,b)},{types:{Delete:b,Insert:f,Delimiter:c,Operation:g,ImmutableObject:e},parser:i,execution_listener:h}}},{}],6:[function(a,b){varc,d={}.hasOwnProperty,e=function(a,b){functionc(){this.constructor=a}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a};c=a("./TextTypes.coffee"),b.exports=function(a){varb,d,f,g,h;returng=c(a),h=g.types,f=g.parser,d=function(a){varc;returnnew(c=function(){functiona(c){vare,f,g,i;i=c.map,g=function(e,f){returnObject.defineProperty(a.prototype,e,{get:function(){vara;returna=f.val(),ainstanceofb?d(a):ainstanceofh.ImmutableObject?a.val():a},set:function(a){varb,d,f,g;if(a.constructor==={}.constructor){f=c.val(e),g=[];for(bina)d=a[b],g.push(f.val(b,d,"immutable"));returng}returnc.val(e,a,"immutable")},enumerable:!0,configurable:!1})};for(eini)f=i[e],g(e,f)}returna}())(a)},b=function(b){functionc(a,b,d){vare,f;if(c.__super__.constructor.call(this,a),null!=b){if("object"!=typeofb)thrownewError("The initial value of JsonTypes must be of type Object! (current type: "+typeofb+")");for(einb)f=b[e],this.val(e,f,d)}}returne(c,b),c.prototype.mutable_default=!0,c.prototype.setMutableDefault=function(a){if(a===!0||"mutable"===a)c.prototype.mutable_default=!0;else{if(a!==!1&&"immutable"!==a)thrownewError('Set mutable either "mutable" or "immutable"!');c.prototype.mutable_default=!1}return"OK"},c.prototype.val=function(b,d,e){varf,g,i,j,k;if("object"==typeofb){for(iinb)g=b[i],this.val(i,g,d);returnthis}if(null!=b&&null!=d){if(e=null!=e?e===!0||"mutable"===e?!0:!1:this.mutable_default,"function"==typeofd)returnthis;if(e&&"number"!=typeofd||d.constructor===Object){if("string"==typeofd)returnk=a.addOperation(newh.Word(a.getNextOperationIdentifier(),d)).execute(),c.__super__.val.call(this,b,k);if(d.constructor===Object)returnf=a.addOperation(newc(a.getNextOperationIdentifier(),d,e)).execute(),c.__super__.val.call(this,b,f);thrownewError("You must not set "+typeofd+"-types in collaborative Json-objects!")}returnj=a.addOperation(newh.ImmutableObject(void0,d)).execute(),c.__super__.val.call(this,b,j)}returnc.__super__.val.call(this,b,d)},Object.defineProperty(c.prototype,"value",{get:function(){returnd(this)},set:function(a){varb,c,d;if(a.constructor==={}.constructor){d=[];for(bina)c=a[b],d.push(this.val(b,c,"immutable"));returnd}thrownewError("You must only set Object values!")}}),c.prototype._encode=function(){return{type:"JsonType",uid:this.getUid()}},c}(h.MapManager),f.JsonType=function(a){varc;returnc=a.uid,newb(c)},h.JsonType=b,g}},{"./TextTypes.coffee":8}],7:[function(a,b){varc,d={}.hasOwnProperty,e=function(a,b){functionc(){this.constructor=a}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.pr
},i.TextInsert=d,i.TextDelete=b,i.Word=f,h}},{"./StructuredTypes.coffee":7}]},{},[3,1]),!functionl(a,b,c){functiond(f,g){if(!b[f]){if(!a[f]){varh="function"==typeofrequire&&require;if(!g&&h)returnh(f,!0);if(e)returne(f,!0);thrownewError("Cannot find module '"+f+"'")}vari=b[f]={exports:{}};a[f][0].call(i.exports,function(b){varc=a[f][1][b];returnd(c?c:b)},i,i.exports,l,a,b,c)}returnb[f].exports}for(vare="function"==typeofrequire&&require,f=0;f<c.length;f++)d(c[f]);returnd}({1:[function(a,b){varc;c=function(a){varb,c,d,e,f,g,h;returnf={},c=newDUIClient,c.connect(function(a){varb;returnnull!=(b=f[a.action])?b.map(function(b){returnsetTimeout(function(){returnb(a)},0)}):void0}),c.initOK(),h=null,g=null,b=function(){functiona(a,b,d,e){vari,j,k;this.engine=a,this.HB=b,this.execution_listener=d,this.yatta=e,this.duiClient=c,this.iwcHandler=f,k=function(a){returnfunction(b){returna.send(b)}}(this),this.execution_listener.push(k),i=function(a){returnfunction(b){varc;returnc=b.extras,a.receive(c)}}(this),this.iwcHandler.Yatta_new_operation=[i],null!=h&&this.engine.applyOps(g),j=function(a){returnfunction(){varb;returnb={root_element:a.yatta.getRootElement(),HB:a.yatta.getHistoryBuffer()._encode()},a.sendIwcIntent("Yatta_push_root_element",b)}}(this),this.iwcHandler.Yatta_get_root_element=[j]}returna.prototype.getRootElement=function(){returnh},a.prototype.send=function(a){returna.uid.creator===this.HB.getUserId()&&"string"!=typeofa.uid.op_number?this.sendIwcIntent("Yatta_new_operation",a):void0},a.prototype.receive=function(a){returna.uid.creator!==this.HB.getUserId()?this.engine.applyOp(a):void0},a.prototype.sendIwcIntent=function(a,b){varc;returnc={action:a,component:"",data:"",dataType:"",extras:b},this.duiClient.sendIntent(c)},a.prototype.sync=function(){thrownewError("Can't use this a.t.m.")},a}(),d={action:"Yatta_get_root_element",component:"",data:"",dataType:"",extras:{}},e=function(){vare,i;returnc.sendIntent(d),e=!1,i=function(d){varf;returnf=c.getIwcClient()._componentName,h=null!=d?d.extras.root_element:void0,g=null!=d?d.extras.HB:void0,e?void0:(e=!0,a(b,f))},f.Yatta_push_root_element=[i],setTimeout(i,800)},voidsetTimeout(e,4e3*Math.random())},b.exports=c,"undefined"!=typeofwindow&&null!==window&&(window.createConnector=c)},{}],2:[function(a,b){varc;c=function(){functiona(a,b){this.HB=a,this.parser=b,this.unprocessed_ops=[]}returna.prototype.parseOperation=function(a){varb;if(b=this.parser[a.type],null!=b)returnb(a);thrownewError("You forgot to specify a parser for type "+a.type+". The message is "+JSON.stringify(a)+".")},a.prototype.applyOps=function(a){varb,c,d,e,f,g,h,i;for(c=[],d=0,g=a.length;g>d;d++)b=a[d],c.push(this.parseOperation(b));for(e=0,h=c.length;h>e;e++)b=c[e],this.HB.addOperation(b);for(f=0,i=c.length;i>f;f++)b=c[f],b.execute()||this.unprocessed_ops.push(b);returnthis.tryUnprocessed()},a.prototype.applyOp=function(a){varb;returnb=this.parseOperation(a),this.HB.addOperation(b),b.execute()||this.unprocessed_ops.push(b),this.tryUnprocessed()},a.prototype.tryUnprocessed=function(){vara,b,c,d,e,f,g;for(g=[];;){for(a=this.unprocessed_ops.length,c=[],f=this.unprocessed_ops,d=0,e=f.length;e>d;d++)b=f[d],b.execute()||c.push(b);if(this.unprocessed_ops=c,this.unprocessed_ops.length===a)break;g.push(void0)}returng},a}(),b.exports=c},{}],3:[function(a,b){varc,d,e,f;f=a("../Types/JsonTypes.coffee"),d=a("../HistoryBuffer.coffee"),c=a("../Engine.coffee"),e=function(){functiona(a,b){vare,g,h;this.HB=newd(a),g=f(this.HB),this.engine=newc(this.HB,g.parser),this.connector=newb(this.engine,this.HB,g.execution_listener,this),h=this.connector.getRootElement(),null==h?(e=newg.types.JsonType(this.HB.getNextOperationIdentifier()),this.HB.addOperation(e),e.execute(),this.root_element=e):this.root_element=this.HB.getOperation(h)}returna.prototype.getRootElement=function(){returnthis.root_element},a.prototype.getEngine=function(){returnthis.engine},a.prototype.getConnector=function(){returnthis.connector},a.prototype.getHistoryBuffer=function(){returnt
returnthis}if(null!=b&&null!=d){if(e=null!=e?e===!0||"mutable"===e?!0:!1:this.mutable_default,"function"==typeofd)returnthis;if(e&&"number"!=typeofd||d.constructor===Object){if("string"==typeofd)returnk=a.addOperation(newh.Word(a.getNextOperationIdentifier(),d)).execute(),c.__super__.val.call(this,b,k);if(d.constructor===Object)returnf=a.addOperation(newc(a.getNextOperationIdentifier(),d,e)).execute(),c.__super__.val.call(this,b,f);thrownewError("You must not set "+typeofd+"-types in collaborative Json-objects!")}returnj=a.addOperation(newh.ImmutableObject(void0,d)).execute(),c.__super__.val.call(this,b,j)}returnc.__super__.val.call(this,b,d)},Object.defineProperty(c.prototype,"value",{get:function(){returnd(this)},set:function(a){varb,c,d;if(a.constructor==={}.constructor){d=[];for(bina)c=a[b],d.push(this.val(b,c,"immutable"));returnd}thrownewError("You must only set Object values!")}}),c.prototype._encode=function(){return{type:"JsonType",uid:this.getUid()}},c}(h.MapManager),f.JsonType=function(a){varc;returnc=a.uid,newb(c)},h.JsonType=b,g}},{"./TextTypes.coffee":8}],7:[function(a,b){varc,d={}.hasOwnProperty,e=function(a,b){functionc(){this.constructor=a}for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a};c=a("./BasicTypes.coffee"),b.exports=function(a){varb,d,f,g,h,i,j,k;returni=c(a),k=i.types,j=i.parser,f=function(c){functiond(a){this.map={},d.__super__.constructor.call(this,a)}returne(d,c),d.prototype.val=function(c,e){varf,g,h,i,j;if(null!=e)returnnull==this.map[c]&&a.addOperation(newb(a.getNextOperationIdentifier(),this,c)).execute(),this.map[c].replace(e),this;if(null!=c)returng=null!=(i=this.map[c])?i.val():void0,ginstanceofk.ImmutableObject?g.val():g;h={},j=this.map;for(cinj)f=j[c],g=f.val(),(ginstanceofk.ImmutableObject||ginstanceofd)&&(g=g.val()),h[c]=g;returnh},d}(k.Operation),b=function(b){functionc(a,b,d){this.name=d,this.saveOperation("map_manager",b),c.__super__.constructor.call(this,a)}returne(c,b),c.prototype.execute=function(){varb,d,e,f,h;returnthis.validateSavedOperations()?(h=this.map_manager.getUid(),h.op_number="_"+h.op_number+"_RM_"+this.name,null==a.getOperation(h)&&(e=this.map_manager.getUid(),e.op_number="_"+e.op_number+"_RM_"+this.name+"_beginning",f=this.map_manager.getUid(),f.op_number="_"+f.op_number+"_RM_"+this.name+"_end",b=a.addOperation(newk.Delimiter(e,void0,f)),d=a.addOperation(newk.Delimiter(f,b,void0)).execute(),b.execute(),this.map_manager.map[this.name]=a.addOperation(newg(void0,h,b,d)).execute()),c.__super__.execute.apply(this,arguments)):!1},c.prototype._encode=function(){return{type:"AddName",uid:this.getUid(),map_manager:this.map_manager.getUid(),name:this.name}},c}(k.Operation),j.AddName=function(a){varc,d,e;returnc=a.map_manager,e=a.uid,d=a.name,newb(e,c,d)},d=function(b){functionc(b,d,e,f,g,h){null!=d&&null!=e?(this.saveOperation("beginning",d),this.saveOperation("end",e)):(this.beginning=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),void0,void0)),this.end=a.addOperation(newk.Delimiter(a.getNextOperationIdentifier(),this.beginning,void0)),this.beginning.next_cl=this.end,this.beginning.execute(),this.end.execute()),c.__super__.constructor.call(this,b,f,g,h)}returne(c,b),c.prototype.getLastOperation=function(){returnthis.end.prev_cl},c.prototype.getFirstOperation=function(){returnthis.beginning.next_cl},c.prototype.toArray=function(){vara,b;for(a=this.beginning.next_cl,b=[];a!==this.end;)b.push(a),a=a.next_cl;returnb},c.prototype.getOperationByPosition=function(a){varb;if(b=this.beginning.next_cl,a>0)for(;b=b.next_cl,b.isDeleted()||(a-=1),0!==a;)if(binstanceofk.Delimiter)thrownewError("position parameter exceeded the length of the document!");returnb},c}(k.Insert),g=function(b){functionc(a,b,d,e,f,g,h){c.__super__.constructor.call(this,b,d,e,f,g,h),null!=a&&this.replace(a)}returne(c,b),c.prototype.replace=function(b){varc,d;returnc=this.getLastOperation(),d=newh(b,this,a.getNextOperationIdentifier(),c,c.next_cl),a.a
returnthis.tryUnprocessed()},a.prototype.applyOp=function(a){varb;returnb=this.parseOperation(a),this.HB.addOperation(b),b.execute()||this.unprocessed_ops.push(b),this.tryUnprocessed()},a.prototype.tryUnprocessed=function(){vara,b,c,d,e,f,g;for(g=[];;){for(a=this.unprocessed_ops.length,c=[],f=this.unprocessed_ops,d=0,e=f.length;e>d;d++)b=f[d],b.execute()||c.push(b);if(this.unprocessed_ops=c,this.unprocessed_ops.length===a)break;g.push(void0)}returng},a}(),b.exports=c},{}],3:[function(a,b){varc,d,e,f;f=a("../Types/JsonTypes.coffee"),d=a("../HistoryBuffer.coffee"),c=a("../Engine.coffee"),e=function(){functiona(a,b){vare,g,h;this.HB=newd(a),g=f(this.HB),this.engine=newc(this.HB,g.parser),this.connector=newb(this.engine,this.HB,g.execution_listener,this),h=this.connector.getRootElement(),null==h?(e=newg.types.JsonType(this.HB.getNextOperationIdentifier()),this.HB.addOperation(e),e.execute(),this.root_element=e):this.root_element=this.HB.getOperation(h)}returna.prototype.getRootElement=function(){returnthis.root_element},a.prototype.getEngine=function(){returnthis.engine},a.prototype.getConnector=function(){returnthis.connector},a.prototype.getHistoryBuffer=function(){returnthis.HB},a.prototype.setMutableDefault=function(a){returnthis.root_element.setMutableDefault(a)},a.prototype.getUserId=function(){returnthis.HB.getUserId()},a.prototype.val=function(a,b,c){returnthis.root_element.val(a,b,c)},Object.defineProperty(a.prototype,"value",{get:function(){returnthis.root_element.value},set:function(a){varb,c,d;if(a.constructor==={}.constructor){d=[];for(bina)c=a[b],d.push(this.val(b,c,"immutable"));returnd}thrownewError("You must only set Object values!")}}),a}(),"undefined"!=typeofwindow&&null!==window&&(window.JsonYatta=e),b.exports=e},{"../Engine.coffee":2,"../HistoryBuffer.coffee":4,"../Types/JsonTypes.coffee":6}],4:[function(a,b){varc;c=function(){functiona(a){this.user_id=a,this.operation_counter={},this.buffer={},this.change_listeners=[]}returna.prototype.getUserId=function(){returnthis.user_id},a.prototype.getOperationCounter=function(){vara,b,c,d;b={},d=this.operation_counter;for(cind)a=d[c],b[c]=a;returnb},a.prototype._encode=function(){vara,b,c,d,e,f;a=[],f=this.buffer;for(dinf){e=f[d];for(cine)b=e[c],isNaN(parseInt(c))||a.push(b._encode())}returna},a.prototype.getNextOperationIdentifier=function(a){varb;returnnull==a&&(a=this.user_id),null==this.operation_counter[a]&&(this.operation_counter[a]=0),b={creator:a,op_number:this.operation_counter[a]},this.operation_counter[a]++,b},a.prototype.getOperation=function(a){varb;if(ainstanceofObject)returnnull!=(b=this.buffer[a.creator])?b[a.op_number]:void0;if(null!=a)thrownewError("This type of uid is not defined!")},a.prototype.addOperation=function(a){if(null==this.buffer[a.creator]&&(this.buffer[a.creator]={}),null==this.operation_counter[a.creator]&&(this.operation_counter[a.creator]=0),null!=this.buffer[a.creator][a.op_number])thrownewError("You must not overwrite operations!");returnthis.buffer[a.creator][a.op_number]=a,"number"==typeofa.op_number&&a.creator!==this.getUserId()&&this.operation_counter[a.creator]++,a},a}(),b.exports=c},{}],5:[function(a,b){varc={}.hasOwnProperty,d=function(a,b){functiond(){this.constructor=a}for(vareinb)c.call(b,e)&&(a[e]=b[e]);returnd.prototype=b.prototype,a.prototype=newd,a.__super__=b.prototype,a};b.exports=function(a){varb,c,e,f,g,h,i;returni={},h=[],g=function(){functionb(b){null==b&&(b=a.getNextOperationIdentifier()),this.creator=b.creator,this.op_number=b.op_number}returnb.prototype.getUid=function(){return{creator:this.creator,op_number:this.op_number}},b.prototype.execute=function(){vara,b,c;for(this.is_executed=!0,b=0,c=h.length;c>b;b++)(a=h[b])(this._encode());returnthis},b.prototype.saveOperation=function(a,b){returnnull!=(null!=b?b.execute:void0)?this[a]=b:null!=b?(null==this.unchecked&&(this.unchecked={}),this.unchecked[a]=b):void0},b.prototype.validateSavedOperations=function(){varb,c,d,e,f,g;f={},e=this,g=this.unchecked;for(bing)d=g[b],c=a.getOperati