@bryntum/engine-thin-trial 7.2.3 → 7.3.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/lib/ChronoGraph/chrono/Effect.js +1 -1
- package/lib/ChronoGraph/chrono/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Identifier.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/calendar/CalendarCacheSingle.js +1 -1
- package/lib/chrono/ChronoModelMixin.js +1 -1
- package/lib/chrono/Replica.js +1 -1
- package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -1
- package/lib/quark/model/gantt/ConstrainedLateScheduleMixin.js +1 -1
- package/lib/quark/model/mixin/AbstractPartOfProjectModelMixin.js +1 -1
- package/lib/quark/model/mixin/ChronoPartOfProjectModelMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/BaseCalendarMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/HasCalendarMixin.js +1 -1
- package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_core/SchedulerCoreProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedScheduleMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/lib/quark/store/mixin/AbstractPartOfProjectStoreMixin.js +1 -1
- package/lib/quark/store/mixin/ChronoPartOfProjectStoreMixin.js +1 -1
- package/lib/quark/store/mixin/CorePartOfProjectStoreMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function l(a,b){return _enb(
|
|
1
|
+
(function(a,b){const c=a();function l(a,b){return _enb(a-0x2e2,b);}while(!![]){try{const d=parseInt(l(0x40b,0x3fd))/0x1+parseInt(l(0x414,0x420))/0x2+parseInt(l(0x422,0x42e))/0x3*(parseInt(l(0x415,0x408))/0x4)+-parseInt(l(0x417,0x422))/0x5*(parseInt(l(0x40a,0x3fd))/0x6)+-parseInt(l(0x425,0x420))/0x7+-parseInt(l(0x41c,0x412))/0x8+-parseInt(l(0x40e,0x41b))/0x9*(-parseInt(l(0x41e,0x422))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x96a65));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x47b,0x46e)](b,e):f,j;function m(a,b){return _enb(b-0x338,a);}if(typeof Reflect===m(0x479,0x477)&&typeof Reflect[m(0x473,0x468)]===m(0x47d,0x47d))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x473,0x467)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x468,0x465)](b,e,h),h;};import{Base}from'../class/Base.js';import{prototypeValue}from'../util/Helpers.js';const BreakCurrentStackExecution=Symbol(_enn(0x431,0x422));class Effect extends Base{}__decorate([prototypeValue(!![])],Effect['prototype'],'sync',void 0x0);__decorate([prototypeValue(!![])],Effect[_enn(0x42f,0x42b)],_enn(0x43d,0x438),void 0x0);const ProposedOrPreviousSymbol=Symbol(_enn(0x42e,0x43a));const ProposedOrPrevious=Effect[_enn(0x433,0x42c)]({'handler':ProposedOrPreviousSymbol});const RejectSymbol=Symbol('RejectSymbol');class RejectEffect extends Effect{constructor(){super(...arguments);this['handler']=RejectSymbol;}}__decorate([prototypeValue(![])],RejectEffect[_enn(0x427,0x42b)],_enn(0x444,0x438),void 0x0);const Reject=a=>RejectEffect[_enn(0x430,0x42c)]({'reason':a});const TransactionSymbol=Symbol(_enn(0x427,0x432));const GetTransaction=Effect[_enn(0x424,0x42c)]({'handler':TransactionSymbol});function _enn(a,b){return _enb(b-0x2f4,a);}const OwnQuarkSymbol=Symbol(_enn(0x41c,0x41f));const OwnQuark=Effect[_enn(0x437,0x42c)]({'handler':OwnQuarkSymbol});const OwnIdentifierSymbol=Symbol(_enn(0x438,0x435));const OwnIdentifier=Effect['new']({'handler':OwnIdentifierSymbol});const WriteSymbol=Symbol(_enn(0x421,0x41e));class WriteEffect extends Effect{constructor(){function o(a,b){return _enn(b,a- -0x27f);}super(...arguments);this[o(0x1b7,0x1af)]=WriteSymbol;}}__decorate([prototypeValue(![])],WriteEffect[_enn(0x437,0x42b)],_enn(0x43e,0x438),void 0x0);const Write=(a,b,...c)=>WriteEffect[_enn(0x422,0x42c)]({'identifier':a,'proposedArgs':[b,...c]});const WriteSeveralSymbol=Symbol('WriteSeveralSymbol');class WriteSeveralEffect extends Effect{constructor(){super(...arguments);this['handler']=WriteSeveralSymbol;}}__decorate([prototypeValue(![])],WriteSeveralEffect[_enn(0x435,0x42b)],_enn(0x435,0x438),void 0x0);const WriteSeveral=a=>WriteSeveralEffect[_enn(0x420,0x42c)]({'writes':a});const HasPreviousValueSymbol=Symbol('HasPreviousValueSymbol');class HasPreviousValueEffect extends Effect{constructor(){super(...arguments);this['handler']=HasPreviousValueSymbol;}}const HasPreviousValue=a=>HasPreviousValueEffect['new']({'identifier':a});const PreviousValueOfSymbol=Symbol(_enn(0x416,0x425));class PreviousValueOfEffect extends Effect{constructor(){super(...arguments);this['handler']=PreviousValueOfSymbol;}}function _ena(){const x=['ProposedArgumentsOfSymbol','27310unuNMo','ProposedOrPreviousValueOfSymbol','TransactionSymbol','object','573NJRzxo','OwnIdentifierSymbol','handler','7019397kMGCAi','pure','function','ProposedOrPreviousSymbol','HasProposedNotPreviousValueSymbol','4185546VbMzWF','250849OeIslw','WriteSymbol','OwnQuarkSymbol','4248WMUPYj','defineProperty','BreakCurrentStackExecution','length','decorate','PreviousValueOfSymbol','964680zDqksf','15668HRnRxy','UnsafePreviousValueOfSymbol','5Brhtmz','getOwnPropertyDescriptor','prototype','new','UnsafeProposedOrPreviousValueOfSymbol','3623560eizzcD'];_ena=function(){return x;};return _ena();}const PreviousValueOf=a=>PreviousValueOfEffect[_enn(0x420,0x42c)]({'identifier':a});const ProposedValueOfSymbol=Symbol('ProposedValueOfSymbol');class ProposedValueOfEffect extends Effect{constructor(){super(...arguments);function p(a,b){return _enn(a,b- -0xb6);}this[p(0x37c,0x380)]=ProposedValueOfSymbol;}}const ProposedValueOf=a=>ProposedValueOfEffect[_enn(0x425,0x42c)]({'identifier':a});const HasProposedValueSymbol=Symbol('HasProposedValueSymbol');class HasProposedValueEffect extends Effect{constructor(){super(...arguments);function q(a,b){return _enn(a,b- -0x1b0);}this[q(0x283,0x286)]=HasProposedValueSymbol;}}const HasProposedValue=a=>HasProposedValueEffect[_enn(0x420,0x42c)]({'identifier':a});const HasProposedNotPreviousValueSymbol=Symbol(_enn(0x417,0x41b));class HasProposedNotPreviousValueEffect extends Effect{constructor(){function r(a,b){return _enn(a,b- -0x4ba);}super(...arguments);this[r(-0x87,-0x84)]=HasProposedNotPreviousValueSymbol;}}const HasProposedNotPreviousValue=a=>HasProposedNotPreviousValueEffect['new']({'identifier':a});const ProposedOrPreviousValueOfSymbol=Symbol(_enn(0x43e,0x431));class ProposedOrPreviousValueOfEffect extends Effect{constructor(){function s(a,b){return _enn(b,a- -0x40d);}super(...arguments);this[s(0x29,0x2b)]=ProposedOrPreviousValueOfSymbol;}}const ProposedOrPreviousValueOf=a=>ProposedOrPreviousValueOfEffect[_enn(0x43b,0x42c)]({'identifier':a});const ProposedArgumentsOfSymbol=Symbol(_enn(0x43e,0x42f));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x127;let f=c[d];return f;};return _enb(a,b);}class ProposedArgumentsOfEffect extends Effect{constructor(){function t(a,b){return _enn(a,b- -0x3e1);}super(...arguments);this[t(0x55,0x55)]=ProposedArgumentsOfSymbol;}}const ProposedArgumentsOf=a=>ProposedArgumentsOfEffect['new']({'identifier':a});const ProposeCountOfSymbol=Symbol('ProposeCountOfSymbol');class ProposeCountOfEffect extends Effect{constructor(){function u(a,b){return _enn(b,a- -0x441);}super(...arguments);this[u(-0xb,-0x19)]=ProposeCountOfSymbol;}}const ProposeCountOf=a=>ProposeCountOfEffect['new']({'identifier':a});const UnsafeProposedOrPreviousValueOfSymbol=Symbol(_enn(0x433,0x42d));class UnsafeProposedOrPreviousValueOfEffect extends Effect{constructor(){function v(a,b){return _enn(b,a- -0x312);}super(...arguments);this[v(0x124,0x117)]=UnsafeProposedOrPreviousValueOfSymbol;}}const UnsafeProposedOrPreviousValueOf=a=>UnsafeProposedOrPreviousValueOfEffect[_enn(0x42a,0x42c)]({'identifier':a});const UnsafePreviousValueOfSymbol=Symbol(_enn(0x427,0x428));class UnsafePreviousValueOfEffect extends Effect{constructor(){super(...arguments);function w(a,b){return _enn(a,b- -0x4f7);}this[w(-0xc5,-0xc1)]=UnsafePreviousValueOfSymbol;}}const UnsafePreviousValueOf=a=>UnsafePreviousValueOfEffect[_enn(0x434,0x42c)]({'identifier':a});export{BreakCurrentStackExecution,Effect,GetTransaction,HasPreviousValue,HasPreviousValueEffect,HasPreviousValueSymbol,HasProposedNotPreviousValue,HasProposedNotPreviousValueEffect,HasProposedNotPreviousValueSymbol,HasProposedValue,HasProposedValueEffect,HasProposedValueSymbol,OwnIdentifier,OwnIdentifierSymbol,OwnQuark,OwnQuarkSymbol,PreviousValueOf,PreviousValueOfEffect,PreviousValueOfSymbol,ProposeCountOf,ProposeCountOfEffect,ProposeCountOfSymbol,ProposedArgumentsOf,ProposedArgumentsOfEffect,ProposedArgumentsOfSymbol,ProposedOrPrevious,ProposedOrPreviousSymbol,ProposedOrPreviousValueOf,ProposedOrPreviousValueOfEffect,ProposedOrPreviousValueOfSymbol,ProposedValueOf,ProposedValueOfEffect,ProposedValueOfSymbol,Reject,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOf,UnsafePreviousValueOfEffect,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOf,UnsafeProposedOrPreviousValueOfEffect,UnsafeProposedOrPreviousValueOfSymbol,Write,WriteEffect,WriteSeveral,WriteSeveralEffect,WriteSeveralSymbol,WriteSymbol};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function j(a,b){return _enb(b-0x4b,a);}while(!![]){try{const d=-parseInt(j(0x218,0x218))/0x1+parseInt(j(0x25c,0x220))/0x2*(parseInt(j(0x1f9,0x206))/0x3)+-parseInt(j(0x1d3,0x1f7))/0x4*(-parseInt(j(0x240,0x256))/0x5)+parseInt(j(0x238,0x1f5))/0x6+-parseInt(j(0x229,0x20f))/0x7*(-parseInt(j(0x209,0x231))/0x8)+parseInt(j(0x230,0x232))/0x9*(parseInt(j(0x252,0x225))/0xa)+-parseInt(j(0x241,0x22e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x7efd3));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';function _ena(){const aj=['reason','autoCommitMode','cycle','autoCommitTimeoutId','clearRejected','push','propagate','warn','startNewEpoch','addEdge','topRevision','readAsync','78JYqepp','$activeTransaction','onComputationCycle','variable','forEach','hasPendingAutoCommit','baseRevisionTentative','initialize','compactRevisions','2245817dmSEKq','baseRevisionStable','onComputationCycleHandler','observe','isCommitting','delete','finalizeCommit','message','baseRevision','730081ojtvZA','addListener','onWriteDuringCommit','write','eachReachableRevision','isWritingPreviousData','$followingRevision','throw','23792BjPBIQ','previous','level','finally','origin','10tyBBAJ','isJustCleared','length','isInitialCommit','clearBranch','followingRevision','clearProperties','walkContext','dirty','8526793drAxHL','reject','autoCommitHandler','16zOpCIV','1941633VeVwbd','ongoing','startOrigin','getValue','proposedValue','identifier','lazy','autoCommit','trigger','identifierNamed','candidate','scheduleAutoCommit','proposedArguments','activeTransaction','ignore','new','variableNamed','then','constructor','value','referenceCount','cleanup','read','commit','getActiveEntry','from','scope','previousAxis','selfDependent','resolve','listeners','transactionClass','enableProgressNotifications','Adding\x20identifier\x20during\x20commit','sync','addIdentifier','5lNSEJu','log','writtenValue','getProposedValue','continueCalculation','undo','rejectedWith','addCycle','proposedIsPrevious','set','unshift','clear','redo','hasIdentifier','writes','Computation\x20cycle:\x0a','handlers','observeContext','onPropagationProgressNotification','get','reachableCount','unScheduleAutoCommit','_isInitialCommit','readProposedOrPrevious','doCommitAsync','hasValue','Invalid\x20compact\x20operation','historyLimit','markAndSweep','Removing\x20identifier\x20during\x20commit','entries','proposedArgs','Graph\x20cleared','commitAsync','hasProposedValue','readPrevious','1446972dCASFY','name','2470136mhnRid','readPreviousAsync','isShadow'];_ena=function(){return aj;};return _ena();}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x188;let f=c[d];return f;};return _enb(a,b);}function _enl(a,b){return _enb(b- -0x109,a);}class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b-0x1e3,a);}this[k(0x3b6,0x379)]=[];}[_enl(0x119,0xe6)](a){function m(a,b){return _enl(b,a- -0x181);}for(let b=0x0;b<this['handlers'][m(-0xae,-0xbc)];b++)this[m(-0xf4,-0xd9)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[n(0x236,0x23a)]=void 0x0;this[n(0x244,0x245)]=Revision[n(0x2b1,0x26f)]();this[n(0x1fe,0x232)]=void 0x0;this['historyLimit']=0x0;this[n(0x256,0x27e)]=new Map();this[n(0x270,0x24b)]=0x0;this[n(0x200,0x235)]=void 0x0;this[n(0x223,0x241)]=![];this[n(0x296,0x280)]=![];this[n(0x25c,0x261)]=Promise[n(0x254,0x27d)]();this[n(0x21b,0x215)]=!![];this[n(0x20f,0x22b)]=null;this['autoCommit']=![];function n(a,b){return _enl(a,b-0x182);}this[n(0x263,0x229)]=n(0x2a0,0x282);this[n(0x294,0x25e)]=null;this[n(0x263,0x248)]=n(0x28a,0x24d);this[n(0x25e,0x236)]=n(0x276,0x24d);this[n(0x2a8,0x27f)]=Transaction;this[n(0x239,0x254)]=![];this['$followingRevision']=void 0x0;}[_enl(0xde,0xb9)](...a){super[o(0x41c,0x431)](...a);if(!this['topRevision'])this[o(0x46a,0x428)]=this[o(0x420,0x43b)];if(this[o(0x421,0x45d)]){this[o(0x45a,0x454)]=this['autoCommitMode']===o(0x492,0x478)?b=>this['commit'](b):async b=>this[o(0x418,0x416)](b);}function o(a,b){return _enl(a,b-0x378);}this[o(0x443,0x411)]();}[_enl(0xad,0xb7)](){function p(a,b){return _enl(b,a-0x39a);}return this[p(0x443,0x42c)]!==null;}get['dirty'](){return this['activeTransaction']['dirty'];}[_enl(0x82,0x88)](){function q(a,b){return _enl(b,a- -0x218);}this[q(-0x13d,-0x15d)]();this[q(-0x186,-0x168)]();this[q(-0x155,-0x112)][q(-0x120,-0x137)]&&this[q(-0x155,-0x187)][q(-0x120,-0x14c)][q(-0x190,-0x1b1)]();this[q(-0x155,-0x173)][q(-0x14b,-0x16f)]=null;this[q(-0x11c,-0x10e)][q(-0x190,-0x157)]();this[q(-0x168,-0x17e)]=this['baseRevision'];this[q(-0x14e,-0x124)]=void 0x0;this[q(-0x165,-0x152)]=void 0x0;this[q(-0x17f,-0x13c)]();this['isJustCleared']=!![];}[_enl(0xfb,0xd5)](){this[r(0x427,0x3e5)]();this[r(0x3de,0x3de)]();function r(a,b){return _enl(b,a-0x34c);}for(const [a,b]of this[r(0x414,0x3ea)]()){if(b)a['reachableCount']--;a[r(0x43e,0x446)]--;}this[r(0x448,0x430)]['clear']();this['topRevision']=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x3ff,0x3c2)]=void 0x0;}*['eachReachableRevision'](){let a=!![];let b=0x0;function s(a,b){return _enl(a,b- -0x28d);}for(const c of this[s(-0x1ef,-0x1dd)][s(-0x176,-0x194)]()){yield[c,a||b<this[s(-0x22b,-0x1f5)]];if(c===this[s(-0x20c,-0x1ca)]){a=![];}else{if(!a)b++;}}}get[_enl(0x9a,0xd4)](){function t(a,b){return _enl(b,a-0x34e);}return this[t(0x3e1,0x3a2)];}set['isInitialCommit'](a){this['_isInitialCommit']=a;}[_enl(0x5a,0x99)](){let a;const b=[];for(const [c,d]of this['eachReachableRevision']()){if(d){c[u(0x2,0x2e)]++;a=c;}else b[u(0x1c,0xe)](c);c[u(0x63,0x5d)]++;}b[u(-0x8,0x1b)](a);function u(a,b){return _enl(b,a- -0x8f);}for(let e=b[u(0x44,0x21)]-0x1;e>=0x1&&b[e][u(0x2,-0x10)]===0x0;e--){this[u(0x2b,-0x2)](b[e-0x1],b[e]);}}[_enl(0xe6,0xba)](a,b){if(b['reachableCount']>0x0||a[v(0xfe,0x11f)]!==b)throw new Error(v(0xc8,0xae));if(b[v(0x123,0x105)]<=0x1){for(const [c,d]of a[v(0x129,0x160)]){if(d[v(0x112,0x137)]()===TombStone){b['scope'][v(0xf1,0x12b)](c);}else{const e=b[v(0x129,0x155)]['get'](c);if(d[v(0x101,0xc9)]===d){if(e){e[v(0xb9,0xf4)]();e[v(0x108,0xf3)]();}}else if(e&&d[v(0x101,0xcd)]===e){d['mergePreviousOrigin'](a[v(0x129,0x13c)]);}else if(c[v(0x115,0x12b)]&&!d[v(0x101,0xc2)]&&e&&e[v(0x101,0xc6)]){d[v(0x111,0xdf)]()[v(0x113,0xd7)]=e[v(0x101,0x101)][v(0x122,0x119)]!==void 0x0?e['origin'][v(0x122,0x11e)]:e[v(0x101,0x13a)][v(0x113,0x105)];}d['previous']=void 0x0;b[v(0x129,0x137)][v(0xb7,0x9e)](c,d);}}copySetInto(a['selfDependent'],b[v(0x12b,0x137)]);a[v(0x129,0x158)]=b['scope'];b[v(0x129,0x117)]=null;}else{a[v(0x129,0xf1)]=new Map(concat(b['scope'],a[v(0x129,0x162)]));a[v(0x12b,0x120)]=new Set(concat(b[v(0x12b,0x165)],a[v(0x12b,0x159)]));b['referenceCount']--;}function v(a,b){return _enl(b,a-0x31);}a[v(0xfe,0xff)]=null;}get[_enl(0xef,0xd6)](){if(this[w(0x494,0x4af)]!==void 0x0)return this[w(0x494,0x469)];const a=Array[w(0x4c1,0x4d4)](this[w(0x47a,0x4ad)][w(0x4c3,0x4ae)]());const b=[];for(let c=a[w(0x49d,0x47e)]-0x1;c>0x0;c--)b[w(0x475,0x488)]([a[c],a[c-0x1]]);function w(a,b){return _enl(b,a-0x3ca);}return this[w(0x494,0x4b1)]=new Map(b);}get[_enl(0xd1,0xeb)](){if(this[x(0x241,0x21b)])return this['$activeTransaction'];function x(a,b){return _enl(b,a-0x18e);}return this[x(0x241,0x26e)]=this[x(0x28b,0x2cb)]['new']({'baseRevision':this[x(0x246,0x27e)]||this[x(0x251,0x215)],'graph':this});}['branch'](a){const b=this[y(0x243,0x22a)];function y(a,b){return _enl(a,b-0x13a);}return b[y(0x1f4,0x227)](Object['assign']({},a,{'baseRevision':this[y(0x1fd,0x1fd)]}));}[_enl(0xe8,0xac)](a){function z(a,b){return _enl(a,b-0x482);}return this[z(0x5a0,0x577)](a);}[_enl(0xba,0xdb)](a){this[A(0x236,0x1fe)]['reject'](RejectEffect['new']({'reason':a}));function A(a,b){return _enl(b,a-0x14b);}this[A(0x22a,0x264)]=Promise[A(0x246,0x213)]();this[A(0x1fe,0x232)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[A(0x207,0x234)]){this[A(0x20e,0x1dc)]=this[A(0x207,0x245)];this[A(0x207,0x1d2)]=void 0x0;}}[_enl(0xcb,0xf5)](a){this[B(0x2d2,0x308)]=![];this[B(0x28f,0x2c8)]();this[B(0x2f7,0x2f2)]=this[B(0x30f,0x2f9)];const b=this[B(0x2e3,0x321)];function B(a,b){return _enl(a,b-0x236);}const c=b[B(0x321,0x32b)](a);this['$activeTransaction']=void 0x0;const d=this[B(0x32a,0x2f7)](c);this[B(0x2e0,0x2f2)]=void 0x0;this[B(0x2cb,0x30a)]=![];return d;}async['propagateAsync'](a){function C(a,b){return _enl(b,a-0x3bf);}return this[C(0x45d,0x432)](a);}async['commitAsync'](a){if(this[D(-0x64,-0x65)])return this[D(-0x8,-0x45)];this['isJustCleared']=![];function D(a,b){return _enl(a,b- -0x124);}this[D(-0xa0,-0x65)]=!![];this['baseRevisionStable']=this[D(-0x58,-0x61)];let b;return this['ongoing']=this[D(-0x21,-0x45)][D(-0x69,-0x35)](()=>{function E(a,b){return D(b,a-0xa3);}return this[E(0x14,0xe)](a);})[D(-0x1c,-0x35)](c=>{b=c;return c;})[D(-0x8b,-0x55)](()=>{this['baseRevisionStable']=void 0x0;this[F(-0x19e,-0x1d7)]=void 0x0;this['isInitialCommit']=![];function F(a,b){return D(a,b- -0x16b);}this[F(-0x1a8,-0x1d0)]=![];});}async[_enl(0xb4,0x95)](a){this['unScheduleAutoCommit']();const b=this[G(0x4b6,0x4c7)];const c=await b[G(0x4b6,0x47a)](a);const d=Boolean(b[G(0x443,0x45f)]);const e=this[G(0x4b1,0x494)];if(!d)this[G(0x4a3,0x494)]=b[G(0x4b5,0x4c4)];this[G(0x4b8,0x48f)]=void 0x0;await this['finalizeCommitAsync'](c);if(this[G(0x4d4,0x4ae)])return{'rejectedWith':RejectEffect[G(0x4b3,0x4c9)]({'reason':G(0x449,0x479)})};if(b['rejectedWith']&&!d){this[G(0x49e,0x494)]=e;this['$activeTransaction']=void 0x0;}const f=this[G(0x490,0x49d)](c);function G(a,b){return _enl(a,b-0x3dc);}if(b[G(0x439,0x45f)])b[G(0x49b,0x486)]();if(this[G(0x4df,0x4b5)]&&!b[G(0x46c,0x45f)]){await this[G(0x471,0x471)](a);}return f;}[_enl(0xb0,0xc1)](a){function H(a,b){return _enl(b,a-0x42e);}const {revision:b,entries:c,transaction:d}=a;if(!d['rejectedWith']){if(b['previous']!==this[H(0x4f1,0x4dd)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[H(0x4f6,0x4fc)]()){if(f)e['reachableCount']--;e[H(0x520,0x4ec)]--;}this[H(0x4f1,0x4b7)]=this['topRevision']=b;for(const [g,h]of c){h[H(0x521,0x503)]();if(h[H(0x4d3,0x4e6)]()||!h[H(0x4c4,0x4a7)]())continue;const i=this[H(0x52a,0x4fa)][H(0x4be,0x4f3)](g);if(i)i[H(0x514,0x4dd)](h[H(0x50f,0x523)]());}this[H(0x4f8,0x4cd)]=void 0x0;this['markAndSweep']();}else{if(this['baseRevisionStable'])this[H(0x4f1,0x532)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;this[H(0x4e6,0x508)]=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async['finalizeCommitAsync'](a){}*[_enl(0xce,0xbd)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);function I(a,b){return _enl(b,a- -0x20c);}c[I(-0x164,-0x136)]=a;b[I(-0x188,-0x18a)](a);switch(this[I(-0x158,-0x158)]){case I(-0x120,-0x15a):console[I(-0x109,-0x10e)](c[I(-0x14a,-0x11e)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0x18b,-0x15d)](d[I(-0x12a,-0xee)]!==void 0x0?d['proposedValue']:d[I(-0x11b,-0x12e)]);case I(-0x141,-0x183):throw c;case I(-0x131,-0x12d):this['reject'](c);break;case I(-0x15f,-0x16b):warn(c);break;}}['onComputationCycleHandlerSync'](a,b){const c=new ComputationCycleError(J(0x470,0x4af)+a);function J(a,b){return _enl(b,a-0x3e4);}c['cycle']=a;b['addCycle'](a);switch(this[J(0x498,0x4c8)]){case J(0x4d0,0x4c3):console[J(0x4e7,0x4f1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x465,0x43f)](d[J(0x4c6,0x4ca)]!==void 0x0?d[J(0x4c6,0x4d7)]:d[J(0x4d5,0x4d9)]);case J(0x4af,0x49f):throw c;case J(0x4bf,0x4bd):this[J(0x4bf,0x4d4)](c);break;case J(0x491,0x4c1):warn(c);break;}}[_enl(0xfa,0xe9)](){function K(a,b){return _enl(b,a-0x196);}if(this[K(0x23f,0x261)]===null&&!this[K(0x255,0x244)]){this[K(0x23f,0x206)]=setTimeout(this['autoCommitHandler'],0xa);}}[_enl(0x69,0x92)](){function L(a,b){return _enl(b,a-0x213);}if(this[L(0x2bc,0x2c6)]!==null){clearTimeout(this[L(0x2bc,0x2b3)]);this['autoCommitTimeoutId']=null;}}[_enl(0x8a,0xb5)](a){function M(a,b){return _enl(a,b- -0xe4);}const b=VariableC();return this[M(0x55,0x1d)](b,a===void 0x0?null:a);}[_enl(0xcd,0xee)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}[_enl(0xe7,0xe3)](a,b){function N(a,b){return _enl(b,a-0x2b0);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[N(0x3b1,0x387)](c);}[_enl(0xed,0xe7)](a,b,c){const d=b[O(-0x197,-0x171)][O(-0x17f,-0x1bf)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enl(a,b- -0x261);}return this['addIdentifier'](d);}[_enl(0x11e,0x101)](a,b,...c){if(this[P(-0x171,-0x185)]){if(this['onWriteDuringCommit']===P(-0x165,-0x151))throw new Error(P(-0x131,-0x167));else if(this['onWriteDuringCommit']==='warn')warn(new Error(P(-0x131,-0x10b)));}this[P(-0x145,-0x182)][P(-0x12f,-0x12f)](a,b,...c);if(this[P(-0x14b,-0x128)])this[P(-0x147,-0x112)]();function P(a,b){return _enl(b,a- -0x230);}return a;}['removeIdentifier'](a){if(this[Q(0x45d,0x496)]){if(this['onWriteDuringCommit']===Q(0x483,0x4a2))throw new Error(Q(0x493,0x471));else if(this['onWriteDuringCommit']===Q(0x459,0x484))warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function Q(a,b){return _enl(a,b-0x3d7);}this['activeTransaction']['removeIdentifier'](a);this['listeners'][Q(0x46d,0x497)](a);if(this[Q(0x4b6,0x4bc)])this['scheduleAutoCommit']();}[_enl(0xc1,0x8a)](a){function R(a,b){return _enl(a,b- -0x18a);}return this[R(-0xb9,-0x9f)][R(-0x124,-0x100)](a);}[_enl(0xfb,0xc7)](a,b,...c){function S(a,b){return _enl(b,a- -0x1df);}if(this[S(-0x120,-0x157)]){if(this[S(-0x119,-0x158)]===S(-0x114,-0x127))throw new Error('Write\x20during\x20commit');else if(this['onWriteDuringCommit']===S(-0x132,-0x13c))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][S(-0x118,-0xd7)](a,b,...c);if(this['autoCommit'])this['scheduleAutoCommit']();}[_enl(0x80,0xa0)](a){function T(a,b){return _enl(a,b-0xeb);}return this[T(0x1ba,0x1d6)][T(0x158,0x18b)](a);}[_enl(0xa9,0xa4)](a){function U(a,b){return _enl(a,b- -0xba);}return this[U(0x4b,0x31)][U(-0x4a,-0x16)](a);}[_enl(0x12e,0xf4)](a){function V(a,b){return _enl(b,a-0xad);}return this[V(0x198,0x17d)][V(0x1a1,0x18c)](a);}[_enl(0xa9,0xb1)](a){function W(a,b){return _enl(b,a- -0xe3);}return this['activeTransaction'][W(-0x32,-0x4e)](a);}[_enl(0x79,0x90)](a){function X(a,b){return _enl(b,a-0x2e1);}return this['activeTransaction'][X(0x371,0x371)](a);}[_enl(0xfa,0xbe)](a,b){const c=this[Y(0x50b,0x4f9)](CalculatedValueGen[Y(0x4f7,0x4d7)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(b,a-0x40a);}this[Y(0x4cf,0x4e8)](c,b);return c;}[_enl(0x7f,0x8e)](a,b,c){const d=this[Z(0x55e,0x528)](CalculatedValueGen[Z(0x54a,0x50b)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x522,0x53e)](d,c);function Z(a,b){return _enl(b,a-0x45d);}return d;}['addListener'](a,b){let c=this[a0(-0x63,-0x4c)]['get'](a);function a0(a,b){return _enl(a,b- -0x148);}if(!c){c=Listener[a0(-0x1c,-0x5b)]();this[a0(-0x39,-0x4c)]['set'](a,c);}c[a0(-0xd3,-0xbb)][a0(-0x75,-0x9d)](b);}[_enl(0xb7,0x82)](){const a=this[a1(-0x11,-0x18)];function a1(a,b){return _enl(b,a- -0xd4);}const b=a[a1(-0x7,0x13)];if(!b)return![];this[a1(-0x11,-0x1d)]=b;this[a1(-0x21,0x18)]=void 0x0;return!![];}[_enl(0xa0,0x89)](){function a2(a,b){return _enl(a,b-0x5e);}const a=this['baseRevision'];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x120,0xee)](a);this[a2(0x12c,0x121)]=b;this[a2(0xe5,0x111)]=void 0x0;return!![];}[_enl(0x81,0x8f)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x5e,0x90)]();c['usedProposedOrPrevious']=!![];const d=c['getProposedValue'](b);if(d!==void 0x0)return d;if(!c[a3(0x3c,0x67)])return void 0x0;function a3(a,b){return _enl(a,b- -0x66);}const e=c[a3(0x75,0x7d)];if(e[a3(0x8c,0x7e)]){if(c[a3(0x87,0x67)][a3(0x3b,0x30)]())return c[a3(0x75,0x67)][a3(0x49,0x7b)]();if(c[a3(0x69,0x67)][a3(0x49,0x39)]())return c[a3(0x98,0x67)][a3(0x4c,0x1a)](b);return null;}return b['readPrevious'](c[a3(0x69,0x7d)]);}[RejectSymbol](a,b){function a4(a,b){return _enl(b,a-0x171);}this[a4(0x24c,0x278)](a[a4(0x217,0x246)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a5(a,b){return _enl(a,b-0x38a);}return b[a5(0x4b2,0x480)]();}[OwnIdentifierSymbol](a,b){function a6(a,b){return _enl(a,b-0x141);}const c=b[a6(0x26f,0x237)]();return c[a6(0x262,0x224)];}[WriteSymbol](a,b){function a7(a,b){return _enl(b,a- -0x197);}const c=b['getActiveEntry']();const d=a[a7(-0xb4,-0xd7)][a7(-0xc9,-0xd9)]>c[a7(-0xb4,-0x7e)][a7(-0xc9,-0xc0)];if(!d)b[a7(-0xbf,-0xe5)][a7(-0xe9,-0xd5)]();b[a7(-0xd0,-0x104)](a[a7(-0xb4,-0xf1)],...a[a7(-0xfb,-0x117)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a8(0x57,0x60)]();let d=!![];function a8(a,b){return _enl(b,a- -0x9f);}a[a8(-0x14,-0x19)][a8(0x17,0xa)](e=>{function a9(a,b){return a8(b-0x211,a);}if(e['identifier'][a9(0x1ff,0x240)]<=c[a9(0x284,0x255)]['level']&&d){b[a9(0x272,0x24a)][a9(0x21a,0x220)]();d=![];}b[a9(0x266,0x239)](e[a9(0x250,0x255)],...e[a9(0x22c,0x20e)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x27c,0x2be)];function aa(a,b){return _enl(b,a-0x199);}b[aa(0x248,0x257)](d,c,EdgeTypePast);const e=b[aa(0x234,0x1f1)][aa(0x229,0x21b)](d);return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[ab(0xf6,0x108)];b[ab(0xfe,0xd4)](d,c,EdgeTypePast);function ab(a,b){return _enl(a,b-0x25);}return b[ab(0xa3,0xc5)](d);}[ProposedValueOfSymbol](a,b){function ac(a,b){return _enl(a,b-0x31);}const c=b['getActiveEntry']();const d=a[ac(0xed,0x114)];b[ac(0xfe,0xe0)](d,c,EdgeTypePast);const e=b[ac(0x8c,0xcc)][ac(0xac,0xc1)](d);const f=e&&!e[ac(0xb0,0xd6)]()?e[ac(0xf1,0xb1)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ad(a,b){return _enl(a,b- -0x1de);}const c=b[ad(-0xfd,-0xe8)]();const d=a[ad(-0xcb,-0xfb)];b[ad(-0x159,-0x12f)](d,c,EdgeTypePast);const e=b[ad(-0x126,-0x143)]['get'](d);return e?e[ad(-0xfd,-0x13f)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ae(-0x15b,-0x18c)];b[ae(-0x1e4,-0x1c0)](d,c,EdgeTypePast);const e=b['entries']['get'](d);function ae(a,b){return _enl(a,b- -0x26f);}return e?e[ae(-0x1a2,-0x1d0)]()&&e[ae(-0x229,-0x1f0)]!==void 0x0&&!e[ae(-0x210,-0x1ea)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();function af(a,b){return _enl(b,a-0x24f);}const d=a['identifier'];b[af(0x2fe,0x311)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ag(a,b){return _enl(a,b-0x2e0);}return b[ag(0x384,0x374)](a['identifier']);}[UnsafePreviousValueOfSymbol](a,b){function ah(a,b){return _enl(b,a-0x98);}return b[ah(0x138,0x162)](a[ah(0x17b,0x1ac)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(0x107,0x131)]();const d=a[ai(0x132,0x11e)];function ai(a,b){return _enl(a,b-0x3b);}b[ai(0xf4,0xea)](d,c,EdgeTypePast);const e=b[ai(0xcc,0xd6)]['get'](d);return e&&!e[ai(0xca,0xe0)]()?e[ai(0x14e,0x125)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
|
|
1
|
+
(function(a,b){const c=a();function j(a,b){return _enb(b-0x2cc,a);}while(!![]){try{const d=-parseInt(j(0x541,0x50b))/0x1+-parseInt(j(0x52a,0x519))/0x2+parseInt(j(0x510,0x510))/0x3+parseInt(j(0x500,0x4ff))/0x4+parseInt(j(0x4cf,0x50c))/0x5*(-parseInt(j(0x4ec,0x4f7))/0x6)+parseInt(j(0x4cc,0x4d7))/0x7+-parseInt(j(0x50b,0x517))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x37409));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposeCountOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';function _enl(a,b){return _enb(b-0x1c4,a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e7;let f=c[d];return f;};return _enb(a,b);}import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';function _ena(){const ah=['warn','onComputationCycleHandler','topRevision','finalizeCommit','getValue','readPreviousAsync','identifierNamed','then','clearRejected','readProposedOrPrevious','entries','observeContext','reject','doCommitAsync','get','autoCommitTimeoutId','Invalid\x20revisions\x20chain','isCommitting','variableNamed','hasValue','delete','value','origin','throw','write','scope','getProposedValue','usedProposedOrPrevious','clear','markAndSweep','lazy','unScheduleAutoCommit','handlers','transactionClass','onWriteDuringCommit','proposedIsPrevious','Write\x20during\x20commit','dirty','isInitialCommit','hasProposedValue','branch','candidate','Removing\x20identifier\x20during\x20commit','2127377AdjLZO','addCycle','addIdentifier','unshift','_isInitialCommit','proposedArgs','proposedArguments','assign','from','variable','clearProperties','$activeTransaction','walkContext','commitAsync','sync','$followingRevision','proposeCount','mergePreviousOrigin','isJustCleared','baseRevisionStable','selfDependent','isShadow','observe','cycle','initialize','read','scheduleAutoCommit','baseRevisionTentative','removeIdentifier','previous','ongoing','cleanup','102402njFbMw','constructor','commit','ignore','rejectedWith','previousAxis','Invalid\x20compact\x20operation','length','1694256aTnnds','finalizeCommitAsync','eachReachableRevision','baseRevision','readAsync','undo','reachableCount','autoCommit','new','readPrevious','activeTransaction','hasIdentifier','214937pYNnTH','90dxPhmp','autoCommitHandler','referenceCount','writtenValue','627033qCOrcj','Computation\x20cycle:\x0a','startOrigin','historyLimit','onPropagationProgressNotification','hasPendingAutoCommit','redo','1439936eHXmJI','push','16076NxhvTF','trigger','getActiveEntry','level','addEdge','addListener','listeners','resolve','proposedValue','autoCommitMode','onComputationCycleHandlerSync','propagate','writes','identifier','set','Adding\x20identifier\x20during\x20commit','clearBranch','onComputationCycle','name','continueCalculation','log'];_ena=function(){return ah;};return _ena();}const CommitZero={'rejectedWith':null};class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(a-0xd2,b);}this[k(0x2d2,0x2a8)]=[];}[_enl(0x441,0x412)](a){function m(a,b){return _enl(b,a- -0x273);}for(let b=0x0;b<this[m(0x151,0x183)][m(0x183,0x1b8)];b++)this[m(0x151,0x161)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this[n(-0x16e,-0x185)]=void 0x0;this[n(-0x1bc,-0x17d)]=void 0x0;this['baseRevision']=Revision[n(-0x19f,-0x168)]();this['topRevision']=void 0x0;this[n(-0x120,-0x15c)]=0x0;this[n(-0x18b,-0x150)]=new Map();this['isWritingPreviousData']=0x0;this['$activeTransaction']=void 0x0;this['isCommitting']=![];this['enableProgressNotifications']=![];this['ongoing']=Promise[n(-0x12d,-0x14f)]();this['_isInitialCommit']=!![];this[n(-0x1ce,-0x1b4)]=null;this['autoCommit']=![];this['autoCommitMode']=n(-0x157,-0x18a);function n(a,b){return _enl(a,b- -0x567);}this[n(-0x185,-0x162)]=null;this[n(-0x178,-0x1a1)]='throw';this[n(-0x13c,-0x145)]=n(-0x1a1,-0x1ac);this['transactionClass']=Transaction;this[n(-0x182,-0x186)]=![];this[n(-0x15c,-0x189)]=void 0x0;}[_enl(0x3b9,0x3e7)](...a){super[o(0x2,0xf)](...a);if(!this[o(0x43,0x84)])this[o(0x43,0x3b)]=this[o(0x15,0x1a)];if(this[o(0x19,0x7)]){this[o(0x20,0x22)]=this[o(0x35,0x4c)]===o(-0x8,-0x2e)?b=>this[o(0xc,0x25)](b):async b=>this[o(-0x9,-0x2f)](b);}function o(a,b){return _enl(b,a- -0x3e5);}this['markAndSweep']();}[_enl(0x3e0,0x40d)](){return this['autoCommitTimeoutId']!==null;}get['dirty'](){function p(a,b){return _enl(b,a-0x1f2);}return this[p(0x5f3,0x5cf)]['dirty'];}[_enl(0x3a1,0x3c0)](){this[q(0x547,0x582)]();this[q(0x55a,0x571)]();this[q(0x591,0x5c7)]['scope']&&this[q(0x591,0x590)][q(0x554,0x572)][q(0x557,0x589)]();function q(a,b){return _enl(b,a-0x197);}this[q(0x591,0x57b)][q(0x583,0x5c2)]=null;this[q(0x5ae,0x5e9)][q(0x557,0x550)]();this['topRevision']=this[q(0x591,0x576)];this['$followingRevision']=void 0x0;this[q(0x571,0x598)]=void 0x0;this['markAndSweep']();this['isJustCleared']=!![];}[_enl(0x43f,0x421)](){this[r(-0x96,-0xd5)]();this[r(-0xed,-0xc2)]();for(const [a,b]of this[r(-0xbc,-0x8c)]()){if(b)a[r(-0x79,-0x88)]--;a['referenceCount']--;}this[r(-0x67,-0x6e)][r(-0xc4,-0xc5)]();function r(a,b){return _enl(a,b- -0x485);}this[r(-0x9a,-0x5d)]=this[r(-0x5b,-0x8b)];this[r(-0x92,-0xa7)]=void 0x0;this['$activeTransaction']=void 0x0;}*[_enl(0x3d7,0x3f9)](){let a=!![];function s(a,b){return _enl(a,b-0x17a);}let b=0x0;for(const c of this[s(0x5cc,0x5a2)]['previousAxis']()){yield[c,a||b<this[s(0x5b6,0x585)]];if(c===this['baseRevision']){a=![];}else{if(!a)b++;}}}get[_enl(0x3c8,0x3ca)](){function t(a,b){return _enl(a,b-0x6c);}return this[t(0x441,0x43f)];}set[_enl(0x3ae,0x3ca)](a){function u(a,b){return _enl(b,a- -0x115);}this[u(0x2be,0x2bc)]=a;}['markAndSweep'](){let a;const b=[];function v(a,b){return _enl(a,b-0xb3);}for(const [c,d]of this[v(0x4d4,0x4ac)]()){if(d){c[v(0x4a3,0x4b0)]++;a=c;}else b['push'](c);c[v(0x4b2,0x4b9)]++;}b[v(0x49e,0x485)](a);for(let e=b[v(0x475,0x4a9)]-0x1;e>=0x1&&b[e][v(0x4c6,0x4b0)]===0x0;e--){this['compactRevisions'](b[e-0x1],b[e]);}}['compactRevisions'](a,b){if(b[w(0xd6,0xee)]>0x0||a[w(0xc5,0xfe)]!==b)throw new Error(w(0xce,0xf5));if(b[w(0xdf,0xed)]<=0x1){for(const [c,d]of a[w(0x96,0xa3)]){if(d[w(0x103,0x13a)]()===TombStone){b[w(0x96,0xad)]['delete'](c);}else{const e=b['scope']['get'](c);if(d['origin']===d){if(e){e[w(0x99,0x97)]();e[w(0xb2,0xe1)]();}}else if(e&&d[w(0x93,0xc6)]===e){d[w(0xb9,0xec)](a[w(0x96,0x80)]);}else if(c['lazy']&&!d[w(0x93,0x73)]&&e&&e[w(0x93,0xc4)]){d[w(0xe3,0xe3)]()[w(0xf2,0xc3)]=e[w(0x93,0x8c)][w(0x92,0x7c)]!==void 0x0?e[w(0x93,0x76)][w(0x92,0xca)]:e[w(0x93,0x63)][w(0xf2,0xf4)];}d[w(0xc5,0x8b)]=void 0x0;b['scope']['set'](c,d);}}copySetInto(a[w(0xbc,0xf9)],b[w(0xbc,0xb1)]);a[w(0x96,0xbc)]=b[w(0x96,0xb3)];b[w(0x96,0x84)]=null;}else{a['scope']=new Map(concat(b[w(0x96,0xa8)],a[w(0x96,0x60)]));a[w(0xbc,0x98)]=new Set(concat(b['selfDependent'],a[w(0xbc,0xe4)]));b['referenceCount']--;}function w(a,b){return _enl(b,a- -0x327);}a[w(0xc5,0x99)]=null;}get['followingRevision'](){if(this[x(0x72,0x5f)]!==void 0x0)return this[x(0x3e,0x5f)];const a=Array[x(0x40,0x58)](this[x(0xa1,0xa9)][x(0x89,0x75)]());const b=[];function x(a,b){return _enl(a,b- -0x37f);}for(let c=a[x(0x8c,0x77)]-0x1;c>0x0;c--)b[x(0x67,0x91)]([a[c],a[c-0x1]]);return this[x(0x82,0x5f)]=new Map(b);}get[_enl(0x43d,0x401)](){if(this[y(0x15f,0x148)])return this[y(0x15f,0x19f)];function y(a,b){return _enl(b,a- -0x27b);}return this['$activeTransaction']=this[y(0x14a,0x127)][y(0x184,0x1a5)]({'baseRevision':this[y(0x16f,0x153)]||this[y(0x17f,0x1bb)],'graph':this});}[_enl(0x3a7,0x3cc)](a){const b=this[z(0x174,0x1a5)];function z(a,b){return _enl(b,a- -0x27c);}return b[z(0x183,0x1bf)](Object[z(0x15a,0x12f)]({},a,{'baseRevision':this[z(0x17e,0x16a)]}));}[_enl(0x3ec,0x41c)](a){function A(a,b){return _enl(b,a-0x32);}return this[A(0x423,0x441)](a);}[_enl(0x3d6,0x3b0)](a){this['activeTransaction'][B(-0x39,-0x2d)](RejectEffect[B(0x16,-0x2b)]({'reason':a}));this['ongoing']=Promise[B(0x2f,0x28)]();this[B(-0xf,-0x8)]=void 0x0;function B(a,b){return _enl(b,a- -0x3e9);}this[B(0x1,0x1a)]=void 0x0;if(this['baseRevisionStable']){this[B(0x11,0x1f)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;}}[_enl(0x3d2,0x3f1)](a){this[C(0xe4,0xf5)]=![];function C(a,b){return _enl(b,a- -0x2fd);}this['unScheduleAutoCommit']();this[C(0xe5,0xe9)]=this[C(0xfd,0x12f)];const b=this[C(0x104,0x136)];const c=b[C(0xf4,0xc8)](a);this[C(0xdd,0xf8)]=void 0x0;const d=this['finalizeCommit'](c);this[C(0xe5,0x10a)]=void 0x0;this[C(0xcd,0xc8)]=![];return d;}async['propagateAsync'](a){function D(a,b){return _enl(b,a- -0x4db);}return this[D(-0xff,-0xfb)](a);}async[_enl(0x3ec,0x3dc)](a){if(this['isCommitting'])return this[E(0x3c4,0x3be)];this['isJustCleared']=![];this[E(0x3bd,0x386)]=!![];function E(a,b){return _enl(a,b- -0x2f);}this[E(0x3d1,0x3b3)]=this[E(0x394,0x3cb)];let b;return this[E(0x391,0x3be)]=this[E(0x3f4,0x3be)][E(0x3b3,0x37c)](()=>{function F(a,b){return E(b,a- -0x3ad);}return this[F(-0x2b,-0x2f)](a);})['then'](c=>{b=c;return c;})['finally'](()=>{this['baseRevisionStable']=void 0x0;this[G(0x4fe,0x4ce)]=void 0x0;function G(a,b){return E(a,b-0x113);}this[G(0x4b2,0x4ae)]=![];this['isCommitting']=![];});}async['doCommitAsync'](a){this['unScheduleAutoCommit']();const b=this[H(0x2c8,0x2dd)];function H(a,b){return _enl(a,b- -0x124);}const c=await b['commitAsync'](a);const d=Boolean(b[H(0x2e0,0x2cf)]);const e=this[H(0x2b8,0x2c6)];if(!d)this[H(0x2a7,0x2c6)]=b[H(0x277,0x2a9)];this[H(0x27b,0x2b6)]=void 0x0;await this[H(0x2c4,0x2d4)](c);if(this[H(0x2f2,0x2bd)])return{'rejectedWith':RejectEffect[H(0x2d5,0x2db)]({'reason':'Graph\x20cleared'})};if(b[H(0x2da,0x2cf)]&&!d){this[H(0x2cd,0x2c6)]=e;this[H(0x2c8,0x2b6)]=void 0x0;}const f=this['finalizeCommit'](c);if(b[H(0x2ae,0x2cf)])b[H(0x2c3,0x288)]();if(this[H(0x2e3,0x2a5)]&&!b['rejectedWith']){await this[H(0x2cc,0x28d)](a);}return f;}[_enl(0x43d,0x429)](a){const {revision:b,entries:c,transaction:d}=a;function I(a,b){return _enl(a,b- -0x3b0);}if(!d[I(0x5b,0x43)]){if(b[I(0x33,0x3c)]!==this[I(0x46,0x4a)])throw new Error(I(-0x13,0x4));for(const [e,f]of this[I(0x48,0x49)]()){if(f)e[I(0x88,0x4d)]--;e[I(0x29,0x56)]--;}this[I(0x70,0x4a)]=this[I(0x3e,0x78)]=b;for(const [g,h]of c){h[I(0x3e,0x3e)]();if(h['isShadow']()||!h[I(0x32,0x7)]())continue;const i=this[I(0x4b,0x67)][I(0x13,0x2)](g);if(i)i[I(0x71,0x62)](h['getValue']());}this[I(0x4b,0x2e)]=void 0x0;this[I(0xd,0x11)]();}else{if(this[I(0x34,0x32)])this[I(0x35,0x4a)]=this[I(0x31,0x32)];this[I(-0x9,0x32)]=void 0x0;this['baseRevisionTentative']=void 0x0;}return{'rejectedWith':d[I(0x55,0x43)]};}async['finalizeCommitAsync'](a){}*[_enl(0x3ef,0x427)](a,b){const c=new ComputationCycleError(J(0x594,0x568)+a);c[J(0x571,0x55d)]=a;function J(a,b){return _enl(b,a-0x18b);}b[J(0x55b,0x592)](a);switch(this[J(0x5ad,0x5d6)]){case J(0x57d,0x5a1):console['log'](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x5af,0x59a)](d[J(0x5a4,0x5be)]!==void 0x0?d['proposedValue']:d[J(0x544,0x565)]);case J(0x546,0x572):throw c;case'reject':this['reject'](c);break;case'warn':warn(c);break;}}[_enl(0x3ea,0x41b)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);c[K(0x23a,0x272)]=a;function K(a,b){return _enl(a,b- -0x174);}b[K(0x252,0x25c)](a);switch(this[K(0x29a,0x2ae)]){case K(0x2a2,0x27e):console[K(0x2b4,0x2b1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[K(0x2ab,0x2b0)](d[K(0x2c5,0x2a5)]!==void 0x0?d[K(0x2d8,0x2a5)]:d[K(0x27e,0x245)]);case K(0x213,0x247):throw c;case K(0x216,0x23c):this[K(0x27b,0x23c)](c);break;case K(0x2c5,0x2b2):warn(c);break;}}['scheduleAutoCommit'](){function L(a,b){return _enl(b,a- -0x16b);}if(this[L(0x248,0x241)]===null&&!this[L(0x24a,0x231)]){this[L(0x248,0x20f)]=setTimeout(this[L(0x29a,0x2b2)],0xa);}}[_enl(0x3dc,0x3c3)](){function M(a,b){return _enl(a,b-0x1e3);}if(this['autoCommitTimeoutId']!==null){clearTimeout(this[M(0x581,0x596)]);this[M(0x58e,0x596)]=null;}}[_enl(0x3d2,0x3d8)](a){function N(a,b){return _enl(a,b- -0x1e2);}const b=VariableC();return this[N(0x1f7,0x1ef)](b,a===void 0x0?null:a);}[_enl(0x3d3,0x3b6)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}['identifier'](a,b){const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});function O(a,b){return _enl(a,b-0x76);}return this[O(0x43f,0x447)](c);}[_enl(0x454,0x42c)](a,b,c){const d=b[P(0x34b,0x35a)][P(0x38c,0x38d)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function P(a,b){return _enl(a,b- -0x96);}return this['addIdentifier'](d);}[_enl(0x39f,0x3d1)](a,b,...c){if(this[Q(0x1f1,0x1ff)]){if(this[Q(0x202,0x23a)]===Q(0x1f7,0x214))throw new Error(Q(0x25c,0x28f));else if(this[Q(0x202,0x235)]===Q(0x262,0x28d))warn(new Error(Q(0x25c,0x26d)));}this['activeTransaction'][Q(0x20d,0x1d6)](a,b,...c);function Q(a,b){return _enl(b,a- -0x1c4);}if(this[Q(0x23a,0x218)])this['scheduleAutoCommit']();return a;}[_enl(0x3f2,0x3eb)](a){if(this[R(0x327,0x311)]){if(this[R(0x338,0x34c)]==='throw')throw new Error(R(0x340,0x364));else if(this[R(0x338,0x33c)]==='warn')warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function R(a,b){return _enl(b,a- -0x8e);}this['activeTransaction'][R(0x35d,0x36b)](a);this[R(0x389,0x37b)][R(0x32a,0x34d)](a);if(this[R(0x370,0x337)])this['scheduleAutoCommit']();}[_enl(0x3ff,0x402)](a){function S(a,b){return _enl(a,b- -0x102);}return this[S(0x322,0x2ff)][S(0x2ee,0x300)](a);}[_enl(0x3d3,0x3bc)](a,b,...c){function T(a,b){return _enl(b,a- -0x88);}if(this[T(0x32d,0x350)]){if(this['onWriteDuringCommit']===T(0x333,0x369))throw new Error(T(0x340,0x336));else if(this['onWriteDuringCommit']===T(0x39e,0x3db))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][T(0x334,0x36a)](a,b,...c);if(this[T(0x376,0x391)])this[T(0x361,0x342)]();}['readPrevious'](a){function U(a,b){return _enl(a,b- -0x133);}return this[U(0x2fc,0x2ce)][U(0x2ca,0x2cd)](a);}[_enl(0x3f2,0x42b)](a){function V(a,b){return _enl(b,a-0xf2);}return this[V(0x4f3,0x4d6)]['readPreviousAsync'](a);}[_enl(0x420,0x3e8)](a){return this['activeTransaction']['read'](a);}[_enl(0x3db,0x3fb)](a){function W(a,b){return _enl(b,a- -0x52);}return this[W(0x3af,0x3cd)][W(0x3a9,0x3bc)](a);}[_enl(0x3b6,0x3b2)](a){function X(a,b){return _enl(a,b- -0xcc);}return this['activeTransaction'][X(0x2f1,0x2e6)](a);}[_enl(0x41c,0x3e5)](a,b){const c=this[Y(0x33f,0x331)](CalculatedValueGen[Y(0x32d,0x35f)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(a,b- -0xa0);}this['addListener'](c,b);return c;}[_enl(0x37e,0x3af)](a,b,c){const d=this[Z(0x149,0x180)](CalculatedValueGen['new']({'lazy':![],'calculation':a,'context':b}));this[Z(0x1a9,0x1c5)](d,c);function Z(a,b){return _enl(a,b- -0x251);}return d;}[_enl(0x41e,0x416)](a,b){let c=this[a0(0x51a,0x4fe)][a0(0x4a4,0x499)](a);if(!c){c=Listener['new']();this[a0(0x503,0x4fe)][a0(0x502,0x506)](a,c);}function a0(a,b){return _enl(a,b-0xe7);}c[a0(0x471,0x4ab)]['push'](b);}[_enl(0x404,0x3fc)](){const a=this['baseRevision'];const b=a[a1(0x4a9,0x4b6)];if(!b)return![];this[a1(0x4b7,0x4c2)]=b;this[a1(0x497,0x497)]=void 0x0;function a1(a,b){return _enl(b,a-0xbd);}return!![];}[_enl(0x418,0x40e)](){const a=this[a2(0x5e,0x81)];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x16,0x2e)](a);function a2(a,b){return _enl(b,a- -0x39c);}this[a2(0x5e,0x1e)]=b;this[a2(0x3e,0x3)]=void 0x0;return!![];}[_enl(0x3ec,0x40c)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x4a0,0x470)]();function a3(a,b){return _enl(a,b-0x5d);}c[a3(0x425,0x41c)]=!![];const d=c[a3(0x410,0x41b)](b);if(d!==void 0x0)return d;if(!c[a3(0x47c,0x449)])return void 0x0;const e=c['identifier'];if(e[a3(0x3fd,0x41f)]){if(c[a3(0x475,0x449)]['hasValue']())return c[a3(0x40e,0x449)][a3(0x481,0x487)]();if(c[a3(0x408,0x449)]['hasProposedValue']())return c[a3(0x41f,0x449)][a3(0x3fa,0x41b)](b);return null;}return b[a3(0x425,0x45d)](c[a3(0x4ad,0x47b)]);}[RejectSymbol](a,b){this['reject'](a['reason']);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){return b['getActiveEntry']();}[OwnIdentifierSymbol](a,b){const c=b['getActiveEntry']();return c['identifier'];}[WriteSymbol](a,b){const c=b['getActiveEntry']();const d=a[a4(0x60d,0x604)][a4(0x603,0x636)]>c[a4(0x60d,0x61e)][a4(0x603,0x617)];if(!d)b[a4(0x5ca,0x5a3)]['startNewEpoch']();b[a4(0x5ab,0x57a)](a[a4(0x60d,0x627)],...a[a4(0x5c3,0x5df)]);function a4(a,b){return _enl(b,a-0x1ef);}return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a5(0x363,0x39d)]();let d=!![];a[a5(0x3d9,0x3a7)]['forEach'](e=>{function a6(a,b){return a5(b,a-0xb1);}if(e[a6(0x459,0x479)][a6(0x44f,0x43a)]<=c['identifier'][a6(0x44f,0x48b)]&&d){b[a6(0x416,0x3e4)]['startNewEpoch']();d=![];}b[a6(0x3f7,0x3e2)](e[a6(0x459,0x490)],...e[a6(0x40f,0x442)]);});function a5(a,b){return _enl(a,b- -0x76);}return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[a7(0x22b,0x22e)]();function a7(a,b){return _enl(a,b- -0x1e5);}const d=a[a7(0x21c,0x239)];b[a7(0x22a,0x230)](d,c,EdgeTypePast);const e=b[a7(0x1d4,0x1c9)][a7(0x19a,0x1cd)](d);return e?b[a7(0x23f,0x21b)](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b[a8(0x3d3,0x39c)]();function a8(a,b){return _enl(a,b- -0x77);}const d=a['identifier'];b[a8(0x370,0x39e)](d,c,EdgeTypePast);return b[a8(0x39b,0x389)](d);}[ProposedValueOfSymbol](a,b){const c=b[a9(0x16f,0x180)]();const d=a['identifier'];b[a9(0x171,0x16b)](d,c,EdgeTypePast);const e=b['entries'][a9(0x10e,0xf9)](d);const f=e&&!e['isShadow']()?e[a9(0x11a,0xdb)](b):void 0x0;function a9(a,b){return _enl(b,a- -0x2a4);}return f;}[HasProposedValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x61c,0x613)];b[aa(0x613,0x633)](d,c,EdgeTypePast);const e=b[aa(0x5ac,0x5e5)][aa(0x5b0,0x58c)](d);function aa(a,b){return _enl(b,a-0x1fe);}return e?e['hasProposedValue']():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a['identifier'];b['addEdge'](d,c,EdgeTypePast);const e=b['entries'][ab(0x209,0x238)](d);function ab(a,b){return _enl(b,a- -0x1a9);}return e?e[ab(0x222,0x230)]()&&e[ab(0x25e,0x240)]!==void 0x0&&!e[ab(0x21e,0x219)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ac(0x24e,0x21c)]();const d=a[ac(0x21f,0x227)];function ac(a,b){return _enl(a,b- -0x1f7);}b[ac(0x231,0x21e)](d,c,EdgeTypePast);return b[ac(0x1cb,0x1b6)](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ad(a,b){return _enl(b,a- -0x2b7);}return b[ad(0xf6,0xe0)](a[ad(0x167,0x146)]);}[UnsafePreviousValueOfSymbol](a,b){function ae(a,b){return _enl(a,b-0x20d);}return b[ae(0x5f8,0x60d)](a[ae(0x64e,0x62b)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[af(0x2cf,0x2d7)]();function af(a,b){return _enl(a,b- -0x13c);}const d=a[af(0x2ae,0x2e2)];b[af(0x302,0x2d9)](d,c,EdgeTypePast);const e=b['entries'][af(0x26b,0x276)](d);return e&&!e[af(0x2d6,0x2a8)]()?e[af(0x2b9,0x299)]:void 0x0;}[ProposeCountOfSymbol](a,b){const c=b[ag(0x209,0x22c)]();const d=a['identifier'];function ag(a,b){return _enl(b,a- -0x20a);}b[ag(0x20b,0x20a)](d,c,EdgeTypePast);const e=b[ag(0x1a4,0x1e0)][ag(0x1a8,0x17a)](d);return e&&!e[ag(0x1da,0x1f2)]()?e[ag(0x1d5,0x1a6)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function l(a,b){return _enb(b-
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(b-0x2a5,a);}const c=a();while(!![]){try{const d=-parseInt(l(0x30f,0x31a))/0x1+-parseInt(l(0x329,0x311))/0x2+parseInt(l(0x30f,0x319))/0x3*(parseInt(l(0x32d,0x339))/0x4)+parseInt(l(0x334,0x31e))/0x5+parseInt(l(0x33e,0x335))/0x6*(parseInt(l(0x31c,0x337))/0x7)+-parseInt(l(0x2fd,0x312))/0x8+parseInt(l(0x311,0x314))/0x9*(parseInt(l(0x349,0x32e))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa6365));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a- -0x85,b);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x16,0x25)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(-0x15,-0x23)]===m(-0x17,-0x18))h=Reflect[m(-0x15,-0x2a)](a,b,e,f);else for(var k=a[m(0x13,0x26)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(-0x2,-0x1d)](b,e,h),h;};import{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';function _enp(a,b){return _enb(b-0x66,a);}import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a[n(-0xd6,-0xc1)]=0x0]=n(-0xd6,-0xbc);function n(a,b){return _enb(a- -0x174,b);}a[a[n(-0xea,-0xf7)]=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]='DependsOnlyOnDependsOnlyOnUserInput';a[a['DependsOnSelfKind']=0x3]='DependsOnSelfKind';}(Levels||(Levels={})));class Meta extends Base{constructor(){super(...arguments);this[o(0x171,0x166)]=void 0x0;this[o(0x17a,0x181)]=![];this[o(0x183,0x17c)]=!![];function o(a,b){return _enb(b-0xfb,a);}this[o(0x171,0x17a)]=!![];this[o(0x17f,0x18e)]=![];}[_enp(0xee,0xff)](a){function q(a,b){return _enp(a,b- -0x1e5);}throw new Error(q(-0xdf,-0xfa));}['equality'](a,b){return a===b;}}__decorate([prototypeValue(Levels[_enp(0xd8,0xee)])],Meta[_enp(0xeb,0xfb)],_enp(0x118,0x100),void 0x0);__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0xdf,0xe2),void 0x0);class Identifier extends Meta{constructor(){super(...arguments);this[r(0x46e,0x46c)]=![];this['context']=void 0x0;function r(a,b){return _enp(b,a-0x37d);}this['isWritingUndefined']=![];}[_enp(0xdf,0xed)](a){function s(a,b){return _enp(b,a- -0x3fe);}const b=this[s(-0x30a,-0x317)]['new']();b[s(-0x325,-0x339)]=this;b['needToBuildProposedValue']=this['proposedValueIsBuilt'];return b;}[_enp(0x102,0xf7)](a,b,c,d,...e){c=c||b[t(0x245,0x22d)](a);c[t(0x26b,0x26c)]=d;function t(a,b){return _enp(b,a-0x165);}c[t(0x261,0x254)]=e[t(0x263,0x273)]>0x0?e:void 0x0;c[t(0x241,0x237)]=b[t(0x267,0x253)][t(0x248,0x23f)]>0x0;c[t(0x246,0x22b)]=d;c[t(0x24b,0x243)]++;}[_enp(0xf2,0xf2)](a,b,...c){a['write'](this,b,...c);}[_enp(0xe6,0xe4)](a,b,...c){function u(a,b){return _enp(a,b- -0x1a);}a[u(0xf0,0xdd)](this,b,...c);}['readFromGraphAsync'](a){function v(a,b){return _enp(b,a-0x273);}return a[v(0x351,0x34c)](this);}[_enp(0x10c,0x105)](a){function w(a,b){return _enp(a,b-0x35a);}return a[w(0x42d,0x444)](this);}[_enp(0x104,0xfd)](a){function x(a,b){return _enp(a,b-0x1aa);}return a[x(0x2a8,0x294)](this);}['readFromTransactionAsync'](a){return a['readAsync'](this);}[_enp(0xef,0xe8)](a,b,c){return void 0x0;}[_enp(0xdc,0xf3)](a){}[_enp(0xfc,0x103)](a){}}const IdentifierC=a=>Identifier['new'](a);const QuarkSync=Quark[_enp(0xf8,0xf5)](CalculationSync[_enp(0x10a,0xf5)](Map));const QuarkGen=Quark[_enp(0x102,0xf5)](CalculationGen[_enp(0xdd,0xf5)](Map));class Variable extends Identifier{[_enp(0x119,0xff)](a){function y(a,b){return _enp(b,a-0x372);}throw new Error(y(0x44f,0x454));}[_enp(0xe8,0xf7)](a,b,c,d,...e){function z(a,b){return _enp(b,a-0xc);}c=c||b[z(0xec,0x106)](a);c[z(0xdc,0xf5)]=d;c[z(0x108,0x10a)]=e['length']>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0xfc,0x104)])],Variable[_enp(0x10c,0xfb)],_enp(0x10f,0x100),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x112,0xfb)],_enp(0x10b,0xf4),void 0x0);function VariableC(...a){function A(a,b){return _enp(a,b- -0x40e);}return Variable[A(-0x342,-0x337)](...a);}class CalculatedValueSync extends Identifier{['calculation'](a){return a(ProposedOrPrevious);}}function _ena(){const C=['enterGraph','quarkClass','mix','6dRMQiJ','write','1201711UxYZEp','proposedValueIsBuilt','247564wuNODC','prototype','proposedArguments','readFromTransaction','length','calculation','level','getOwnPropertyDescriptor','graph','leaveGraph','UserInput','readFromGraph','proposedValue','value','name','84742QLruTM','3881160hSuiJW','function','2381301YxinXD','decorate','new','Unknown\x20identifier\x20','identifier','45imUNaa','1202335DhRYpu','proposedIsPrevious','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','readAsync','1261310CRThzI','getWriteTarget','writtenValue','sync','isWritingPreviousData','writeToGraph','pure','proposeCount','total','buildProposedValue','defineProperty','read','Abstract\x20method\x20`calculation`\x20called','lazy','newQuark','DependsOnSelfKind','40ApjxQy','DependsOnlyOnUserInput','ignoreEdgesFlow','writeToTransaction'];_ena=function(){return C;};return _ena();}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync[_enp(0xf3,0xfb)],_enp(0x100,0xf4),void 0x0);function CalculatedValueSyncC(...a){return CalculatedValueSync['new'](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x100,0xff)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen[_enp(0xe4,0xfb)],_enp(0xdb,0xf4),void 0x0);function CalculatedValueGenC(...a){return CalculatedValueGen['new'](...a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x6a;let f=c[d];return f;};return _enb(a,b);}const throwUnknownIdentifier=a=>{function B(a,b){return _enp(a,b-0x302);}throw new Error(B(0x3ef,0x3da)+a);};export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function o(a,b){return _enb(a-0x2a6,b);}const c=a();while(!![]){try{const d=parseInt(o(0x450,0x46c))/0x1+-parseInt(o(0x429,0x41d))/0x2+parseInt(o(0x432,0x423))/0x3+-parseInt(o(0x423,0x43a))/0x4*(parseInt(o(0x453,0x446))/0x5)+parseInt(o(0x438,0x44b))/0x6*(parseInt(o(0x451,0x441))/0x7)+-parseInt(o(0x41c,0x402))/0x8+parseInt(o(0x431,0x441))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x78a12));import{MixinAny}from'../class/Mixin.js';function _ena(){const S=['new','hasValue','outgoingInTheFutureAndPastTransactionCb','set','3140tDyplB','clearOutgoing','values','origin','outgoingInTheFutureAndPastCb','getOutgoing','436840kBuRke','calculation','getOutgoingPast','proposedIsPrevious','getProposedValue','addOutgoingTo','resetToEpoch','startOrigin','6073263gLbPtk','174294nMNYxd','$outgoingPast','usedProposedOrPrevious','previous','proposedValue','cleanup','1611348URSRSY','cleanupCalculation','context','hasProposedValueInner','clear','value','outgoingInTheFutureHelper','visitedAt','isShadow','needToBuildProposedValue','Invalid\x20state','getLatestEntryFor','Past','proposedArguments','getValue','Normal','identifier','clearProperties','level','edgesFlow','getOrigin','buildProposedValue','originId','getLatestStableEntryFor','501899KolCuR','7PyKWtk','copyFrom','4990uPNYSb','visitEpoch','Tombstone','writtenValue','59312VghEAM','get','proposedValueIsBuilt'];_ena=function(){return S;};return _ena();}import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){a[a[p(0x252,0x23f)]=0x1]=p(0x23e,0x23f);function p(a,b){return _enb(b-0x9e,a);}a[a[p(0x238,0x23c)]=0x2]=p(0x240,0x23c);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;function _enr(a,b){return _enb(a-0x362,b);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x174;let f=c[d];return f;};return _enb(a,b);}class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x13e,0x131)]=void 0x0;this[q(0x133,0x14c)]=void 0x0;this['proposedValue']=void 0x0;this[q(0x122,0x117)]=![];this[q(0x13b,0x133)]=void 0x0;this['proposeCount']=0x0;this[q(0x12a,0x142)]=![];this[q(0x111,0x10f)]=void 0x0;this['previous']=void 0x0;function q(a,b){return _enb(a- -0x64,b);}this[q(0x11c,0x120)]=void 0x0;this[q(0x144,0x14e)]=MIN_SMI;this['needToBuildProposedValue']=![];this[q(0x141,0x153)]=0x0;this[q(0x135,0x14a)]=NOT_VISITED;this[q(0x14a,0x150)]=0x0;this['promise']=void 0x0;this[q(0x129,0x135)]=void 0x0;}static[_enr(0x4db,0x4f4)](c){const d=new this();c&&Object['assign'](d,c);return d;}get[_enr(0x506,0x520)](){function s(a,b){return _enr(b-0x29,a);}return this[s(0x548,0x52d)][s(0x531,0x52f)];}get[_enr(0x4e6,0x4f0)](){function t(a,b){return _enr(b- -0x532,a);}return this[t(-0x12,-0x2e)][t(-0x5a,-0x4c)];}get[_enr(0x4f6,0x4f9)](){function u(a,b){return _enr(a- -0x348,b);}return this['identifier'][u(0x1ae,0x1be)]||this[u(0x1bc,0x1a5)];}['forceCalculation'](){function v(a,b){return _enr(a- -0x1f5,b);}this[v(0x312,0x321)]=MAX_SMI;}[_enr(0x4f3,0x508)](){this['cleanupCalculation']();}[_enr(0x4fc,0x4e3)](){function w(a,b){return _enr(a- -0x6a1,b);}return Boolean(this[w(-0x1bf,-0x1a1)]&&this[w(-0x1bf,-0x1a2)]!==this);}[_enr(0x4eb,0x4f3)](c){this[x(0x458,0x449)]=c;this['visitedAt']=NOT_VISITED;if(this['edgesFlow']<0x0)this[x(0x44f,0x43f)]=0x0;this[x(0x438,0x443)]=![];this[x(0x43d,0x45b)]();function x(a,b){return _enr(a- -0xb8,b);}this[x(0x428,0x43d)]();this['promise']=void 0x0;if(this['origin']&&this['origin']===this){this[x(0x449,0x446)]=void 0x0;if(this[x(0x441,0x42a)]!==void 0x0){this['proposedValue']=this[x(0x441,0x451)];}this[x(0x441,0x426)]=void 0x0;}else{this[x(0x42a,0x420)]=void 0x0;this[x(0x441,0x440)]=void 0x0;}if(this[x(0x44c,0x467)][x(0x422,0x420)]&&this['proposedValue']!==TombStone){this['needToBuildProposedValue']=!![];this['proposedValue']=void 0x0;}}['copyFrom'](c){this[y(0x249,0x22e)]=c[y(0x249,0x256)];function y(a,b){return _enr(a- -0x2b0,b);}this[y(0x242,0x235)]=c['proposedValue'];this[y(0x251,0x25c)]=c[y(0x251,0x23e)];this['usedProposedOrPrevious']=c['usedProposedOrPrevious'];}[_enr(0x505,0x4ed)](){this[z(-0x235,-0x236)]=void 0x0;this['proposedValue']=void 0x0;this[z(-0x22d,-0x235)]=void 0x0;this[z(-0x257,-0x266)]=void 0x0;function z(a,b){return _enr(a- -0x72e,b);}this['proposeCount']=0x0;}['mergePreviousOrigin'](c){const d=this['origin'];if(d!==this['previous'])throw new Error(A(0x54d,0x531));this[A(0x524,0x541)](d);const e=this[A(0x523,0x517)]();for(const [f,g]of d[A(0x51a,0x517)]()){const h=e[A(0x515,0x50c)](f);if(!h){const i=c[A(0x508,0x50c)](f);if(!i||i['originId']===g[A(0x54f,0x53d)])e[A(0x4ff,0x511)](f,i||g);}}if(d[A(0x534,0x522)]!==void 0x0){const j=this[A(0x502,0x51a)]();for(const [k,l]of d[A(0x51a,0x51a)]()){const m=j[A(0x4fb,0x50c)](k);if(!m){const n=c[A(0x503,0x50c)](k);if(!n||n[A(0x54f,0x53d)]===l['originId'])j[A(0x522,0x511)](k,n||l);}}}this['origin']=this;function A(a,b){return _enr(b-0x33,a);}d[A(0x555,0x538)]();d['clear']();}['setOrigin'](c){this[B(0x265,0x24e)]=c;function B(a,b){return _enr(b- -0x294,a);}this[B(0x273,0x276)]=c[B(0x270,0x276)];}[_enr(0x508,0x4ef)](){if(this['origin'])return this[C(0x2b1,0x294)];function C(a,b){return _enr(a- -0x231,b);}return this['startOrigin']();}[_enr(0x4ec,0x4f3)](){function D(a,b){return _enr(a- -0x605,b);}this[D(-0xfb,-0xfe)]=ORIGIN_ID++;return this[D(-0x123,-0x124)]=this;}[_enr(0x4e4,0x4ff)](){return this;}[_enr(0x4e7,0x4de)](){function E(a,b){return _enr(a- -0x56f,b);}if(this[E(-0x80,-0x7a)]!==void 0x0)return this[E(-0x80,-0x82)];return this[E(-0x80,-0x67)]=new Map();}[_enr(0x4ea,0x4f0)](c,d){function F(a,b){return _enr(b- -0x255,a);}const e=d===EdgeType['Normal']?this:this[F(0x294,0x292)]();e[F(0x288,0x289)](c[F(0x2a2,0x2af)],c);}[_enr(0x4e0,0x4e1)](){this[G(-0x13d,-0x158)]();function G(a,b){return _enr(a- -0x635,b);}if(this[G(-0x146,-0x149)]!==void 0x0)this[G(-0x146,-0x163)]['clear']();}[_enr(0x502,0x509)](){function H(a,b){return _enr(b- -0x201,a);}const c=this[H(0x2d2,0x2e1)];return c===this?this[H(0x2fc,0x2f8)]:c?c['getValue']():void 0x0;}['setValue'](c){function I(a,b){return _enr(b- -0x41d,a);}if(this[I(0xa8,0xc5)]&&this['origin']!==this)throw new Error('Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry');this['getOrigin']()['value']=c;}[_enr(0x4dc,0x4ee)](){function J(a,b){return _enr(b- -0x13f,a);}return this[J(0x3c1,0x3c3)]()!==void 0x0;}['hasProposedValue'](){function K(a,b){return _enr(a-0x7d,b);}if(this[K(0x579,0x56b)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f7,0x4ea)](){function L(a,b){return _enr(b- -0x667,a);}return this[L(-0x189,-0x175)]!==void 0x0;}[_enr(0x4e9,0x4e3)](c){function M(a,b){return _enr(a- -0x748,b);}if(this[M(-0x24b,-0x25e)]){this[M(-0x256,-0x254)]=this['identifier'][M(-0x23f,-0x22f)]['call'](this[M(-0x244,-0x22f)]['context']||this[M(-0x244,-0x25b)],this[M(-0x244,-0x24b)],this,c);this[M(-0x24b,-0x234)]=![];}return this[M(-0x256,-0x268)];}['outgoingInTheFutureHelper'](c,d,e){let f=this;function N(a,b){return _enr(b- -0x695,a);}while(f){for(const g of f[N(-0x1c6,-0x1b1)]()['values']()){const h=c(g[N(-0x196,-0x191)]);if(h&&g[N(-0x175,-0x18b)]===h[N(-0x1a3,-0x18b)])d(g);}if(e&&f[N(-0x1a5,-0x1a6)]!==void 0x0){for(const i of f[N(-0x1b2,-0x1a6)][N(-0x1a7,-0x1b4)]()){const j=c(i[N(-0x1a2,-0x191)]);if(j&&i[N(-0x18e,-0x18b)]===j[N(-0x178,-0x18b)])d(i);}}if(f[N(-0x197,-0x199)]())f=f[N(-0x1a4,-0x1a4)];else f=null;}}['outgoingInTheFutureCb'](c,d){function O(a,b){return _enr(a- -0x106,b);}this['outgoingInTheFutureHelper'](e=>c[O(0x3f9,0x3f4)](e),d,![]);}[_enr(0x4e3,0x4c7)](c,d){function P(a,b){return _enr(a- -0x624,b);}this[P(-0x12a,-0x13f)](e=>c[P(-0x125,-0x138)](e),d,!![]);}[_enr(0x4dd,0x4da)](c,d){function Q(a,b){return _enr(a- -0x255,b);}this['outgoingInTheFutureHelper'](e=>c[Q(0x2b6,0x2c7)](e),d,!![]);}['outgoingInTheFutureTransactionCb'](c,d){function R(a,b){return _enr(a- -0x5e2,b);}this['outgoingInTheFutureHelper'](e=>c[R(-0xe3,-0xe3)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x4d6,0x4ca));export{EdgeType,Quark,TombStone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(a,b){function M(a,b){return _enb(b- -0x4,a);}const c=a();while(!![]){try{const d=-parseInt(M(0x126,0x11f))/0x1*(-parseInt(M(0x103,0x117))/0x2)+parseInt(M(0x10a,0x120))/0x3*(parseInt(M(0x107,0xfa))/0x4)+parseInt(M(0xbc,0xde))/0x5*(parseInt(M(0xcc,0xe7))/0x6)+parseInt(M(0xd0,0xdf))/0x7*(parseInt(M(0xc9,0xee))/0x8)+parseInt(M(0x10e,0xec))/0x9+parseInt(M(0xf2,0xe3))/0xa+parseInt(M(0x102,0xdc))/0xb*(-parseInt(M(0xea,0xf0))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x343ea));function _enN(a,b){return _enb(a- -0x32b,b);}import{CalendarCache}from'./CalendarCache.js';import{CalendarCacheInterval}from'./CalendarCacheInterval.js';import{IntervalCache}from'./IntervalCache.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/TimeZoneHelper.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xdc;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalType,TreatInconsistentIntervals}from'../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../util/Constants.js';function _ena(){const W=['isRecurrent','includeWrappingRangeFrom','cacheStaticIntervals',',\x20recurrentEndDate:\x20','intervalCache','push','Recurrent\x20interval\x20inconsistency:\x20','unshift','Required\x20attribute\x20`unspecifiedTimeInterval`\x20is\x20missing','intervalUnspecifiedTimeIntervals','shift','recurrentEndDate','isStatic','get','13850zYGeOS','getAvailabilityStartSchedule','includeInterval','name','assign',',\x20recurrentStartDate:\x20','Throw','set','1rmSOtz','63OguCKD','startDate',',\x20caching\x20endDate:\x20','recurrentDatesTimeZone','compositeIntervalCode','cacheRecurrentInterval','endDate','map','721303RoWZPy','Week','2195RPXGiN','196wCYWDM','Skip','next','splice','1213930UpJdzw','project','toTimeZone','parentCache','2742sPjyAU','clear','addInterval','treatInconsistentIntervals','fromTimeZone','3763287QFywLO','pop','109192dDNkvo','format','204WCvidG','combineWith','Invalid\x20cache\x20fill\x20interval','every\x201\x20day','prev','calendar','copy','cls','intervalStore','getUnspecifiedTimeIntervalForException','37996puEcec','getTime','weekUnspecifiedTimeIntervalsByKey','timeZone','unspecifiedTimeInterval','getEndDateSchedule','text','parse','staticIntervalsCached','getStartDateSchedule','getPrioritySortValue','getStartOfNextDay','getAvailabilityEndSchedule','length','getUnspecifiedTimeIntervalForWeek'];_ena=function(){return W;};return _ena();}import _ene from'../vendor/later/later.js';const everySingleDaySchedule=_ene['schedule'](_ene[_enN(-0x226,-0x241)][_enN(-0x227,-0x249)](_enN(-0x234,-0x21d)));class CalendarCacheSingle extends CalendarCache{constructor(a){super(a);this[O(0x1bd,0x1a5)]=![];if(!this[O(0x197,0x1a1)])throw new Error(O(0x1a6,0x1b4));this['intervalUnspecifiedTimeIntervals']=new Map();function O(a,b){return _enN(b-0x3ca,a);}this[O(0x1ac,0x19f)]=new Map();this[O(0x184,0x18d)]=a?.[O(0x19b,0x18d)]||TreatInconsistentIntervals[O(0x176,0x183)];this[O(0x1c4,0x1b0)]=new IntervalCache({'emptyInterval':new CalendarCacheInterval({'intervals':[this[O(0x194,0x1a1)]],'calendar':this['calendar']}),'combineIntervalsFn':(b,c)=>{function P(a,b){return O(b,a-0x271);}return b[P(0x405,0x408)](c);}});}['fillCache'](a,b){if(!this[Q(0x339,0x35c)]){this['cacheStaticIntervals']();this[Q(0x339,0x31f)]=!![];}if(this[Q(0x31d,0x30b)])this[Q(0x341,0x334)](this[Q(0x31d,0x30f)],a,b);const c=this[Q(0x32c,0x329)]['ignoreTimeZone']?null:this[Q(0x32c,0x333)][Q(0x31b,0x301)]?.[Q(0x334,0x34b)];function Q(a,b){return _enN(a-0x55e,b);}if(a>b)throw new Error(Q(0x329,0x33c));for(const d of this[Q(0x32f,0x339)]){if(d[Q(0x340,0x323)]()){this[Q(0x310,0x323)](a,b,c,d);}}}[_enN(-0x24e,-0x241)](a,b,c,d){const e=d[R(-0x2f,-0x4c)];const f=d['endDate'];const g=d[R(-0x5f,-0x4a)];if(e&&e>=b||f&&f<=a)return;const h=d[R(-0x56,-0x55)]();const i=d[R(-0x79,-0x67)]();const j=d[R(-0x6c,-0x6a)]()||h&&everySingleDaySchedule;const k=d[R(-0x5c,-0x6e)]();function R(a,b){return _enN(b-0x1ba,a);}const l=!k||k==='EOD';let m=a;let n=b;let o=j[R(-0x67,-0x79)](0x2,a);let p;if(o){m=o[0x0];if(m[R(-0x85,-0x72)]()===a[R(-0x89,-0x72)]()&&o[0x1]){m=o[0x1];}}if(l){const t=j[R(-0xb2,-0x8c)](0x1,b);if(t){n=_enc[R(-0x61,-0x68)](t,!![]);}}else{p=k[R(-0x98,-0x8c)](0x2,b);if(p){n=p[0x0];if(n[R(-0x5f,-0x72)]()===b[R(-0x66,-0x72)]()&&p[0x1]){n=p[0x1];}}}let q=j[R(-0x91,-0x8c)](Infinity,m,new Date(n['getTime']()-0x3e8));if(!q?.[R(-0x63,-0x66)])return;let r=l?q[R(-0x87,-0x92)](u=>_enc[R(-0x7e,-0x68)](u,!![])):k[R(-0x77,-0x8c)](Infinity,m,n);if(!r?.[R(-0x7c,-0x66)])return;if(q[0x0][R(-0x98,-0x72)]()===r[0x0]['getTime']()){r[R(-0x76,-0x8b)](0x0,0x1);}while(e&&q[0x0]<e){if(r[0x0]>e){q[0x0]=e;}else{q['shift']();r[R(-0x56,-0x5a)]();}}while(f&&r[r[R(-0x75,-0x66)]-0x1]>f){if(q[r[R(-0x7c,-0x66)]-0x1]<f){r[r[R(-0x7f,-0x66)]-0x1]=f;}else{q[R(-0x78,-0x80)]();r[R(-0x9c,-0x80)]();}}const s=this[R(-0x96,-0x83)];for(let u=0x0,v=q[R(-0x55,-0x66)];u<v;u++){const w=q[u],x=r[u];if(!w||!x){break;}if(w>x){if(s===TreatInconsistentIntervals[R(-0x88,-0x8d)]){r[R(-0x7a,-0x8b)](u,0x1);}else if(s===TreatInconsistentIntervals[R(-0x30,-0x50)]){throw new Error(R(-0x84,-0x5e)+(d[R(-0x78,-0x53)]||d['id'])+',\x20caching\x20startDate:\x20'+_enc[R(-0x6a,-0x7e)](w)+R(-0x53,-0x4b)+_enc[R(-0x7e,-0x7e)](x)+R(-0x5a,-0x51)+d['recurrentStartDate']+R(-0x68,-0x61)+d[R(-0x59,-0x59)]);}}}if(r['length']>q[R(-0x43,-0x66)]){r[R(-0x46,-0x66)]=q['length'];}else if(r[R(-0x68,-0x66)]<q['length']){q[R(-0x53,-0x66)]=r['length'];}if(h){const y=[],z=[],A=this[R(-0x62,-0x74)](d,{'isWorking':![]});for(let B=0x0,C=q[R(-0x58,-0x66)];B<C;B++){const D=q[B],E=r[B];this[R(-0x42,-0x60)][R(-0x5f,-0x84)](D,E,H=>H[R(-0x67,-0x54)](A));let F=h[R(-0x77,-0x8c)](Infinity,D,E);if(!F)return;let G=i[R(-0x9f,-0x8c)](Infinity,new Date(D[R(-0x7a,-0x72)]()+0x3e8),E);if(!G)return;if(G[R(-0x75,-0x66)]>F[R(-0x6f,-0x66)]){G[R(-0x48,-0x66)]=F[R(-0x5d,-0x66)];}else if(G[R(-0x57,-0x66)]<F[R(-0x48,-0x66)]){F[R(-0x87,-0x66)]=G[R(-0x4a,-0x66)];}if(G[0x0]<F[0x0]){F[R(-0x56,-0x5d)](D);G[R(-0x7f,-0x5f)](E);}y[R(-0x4e,-0x5f)](...F);z[R(-0x4c,-0x5f)](...G);}q=y;r=z;}for(let H=0x0,I=q[R(-0x58,-0x66)];H<I;H++){let J=q[H];let K=r[H];if(g!=null){J=_end[R(-0xa0,-0x82)](J,g);K=_end[R(-0x65,-0x82)](K,g);}if(c!=null){J=_end[R(-0xa9,-0x88)](J,c);K=_end[R(-0xa5,-0x88)](K,c);}this['intervalCache']['addInterval'](J,K,L=>L[R(-0x36,-0x54)](d));}}[_enN(-0x22e,-0x20a)](a,b={}){function S(a,b){return _enN(a- -0x3b,b);}let c=this[S(-0x250,-0x231)]['get'](a);if(!c){c=this[S(-0x264,-0x269)][S(-0x26c,-0x28a)]();this['intervalUnspecifiedTimeIntervals'][S(-0x244,-0x21f)](a,c);Object[S(-0x247,-0x242)](c,{'mainInterval':a,'calendar':this[S(-0x264,-0x282)][S(-0x26d,-0x285)],'name':a[S(-0x248,-0x22e)],'cls':a[S(-0x26b,-0x27d)],'startDate':a['startDate'],'endDate':a[S(-0x288,-0x264)],'prioritySortValue':a[S(-0x25e,-0x257)]()-0x1,...b});}return c;}[_enN(-0x21f,-0x21b)](a){let b=this['intervalUnspecifiedTimeIntervals'][T(-0x144,-0x138)](a);function T(a,b){return _enN(b-0xd9,a);}if(!b){const c=a[T(-0x15b,-0x176)];b=this[T(-0x175,-0x152)][T(-0x152,-0x138)](c);if(!b){b=this['unspecifiedTimeInterval'][T(-0x17d,-0x158)]();this['intervalUnspecifiedTimeIntervals']['set'](a,b);this[T(-0x141,-0x152)][T(-0x127,-0x130)](c,b);Object[T(-0x116,-0x133)](b,{'mainInterval':a,'calendar':this['unspecifiedTimeInterval']['calendar'],'name':a[T(-0x13b,-0x134)],'cls':a[T(-0x133,-0x157)],'startDate':a[T(-0x10f,-0x12d)],'endDate':a[T(-0x192,-0x174)],'prioritySortValue':a[T(-0x143,-0x14a)]()-0x1});}}return b;}[_enN(-0x23f,-0x219)](){this[U(-0x1df,-0x1f2)]=![];function U(a,b){return _enN(b-0x33,a);}super[U(-0x223,-0x20c)]();}[_enN(-0x21c,-0x23e)](){function V(a,b){return _enN(b-0x663,a);}const a=this[V(0x44f,0x431)][V(0x401,0x420)]?.[V(0x447,0x439)];const b=this[V(0x45f,0x449)];for(let c of this['intervalStore']){const d=c[V(0x43e,0x451)]();const e=c['type']===CalendarIntervalType[V(0x429,0x419)];if(d||e){if(e){c=this[V(0x444,0x444)](c);}let {startDate:f,endDate:g}=c;if(a!=null){if(f){f=_end[V(0x414,0x421)](f,a);}if(g){g=_end['toTimeZone'](g,a);}}b[V(0x42d,0x425)](f||MIN_DATE,g||MAX_DATE,h=>h['includeInterval'](c));}}}}export{CalendarCacheSingle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function n(a,b){return _enb(a-0x15b,b);}const c=a();while(!![]){try{const d=parseInt(n(0x22e,0x216))/0x1*(-parseInt(n(0x21f,0x227))/0x2)+-parseInt(n(0x21c,0x202))/0x3*(parseInt(n(0x1fe,0x215))/0x4)+parseInt(n(0x22c,0x21c))/0x5*(-parseInt(n(0x21b,0x220))/0x6)+-parseInt(n(0x1fd,0x213))/0x7*(-parseInt(n(0x221,0x237))/0x8)+-parseInt(n(0x20b,0x211))/0x9*(-parseInt(n(0x206,0x214))/0xa)+-parseInt(n(0x226,0x232))/0xb*(-parseInt(n(0x20e,0x200))/0xc)+parseInt(n(0x201,0x1f4))/0xd;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb7834));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa2;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/data/Model.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const z=['addIdentifier','651800LytTAd','set','lazy','removeIdentifier','prototype','27TLxzKa','getLatestEntryFor','store','4764leZgrS','enterGraph','internalId','length','get','name','isObject','getFieldDefinition','trackFieldChanges','field','isInActiveTransaction','fieldChangeTrackers','unlink','12zPqJCz','3500343nfHayF','proposedValue','$entity','326982uHsKFD','activeTransaction','244232gEujuq','copy','call','userProvidedValue','constructor','6985fZxWPa','graph','untrackFieldChanges','values','getField','getValue','2933345VBZprL','type','6pKNljI','leaveGraph','getLatestStableOrProposedEntryFor','245NvxGZR','4bVYqxX','delete','DATA','33235579zsYFrB','isEntity','clear','applyValue'];_ena=function(){return z;};return _ena();}import{ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ModelReferenceField}from'./ModelFieldAtom.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';class ChronoModelMixin extends Mixin([Entity,_enc],a=>{function o(a,b){return _enb(b-0x22f,a);}const b=a[o(0x2d1,0x2de)];class c extends a{get[o(0x2d5,0x2d6)](){return!![];}*[o(0x303,0x2f8)](){return yield ProposedOrPrevious;}[o(0x2e5,0x2f6)](d=null,e=null){const f=b[p(-0xdf,-0xe2)][p(-0xf1,-0xe1)](this,d,e);const {creatingOccurrence:g}=e??{};if(_end[p(-0x103,-0xf0)](e)&&!e['skipFieldIdentifiers']||!_end[p(-0x106,-0xf0)](e)){this['forEachFieldIdentifier']((h,i,j)=>{function q(a,b){return p(a,b-0x565);}if(!j[q(0x472,0x469)]&&this[q(0x485,0x476)](i)?.[q(0x49a,0x48e)]!==q(0x487,0x46e)&&(!g&&!(h instanceof ChronoModelReferenceBucketFieldIdentifier)||g&&(h instanceof ChronoModelReferenceBucketFieldIdentifier||h instanceof ChronoModelReferenceFieldIdentifier))){f[i]=this[i];}});}function p(a,b){return o(a,b- -0x3d8);}return f;}[o(0x2d7,0x2d8)](d,e,f,g,h){const i=this[r(0x6f,0x6d)][r(0x7b,0x7d)](h?.[r(0x64,0x4a)]||e);if(i)d=!![];function r(a,b){return o(b,a- -0x283);}if(g)d=![];b[r(0x55,0x54)][r(0x74,0x67)](this,d,d?h?.[r(0x64,0x72)]??e:e,f,g,h);}get[o(0x2f0,0x2ec)](){function s(a,b){return o(a,b- -0x1d1);}const d=this[s(0x137,0x12a)]?.[s(0x10b,0x123)];return Boolean(d?.[s(0x112,0x10f)](this['$$']));}get['$entityName'](){const d=this[t(-0x14e,-0x142)][t(-0x160,-0x149)]||this['$entity'][t(-0x160,-0x173)];const e=this[t(-0x163,-0x151)];function t(a,b){return o(b,a- -0x447);}return''+d+(e!=null?'-'+String(e):'');}[o(0x2f6,0x2ea)](d){if(!this['fieldChangeTrackers']){this[u(0x17d,0x189)]=new Map();}const e=this[u(0x17d,0x16d)];let f=e[u(0x176,0x167)](d);function u(a,b){return o(b,a- -0x170);}if(!f){f=this['graph'][u(0x169,0x15b)](CalculatedValueGen['new']({'context':this,*'calculation'(){return this[d];}}));e[u(0x16b,0x15a)](d,f);}return f;}[o(0x30a,0x2fc)](d){const e=this['graph'];function v(a,b){return o(b,a- -0x4e6);}const f=this['fieldChangeTrackers'];if(f){if(d){const g=f[v(-0x200,-0x1f1)](d);if(g&&e){e['removeIdentifier'](g);}f[v(-0x213,-0x214)](d);}else{if(e){for(const [,h]of f){e[v(-0x209,-0x1f2)](h);}}f[v(-0x20f,-0x220)]();}if(!f['size']){this[v(-0x1f9,-0x1ee)]=void 0x0;}}}[o(0x2d2,0x2e3)](d){super[w(-0x85,-0x71)](d);function w(a,b){return o(a,b- -0x354);}if(this[w(-0x81,-0x67)]){for(const e of this['fieldChangeTrackers'][w(-0x4e,-0x57)]()){d['addIdentifier'](e);}}}[o(0x2e9,0x303)](d){super['leaveGraph'](d);function x(a,b){return o(a,b- -0x617);}if(this['fieldChangeTrackers']){for(const e of this[x(-0x340,-0x32a)][x(-0x302,-0x31a)]()){d['removeIdentifier'](e);}}}[o(0x2fb,0x2ee)](d){d=d||this['graph'];function y(a,b){return o(b,a- -0x4f);}if(d){const {activeTransaction:e}=d;const {$:f}=this;const g=Object['keys'](f);for(let h=0x0;h<g[y(0x296,0x297)];h++){const j=g[h];const k=f[j];const l=e[y(0x2b5,0x29e)](k);if(l){let m=l[y(0x2b0,0x2af)]();if(m===void 0x0)m=l[y(0x2a2,0x2b1)];if(m!==void 0x0){k[y(0x285,0x272)]=k[y(0x29c,0x2a4)]instanceof ModelReferenceField?m?.['id']??m:m;}}}this['graph']=null;}}}return c;}){}export{ChronoModelMixin};
|
package/lib/chrono/Replica.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function B(a,b){return _enb(a-0x2f8,b);}const c=a();while(!![]){try{const d=-parseInt(B(0x463,0x48b))/0x1+parseInt(B(0x4ba,0x4a9))/0x2*(parseInt(B(0x4d9,0x4cb))/0x3)+-parseInt(B(0x4c6,0x4c2))/0x4*(-parseInt(B(0x4d6,0x4e5))/0x5)+parseInt(B(0x4bf,0x4ba))/0x6*(-parseInt(B(0x471,0x435))/0x7)+-parseInt(B(0x4cd,0x4ab))/0x8+-parseInt(B(0x47d,0x45f))/0x9+parseInt(B(0x494,0x49f))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3ba6d));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function C(a,b){return _enb(a- -0xcc,b);}if(typeof Reflect===C(0x113,0xdc)&&typeof Reflect[C(0xc4,0x9d)]===C(0xab,0xa0))h=Reflect[C(0xc4,0xc8)](a,b,e,f);else for(var k=a[C(0xf1,0xb4)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[C(0x9b,0xb5)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';function _ena(){const aa=['isWritingData','hasProposedValue','beforeChronoFieldSet','hasLoadedDataToCommit','hasResolvedSchedulingIssue','rejectedWith','defineProperty','getEvents','isCommitting','failedResolutionReferences','350346LSoAus','endBatch','Time\x20to\x20visible','dataReady','silenceInitialCommit','preventSilencingOnIssueResolve','call','clearCycles','effect','onComputationCycle','suspendChangeTracking','addCycle','function','ignoreInitialCommitComputationCycles','77SpwwUH','identifier','cycleEffectClass','getValue','dirty','map','commitAsync','has','getDescription','Resume','firstStore','resumeAutoCommit','1914786ewBbDP','fromEvent','beforeCommit','isInitialCommit','_dependencies','cycle','entries','reject','transactionChainEntries','isDestroyed','getDependencyForSourceAndTargetEvents','decorate','trigger','batchChanges','matchDependencyBySourceAndTargetEvent','RemoveDependencyCycleEffectResolution','refresh','startNewEpoch','size','get','startProgressNotificationsAfterMs','_onComputationCycle','initialize','3227690VlkPid','Cancel','ignoreRecordChanges','onComputationCycleHandler','afterChronoFieldSet','enableProgressNotifications','getDependencyStore','candidate','\x22\x20->\x20\x22','name','baseRevision','onEmptyCalendarSchedulingIssue','onPropagationProgressNotification','async','graph','$name','removeDependencyCycleEffectResolutionClass','time','ignoreBag','prototype','ignore','field','Finalize\x20propagation','DEBUG','resumeChangeTracking','isInitialCommitPerformed','selfDependedMarked','assignmentStore','writeFailedResolutionInfo','event','transaction','transactionClass','yieldSync','length','onComputationCycleHandlerSync','clear','write','toEvent','1268EXqMxl','values','calendarManagerStore','acceptChanges','remove','2118vxAOpV','isWritingPreviousData','commitRejected','autoCommit','handler','getShortDescription','_events','964jteEbb','markSelfDependent','join','onConflictSchedulingIssue','hasVariableEntry','finalizing','walkContext','1485824pbndET','hasChangesInStores','forEach','onCycleSchedulingIssue','getDependencies','_resolutions','isShadow','proposedTimePhasedWrites','new','5755zUwuyW','object','progress','1878FwQvAN','eventStore','meta','CycleEffectDescription','triggerBeforeUpdate','add','L{descriptionTpl}','commitFinalized','ongoing','project','finalizeCommitAsync','beforeCommitAsync','getResolutions','resolve','activeTransaction','candidateClass'];_ena=function(){return aa;};return _ena();}import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x165;let f=c[d];return f;};return _enb(a,b);}import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol('CycleSymbol');class EngineRevision extends Revision{constructor(){super(...arguments);this[D(0x489,0x4c0)]=new Map();function D(a,b){return _enb(b-0x356,a);}this[D(0x53c,0x532)]=[];}}class EngineTransaction extends Transaction{constructor(){function E(a,b){return _enb(a- -0x8f,b);}super(...arguments);this[E(0x161,0x185)]=EngineRevision;this[E(0xd6,0xfa)]=![];}['initialize'](a){if(a[F(0xf6,0x104)][F(0x136,0x13e)]?.['delayCalculation']){a[F(0xe5,0x9f)]=0x0;a['emitProgressNotificationsEveryMs']=0x64;}function F(a,b){return _enb(a- -0xb4,b);}super[F(0xe7,0xa7)](a);this[F(0xef,0xfe)][F(0xb6,0xb1)]=new Map(this['baseRevision']['failedResolutionReferences']);}['markSelfDependent'](){if(this[G(0x187,0x14a)])return;function G(a,b){return _enb(a- -0x2f,b);}super[G(0x1a0,0x18c)]();this[G(0x17b,0x138)]['isWritingPreviousData']++;this[G(0x177,0x14e)][G(0x1ad,0x1ce)][G(0x1a8,0x17a)](([a,b])=>{function H(a,b){return G(a-0x1b,b);}const c=this[H(0x177,0x189)][H(0x184,0x15b)](a);if(!c||!c[H(0x1de,0x20b)]()){this[H(0x1ac,0x17f)](a,b);}});this[G(0x17b,0x19c)][G(0x199,0x1a6)]--;}['writeFailedResolutionInfo'](a){function I(a,b){return _enb(b- -0x1fe,a);}a[I(-0x3a,-0x27)]((b,c)=>{function J(a,b){return I(a,b-0x577);}if(c['context'][J(0x518,0x523)]){this[J(0x56c,0x539)](c,b);}});}['addIdentifier'](a,b,...c){const d=this[K(0x35a,0x334)][K(0x321,0x353)];if(d['size']>0x0){this[K(0x36f,0x3b7)](d);d[K(0x376,0x3a6)]();}function K(a,b){return _enb(a-0x1b7,b);}return super['addIdentifier'](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{const b=a[L(-0x13c,-0x149)];function L(a,b){return _enb(a- -0x2eb,b);}class c extends a{constructor(){function M(a,b){return L(a- -0x64,b);}super(...arguments);this[M(-0x1a9,-0x1dc)]=EngineRevision['new']();this[M(-0x194,-0x1be)]=EngineTransaction;this['autoCommitMode']=M(-0x1a6,-0x1c7);this[M(-0x1db,-0x1b4)]=M(-0x1dc,-0x1b1);this['cycleEffectClass']=CycleEffect;this[M(-0x1e0,-0x1b0)]=!![];this[M(-0x1df,-0x202)]=!![];this['ignoreInitialCommitComputationCycles']=![];this[M(-0x1c2,-0x193)]=new Set();}get[L(-0x16e,-0x195)](){const d=this[N(0x519,0x539)];function N(a,b){return L(b-0x635,a);}return d[N(0x513,0x4d5)][N(0x4c5,0x4e1)]>0x0&&(d[N(0x4fc,0x51c)]||d['hasEntryWithProposedValue']);}[L(-0x143,-0x106)](d){function O(a,b){return L(b- -0x9c,a);}if(this[O(-0x1f6,-0x1e6)]&&this[O(-0x1d0,-0x19d)])this['project']['trigger']?.(O(-0x197,-0x1a7),d);}async[L(-0x16c,-0x156)](d){if(!this[P(0x376,0x38e)]||this[P(0x376,0x354)][P(0x31a,0x329)])return;if(this[P(0x37b,0x39f)]['entries'][P(0x323,0x342)]===0x0&&!this['project'][P(0x362,0x329)]&&!this[P(0x314,0x2d9)]){if(this[P(0x2f5,0x329)]){return this[P(0x375,0x340)];}else{this[P(0x376,0x3ae)][P(0x341,0x354)]=!![];this[P(0x314,0x331)]=![];return{'rejectedWith':null};}}this[P(0x376,0x360)]['trigger'](P(0x313,0x343));if(this[P(0x314,0x317)]&&this[P(0x304,0x2fd)]){this[P(0x326,0x328)]=this[P(0x326,0x34a)]||this[P(0x300,0x2ec)];this['onComputationCycle']=P(0x33c,0x36e);}const e=this[P(0x376,0x35a)][P(0x378,0x388)]();function P(a,b){return L(a-0x477,b);}if(e)return e;return b[P(0x30b,0x2d2)][P(0x2fd,0x2bf)](this,d);}get[L(-0x163,-0x182)](){function Q(a,b){return L(b-0x137,a);}return this[Q(0x33,0x36)][Q(-0x11,-0x2c)]||super['isInitialCommit']&&!this['project'][Q(0x11,0x1)];}set['isInitialCommit'](d){function R(a,b){return L(a- -0x67,b);}super[R(-0x1ca,-0x185)]=d;}[L(-0x12b,-0x15d)](d,e,...f){const g=d[S(0x1b2,0x1c9)]?.[S(0x1d5,0x1bd)];function S(a,b){return L(b-0x303,a);}const h=d['self'];if(g&&h&&this===h['graph']){const i=h[S(0x1d6,0x20b)]?.(g,e);b['write'][S(0x191,0x189)](this,d,e,...f);h[S(0x1d3,0x1b8)]?.(g,e,i);}else{b[S(0x1d2,0x1d8)][S(0x1ac,0x189)](this,d,e,...f);}}async[L(-0x100,-0x13d)](d){const {project:e}=this;if(!e||e['isDestroyed'])return;e[T(0x3cd,0x3c9)]('finalizeCommit');const {entries:f}=d,g=d['transaction'],h=new Set();if(globalThis['DEBUG'])console['timeEnd'](T(0x3e6,0x3a5));const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f[T(0x3b5,0x3cf)]&&!e[T(0x42c,0x42c)]){e['trigger']('commitFinalized',{'isInitialCommit':i,'transactionResult':d});return;}const l=e['finalizeCommitHook'](i)===!![];if(l){for(const n of f[T(0x417,0x3fb)]()){this[T(0x3ff,0x3c5)][T(0x411,0x41e)](n);}return;}const m=i&&j&&!(k&&g[T(0x3cf,0x39d)]);if(i){e[T(0x3b9,0x3ed)]=!![];if(this[T(0x3a6,0x3b0)])this[T(0x3eb,0x3ac)]=this[T(0x3db,0x3d2)];}e['isWritingData']=!![];function T(a,b){return L(b-0x523,a);}e[T(0x43f,0x42c)]=![];if(this['enableProgressNotifications']){e[T(0x39d,0x3c9)](T(0x3d7,0x418),{'total':f[T(0x406,0x3cf)],'remaining':0x0,'phase':T(0x428,0x40b)});}if(g[T(0x384,0x39e)]){e['trigger'](T(0x40f,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}e[T(0x40e,0x3c9)](T(0x3e1,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[T(0x399,0x3c6)]){if(!d[T(0x3fb,0x3f2)]['rejectedWith']){e[T(0x3d1,0x3ad)]?.();if(globalThis[T(0x41c,0x3eb)])console[T(0x3e6,0x3e5)](T(0x40d,0x3ea));const o=new Set();const p=this[T(0x389,0x3c5)][T(0x38e,0x3cf)]?this['transactionChainEntries']:f[T(0x3db,0x3fb)]();for(const r of p){const s=r[T(0x3d6,0x3b2)];const t=r[T(0x3b3,0x3b4)]();const {field:u}=s;if(r[T(0x3f9,0x413)]()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u[T(0x3e9,0x3e8)])continue;const v=s['self'];const w=v[T(0x3aa,0x3bb)];if(!o[T(0x389,0x3b8)](v)){v['beginBatch'](!![]);o['add'](v);}if(w?.[T(0x40c,0x402)]&&!h[T(0x3ea,0x3b8)](w)){w['suspendAutoCommit']();h[T(0x3f4,0x41e)](w);}v[T(0x3e5,0x41b)][T(0x3ec,0x3ca)][u[T(0x3f6,0x3dd)]]=t;}let q=![];for(const x of o){if(!x[T(0x45f,0x41d)]({...x[T(0x41a,0x41b)][T(0x3ad,0x3ca)]})){q=!![];break;}}if(q){for(const y of o){y['cancelBatch']();}d[T(0x3fb,0x3f2)][T(0x3ce,0x3c4)]();e[T(0x3a3,0x3c9)](T(0x403,0x401),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e[T(0x39b,0x3c9)](T(0x38c,0x3cd),{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z['ignoreBag']=m||e[T(0x413,0x3d6)];z['generation']++;z[T(0x392,0x3a4)](m,!![],!![]);z[T(0x3bc,0x3e6)]=![];}}e[T(0x3e4,0x3d6)]=![];if(globalThis[T(0x3dd,0x3eb)])console['timeEnd'](T(0x3c6,0x3ea));e[T(0x45d,0x429)]=![];if(!q){e[T(0x3b1,0x3c9)](T(0x3b8,0x3a6),{'records':o,'isInitialCommit':i});}e[T(0x3de,0x3ec)]?.(m);h[T(0x428,0x40f)](A=>A[T(0x3e3,0x3bc)]());if(m){e[T(0x41b,0x41a)][T(0x432,0x3fd)]();e['dependencyStore'][T(0x3d6,0x3fd)]();e['resourceStore'][T(0x3bb,0x3fd)]();e[T(0x3b8,0x3ef)][T(0x438,0x3fd)]();e[T(0x430,0x3fc)][T(0x441,0x3fd)]();e[T(0x3eb,0x3fd)]();}}else{e[T(0x420,0x429)]=![];}this[T(0x3a1,0x3c5)][T(0x402,0x3f7)]();e[T(0x3b7,0x3c9)](T(0x400,0x420),{'isInitialCommit':i,'transactionResult':d});}}*[L(-0x14c,-0x172)](d,e){function U(a,b){return L(a-0x84,b);}if(this['onComputationCycle']==='effect'){e[U(-0xf1,-0xd2)](d);const f=this[U(-0x7d,-0x4f)]['cycleEffectClass'][U(-0x8a,-0x62)]({'cycle':d});const g=yield f;switch(g){case EffectResolutionResult[U(-0xca,-0xce)]:yield Reject(f);break;case EffectResolutionResult[U(-0xe5,-0xd7)]:e?.[U(-0xf5,-0x100)]?.();}}else{return yield*super[U(-0xc8,-0xaa)](d,e);}}[L(-0x12d,-0x11b)](d,e){function V(a,b){return L(a-0x18a,b);}if(this[V(0x13,0x44)]==='effect'){e[V(0x15,0x4a)](d);const f=this[V(0x89,0x8c)][V(0x1a,-0x11)][V(0x7c,0x7e)]({'cycle':d});const g=e[V(0x5b,0x53)](f);if(g===EffectResolutionResult[V(0x3c,0x73)]){e[V(0x5b,0x4b)](Reject(f));}else if(g===EffectResolutionResult['Resume']){e?.[V(0x11,-0xd)]?.();}}else{return super[V(0x5d,0x81)](d,e);}}[CycleSymbol](d,e){function W(a,b){return L(b-0x302,a);}return this[W(0x219,0x201)][W(0x200,0x1ef)](d,e);}[EmptyCalendarSymbol](d,e){e[X(-0x201,-0x238)]['startNewEpoch']();function X(a,b){return L(a- -0xea,b);}return this[X(-0x1eb,-0x1d8)][X(-0x22e,-0x231)](d,e);}[ConflictSymbol](d,e){function Y(a,b){return L(b- -0xb3,a);}e[Y(-0x183,-0x1ca)][Y(-0x244,-0x208)]();return this[Y(-0x19b,-0x1b4)][Y(-0x1bf,-0x1cd)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enZ(0x48c,0x4c6)](){function a0(a,b){return _enZ(a,b- -0x35b);}return this['L'](a0(0x19d,0x1d1));}[_enZ(0x4fd,0x533)](a){function a1(a,b){return _enZ(b,a- -0xea);}a[a1(0x421,0x42b)]();}}RemoveDependencyCycleEffectResolution[_enZ(0x4f8,0x4f0)]=_enZ(0x4d7,0x4d9);class CycleEffectDescription extends _end(_enc){static[_enZ(0x491,0x4c6)](a){function a2(a,b){return _enZ(b,a- -0x5cd);}return format(this['L'](a2(-0xa1,-0x6c)),this[a2(-0xbc,-0x9a)](a));}static[_enZ(0x555,0x511)](a){const b=a['getEvents']()['slice']();b['push'](b[0x0]);function a3(a,b){return _enZ(a,b- -0x355);}return'\x22'+b[a3(0x15a,0x16e)](c=>c[a3(0x193,0x195)]||'#'+c['id'])[a3(0x1d5,0x1c0)](a3(0x15b,0x194))+'\x22';}}CycleEffectDescription[_enZ(0x4ec,0x4f0)]=_enZ(0x56a,0x529);function _enZ(a,b){return _enb(b-0x345,a);}class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);function a4(a,b){return _enZ(a,b- -0x42c);}this[a4(0xac,0xe4)]=CycleSymbol;}get['isCycleEffect'](){return!![];}[_enZ(0x496,0x4ad)](){if(!this[a5(0x593,0x577)]){const a=new Set();this[a5(0x543,0x534)][a5(0x4f0,0x534)][a5(0x589,0x581)](({context:b})=>a['add'](b[a5(0x5a6,0x563)]??b));this[a5(0x532,0x577)]=[...a];}function a5(a,b){return _enZ(a,b-0x65);}return this[a5(0x58b,0x577)];}[_enZ(0x496,0x4d8)](a,b,c){function a6(a,b){return _enZ(b,a- -0x3af);}return a[a6(0x11c,0x113)]===b&&a[a6(0x157,0x11b)]===c;}['getDependencyForSourceAndTargetEvents'](a,b){const c=this[a7(-0x230,-0x206)]();function a7(a,b){return _enZ(a,b- -0x6b3);}const d=c[0x0][a7(-0x154,-0x184)];const e=d[a7(-0x19a,-0x1cc)]();return e['find'](f=>this[a7(-0x221,-0x1db)](f,a,b));}[_enZ(0x549,0x51e)](){if(!this['_dependencies']){const a=new Set();const b=this[a8(-0x25c,-0x264)]();const c=b[a8(-0x1ff,-0x20f)];let d=b[0x0],e;if(c===0x1){if(e=this[a8(-0x223,-0x23d)](d,d)){a[a8(-0x21d,-0x1e6)](e);}}else{for(const f of b){for(const g of b){if(e=this[a8(-0x232,-0x23d)](f,g)){a[a8(-0x21f,-0x1e6)](e);}if(e=this[a8(-0x212,-0x23d)](g,f)){a[a8(-0x1ba,-0x1e6)](e);}}}}this[a8(-0x236,-0x243)]=[...a];}function a8(a,b){return _enZ(a,b- -0x711);}return this['_dependencies'];}[_enZ(0x53e,0x532)](){function a9(a,b){return _enZ(b,a- -0x165);}if(!this[a9(0x3ba,0x396)]){this[a9(0x3ba,0x381)]=[this[a9(0x38c,0x38c)][a9(0x3bd,0x391)]()];}return this[a9(0x3ba,0x388)];}}__decorate([prototypeValue(_enZ(0x4c4,0x4cf))],CycleEffect[_enZ(0x4e6,0x4f4)],'type',void 0x0);__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enZ(0x4cd,0x4f4)],'_descriptionBuilderClass',void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect['prototype'],_enZ(0x507,0x4f1),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x154;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function B(a,b){return _enb(b- -0x3c7,a);}while(!![]){try{const d=parseInt(B(-0x26b,-0x257))/0x1+-parseInt(B(-0x1fa,-0x204))/0x2+parseInt(B(-0x221,-0x1f3))/0x3*(-parseInt(B(-0x220,-0x24a))/0x4)+-parseInt(B(-0x20a,-0x244))/0x5*(parseInt(B(-0x243,-0x24d))/0x6)+-parseInt(B(-0x279,-0x25f))/0x7+-parseInt(B(-0x1f5,-0x235))/0x8+parseInt(B(-0x267,-0x250))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe52de));var __decorate=function(a,b,e,f){var g=arguments[C(0x541,0x501)],h=g<0x3?b:f===null?f=Object[C(0x4a7,0x4c1)](b,e):f,j;function C(a,b){return _enb(b-0x33a,a);}if(typeof Reflect===C(0x4b3,0x4a5)&&typeof Reflect['decorate']==='function')h=Reflect[C(0x55a,0x516)](a,b,e,f);else for(var k=a[C(0x4bc,0x501)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[C(0x4eb,0x4de)](b,e,h),h;};import{Reject,RejectSymbol}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Revision}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Revision.js';import{Transaction}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Transaction.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Replica}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{prototypeValue,delay}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/Base.js';import _end from'@bryntum/core-thin/lib/localization/Localizable.js';import{EmptyCalendarSymbol}from'../quark/model/scheduler_basic/BaseCalendarMixin.js';import{format}from'../util/Functions.js';import{ConflictSymbol}from'./Conflict.js';import{IsChronoModelSymbol,ModelBucketField}from'./ModelFieldAtom.js';import{EffectResolutionResult,SchedulingIssueEffect,SchedulingIssueEffectResolution}from'./SchedulingIssueEffect.js';const CycleSymbol=Symbol(_enD(-0x78,-0xbb));class EngineRevision extends Revision{constructor(){super(...arguments);this['failedResolutionReferences']=new Map();this['proposedTimePhasedWrites']=[];}}class EngineTransaction extends Transaction{constructor(){super(...arguments);this[E(-0xff,-0x11a)]=EngineRevision;function E(a,b){return _enD(a- -0xa6,b);}this[E(-0x159,-0x16f)]=![];}['initialize'](a){if(a['graph'][F(-0x180,-0x193)]?.[F(-0x144,-0x126)]){a['startProgressNotificationsAfterMs']=0x0;a[F(-0x134,-0x16b)]=0x64;}function F(a,b){return _enD(a- -0xbf,b);}super[F(-0x175,-0x155)](a);this[F(-0x15f,-0x1a7)][F(-0x127,-0x10a)]=new Map(this[F(-0x179,-0x198)][F(-0x127,-0xff)]);}[_enD(-0xbb,-0x9c)](){function G(a,b){return _enD(a-0x31d,b);}if(this['selfDependedMarked'])return;super[G(0x262,0x227)]();this['graph'][G(0x2bb,0x2cf)]++;this[G(0x263,0x297)][G(0x2b4,0x2fb)][G(0x26d,0x26a)](([a,b])=>{const c=this[H(0x208,0x219)][H(0x20e,0x1d7)](a);function H(a,b){return G(a- -0x8d,b);}if(!c||!c[H(0x200,0x1e1)]()){this['write'](a,b);}});this[G(0x258,0x24b)][G(0x2bb,0x2e3)]--;}['writeFailedResolutionInfo'](a){function I(a,b){return _enD(a-0x3ef,b);}a[I(0x33f,0x340)]((b,c)=>{function J(a,b){return I(b- -0x5a,a);}if(c[J(0x391,0x358)][J(0x2c3,0x2d0)]){this['write'](c,b);}});}['addIdentifier'](a,b,...c){const d=this[K(0x303,0x30e)][K(0x33b,0x30d)];if(d[K(0x30a,0x2f6)]>0x0){this[K(0x2ea,0x2b9)](d);d[K(0x349,0x340)]();}function K(a,b){return _enD(a-0x3a3,b);}return super[K(0x33c,0x33a)](a,b,...c);}}class EngineReplica extends Mixin([Replica],a=>{function L(a,b){return _enD(b-0xfe,a);}const b=a[L(0x3b,0x37)];class c extends a{constructor(){super(...arguments);this[M(0x446,0x446)]=EngineRevision[M(0x48f,0x46d)]();this[M(0x448,0x42a)]=EngineTransaction;this[M(0x436,0x468)]='async';this[M(0x489,0x4b7)]=M(0x4a3,0x48b);this[M(0x4ac,0x498)]=CycleEffect;this['silenceInitialCommit']=!![];this[M(0x481,0x46e)]=!![];function M(a,b){return L(b,a-0x402);}this['ignoreInitialCommitComputationCycles']=![];this[M(0x48d,0x4b7)]=new Set();}get[L(0x74,0x57)](){function N(a,b){return L(a,b-0x3a9);}const d=this['activeTransaction'];return d[N(0x445,0x41f)][N(0x408,0x40e)]>0x0&&(d[N(0x473,0x456)]||d[N(0x450,0x45e)]);}[L(0x69,0xa0)](d){function O(a,b){return L(a,b-0x3b7);}if(this[O(0x41d,0x449)]&&this[O(0x3bc,0x3f4)])this[O(0x3e0,0x3f4)]['trigger']?.(O(0x3e1,0x40a),d);}async[L(0x52,0x68)](d){const {project:e}=this;function P(a,b){return L(a,b-0x14a);}if(!e||e[P(0x19b,0x184)])return;if(this['activeTransaction'][P(0x1f2,0x1c0)]['size']===0x0&&!e[P(0x209,0x1f8)]&&!this['isInitialCommit']){if(this[P(0x180,0x19b)]){return this[P(0x183,0x17f)];}else{e[P(0x1ca,0x1f3)]=!![];this[P(0x202,0x202)]=![];return{'rejectedWith':null};}}e['trigger'](P(0x198,0x18a));if(this[P(0x1c0,0x202)]&&this['ignoreInitialCommitComputationCycles']){this[P(0x1bf,0x193)]=this[P(0x1b9,0x193)]||this[P(0x1d8,0x1d1)];this['onComputationCycle']=P(0x197,0x1cf);}const f=e[P(0x1f0,0x200)]();if(f)return f;return b['commitAsync'][P(0x1a4,0x1a2)](this,d);}get[L(0xa0,0xb8)](){function Q(a,b){return L(b,a- -0xa5);}return this[Q(-0x68,-0x57)][Q(0x13,-0x35)]||super[Q(0x13,-0x19)]&&!this[Q(-0x68,-0x29)][Q(0x4,-0x11)];}set['isInitialCommit'](d){super['isInitialCommit']=d;}[L(0xbd,0x7a)](d,e,...f){const g=d['field']?.[R(-0x1e8,-0x21e)];function R(a,b){return L(b,a- -0x2a4);}const h=d['self'];if(g&&h&&this===h[R(-0x26b,-0x255)]){const i=h[R(-0x258,-0x232)]?.(g,e);b[R(-0x22a,-0x257)]['call'](this,d,e,...f);h[R(-0x205,-0x201)]?.(g,e,i);}else{b[R(-0x22a,-0x249)][R(-0x24c,-0x213)](this,d,e,...f);}}async[L(0x93,0x81)](d){const {project:e}=this;if(!e||e[S(0x6e,0x7e)])return;e[S(0xe3,0x12b)](S(0x89,0x9b));const {entries:f}=d,g=d[S(0xa9,0xe7)],h=new Set();if(globalThis[S(0xcd,0xdd)])console[S(0x6a,0x24)]('Time\x20to\x20visible');const {isInitialCommit:i,silenceInitialCommit:j,preventSilencingOnIssueResolve:k}=this;if(!f[S(0x99,0x8f)]&&!e['hasLoadedDataToCommit']){e[S(0xe3,0xeb)](S(0x73,0xa1),{'isInitialCommit':i,'transactionResult':d});return;}const l=e[S(0xc8,0x101)](i)===!![];if(l){for(const n of f[S(0xd7,0x111)]()){this[S(0xbf,0x84)]['add'](n);}return;}const m=i&&j&&!(k&&g['hasResolvedSchedulingIssue']);if(i){e[S(0xdd,0xfc)]=!![];if(this['ignoreInitialCommitComputationCycles'])this['onComputationCycle']=this['_onComputationCycle'];}e[S(0x86,0xac)]=!![];e[S(0xa1,0x76)]=![];if(this[S(0xc6,0xb0)]){e[S(0xe3,0xb4)](S(0x87,0x6b),{'total':f['size'],'remaining':0x0,'phase':'finalizing'});}if(g[S(0xee,0xc0)]){e[S(0xe3,0x118)]('commitRejected',{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});}function S(a,b){return L(b,a-0x34);}e[S(0xe3,0xef)](S(0xcc,0x113),{'isInitialCommit':i,'isCalculated':!![]});await delay(0x0);if(!e[S(0x6e,0x55)]){if(!d[S(0xa9,0x84)][S(0xee,0xe0)]){e['suspendChangeTracking']?.();if(globalThis[S(0xcd,0xf5)])console[S(0x93,0xb8)](S(0xc2,0x81));const o=new Set();const p=this[S(0xbf,0xfb)]['size']?this[S(0xbf,0x7f)]:f[S(0xd7,0xe4)]();for(const r of p){const s=r[S(0xb2,0xc7)];const t=r[S(0xa6,0x8d)]();const {field:u}=s;if(r[S(0xdc,0xc6)]()||!s[IsChronoModelSymbol]||t===TombStone||u instanceof ModelBucketField||u['ignore'])continue;const v=s[S(0xa4,0x90)];const w=v[S(0x72,0xa5)];if(!o[S(0xbc,0x100)](v)){v[S(0xa7,0xb0)](!![]);o[S(0xbe,0xcb)](v);}if(w?.[S(0x9e,0xcc)]&&!h[S(0xbc,0xf9)](w)){w['suspendAutoCommit']();h[S(0xbe,0xab)](w);}v[S(0xab,0xf2)][S(0xc7,0xc9)][u['name']]=t;}let q=![];for(const x of o){if(!x[S(0xdb,0xa5)]({...x[S(0xab,0xf3)]['batchChanges']})){q=!![];break;}}if(q){for(const y of o){y[S(0xd1,0x99)]();}d['transaction'][S(0xb6,0x7b)]();e['trigger'](S(0xe6,0xb3),{'transactionResult':d,'isInitialCommit':i,'silenceCommit':m});e[S(0xe3,0x127)](S(0xcc,0x8b),{'isInitialCommit':i,'isCalculated':!![]});}else{for(const z of o){z[S(0xa3,0x70)]=m||e[S(0xa0,0xbe)];z[S(0xcf,0xf9)]++;z['endBatch'](m,!![],!![]);z['ignoreBag']=![];}}e[S(0xa0,0x66)]=![];if(globalThis[S(0xcd,0xcc)])console[S(0x6a,0x99)]('Finalize\x20propagation');e[S(0x86,0x54)]=![];if(!q){e['trigger']('dataReady',{'records':o,'isInitialCommit':i});}e[S(0x81,0xbf)]?.(m);h[S(0x82,0xa9)](A=>A[S(0xf3,0xde)]());if(m){e['eventStore']['acceptChanges']();e[S(0xed,0x105)]['acceptChanges']();e[S(0x88,0xb6)]['acceptChanges']();e['assignmentStore'][S(0xac,0xb7)]();e[S(0xc3,0xf2)]['acceptChanges']();e['acceptChanges']();}}else{e[S(0x86,0x48)]=![];}this['transactionChainEntries'][S(0xd8,0xe5)]();e[S(0xe3,0x101)](S(0x73,0x43),{'isInitialCommit':i,'transactionResult':d});}}*['onComputationCycleHandler'](d,e){function T(a,b){return L(b,a- -0x1be);}if(this[T(-0x137,-0x107)]===T(-0x11d,-0x122)){e[T(-0x164,-0x14b)](d);const f=this[T(-0x181,-0x158)][T(-0x114,-0xff)]['new']({'cycle':d});const g=yield f;switch(g){case EffectResolutionResult[T(-0x157,-0x174)]:yield Reject(f);break;case EffectResolutionResult[T(-0x13e,-0x110)]:e?.[T(-0x153,-0x154)]?.();}}else{return yield*super[T(-0x186,-0x185)](d,e);}}[L(0x49,0x41)](d,e){function U(a,b){return L(a,b- -0x223);}if(this[U(-0x1b4,-0x19c)]===U(-0x1c9,-0x182)){e['addCycle'](d);const f=this[U(-0x20e,-0x1e6)][U(-0x17a,-0x179)][U(-0x1c8,-0x196)]({'cycle':d});const g=e[U(-0x1d0,-0x1bf)](f);if(g===EffectResolutionResult['Cancel']){e[U(-0x1b7,-0x1bf)](Reject(f));}else if(g===EffectResolutionResult[U(-0x1c5,-0x1a3)]){e?.['clearCycles']?.();}}else{return super['onComputationCycleHandlerSync'](d,e);}}[CycleSymbol](d,e){function V(a,b){return L(b,a-0x4de);}return this[V(0x51b,0x521)][V(0x53e,0x506)](d,e);}[EmptyCalendarSymbol](d,e){function W(a,b){return L(a,b- -0x1a2);}e[W(-0xc7,-0xee)][W(-0x136,-0x139)]();return this['project'][W(-0x144,-0x160)](d,e);}[ConflictSymbol](d,e){e[X(0x4a3,0x489)]['startNewEpoch']();function X(a,b){return L(a,b-0x3d5);}return this[X(0x3cc,0x412)][X(0x43e,0x425)](d,e);}[RejectSymbol](d,e){return super[RejectSymbol](d,e);}}return c;}){}class RemoveDependencyCycleEffectResolution extends _end(SchedulingIssueEffectResolution){[_enD(-0x52,-0x31)](){return this['L']('L{descriptionTpl}');}[_enD(-0x40,-0x70)](a){a['remove']();}}RemoveDependencyCycleEffectResolution[_enD(-0x6d,-0x77)]=_enD(-0x4d,-0x93);class CycleEffectDescription extends _end(_enc){static['getDescription'](a){function Y(a,b){return _enD(a-0x5b,b);}return format(this['L'](Y(0x14,0x2f)),this[Y(-0x2f,-0x4e)](a));}static[_enD(-0x8a,-0x59)](a){const b=a[Z(0x140,0x13a)]()[Z(0x110,0xe0)]();b['push'](b[0x0]);function Z(a,b){return _enD(a-0x17e,b);}return'\x22'+b[Z(0xb3,0xb0)](c=>c[Z(0x13c,0x138)]||'#'+c['id'])[Z(0xbb,0xd7)](Z(0x10c,0x100))+'\x22';}}CycleEffectDescription['$name']=_enD(-0x3c,0x2);function _ena(){const a5=['\x22\x20->\x20\x22','new','Finalize\x20propagation','calendarManagerStore','slice','$name','enableProgressNotifications','batchChanges','finalizeCommitHook','proposedTimePhasedWrites','failedResolutionReferences','addIdentifier','refresh','DEBUG','getDependencyStore','generation','isWritingPreviousData','cancelBatch','fromEvent','afterChronoFieldSet','onPropagationProgressNotification','effect','421614SSQoSg','values','clear','candidateClass','length','triggerBeforeUpdate','isShadow','isInitialCommitPerformed','cycleEffectClass','cycle','getDescription','hasVariableEntry','hasChangesInStores','trigger','matchDependencyBySourceAndTargetEvent','RemoveDependencyCycleEffectResolution','commitRejected','4850535eBRtZj','walkContext','hasEntryWithProposedValue','beforeCommitAsync','L{descriptionTpl}','isInitialCommit','dependencyStore','rejectedWith','decorate','name','_dependencies','resolve','resumeAutoCommit','getEvents','context','CycleEffectDescription','map','autoCommitMode','ongoing','timeEnd','prototype','onComputationCycleHandler','graph','isDestroyed','join','_resolutions','project','firstStore','commitFinalized','beforeCommit','onComputationCycleHandlerSync','onEmptyCalendarSchedulingIssue','markSelfDependent','baseRevision','writeFailedResolutionInfo','transactionClass','10569839TUtAjv','initialize','_onComputationCycle','object','hasResolvedSchedulingIssue','beforeChronoFieldSet','resumeChangeTracking','forEach','1179497UWPWix','onConflictSchedulingIssue','isCommitting','isWritingData','progress','resourceStore','finalizeCommit','40531365AaroLF','dirty','call','12Xxonxt','addCycle','_events','4AbuTwP','find','candidate','time','onCycleSchedulingIssue','type','2908835GOOFIy','getDependencyForSourceAndTargetEvents','yieldSync','size','getOwnPropertyDescriptor','Cancel','commitAsync','startNewEpoch','autoCommit','clearCycles','ignoreRecordChanges','hasLoadedDataToCommit','hasProposedValue','ignoreBag','self','1944808QqcxuD','getValue','beginBatch','getShortDescription','transaction','entries','meta','acceptChanges','delayCalculation','write','getResolutions','get','toEvent','identifier','preventSilencingOnIssueResolve','Resume','finalizeCommitAsync','reject','defineProperty','removeDependencyCycleEffectResolutionClass','ignore','CycleSymbol','onComputationCycle','has','emitProgressNotificationsEveryMs','add','transactionChainEntries'];_ena=function(){return a5;};return _ena();}class CycleEffect extends SchedulingIssueEffect{constructor(){super(...arguments);this['handler']=CycleSymbol;}get['isCycleEffect'](){return!![];}['getEvents'](){if(!this[a0(-0x12b,-0x105)]){const a=new Set();this[a0(-0xdb,-0xbd)][a0(-0xdb,-0xf6)][a0(-0x138,-0x13c)](({context:b})=>a[a0(-0xfc,-0xd9)](b['event']??b));this[a0(-0x12b,-0xeb)]=[...a];}function a0(a,b){return _enD(a- -0x88,b);}return this[a0(-0x12b,-0xef)];}[_enD(-0x4e,-0x8b)](a,b,c){function a1(a,b){return _enD(b-0x5ff,a);}return a[a1(0x57a,0x59f)]===b&&a[a1(0x5bb,0x57e)]===c;}[_enD(-0x9b,-0x92)](a,b){function a2(a,b){return _enD(a-0x2d8,b);}const c=this[a2(0x29a,0x299)]();const d=c[0x0][a2(0x217,0x25c)];const e=d[a2(0x274,0x2bc)]();return e[a2(0x237,0x251)](f=>this[a2(0x28a,0x29b)](f,a,b));}['getDependencies'](){function a3(a,b){return _enD(b-0x33a,a);}if(!this[a3(0x30f,0x2f9)]){const a=new Set();const b=this[a3(0x327,0x2fc)]();const c=b[a3(0x2bf,0x2e2)];let d=b[0x0],e;if(c===0x1){if(e=this['getDependencyForSourceAndTargetEvents'](d,d)){a[a3(0x2dc,0x2c6)](e);}}else{for(const f of b){for(const g of b){if(e=this['getDependencyForSourceAndTargetEvents'](f,g)){a[a3(0x2c3,0x2c6)](e);}if(e=this[a3(0x268,0x29f)](g,f)){a[a3(0x309,0x2c6)](e);}}}}this[a3(0x2b2,0x2f9)]=[...a];}return this[a3(0x33b,0x2f9)];}[_enD(-0x83,-0x6e)](){function a4(a,b){return _enD(a-0x93,b);}if(!this[a4(-0x2f,0x19)]){this[a4(-0x2f,-0x3c)]=[this[a4(0x19,0x3e)][a4(0x22,-0x1a)]()];}return this[a4(-0x2f,-0x10)];}}__decorate([prototypeValue(_enD(-0x53,-0x72))],CycleEffect[_enD(-0xc7,-0xcf)],_enD(-0x9d,-0xd8),void 0x0);function _enD(a,b){return _enb(a- -0x21f,b);}__decorate([prototypeValue(CycleEffectDescription)],CycleEffect[_enD(-0xc7,-0xcc)],'_descriptionBuilderClass',void 0x0);__decorate([prototypeValue(RemoveDependencyCycleEffectResolution)],CycleEffect['prototype'],_enD(-0x7a,-0x4a),void 0x0);export{CycleEffect,CycleEffectDescription,CycleSymbol,EngineReplica,EngineRevision,EngineTransaction,RemoveDependencyCycleEffectResolution};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(a-0x120,b);}const c=a();while(!![]){try{const d=parseInt(l(0x300,0x2f5))/0x1+-parseInt(l(0x314,0x313))/0x2+parseInt(l(0x2f3,0x309))/0x3+parseInt(l(0x30c,0x2fd))/0x4*(parseInt(l(0x2dc,0x2be))/0x5)+-parseInt(l(0x2eb,0x2e9))/0x6+-parseInt(l(0x2ec,0x2dc))/0x7+parseInt(l(0x308,0x31e))/0x8*(-parseInt(l(0x2e3,0x2f1))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x980ed));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a-0x1f5,b);}var g=arguments[m(0x3c6,0x3bf)],h=g<0x3?b:f===null?f=Object[m(0x3b3,0x3a1)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0x3b2,0x3a5)]==='function')h=Reflect[m(0x3b2,0x3a2)](a,b,e,f);else for(var k=a[m(0x3c6,0x3af)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};function _ena(){const C=['_lateSchedule','213236nARIMz','calculateProjectedDuration','latePreSchedule','isConstrained','calculateLateEndDate','totalSlack','prototype','onEmptyEffectiveInterval','410028RRxQJj','Backward','boolean','doCalculateEffectiveEndDateInterval','85hJKlKv','decorate','getOwnPropertyDescriptor','lateStartDate','endDate','constructor','event','34551fshwwf','earlySchedule','direction','resolved','slackUnit','_earlySchedule','unlink','pickDirectionSchedule','2637156DQEiqm','6198759AjNvKS','earlyPreSchedule','leaveGraph','normalizeUnit','phase','length','phase2','2359392uudfOP','enterGraph','bwcConflictPostpone','startDate','return','pickOpposite','Day','date','scheduleMixinClass','lateSchedule','Forward','calculateCritical','_earlyPreSchedule','479384SiUvPv','_latePreSchedule','calculateTotalSlack','phase1','calculateLateStartDate','isConstrainedAlongDirection','`true`\x20if\x20this\x20task\x20is\x20critical\x20and\x20if\x20the\x20task\x20is\x20delayed,\x20the\x20whole\x20project\x20will\x20be\x20delayed.\x20It\x20is\x20a\x20calculated\x20field\x20and\x20can\x20NEVER\x20be\x20set/modified','number','40MPCytq','getProject','lateEndDate'];_ena=function(){return C;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1bc;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedByDependenciesEventMixin}from'../scheduler_pro/ConstrainedByDependenciesEventMixin.js';import{ConstrainedLateScheduleMixin}from'./ConstrainedLateScheduleMixin.js';class ConstrainedLateEventMixin extends Mixin([ConstrainedByDependenciesEventMixin,HasChildrenMixin],a=>{const b=a[n(0x1c4,0x1dd)];class c extends a{get[n(0x1a8,0x1b8)](){function o(a,b){return n(a,b-0x174);}if(this[o(0x351,0x33e)]!==void 0x0)return this[o(0x320,0x33e)];const d=this[o(0x339,0x320)]['scheduleMixinClass'];const e=new d({'id':o(0x310,0x32c)},null,null,![],!![]);e[o(0x321,0x321)]=this;e['phase']=o(0x340,0x342);return this[o(0x32d,0x33e)]=e;}get[n(0x19f,0x1af)](){function p(a,b){return n(b,a-0xf3);}if(this[p(0x2a6,0x2a8)]!==void 0x0)return this[p(0x2a6,0x28d)];const d=super[p(0x2a2,0x29c)];d[p(0x2ae,0x2a6)]='phase2';return this[p(0x2a6,0x2a1)]=d;}get[n(0x1ce,0x1d9)](){if(this[q(0xc2,0xce)]!==void 0x0)return this[q(0xba,0xce)];const d=this[q(0xbd,0xae)][q(0xbd,0xc8)];const e=new d({'id':q(0xda,0xdb)},null,null,![],!![]);e[q(0xb7,0xaf)]=this;function q(a,b){return n(a,b- -0xfe);}e[q(0xac,0xb2)]=Direction[q(0xfa,0xe2)];e['phase']=q(0xd4,0xd0);return this[q(0xd7,0xce)]=e;}get[n(0x1d4,0x1c7)](){if(this['_lateSchedule']!==void 0x0)return this[r(0x4b0,0x4c6)];const d=this[r(0x480,0x49c)]['scheduleMixinClass'];const e=new d({'id':r(0x4bb,0x4b7)},null,null,![],!![]);e[r(0x49c,0x49d)]=this;function r(a,b){return n(a,b-0x2f0);}e[r(0x496,0x4a0)]=Direction[r(0x4bc,0x4d0)];e[r(0x49a,0x4ab)]=r(0x4ab,0x4ad);return this[r(0x4c2,0x4c6)]=e;}[n(0x1aa,0x1bf)](d){super['enterGraph'](d);this[s(0x3ae,0x39f)][s(0x3b3,0x3a6)](d);function s(a,b){return n(a,b-0x1e7);}this[s(0x3c4,0x3c0)][s(0x39c,0x3a6)](d);this[s(0x3b5,0x3ae)][s(0x3aa,0x3a6)](d);}[n(0x19e,0x1b9)](d){this[t(0x3bd,0x3bb)][t(0x3af,0x3c5)](d);function t(a,b){return n(b,a-0x1f6);}this[t(0x3cf,0x3bb)]['leaveGraph'](d);this[t(0x3ae,0x3a8)]['leaveGraph'](d);super['leaveGraph'](d);}[n(0x1bb,0x1b4)](...d){this['lateSchedule']['unlink'](...d);this[u(0x2fc,0x30c)][u(0x2fa,0x2e7)](...d);this['earlyPreSchedule'][u(0x2d6,0x2e7)](...d);function u(a,b){return n(a,b-0x133);}super['unlink'](...d);}*[n(0x1cd,0x1cf)](){function v(a,b){return n(b,a-0x27e);}return yield this[v(0x445,0x450)]['$'][v(0x43f,0x453)];}*[n(0x1d9,0x1db)](){function w(a,b){return n(b,a-0xe0);}return yield this[w(0x2a7,0x292)]['$'][w(0x28b,0x285)];}*[n(0x1b7,0x1cd)](){function x(a,b){return n(b,a-0x30f);}const d=yield this[x(0x4be,0x4c1)]['$'][x(0x4d0,0x4b3)];const e=yield this[x(0x4d6,0x4c8)]['$']['startDate'];const f=yield this[x(0x4be,0x4ae)]['$']['endDate'];const g=yield this['lateSchedule']['$'][x(0x4ba,0x4a7)];const h=yield this['$'][x(0x4c1,0x4c7)];let i;if(d&&e){i=yield*this[x(0x4e7,0x4e4)](d,e,h,void 0x0,!![]);}if(f&&g){const j=yield*this[x(0x4e7,0x504)](f,g,h,void 0x0,!![]);if(j<i)i=j;}return i;}*[n(0x1e4,0x1c9)](){function y(a,b){return n(a,b- -0x108);}const d=yield this['$'][y(0xda,0xd4)];return typeof d===y(0xd9,0xca)&&d<=0x0;}*[n(0x1db,0x1d0)](d){function z(a,b){return n(b,a-0x36b);}return yield*this['pickDirectionSchedule'](d)[z(0x545,0x543)]();}[n(0x1b2,0x1b5)](d){function A(a,b){return n(a,b- -0x20c);}return d===Direction[A(-0x61,-0x44)]?this['earlySchedule']:this[A(-0x36,-0x45)];}*[n(0x1f9,0x1de)](d,e){function B(a,b){return n(b,a- -0xdd);}if(!(yield*e['isFirstPass']())){const f=this[B(0xf7,0xfd)]();if(!f[B(0xe3,0xe5)]||f['ignoreConstraintsOnConflictDuringSecondPass']){const g=d==='start'?yield*e['doCalculateEffectiveStartDateInterval'](!![],!![]):yield*e[B(0x105,0x11f)](!![],!![]);if(!g['isIntervalEmpty']()){return{'kind':B(0xd4,0xee),'value':g};}}return{'kind':B(0xe5,0x103),'value':yield e[B(0xe6,0xf8)](this)['$'][d==='start'?'startDate':B(0xce,0xd0)]};}return yield*super[B(0x101,0x10f)](d,e);}}c['scheduleMixinClass']=Mixin([a['scheduleMixinClass'],ConstrainedLateScheduleMixin],d=>d);function n(a,b){return _enb(b- -0x15,a);}__decorate([model_field({'type':n(0x1d1,0x1c5),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c['prototype'],n(0x1a4,0x1aa),void 0x0);__decorate([model_field({'type':n(0x1ae,0x1c5),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],c[n(0x1da,0x1dd)],n(0x1d1,0x1d5),void 0x0);__decorate([model_field({'type':n(0x1b6,0x1d2),'persist':![],'calculated':!![]},{'lazy':!![],'persistent':![]})],c[n(0x1f8,0x1dd)],n(0x1f1,0x1dc),void 0x0);__decorate([model_field({'type':'string','defaultValue':TimeUnit[n(0x1d4,0x1c4)],'persist':![]},{'lazy':!![],'converter':_enc[n(0x1be,0x1ba)],'persistent':![]})],c[n(0x1c8,0x1dd)],n(0x1a1,0x1b2),void 0x0);__decorate([model_field({'type':n(0x1de,0x1e1),'defaultValue':![],'persist':![],'calculated':!![],'description':n(0x1d0,0x1d1)},{'persistent':![],'lazy':!![]})],c['prototype'],'critical',void 0x0);__decorate([calculate(n(0x1b1,0x1aa))],c['prototype'],n(0x1d6,0x1cf),null);__decorate([calculate(n(0x1c0,0x1d5))],c[n(0x1da,0x1dd)],n(0x1f1,0x1db),null);__decorate([calculate('totalSlack')],c['prototype'],'calculateTotalSlack',null);__decorate([calculate('critical')],c[n(0x1f3,0x1dd)],'calculateCritical',null);return c;}){}export{ConstrainedLateEventMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){function f(a,b){return _enb(b- -0x213,a);}const c=a();while(!![]){try{const d=parseInt(f(-0x63,-0x53))/0x1+-parseInt(f(-0x57,-0x48))/0x2+parseInt(f(-0x46,-0x56))/0x3*(parseInt(f(-0x67,-0x5b))/0x4)+parseInt(f(-0x62,-0x60))/0x5*(parseInt(f(-0x65,-0x58))/0x6)+parseInt(f(-0x4b,-0x4f))/0x7+-parseInt(f(-0x5e,-0x57))/0x8*(-parseInt(f(-0x65,-0x55))/0x9)+parseInt(f(-0x67,-0x5e))/0xa*(-parseInt(f(-0x50,-0x52))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3071e));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Direction}from'../../../scheduling/Types.js';import{ConstrainedByDependenciesEventScheduleMixin}from'../scheduler_pro/ConstrainedByDependenciesEventScheduleMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b3;let f=c[d];return f;};return _enb(a,b);}class ConstrainedLateScheduleMixin extends Mixin([ConstrainedByDependenciesEventScheduleMixin],a=>{function g(a,b){return _enb(a- -0x29,b);}class b extends a{[g(0x191,0x193)](c){function h(a,b){return g(a-0x2f9,b);}if(this[h(0x489,0x498)]===h(0x49a,0x49f)){return this[h(0x493,0x48d)]===Direction[h(0x498,0x488)]?c[h(0x49d,0x494)]:c['latePreSchedule'];}else{return this[h(0x493,0x48b)]===Direction[h(0x498,0x499)]?c[h(0x49f,0x4a6)]:c[h(0x499,0x48d)];}}['pickOpposite'](c){function i(a,b){return g(b-0x235,a);}if(this[i(0x3d4,0x3c5)]===i(0x3cc,0x3d6)){return this[i(0x3d1,0x3cf)]===Direction[i(0x3e4,0x3d4)]?c['latePreSchedule']:c[i(0x3d0,0x3d9)];}else{return this['direction']===Direction[i(0x3df,0x3d4)]?c[i(0x3da,0x3d5)]:c[i(0x3e8,0x3db)];}}*[g(0x1a8,0x1a4)](c,d){function j(a,b){return g(a-0x9c,b);}if(this['phase']==='phase1'){return this['pick'](c);}else{const e=yield this[j(0x241,0x248)]['$'][j(0x23f,0x24a)];if(this[j(0x236,0x23d)]===Direction[j(0x23b,0x22c)]){if(d[j(0x236,0x231)]===Direction[j(0x22a,0x234)]&&e[j(0x227,0x21a)]===j(0x243,0x23d)&&e[j(0x236,0x238)]===Direction[j(0x23b,0x237)]){return c[j(0x239,0x245)];}return c[j(0x242,0x23e)];}else{if(d[j(0x236,0x245)]===Direction[j(0x23b,0x23a)]&&e[j(0x227,0x237)]===j(0x243,0x23f)&&e[j(0x236,0x240)]===Direction[j(0x22a,0x235)]){return c[j(0x240,0x237)];}return c[j(0x23c,0x230)];}}}*[g(0x199,0x19d)](c){function k(a,b){return g(b-0x3da,a);}return(yield*this[k(0x577,0x582)](c,yield c['$'][k(0x563,0x567)]))['$']['startDate'];}*[g(0x19e,0x1a4)](c){function l(a,b){return g(b-0xd9,a);}return(yield*this[l(0x27b,0x281)](c,yield c['$'][l(0x26e,0x275)]))['$'][l(0x260,0x26f)];}}return b;}){}function _ena(){const m=['1285rPEzIv','kind','6961810rIspdF','startDateDirection','Backward','636YjWbRm','phase','pick','9138DZMxuY','403384ISSZes','7401lyGEMO','9MdUuPS','endDate','9428PezteC','11gjUNXj','pickPushingStartDateIdentifier','direction','1729441Asbwcx','endDateDirection','latePreSchedule','pickPushingEndDateIdentifier','Forward','lateSchedule','phase1','391934pzzniP','effectiveDirection','earlyPreSchedule','event','earlySchedule','inherited','pickPushingSchedule'];_ena=function(){return m;};return _ena();}export{ConstrainedLateScheduleMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function h(a,b){return _enb(b-
|
|
1
|
+
(function(a,b){function h(a,b){return _enb(b-0x331,a);}const c=a();while(!![]){try{const d=-parseInt(h(0x3e8,0x3dc))/0x1+parseInt(h(0x3e9,0x3e6))/0x2*(parseInt(h(0x3dc,0x3df))/0x3)+parseInt(h(0x3d6,0x3ce))/0x4*(parseInt(h(0x3d4,0x3e0))/0x5)+parseInt(h(0x3e0,0x3d6))/0x6+-parseInt(h(0x3df,0x3d3))/0x7*(parseInt(h(0x3cd,0x3d4))/0x8)+-parseInt(h(0x3ed,0x3ee))/0x9*(-parseInt(h(0x3e1,0x3e1))/0xa)+-parseInt(h(0x3d5,0x3d9))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c78c));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{AbstractPartOfProjectStoreMixin}from'../../store/mixin/AbstractPartOfProjectStoreMixin.js';import{AbstractPartOfProjectGenericMixin}from'../../AbstractPartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Model.js';import{isInstanceOf}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x9d;let f=c[d];return f;};return _enb(a,b);}class AbstractPartOfProjectModelMixin extends Mixin([AbstractPartOfProjectGenericMixin,_enc],a=>{function i(a,b){return _enb(a-0x5,b);}const b=a[i(0xac,0xbd)];class c extends a{[i(0xc5,0xd7)](d){let e=null;function j(a,b){return i(b- -0x2fe,a);}if(isInstanceOf(d,AbstractPartOfProjectStoreMixin)){const f=d[j(-0x231,-0x243)]();if(f&&!this[j(-0x24c,-0x243)]()){this[j(-0x22e,-0x23a)](f);e=f;}}b[j(-0x243,-0x239)][j(-0x25f,-0x250)](this,d);if(e&&!e[j(-0x254,-0x248)])this[j(-0x243,-0x253)]();}[i(0xa9,0xb4)](d,e=![]){b[k(0x46f,0x46f)][k(0x472,0x474)](this,d,e);const {project:f}=this;function k(a,b){return i(b-0x3c6,a);}const g=isInstanceOf(d,AbstractPartOfProjectStoreMixin)&&!d[k(0x46d,0x478)]&&f===(d[k(0x477,0x46a)]&&d[k(0x47f,0x489)]?d['masterStore'][k(0x49c,0x489)]:d[k(0x479,0x489)]);if(f&&!f[k(0x47c,0x487)]&&!f[k(0x48b,0x47c)]&&g){d[k(0x497,0x48d)]?.();this[k(0x475,0x46c)](e);this['setProject'](null);}if(g)this[k(0x48e,0x482)]=null;}[i(0xab,0x9e)](){}[i(0xa6,0xa4)](d=![]){}[i(0xbf,0xb2)](){function l(a,b){return i(b-0x2d5,a);}const d=this[l(0x3a0,0x395)]?.['find'](e=>isInstanceOf(e,AbstractPartOfProjectStoreMixin)&&!e[l(0x37d,0x37a)]&&!!e['getProject']());return d?.[l(0x38e,0x390)]();}async[i(0xc6,0xcb)](d,e,f){const g=this[m(0x1f8,0x1f2)](d,e,f);function m(a,b){return i(b-0x14f,a);}await this[m(0x225,0x212)]?.[m(0x205,0x208)]();return g;}async[i(0xb8,0xa5)](d){await this[n(0x381,0x38f)]?.['commitAsync']();function n(a,b){return i(b-0x2cc,a);}return this[n(0x395,0x389)](d);}get[i(0xb1,0xb7)](){const d=this[o(0x444,0x437)]();function o(a,b){return i(a-0x389,b);}return d?.[o(0x438,0x437)]||d?.[o(0x447,0x441)][o(0x440,0x44b)]||![];}}return c;}){}export{AbstractPartOfProjectModelMixin};function _ena(){const p=['getAsync','commitAsync','22zWlWXb','getProject','graph','get','stm','calculateProject','stores','isDestroying','27wZHWUm','project','setProject','joinStore','setAsync','untrackRecordFieldChanges','1000968xjTsVK','set','isChained','isChainedFromProject','leaveProject','7vqLUeW','2048120JlJijw','unjoinStore','1872828ZBaGGh','joinProject','prototype','7909968ZurbCJ','call','isRestoringData','230811SmAjGh','isStmRestoring','isFillingFromMaster','127635OLfyem','5wOvgvx','1410770jfCvve','isRepopulatingStores','isRestoring'];_ena=function(){return p;};return _ena();}
|