@bryntum/engine-thin-trial 7.2.0 → 7.2.1
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/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Identifier.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/calendar/CalendarIntervalMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function j(a,b){return _enb(a- -0x76,b);}const c=a();while(!![]){try{const d=-parseInt(j(0x19f,0x1dd))/0x1*(-parseInt(j(0x1ab,0x18e))/0x2)+-parseInt(j(0x146,0x161))/0x3+parseInt(j(0x181,0x1ac))/0x4*(-parseInt(j(0x18b,0x173))/0x5)+-parseInt(j(0x1b6,0x1cd))/0x6+parseInt(j(0x1ba,0x1fa))/0x7+parseInt(j(0x198,0x17f))/0x8+parseInt(j(0x17d,0x1b8))/0x9*(parseInt(j(0x192,0x151))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2cf26));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';function _enk(a,b){return _enb(b-0x390,a);}import{warn}from'../environment/Debug.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b0;let f=c[d];return f;};return _enb(a,b);}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';function _ena(){const ai=['usedProposedOrPrevious','selfDependent','clear','hasIdentifier','6VDVSkS','hasProposedValue','autoCommit','markAndSweep','push','reject','startNewEpoch','doCommitAsync','get','eachReachableRevision','_isInitialCommit','251364vSEvzV','scheduleAutoCommit','observeContext','value','1586879PHFoQM','ignore','clearProperties','isCommitting','candidate','Graph\x20cleared','cleanup','Write\x20during\x20commit','reason','compactRevisions','onComputationCycle','commit','constructor','resolve','finalizeCommitAsync','834786ICGaGF','throw','hasValue','$activeTransaction','from','variableNamed','proposedArguments','dirty','handlers','addEdge','read','readPreviousAsync','write','Adding\x20identifier\x20during\x20commit','historyLimit','Removinfg\x20identifier\x20during\x20commit','redo','name','listeners','readAsync','proposedValue','reachableCount','readProposedOrPrevious','observe','finalizeCommit','identifierNamed','baseRevision','trigger','addIdentifier','commitAsync','origin','$followingRevision','enableProgressNotifications','transactionClass','delete','autoCommitMode','isInitialCommit','entries','referenceCount','initialize','propagateAsync','cycle','isJustCleared','lazy','onComputationCycleHandlerSync','proposedIsPrevious','scope','getProposedValue','clearBranch','identifier','branch','isShadow','log','continueCalculation','followingRevision','7389iYZsKD','onWriteDuringCommit','finally','level','20MDnHml','unScheduleAutoCommit','ongoing','removeIdentifier','mergePreviousOrigin','autoCommitTimeoutId','addListener','autoCommitHandler','rejectedWith','baseRevisionTentative','305110CinlwK','walkContext','getActiveEntry','warn','set','forEach','previousAxis','4670WioGab','message','previous','readPrevious','undo','sync','1070408AToTcK','Computation\x20cycle:\x0a','hasPendingAutoCommit','propagate','Removing\x20identifier\x20during\x20commit','then','new','21821pjshkw','topRevision','length','baseRevisionStable','startOrigin','getValue','onComputationCycleHandler','activeTransaction'];_ena=function(){return ai;};return _ena();}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};class Listener extends Base{constructor(){super(...arguments);this['handlers']=[];}[_enk(0x558,0x567)](a){function l(a,b){return _enk(b,a- -0xdb);}for(let b=0x0;b<this['handlers'][l(0x4cc,0x4ce)];b++)this[l(0x479,0x488)][b](a);}}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[m(0x617,0x5e6)]=void 0x0;this[m(0x5f8,0x5bc)]=Revision['new']();this[m(0x639,0x5fc)]=void 0x0;this[m(0x58f,0x5b0)]=0x0;this['listeners']=new Map();this['isWritingPreviousData']=0x0;this[m(0x5cd,0x5a5)]=void 0x0;this['isCommitting']=![];this[m(0x5d5,0x5c2)]=![];this['ongoing']=Promise[m(0x5c1,0x5a0)]();this[m(0x5d9,0x611)]=!![];this[m(0x600,0x5e2)]=null;this['autoCommit']=![];this[m(0x5df,0x5c5)]=m(0x615,0x5f3);this[m(0x5c9,0x5e4)]=null;this[m(0x5f1,0x5da)]=m(0x562,0x5a3);function m(a,b){return _enk(a,b-0x56);}this[m(0x5ae,0x59d)]='throw';this['transactionClass']=Transaction;this[m(0x5ec,0x5cc)]=![];this[m(0x596,0x5c1)]=void 0x0;}[_enk(0x586,0x573)](...a){super[n(-0x1c9,-0x1e2)](...a);if(!this[n(-0x1ae,-0x1af)])this['topRevision']=this[n(-0x1e8,-0x1ef)];function n(a,b){return _enk(a,b- -0x755);}if(this[n(-0x16f,-0x1a2)]){this['autoCommitHandler']=this['autoCommitMode']==='sync'?b=>this[n(-0x1f4,-0x20d)](b):async b=>this[n(-0x1ed,-0x1ec)](b);}this['markAndSweep']();}[_enk(0x569,0x5a0)](){return this['autoCommitTimeoutId']!==null;}get['dirty'](){function o(a,b){return _enk(b,a- -0x2c8);}return this[o(0x2e4,0x2da)][o(0x28b,0x270)];}[_enk(0x5aa,0x5af)](){this[p(0x351,0x311)]();this[p(0x2f7,0x2e3)]();this[p(0x2f2,0x2c1)][p(0x2f6,0x2d5)]&&this['baseRevision'][p(0x2dc,0x2d5)][p(0x31e,0x30a)]();this[p(0x286,0x2c1)]['previous']=null;this[p(0x297,0x2b9)][p(0x31c,0x30a)]();this[p(0x33d,0x301)]=this[p(0x2bb,0x2c1)];this['$followingRevision']=void 0x0;this[p(0x279,0x2aa)]=void 0x0;this[p(0x34d,0x30f)]();function p(a,b){return _enk(a,b- -0x2a5);}this[p(0x2c5,0x2d1)]=!![];}[_enk(0x5ad,0x57c)](){this[q(-0x172,-0x143)]();function q(a,b){return _enk(b,a- -0x728);}this[q(-0x1a0,-0x186)]();for(const [a,b]of this[q(-0x16e,-0x1aa)]()){if(b)a[q(-0x1c7,-0x1fe)]--;a['referenceCount']--;}this[q(-0x1ca,-0x196)][q(-0x179,-0x13c)]();this['topRevision']=this[q(-0x1c2,-0x181)];this[q(-0x1bd,-0x1d8)]=void 0x0;this[q(-0x1d9,-0x21a)]=void 0x0;}*[_enk(0x5d0,0x5ba)](){let a=!![];let b=0x0;function r(a,b){return _enk(b,a- -0x772);}for(const c of this[r(-0x1cc,-0x1c3)][r(-0x1db,-0x1dc)]()){yield[c,a||b<this['historyLimit']];if(c===this[r(-0x20c,-0x23e)]){a=![];}else{if(!a)b++;}}}get['isInitialCommit'](){return this['_isInitialCommit'];}set[_enk(0x597,0x570)](a){function s(a,b){return _enk(b,a- -0x636);}this[s(-0x7b,-0x67)]=a;}[_enk(0x58e,0x5b4)](){function t(a,b){return _enk(a,b- -0x1a1);}let a;const b=[];for(const [c,d]of this[t(0x402,0x419)]()){if(d){c[t(0x3bb,0x3c0)]++;a=c;}else b[t(0x407,0x414)](c);c[t(0x3ce,0x3d1)]++;}b['unshift'](a);for(let e=b['length']-0x1;e>=0x1&&b[e][t(0x3ef,0x3c0)]===0x0;e--){this[t(0x387,0x3a5)](b[e-0x1],b[e]);}}['compactRevisions'](a,b){function u(a,b){return _enk(a,b- -0x39b);}if(b[u(0x1dd,0x1c6)]>0x0||a[u(0x22c,0x1ff)]!==b)throw new Error('Invalid\x20compact\x20operation');if(b[u(0x200,0x1d7)]<=0x1){for(const [c,d]of a['scope']){if(d[u(0x1f1,0x20f)]()===TombStone){b[u(0x19d,0x1df)][u(0x201,0x1d3)](c);}else{const e=b['scope']['get'](c);if(d['origin']===d){if(e){e[u(0x212,0x214)]();e[u(0x243,0x227)]();}}else if(e&&d['origin']===e){d[u(0x222,0x1f0)](a[u(0x1bd,0x1df)]);}else if(c[u(0x1e6,0x1dc)]&&!d['origin']&&e&&e[u(0x20e,0x1cf)]){d[u(0x1e4,0x20e)]()[u(0x1e5,0x1c5)]=e[u(0x1e7,0x1cf)]['value']!==void 0x0?e[u(0x1d2,0x1cf)]['value']:e[u(0x1a1,0x1cf)]['proposedValue'];}d[u(0x22a,0x1ff)]=void 0x0;b[u(0x1c7,0x1df)][u(0x225,0x1fa)](c,d);}}copySetInto(a['selfDependent'],b[u(0x1ef,0x213)]);a['scope']=b[u(0x21c,0x1df)];b[u(0x1ef,0x1df)]=null;}else{a['scope']=new Map(concat(b[u(0x1f3,0x1df)],a[u(0x221,0x1df)]));a[u(0x1d8,0x213)]=new Set(concat(b['selfDependent'],a[u(0x230,0x213)]));b[u(0x1e8,0x1d7)]--;}a[u(0x238,0x1ff)]=null;}get[_enk(0x54b,0x582)](){if(this[v(-0x1d1,-0x1e5)]!==void 0x0)return this[v(-0x1fd,-0x1e5)];const a=Array[v(-0x1c6,-0x200)](this['topRevision'][v(-0x18d,-0x1b9)]());const b=[];for(let c=a['length']-0x1;c>0x0;c--)b['push']([a[c],a[c-0x1]]);function v(a,b){return _enk(a,b- -0x750);}return this[v(-0x1d6,-0x1e5)]=new Map(b);}get[_enk(0x592,0x5ac)](){function w(a,b){return _enk(b,a- -0x58b);}if(this[w(-0x3c,-0x15)])return this[w(-0x3c,-0x79)];return this[w(-0x3c,-0xe)]=this[w(-0x1e,-0x60)][w(0x19,0x45)]({'baseRevision':this[w(0x5,-0x19)]||this[w(-0x25,-0x44)],'graph':this});}[_enk(0x59a,0x57e)](a){const b=this[x(0x5a5,0x572)];function x(a,b){return _enk(a,b-0x29);}return b['new'](Object['assign']({},a,{'baseRevision':this[x(0x573,0x58f)]}));}[_enk(0x570,0x5a1)](a){function y(a,b){return _enk(a,b- -0x6dc);}return this[y(-0x1bc,-0x194)](a);}[_enk(0x5b2,0x5b6)](a){this[z(0x43c,0x431)]['reject'](RejectEffect['new']({'reason':a}));this[z(0x419,0x458)]=Promise[z(0x3da,0x3a5)]();this['$activeTransaction']=void 0x0;this[z(0x420,0x418)]=void 0x0;function z(a,b){return _enk(b,a- -0x170);}if(this[z(0x438,0x454)]){this[z(0x3f6,0x3cb)]=this['baseRevisionStable'];this[z(0x438,0x433)]=void 0x0;}}[_enk(0x55a,0x548)](a){this[A(0x2f5,0x2e2)]=![];this[A(0x307,0x326)]();this[A(0x327,0x330)]=this[A(0x2e5,0x2c4)];const b=this[A(0x32b,0x30e)];const c=b[A(0x2c7,0x2f1)](a);function A(a,b){return _enk(b,a- -0x281);}this['$activeTransaction']=void 0x0;const d=this['finalizeCommit'](c);this[A(0x327,0x334)]=void 0x0;this['isInitialCommit']=![];return d;}async[_enk(0x539,0x574)](a){function B(a,b){return _enk(a,b- -0x562);}return this[B(0x2e,0x7)](a);}async[_enk(0x593,0x569)](a){if(this[C(0x405,0x447)])return this[C(0x4a8,0x490)];this[C(0x49a,0x47d)]=![];function C(a,b){return _enk(a,b- -0xf9);}this[C(0x408,0x447)]=!![];this[C(0x4bd,0x4af)]=this[C(0x485,0x46d)];let b;return this[C(0x4c7,0x490)]=this[C(0x4b9,0x490)][C(0x46f,0x4aa)](()=>{function D(a,b){return C(b,a- -0x19e);}return this[D(0x321,0x2fa)](a);})['then'](c=>{b=c;return c;})[C(0x4b3,0x48c)](()=>{this[E(0x577,0x53d)]=void 0x0;this[E(0x55f,0x528)]=void 0x0;function E(a,b){return C(b,a-0xc8);}this[E(0x53f,0x56f)]=![];this[E(0x50f,0x4d3)]=![];});}async[_enk(0x57c,0x5b8)](a){this[F(-0x126,-0x121)]();const b=this['activeTransaction'];const c=await b[F(-0x15f,-0x140)](a);const d=Boolean(b[F(-0x11a,-0x11a)]);const e=this['baseRevisionTentative'];if(!d)this[F(-0xe8,-0x119)]=b[F(-0x191,-0x168)];this[F(-0x191,-0x15a)]=void 0x0;await this[F(-0x13a,-0x15e)](c);if(this[F(-0x153,-0x133)])return{'rejectedWith':RejectEffect[F(-0xcb,-0x105)]({'reason':F(-0x16c,-0x167)})};if(b['rejectedWith']&&!d){this[F(-0x103,-0x119)]=e;this[F(-0x140,-0x15a)]=void 0x0;}const f=this[F(-0x10e,-0x145)](c);if(b[F(-0x10a,-0x11a)])b['clearRejected']();function F(a,b){return _enk(a,b- -0x6a9);}if(this[F(-0x12d,-0x156)]&&!b['rejectedWith']){await this['doCommitAsync'](a);}return f;}[_enk(0x588,0x564)](a){const {revision:b,entries:c,transaction:d}=a;function G(a,b){return _enk(b,a- -0x2fc);}if(!d[G(0x293,0x2b4)]){if(b['previous']!==this[G(0x26a,0x28d)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[G(0x2be,0x2fd)]()){if(f)e['reachableCount']--;e[G(0x276,0x27f)]--;}this[G(0x26a,0x22a)]=this[G(0x2aa,0x283)]=b;for(const [g,h]of c){h[G(0x247,0x216)]();if(h[G(0x283,0x27c)]()||!h['hasValue']())continue;const i=this[G(0x262,0x284)]['get'](g);if(i)i[G(0x26b,0x28a)](h[G(0x2ae,0x2d4)]());}this[G(0x26f,0x26e)]=void 0x0;this[G(0x2b8,0x2d2)]();}else{if(this[G(0x2ac,0x2a9)])this[G(0x26a,0x2ab)]=this[G(0x2ac,0x2b4)];this[G(0x2ac,0x2ea)]=void 0x0;this[G(0x294,0x2a6)]=void 0x0;}return{'rejectedWith':d[G(0x293,0x276)]};}async['finalizeCommitAsync'](a){}*[_enk(0x597,0x5ab)](a){function H(a,b){return _enk(b,a- -0x342);}const b=new Error(H(0x25d,0x27e)+a);b['cycle']=a;switch(this[H(0x205,0x1f3)]){case'ignore':console[H(0x23e,0x204)](b[H(0x257,0x238)]);const {requestedEntry:c,activeEntry:d}=a;return d[H(0x23f,0x21c)](c[H(0x21e,0x237)]!==void 0x0?c[H(0x21e,0x24d)]:c[H(0x27d,0x28c)]);case'throw':throw b;case'reject':this[H(0x274,0x258)](b);break;case H(0x252,0x24e):warn(b);break;}}[_enk(0x5b3,0x578)](a,b){const c=new Error(I(-0x12c,-0x106)+a);function I(a,b){return _enk(a,b- -0x6a5);}c[I(-0xfc,-0x130)]=a;switch(this[I(-0x122,-0x15e)]){case I(-0xdc,-0xe4):console[I(-0x117,-0x125)](c[I(-0xef,-0x10c)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0xeb,-0x124)](d[I(-0x164,-0x145)]!==void 0x0?d[I(-0x171,-0x145)]:d[I(-0xdb,-0xe6)]);case I(-0x16b,-0x158):throw c;case I(-0xbd,-0xef):this['reject'](c);break;case'warn':warn(c);break;}}['scheduleAutoCommit'](){function J(a,b){return _enk(a,b- -0x681);}if(this[J(-0xd3,-0xf5)]===null&&!this['isCommitting']){this[J(-0xc0,-0xf5)]=setTimeout(this[J(-0xfe,-0xf3)],0xa);}}[_enk(0x56f,0x588)](){function K(a,b){return _enk(b,a- -0x2e1);}if(this[K(0x2ab,0x2b9)]!==null){clearTimeout(this[K(0x2ab,0x294)]);this[K(0x2ab,0x284)]=null;}}['variable'](a){function L(a,b){return _enk(a,b- -0x420);}const b=VariableC();return this[L(0x187,0x148)](b,a===void 0x0?null:a);}[_enk(0x57b,0x551)](a,b){const c=VariableC({'name':a});function M(a,b){return _enk(b,a- -0x6b6);}return this[M(-0x14e,-0x115)](c,b===void 0x0?null:b);}['identifier'](a,b){const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});function N(a,b){return _enk(b,a- -0x79);}return this[N(0x4ef,0x4d2)](c);}[_enk(0x568,0x565)](a,b,c){const d=b[O(0x58e,0x557)][O(0x5a2,0x573)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enk(b,a-0x45);}return this[O(0x5ad,0x5bc)](d);}[_enk(0x597,0x568)](a,b,...c){function P(a,b){return _enk(b,a- -0x242);}if(this[P(0x2fe,0x2c5)]){if(this['onWriteDuringCommit']===P(0x30b,0x313))throw new Error(P(0x317,0x357));else if(this['onWriteDuringCommit']===P(0x352,0x311))warn(new Error(P(0x317,0x314)));}this[P(0x36a,0x359)][P(0x326,0x32c)](a,b,...c);if(this[P(0x371,0x33a)])this[P(0x37b,0x37f)]();return a;}[_enk(0x582,0x58a)](a){if(this[Q(0x346,0x376)]){if(this[Q(0x38a,0x351)]==='throw')throw new Error(Q(0x3a8,0x3c5));else if(this[Q(0x38a,0x36f)]===Q(0x39a,0x361))warn(new Error(Q(0x361,0x35c)));}this[Q(0x3b2,0x3a2)][Q(0x390,0x392)](a);function Q(a,b){return _enk(b,a- -0x1fa);}this['listeners'][Q(0x374,0x3b0)](a);if(this['autoCommit'])this[Q(0x3c3,0x3e0)]();}[_enk(0x589,0x5b0)](a){function R(a,b){return _enk(a,b- -0x2c4);}return this['activeTransaction'][R(0x327,0x2ec)](a);}['write'](a,b,...c){if(this[S(0x1dc,0x1e3)]){if(this[S(0x244,0x227)]==='throw')throw new Error(S(0x1c9,0x1e7));else if(this['onWriteDuringCommit']===S(0x219,0x237))warn(new Error(S(0x213,0x1e7)));}function S(a,b){return _enk(a,b- -0x35d);}this['activeTransaction'][S(0x1cc,0x1fb)](a,b,...c);if(this[S(0x28d,0x256)])this[S(0x268,0x260)]();}[_enk(0x584,0x59b)](a){function T(a,b){return _enk(a,b- -0x677);}return this['activeTransaction'][T(-0xa7,-0xdc)](a);}[_enk(0x56d,0x557)](a){function U(a,b){return _enk(a,b- -0x30a);}return this['activeTransaction'][U(0x228,0x24d)](a);}[_enk(0x56d,0x556)](a){function V(a,b){return _enk(a,b-0x25);}return this[V(0x59b,0x5d1)][V(0x563,0x57b)](a);}[_enk(0x599,0x55f)](a){function W(a,b){return _enk(a,b- -0x1d1);}return this['activeTransaction'][W(0x3c4,0x38e)](a);}[_enk(0x59d,0x5b9)](a){function X(a,b){return _enk(b,a- -0x3cf);}return this[X(0x1dd,0x1ce)]['get'](a);}[_enk(0x529,0x563)](a,b){function Y(a,b){return _enk(b,a- -0x3c1);}const c=this[Y(0x1a7,0x166)](CalculatedValueGen[Y(0x1e3,0x208)]({'lazy':![],'calculation':a}));this[Y(0x1cc,0x19f)](c,b);return c;}[_enk(0x5ff,0x5be)](a,b,c){function Z(a,b){return _enk(a,b- -0x4f6);}const d=this[Z(0x91,0x72)](CalculatedValueGen[Z(0xa7,0xae)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x62,0x97)](d,c);return d;}[_enk(0x590,0x58d)](a,b){function a0(a,b){return _enk(a,b- -0x2b4);}let c=this['listeners'][a0(0x2f8,0x305)](a);if(!c){c=Listener[a0(0x2cc,0x2f0)]();this[a0(0x2ec,0x2aa)][a0(0x2cb,0x2e1)](a,c);}c[a0(0x2c1,0x2a0)][a0(0x2c7,0x301)](b);}[_enk(0x5d0,0x59c)](){const a=this[a1(0x1bd,0x197)];const b=a[a1(0x1bb,0x1cb)];if(!b)return![];this[a1(0x1ac,0x197)]=b;this[a1(0x147,0x180)]=void 0x0;function a1(a,b){return _enk(a,b- -0x3cf);}return!![];}[_enk(0x56f,0x55c)](){const a=this[a2(0x1b2,0x1ef)];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x205,0x20d)](a);this[a2(0x1b2,0x18e)]=b;this[a2(0x19b,0x1d3)]=void 0x0;function a2(a,b){return _enk(b,a- -0x3b4);}return!![];}['onPropagationProgressNotification'](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(-0x19b,-0x1cb)]();c[a3(-0x181,-0x16e)]=!![];const d=c[a3(-0x1b3,-0x1db)](b);if(d!==void 0x0)return d;if(!c[a3(-0x194,-0x158)])return void 0x0;function a3(a,b){return _enk(b,a- -0x72e);}const e=c[a3(-0x1b1,-0x1b9)];if(e['lazy']){if(c['previous'][a3(-0x1e0,-0x1ef)]())return c[a3(-0x194,-0x1a7)][a3(-0x184,-0x163)]();if(c[a3(-0x194,-0x199)][a3(-0x17c,-0x13e)]())return c[a3(-0x194,-0x1b1)]['getProposedValue'](b);return null;}return b[a3(-0x193,-0x1c0)](c[a3(-0x1b1,-0x1c2)]);}[RejectSymbol](a,b){function a4(a,b){return _enk(a,b-0x3e);}this[a4(0x5b3,0x5f4)](a[a4(0x5b8,0x583)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){return b['getActiveEntry']();}[OwnIdentifierSymbol](a,b){function a5(a,b){return _enk(a,b- -0x34d);}const c=b[a5(0x240,0x246)]();return c[a5(0x249,0x230)];}[WriteSymbol](a,b){const c=b[a6(0x20d,0x214)]();const d=a[a6(0x23f,0x1fe)][a6(0x23b,0x207)]>c[a6(0x1fe,0x1fe)][a6(0x1d6,0x207)];function a6(a,b){return _enk(a,b- -0x37f);}if(!d)b[a6(0x1de,0x213)][a6(0x275,0x238)]();b['write'](a['identifier'],...a['proposedArgs']);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a7(0x18a,0x14c)]();let d=!![];function a7(a,b){return _enk(b,a- -0x409);}a['writes'][a7(0x18d,0x1b7)](e=>{if(e['identifier'][a8(0x299,0x261)]<=c[a8(0x253,0x258)][a8(0x283,0x261)]&&d){b[a8(0x2a0,0x26d)][a8(0x284,0x292)]();d=![];}function a8(a,b){return a7(b-0xe4,a);}b['write'](e[a8(0x276,0x258)],...e['proposedArgs']);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[a9(0x218,0x247)]();const d=a[a9(0x202,0x21f)];b['addEdge'](d,c,EdgeTypePast);const e=b[a9(0x1f6,0x22d)]['get'](d);function a9(a,b){return _enk(b,a- -0x37b);}return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x2c,0x1a)];b['addEdge'](d,c,EdgeTypePast);function aa(a,b){return _enk(a,b- -0x563);}return b['readPrevious'](d);}[ProposedValueOfSymbol](a,b){const c=b[ab(-0x127,-0x14a)]();const d=a[ab(-0x13d,-0x11e)];b['addEdge'](d,c,EdgeTypePast);const e=b['entries'][ab(-0x101,-0x12c)](d);function ab(a,b){return _enk(b,a- -0x6ba);}const f=e&&!e['isShadow']()?e[ab(-0x13f,-0x113)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ac(-0xb1,-0x95)];b[ac(-0xf8,-0xbd)](d,c,EdgeTypePast);function ac(a,b){return _enk(a,b- -0x612);}const e=b[ac(-0x9f,-0xa1)][ac(-0x6c,-0x59)](d);return e?e[ac(-0x3e,-0x60)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ad(0x256,0x22b)];function ad(a,b){return _enk(a,b- -0x352);}b[ad(0x216,0x203)](d,c,EdgeTypePast);const e=b[ad(0x1e4,0x21f)]['get'](d);return e?e[ad(0x232,0x260)]()&&!e[ad(0x1f2,0x227)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ae(0x1a6,0x1c1)]();const d=a[ae(0x1dc,0x1ab)];function ae(a,b){return _enk(a,b- -0x3d2);}b['addEdge'](d,c,EdgeTypePast);return b[ae(0x167,0x190)](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function af(a,b){return _enk(b,a- -0x311);}return b[af(0x251,0x25c)](a[af(0x26c,0x289)]);}[UnsafePreviousValueOfSymbol](a,b){function ag(a,b){return _enk(a,b- -0x64e);}return b[ag(-0x88,-0xb3)](a[ag(-0x10a,-0xd1)]);}[ProposedArgumentsOfSymbol](a,b){function ah(a,b){return _enk(b,a- -0x2d0);}const c=b[ah(0x2c3,0x2fc)]();const d=a[ah(0x2ad,0x2d4)];b[ah(0x285,0x29d)](d,c,EdgeTypePast);const e=b[ah(0x2a1,0x2cc)][ah(0x2e9,0x308)](d);return e&&!e['isShadow']()?e[ah(0x282,0x244)]:void 0x0;}}export{ChronoGraph,CommitZero,Listener};
|
|
1
|
+
(function(a,b){const c=a();function j(a,b){return _enb(a- -0x84,b);}while(!![]){try{const d=-parseInt(j(0x13a,0x11d))/0x1*(-parseInt(j(0x148,0x121))/0x2)+-parseInt(j(0xfb,0xd8))/0x3+-parseInt(j(0x14c,0x130))/0x4+-parseInt(j(0x122,0x109))/0x5*(parseInt(j(0x12c,0x113))/0x6)+parseInt(j(0x12e,0x141))/0x7*(parseInt(j(0x13e,0x116))/0x8)+parseInt(j(0x145,0x164))/0x9*(-parseInt(j(0x153,0x17c))/0xa)+parseInt(j(0x140,0x164))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x1fff5));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';function _ena(){const aj=['candidate','identifierNamed','branch','lazy','resolve','addEdge','onComputationCycle','8592RhommY','new','176687uRUIjV','throw','hasIdentifier','proposedArguments','autoCommit','Computation\x20cycle:\x0a','previous','Adding\x20identifier\x20during\x20commit','writtenValue','level','topRevision','Invalid\x20compact\x20operation','23dVfUCl','origin','onComputationCycleHandler','onWriteDuringCommit','64fmpAdC','continueCalculation','2854885AaysMI','autoCommitHandler','proposedIsPrevious','$followingRevision','assign','3033taVPvI','startNewEpoch','listeners','17678WucMrm','onComputationCycleHandlerSync','removeIdentifier','finalizeCommitAsync','169676gJeDKe','doCommitAsync','reason','addIdentifier','handlers','trigger','scope','4750vIAAmT','baseRevisionTentative','proposedArgs','commitAsync','propagateAsync','forEach','clear','clearProperties','historyLimit','mergePreviousOrigin','previousAxis','unScheduleAutoCommit','reject','entries','eachReachableRevision','name','log','rejectedWith','variable','message','read','Removinfg\x20identifier\x20during\x20commit','$activeTransaction','identifier','writes','constructor','isJustCleared','warn','getValue','then','selfDependent','clearBranch','initialize','baseRevision','referenceCount','proposedValue','delete','_isInitialCommit','finalizeCommit','getProposedValue','533943qGRlYx','value','startOrigin','isShadow','ignore','activeTransaction','hasProposedValue','redo','readPrevious','ongoing','isInitialCommit','scheduleAutoCommit','Invalid\x20revisions\x20chain','compactRevisions','set','isCommitting','isWritingPreviousData','addListener','dirty','baseRevisionStable','length','hasValue','Write\x20during\x20commit','commit','observe','from','hasPendingAutoCommit','reachableCount','followingRevision','sync','markAndSweep','cycle','readPreviousAsync','write','Removing\x20identifier\x20during\x20commit','push','autoCommitTimeoutId','readAsync','propagate','535zScTlV','get','getActiveEntry'];_ena=function(){return aj;};return _ena();}import{warn}from'../environment/Debug.js';import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';function _enl(a,b){return _enb(b- -0x143,a);}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';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x173;let f=c[d];return f;};return _enb(a,b);}import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b- -0x35a,a);}this[k(-0x18d,-0x186)]=[];}[_enl(0x8c,0x92)](a){function m(a,b){return _enl(b,a-0xf1);}for(let b=0x0;b<this[m(0x182,0x19d)][m(0x141,0x139)];b++)this[m(0x182,0x182)][b](a);}}class ChronoGraph extends Base{constructor(){super(...arguments);this[n(0x159,0x173)]=void 0x0;this[n(0x19f,0x1b1)]=void 0x0;this[n(0x13f,0x157)]=Revision[n(0x178,0x152)]();this[n(0x183,0x1af)]=void 0x0;this[n(0x1a6,0x18d)]=0x0;this[n(0x192,0x1b7)]=new Map();this[n(0x156,0x145)]=0x0;this[n(0x1b4,0x181)]=void 0x0;this[n(0x155,0x117)]=![];this['enableProgressNotifications']=![];this[n(0x14f,0x166)]=Promise['resolve']();this['_isInitialCommit']=!![];this[n(0x16a,0x137)]=null;function n(a,b){return _enl(b,a-0x10a);}this[n(0x17d,0x193)]=![];this['autoCommitMode']=n(0x163,0x14b);this[n(0x18c,0x1b3)]=null;this[n(0x188,0x160)]=n(0x17a,0x13e);this[n(0x176,0x15a)]=n(0x17a,0x1ba);this['transactionClass']=Transaction;this['isJustCleared']=![];this[n(0x18e,0x19b)]=void 0x0;}[_enl(0x46,0x34)](...a){function o(a,b){return _enl(a,b-0x17e);}super[o(0x1d0,0x1b2)](...a);if(!this[o(0x1c0,0x1f7)])this[o(0x20b,0x1f7)]=this[o(0x1b6,0x1b3)];if(this[o(0x1c9,0x1f1)]){this['autoCommitHandler']=this['autoCommitMode']===o(0x20d,0x1d7)?b=>this[o(0x1a4,0x1d1)](b):async b=>this[o(0x23e,0x215)](b);}this[o(0x1d5,0x1d8)]();}[_enl(0x6d,0x56)](){return this['autoCommitTimeoutId']!==null;}get[_enl(0x76,0x4e)](){function p(a,b){return _enl(b,a-0x191);}return this[p(0x1d2,0x194)][p(0x1df,0x1c3)];}['clear'](){this[q(0x3a9,0x398)]();this[q(0x36b,0x397)]();this['baseRevision'][q(0x3af,0x38b)]&&this[q(0x2fb,0x32d)][q(0x357,0x38b)][q(0x36d,0x392)]();this['baseRevision'][q(0x332,0x36d)]=null;this[q(0x384,0x380)][q(0x368,0x392)]();this[q(0x399,0x371)]=this[q(0x337,0x32d)];this[q(0x3b9,0x37c)]=void 0x0;this[q(0x3b4,0x3a2)]=void 0x0;function q(a,b){return _enl(a,b-0x2f8);}this['markAndSweep']();this[q(0x3b7,0x3a6)]=!![];}[_enl(0x5e,0x33)](){this[r(0x31d,0x2f2)]();this[r(0x31c,0x339)]();function r(a,b){return _enl(b,a-0x27d);}for(const [a,b]of this[r(0x31f,0x2df)]()){if(b)a[r(0x2d4,0x2ac)]--;a[r(0x2b3,0x2d0)]--;}this[r(0x305,0x2fd)][r(0x317,0x34a)]();this[r(0x2f6,0x2f8)]=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x327,0x32f)]=void 0x0;}*['eachReachableRevision'](){let a=!![];function s(a,b){return _enl(a,b- -0x50);}let b=0x0;for(const c of this[s(0x3d,0x29)][s(0x72,0x4e)]()){yield[c,a||b<this[s(0x88,0x4c)]];if(c===this[s(-0x1f,-0x1b)]){a=![];}else{if(!a)b++;}}}get[_enl(0x53,0x46)](){function t(a,b){return _enl(a,b- -0x1b1);}return this[t(-0x184,-0x178)];}set[_enl(0x76,0x46)](a){function u(a,b){return _enl(b,a- -0x1be);}this[u(-0x185,-0x14c)]=a;}[_enl(0x62,0x5a)](){let a;function v(a,b){return _enl(a,b- -0x158);}const b=[];for(const [c,d]of this[v(-0x89,-0xb6)]()){if(d){c[v(-0xdd,-0x101)]++;a=c;}else b['push'](c);c[v(-0x102,-0x122)]++;}b['unshift'](a);for(let e=b['length']-0x1;e>=0x1&&b[e][v(-0x125,-0x101)]===0x0;e--){this[v(-0x128,-0x10f)](b[e-0x1],b[e]);}}[_enl(0x53,0x49)](a,b){if(b[w(0x143,0x165)]>0x0||a['previous']!==b)throw new Error(w(0x166,0x157));function w(a,b){return _enl(b,a-0xec);}if(b[w(0x122,0x109)]<=0x1){for(const [c,d]of a['scope']){if(d[w(0x11c,0x152)]()===TombStone){b[w(0x17f,0x179)]['delete'](c);}else{const e=b['scope'][w(0x150,0x18d)](c);if(d[w(0x168,0x18e)]===d){if(e){e[w(0x186,0x178)]();e[w(0x187,0x1c7)]();}}else if(e&&d[w(0x168,0x17e)]===e){d[w(0x189,0x1af)](a[w(0x17f,0x15f)]);}else if(c['lazy']&&!d[w(0x168,0x12a)]&&e&&e['origin']){d[w(0x12a,0x13c)]()['proposedValue']=e[w(0x168,0x18d)][w(0x129,0x169)]!==void 0x0?e['origin'][w(0x129,0x14e)]:e[w(0x168,0x1a8)]['proposedValue'];}d[w(0x161,0x19d)]=void 0x0;b[w(0x17f,0x171)][w(0x136,0x154)](c,d);}}copySetInto(a['selfDependent'],b[w(0x11e,0x108)]);a[w(0x17f,0x158)]=b[w(0x17f,0x155)];b['scope']=null;}else{a[w(0x17f,0x178)]=new Map(concat(b['scope'],a[w(0x17f,0x16a)]));a['selfDependent']=new Set(concat(b[w(0x11e,0x100)],a[w(0x11e,0x13c)]));b[w(0x122,0x104)]--;}a[w(0x161,0x147)]=null;}get[_enl(0x82,0x58)](){if(this['$followingRevision']!==void 0x0)return this[x(-0x1f1,-0x201)];const a=Array[x(-0x211,-0x230)](this[x(-0x211,-0x20c)][x(-0x1f2,-0x1e7)]());const b=[];function x(a,b){return _enl(a,b- -0x285);}for(let c=a[x(-0x275,-0x235)]-0x1;c>0x0;c--)b[x(-0x257,-0x226)]([a[c],a[c-0x1]]);return this[x(-0x201,-0x201)]=new Map(b);}get[_enl(0x3d,0x41)](){function y(a,b){return _enl(a,b-0x169);}if(this[y(0x1dd,0x213)])return this[y(0x213,0x213)];return this[y(0x1e6,0x213)]=this['transactionClass'][y(0x202,0x1d7)]({'baseRevision':this[y(0x1d3,0x1fe)]||this['baseRevision'],'graph':this});}[_enl(0x54,0x68)](a){function z(a,b){return _enl(a,b-0x522);}const b=this[z(0x598,0x5cf)];return b['new'](Object[z(0x5c5,0x5a7)]({},a,{'baseRevision':this['baseRevision']}));}[_enl(0x43,0x62)](a){function A(a,b){return _enl(b,a-0x1cc);}return this[A(0x21f,0x248)](a);}[_enl(0xbf,0xa0)](a){this['activeTransaction']['reject'](RejectEffect['new']({'reason':a}));function B(a,b){return _enl(b,a-0x428);}this[B(0x46d,0x499)]=Promise[B(0x492,0x470)]();this[B(0x4d2,0x4de)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[B(0x477,0x450)]){this['baseRevision']=this[B(0x477,0x457)];this['baseRevisionStable']=void 0x0;}}[_enl(0x7a,0x53)](a){function C(a,b){return _enl(b,a-0xc0);}this[C(0x16e,0x15d)]=![];this[C(0x15f,0x172)]();this[C(0x10f,0xf7)]=this[C(0xf5,0xdd)];const b=this[C(0x101,0x129)];const c=b[C(0x113,0xe6)](a);this[C(0x16a,0x150)]=void 0x0;const d=this[C(0xfa,0x10f)](c);this['baseRevisionStable']=void 0x0;this[C(0x106,0x130)]=![];return d;}async[_enl(0x96,0x98)](a){function D(a,b){return _enl(b,a-0x2b8);}return this[D(0x34f,0x34f)](a);}async[_enl(0x88,0x97)](a){if(this[E(0x308,0x336)])return this['ongoing'];function E(a,b){return _enl(a,b-0x2eb);}this['isJustCleared']=![];this[E(0x31d,0x336)]=!![];this[E(0x308,0x33a)]=this[E(0x331,0x320)];let b;return this['ongoing']=this[E(0x324,0x330)]['then'](()=>{function F(a,b){return E(b,a- -0x515);}return this[F(-0x19c,-0x1b0)](a);})[E(0x358,0x31c)](c=>{b=c;return c;})['finally'](()=>{function G(a,b){return E(a,b-0x214);}this[G(0x50e,0x54e)]=void 0x0;this[G(0x595,0x594)]=void 0x0;this['isInitialCommit']=![];this[G(0x510,0x54a)]=![];});}async['doCommitAsync'](a){this['unScheduleAutoCommit']();const b=this['activeTransaction'];function H(a,b){return _enl(b,a-0x225);}const c=await b['commitAsync'](a);const d=Boolean(b[H(0x2ca,0x28b)]);const e=this['baseRevisionTentative'];if(!d)this[H(0x2ba,0x2ae)]=b[H(0x28b,0x2b0)];this['$activeTransaction']=void 0x0;await this[H(0x2b1,0x2dd)](c);if(this[H(0x2d3,0x2c5)])return{'rejectedWith':RejectEffect[H(0x293,0x2c0)]({'reason':'Graph\x20cleared'})};if(b[H(0x2ca,0x296)]&&!d){this[H(0x2ba,0x2ce)]=e;this[H(0x2cf,0x2ce)]=void 0x0;}const f=this[H(0x25f,0x270)](c);if(b['rejectedWith'])b['clearRejected']();if(this[H(0x273,0x243)]&&!b[H(0x2ca,0x2a4)]){await this[H(0x2b3,0x2cf)](a);}return f;}[_enl(0x22,0x3a)](a){const {revision:b,entries:c,transaction:d}=a;function I(a,b){return _enl(a,b-0x44e);}if(!d[I(0x4e4,0x4f3)]){if(b[I(0x4db,0x4c3)]!==this[I(0x44b,0x483)])throw new Error(I(0x4a0,0x496));for(const [e,f]of this[I(0x4f0,0x4f0)]()){if(f)e[I(0x4ce,0x4a5)]--;e[I(0x4b8,0x484)]--;}this[I(0x478,0x483)]=this['topRevision']=b;for(const [g,h]of c){h['cleanup']();if(h['isShadow']()||!h[I(0x49d,0x49f)]())continue;const i=this[I(0x4e8,0x4d6)][I(0x4aa,0x4b2)](g);if(i)i[I(0x4b2,0x4e0)](h[I(0x49d,0x47e)]());}this[I(0x4f5,0x4d2)]=void 0x0;this[I(0x484,0x4a8)]();}else{if(this[I(0x4dc,0x49d)])this[I(0x4ba,0x483)]=this[I(0x495,0x49d)];this[I(0x467,0x49d)]=void 0x0;this['baseRevisionTentative']=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async[_enl(0x9d,0x8c)](a){}*[_enl(0x61,0x7d)](a){const b=new Error(J(0x1f9,0x234)+a);function J(a,b){return _enl(a,b-0x1c0);}b[J(0x20c,0x21b)]=a;switch(this['onComputationCycle']){case J(0x213,0x200):console[J(0x232,0x264)](b[J(0x273,0x267)]);const {requestedEntry:c,activeEntry:d}=a;return d['continueCalculation'](c[J(0x215,0x1f7)]!==void 0x0?c[J(0x205,0x1f7)]:c[J(0x236,0x1fd)]);case J(0x25a,0x230):throw b;case J(0x298,0x260):this['reject'](b);break;case J(0x234,0x26f):warn(b);break;}}[_enl(0x7a,0x8a)](a,b){function K(a,b){return _enl(a,b-0x31a);}const c=new Error(K(0x367,0x38e)+a);c[K(0x38a,0x375)]=a;switch(this[K(0x398,0x386)]){case K(0x31f,0x35a):console[K(0x39b,0x3be)](c[K(0x3c8,0x3c1)]);const {requestedEntry:d,activeEntry:e}=a;return e[K(0x399,0x39a)](d['proposedValue']!==void 0x0?d[K(0x37d,0x351)]:d[K(0x358,0x357)]);case K(0x34a,0x38a):throw c;case K(0x3b4,0x3ba):this[K(0x3e5,0x3ba)](c);break;case K(0x3d6,0x3c9):warn(c);break;}}[_enl(0x2b,0x47)](){function L(a,b){return _enl(a,b-0x5);}if(this[L(0xa0,0x65)]===null&&!this[L(0x21,0x50)]){this[L(0x87,0x65)]=setTimeout(this[L(0x57,0x87)],0xa);}}['unScheduleAutoCommit'](){function M(a,b){return _enl(b,a-0x42f);}if(this['autoCommitTimeoutId']!==null){clearTimeout(this[M(0x48f,0x475)]);this[M(0x48f,0x4ba)]=null;}}[_enl(0xd8,0xa6)](a){const b=VariableC();return this['addIdentifier'](b,a===void 0x0?null:a);}['variableNamed'](a,b){const c=VariableC({'name':a});function N(a,b){return _enl(a,b-0x3e2);}return this[N(0x4a5,0x472)](c,b===void 0x0?null:b);}[_enl(0xd8,0xab)](a,b){function O(a,b){return _enl(a,b-0x429);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[O(0x4b3,0x4b9)](c);}[_enl(0x52,0x67)](a,b,c){function P(a,b){return _enl(b,a-0x270);}const d=b[P(0x31d,0x329)][P(0x313,0x2f7)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});return this[P(0x300,0x2ef)](d);}[_enl(0x93,0x90)](a,b,...c){function Q(a,b){return _enl(a,b-0x21c);}if(this[Q(0x298,0x267)]){if(this[Q(0x2d7,0x29a)]===Q(0x24c,0x28c))throw new Error(Q(0x29d,0x292));else if(this[Q(0x272,0x29a)]===Q(0x2ae,0x2cb))warn(new Error('Adding\x20identifier\x20during\x20commit'));}this['activeTransaction']['addIdentifier'](a,b,...c);if(this[Q(0x2b9,0x28f)])this[Q(0x26e,0x263)]();return a;}['removeIdentifier'](a){if(this[R(0x3ad,0x3bb)]){if(this[R(0x3e0,0x3be)]===R(0x3d2,0x3f9))throw new Error(R(0x3c0,0x3ef));else if(this[R(0x3e0,0x3fd)]===R(0x411,0x432))warn(new Error(R(0x40b,0x403)));}this[R(0x3a3,0x376)][R(0x3ed,0x406)](a);this[R(0x3ea,0x3d9)][R(0x39a,0x390)](a);function R(a,b){return _enl(b,a-0x362);}if(this[R(0x3d5,0x3d7)])this[R(0x3a9,0x389)]();}[_enl(0x41,0x71)](a){function S(a,b){return _enl(b,a-0x3c2);}return this[S(0x403,0x402)][S(0x433,0x428)](a);}[_enl(0x47,0x5d)](a,b,...c){function T(a,b){return _enl(b,a- -0x22f);}if(this['isCommitting']){if(this[T(-0x1b1,-0x1e2)]===T(-0x1bf,-0x1b3))throw new Error('Write\x20during\x20commit');else if(this[T(-0x1b1,-0x1d9)]==='warn')warn(new Error(T(-0x1dd,-0x1e5)));}this[T(-0x1ee,-0x1f4)]['write'](a,b,...c);if(this['autoCommit'])this[T(-0x1e8,-0x1d7)]();}['readPrevious'](a){function U(a,b){return _enl(a,b- -0x27a);}return this[U(-0x26f,-0x239)]['readPrevious'](a);}[_enl(0x40,0x5c)](a){function V(a,b){return _enl(a,b- -0x1e3);}return this[V(-0x1da,-0x1a2)][V(-0x165,-0x187)](a);}[_enl(0xc6,0xa8)](a){function W(a,b){return _enl(a,b- -0x1d9);}return this[W(-0x196,-0x198)][W(-0x145,-0x131)](a);}[_enl(0x94,0x61)](a){function X(a,b){return _enl(b,a- -0x23b);}return this[X(-0x1fa,-0x1d4)]['readAsync'](a);}[_enl(0x49,0x64)](a){function Y(a,b){return _enl(a,b- -0x15c);}return this[Y(-0x155,-0x11b)][Y(-0xbf,-0xf8)](a);}[_enl(0x31,0x54)](a,b){const c=this['addIdentifier'](CalculatedValueGen['new']({'lazy':![],'calculation':a}));function Z(a,b){return _enl(b,a-0xa7);}this[Z(0xf4,0xde)](c,b);return c;}['observeContext'](a,b,c){const d=this['addIdentifier'](CalculatedValueGen[a0(0x3e2,0x3bd)]({'lazy':![],'calculation':a,'context':b}));this[a0(0x3c1,0x384)](d,c);function a0(a,b){return _enl(b,a-0x374);}return d;}[_enl(0x45,0x4d)](a,b){let c=this[a1(0x3b6,0x38d)][a1(0x392,0x38f)](a);if(!c){c=Listener[a1(0x39c,0x39c)]();this[a1(0x3b6,0x3a1)]['set'](a,c);}function a1(a,b){return _enl(b,a-0x32e);}c[a1(0x3bf,0x3ee)][a1(0x38d,0x3bc)](b);}['undo'](){const a=this[a2(0x4a3,0x4a8)];const b=a[a2(0x4ec,0x4e8)];function a2(a,b){return _enl(a,b-0x473);}if(!b)return![];this[a2(0x485,0x4a8)]=b;this[a2(0x536,0x51d)]=void 0x0;return!![];}[_enl(0x3c,0x43)](){function a3(a,b){return _enl(b,a-0x293);}const a=this[a3(0x2c8,0x2ca)];if(a===this[a3(0x30c,0x2ec)])return![];const b=this[a3(0x2eb,0x2d2)]['get'](a);this[a3(0x2c8,0x2e2)]=b;this[a3(0x33d,0x30a)]=void 0x0;return!![];}['onPropagationProgressNotification'](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a4(0x23d,0x244)]();c['usedProposedOrPrevious']=!![];const d=c[a4(0x202,0x21a)](b);if(d!==void 0x0)return d;if(!c[a4(0x21b,0x254)])return void 0x0;function a4(a,b){return _enl(a,b-0x1df);}const e=c[a4(0x2c8,0x28a)];if(e[a4(0x26f,0x248)]){if(c[a4(0x242,0x254)]['hasValue']())return c['previous']['getValue']();if(c[a4(0x25d,0x254)][a4(0x21a,0x221)]())return c[a4(0x264,0x254)][a4(0x24c,0x21a)](b);return null;}return b['readPrevious'](c['identifier']);}[RejectSymbol](a,b){function a5(a,b){return _enl(a,b-0x397);}this[a5(0x43e,0x437)](a[a5(0x401,0x426)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a6(a,b){return _enl(a,b- -0x64);}return b[a6(-0x32,0x1)]();}[OwnIdentifierSymbol](a,b){function a7(a,b){return _enl(b,a- -0x185);}const c=b[a7(-0x120,-0xef)]();return c[a7(-0xda,-0x10d)];}[WriteSymbol](a,b){function a8(a,b){return _enl(b,a-0x174);}const c=b[a8(0x1d9,0x1e9)]();const d=a['identifier'][a8(0x1ec,0x1da)]>c[a8(0x21f,0x217)][a8(0x1ec,0x1e0)];if(!d)b['walkContext']['startNewEpoch']();b[a8(0x1d1,0x1da)](a[a8(0x21f,0x210)],...a[a8(0x20a,0x1e3)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a9(-0x72,-0x40)]();let d=!![];function a9(a,b){return _enl(a,b- -0xa5);}a[a9(0x3,0x7)][a9(-0xc,-0xc)](e=>{if(e[aa(0x63,0x6a)]['level']<=c[aa(0x36,0x6a)][aa(0x5e,0x37)]&&d){b['walkContext'][aa(0xd,0x46)]();d=![];}function aa(a,b){return a9(a,b-0x64);}b[aa(0x3f,0x1c)](e[aa(0xa2,0x6a)],...e[aa(0x58,0x55)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[ab(0x297,0x268)]();function ab(a,b){return _enl(b,a-0x232);}const d=a[ab(0x2dd,0x2bd)];b['addEdge'](d,c,EdgeTypePast);const e=b[ab(0x2d3,0x2b4)][ab(0x296,0x2a0)](d);return e?b[ab(0x276,0x26c)](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b[ac(0x3db,0x3b3)]();function ac(a,b){return _enl(b,a-0x376);}const d=a[ac(0x421,0x461)];b[ac(0x3e1,0x3c7)](d,c,EdgeTypePast);return b[ac(0x3ba,0x3c6)](d);}[ProposedValueOfSymbol](a,b){const c=b[ad(0x26,0x62)]();const d=a[ad(0xcb,0xa8)];b[ad(0x62,0x68)](d,c,EdgeTypePast);function ad(a,b){return _enl(a,b- -0x3);}const e=b[ad(0xbd,0x9e)][ad(0x69,0x61)](d);const f=e&&!e[ad(0x20,0x3c)]()?e[ad(0x3d,0x38)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ae(a,b){return _enl(b,a- -0x1ad);}const c=b[ae(-0x148,-0x172)]();const d=a[ae(-0x102,-0x12e)];b[ae(-0x142,-0x159)](d,c,EdgeTypePast);const e=b[ae(-0x10c,-0xd5)][ae(-0x149,-0x120)](d);return e?e[ae(-0x16b,-0x15a)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b[af(0x241,0x272)]();const d=a[af(0x299,0x2b8)];b[af(0x291,0x278)](d,c,EdgeTypePast);const e=b[af(0x2a6,0x2ae)][af(0x27d,0x271)](d);function af(a,b){return _enl(a,b-0x20d);}return e?e['hasProposedValue']()&&e[af(0x27c,0x284)]!==void 0x0&&!e[af(0x276,0x290)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ag(0x305,0x2fa)]();const d=a[ag(0x34b,0x334)];function ag(a,b){return _enl(b,a-0x2a0);}b[ag(0x30b,0x31b)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ah(a,b){return _enl(a,b-0x4a9);}return b['readProposedOrPrevious'](a[ah(0x547,0x554)]);}[UnsafePreviousValueOfSymbol](a,b){return b['readPrevious'](a['identifier']);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(-0x13a,-0x130)]();const d=a[ai(-0xc7,-0xea)];b[ai(-0x137,-0x12a)](d,c,EdgeTypePast);const e=b[ai(-0xe3,-0xf4)][ai(-0x104,-0x131)](d);function ai(a,b){return _enl(a,b- -0x195);}return e&&!e[ai(-0x17a,-0x156)]()?e[ai(-0x11f,-0x123)]:void 0x0;}}export{ChronoGraph,CommitZero,Listener};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function l(a,b){return _enb(b- -0x21d,a);}const c=a();while(!![]){try{const d=parseInt(l(-0x11,-0x2a))/0x1+parseInt(l(-0x2c,-0x24))/0x2*(parseInt(l(-0x23,-0x34))/0x3)+-parseInt(l(-0x44,-0x3a))/0x4*(parseInt(l(-0x1c,-0x1e))/0x5)+-parseInt(l(-0x12,-0x1b))/0x6+parseInt(l(-0x11,-0x20))/0x7*(-parseInt(l(-0x2b,-0x3c))/0x8)+-parseInt(l(-0x19,-0x10))/0x9+-parseInt(l(-0x33,-0x1c))/0xa*(-parseInt(l(-0x24,-0x1d))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x48849));var __decorate=function(a,b,e,f){var g=arguments[m(0xa1,0x91)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0xba,0xba)]===m(0x94,0x9c))h=Reflect[m(0xba,0xa6)](a,b,e,f);else for(var k=a[m(0xa1,0x9a)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a- -0x154,b);}return g>0x3&&h&&Object[m(0xaa,0xb2)](b,e,h),h;};import{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a['UserInput']=0x0]=n(0x264,0x259);a[a['DependsOnlyOnUserInput']=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]=n(0x275,0x277);function n(a,b){return _enb(a-0x6c,b);}a[a[n(0x266,0x272)]=0x3]=n(0x266,0x26f);}(Levels||(Levels={})));class Meta extends Base{constructor(){function o(a,b){return _enb(b- -0x367,a);}super(...arguments);this[o(-0x185,-0x17c)]=void 0x0;this[o(-0x188,-0x175)]=![];this['total']=!![];this[o(-0x164,-0x157)]=!![];this[o(-0x16d,-0x185)]=![];}[_enp(0x17f,0x198)](a){function q(a,b){return _enp(a-0x3d5,b);}throw new Error(q(0x556,0x55d));}[_enp(0x180,0x181)](a,b){return a===b;}}__decorate([prototypeValue(Levels['DependsOnSelfKind'])],Meta[_enp(0x196,0x1ae)],'level',void 0x0);function _ena(){const D=['new','proposedArguments','mix','proposedIsPrevious','identifier','DependsOnlyOnDependsOnlyOnUserInput','Unknown\x20identifier\x20','isWritingPreviousData','sync','3624966waRbno','decorate','ignoreEdgesFlow','pure','graph','newQuark','readFromGraph','8lcaQgg','proposedValueIsBuilt','924atxjkR','quarkClass','readFromTransactionAsync','writeToTransaction','read','function','18HsufFS','value','name','calculation','equality','Abstract\x20method\x20`calculation`\x20called','writeToGraph','proposedValue','readFromGraphAsync','lazy','158562WXBDqN','writtenValue','length','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','write','UserInput','65122fDYvZp','DependsOnSelfKind','level','readFromTransaction','327264LjVBNi','defineProperty','2810JIjAGL','11PytrEk','9848350ySoYCo','2774292HoufZU','prototype'];_ena=function(){return D;};return _ena();}__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0x19f,0x1aa),void 0x0);class Identifier extends Meta{constructor(){function r(a,b){return _enp(b- -0x254,a);}super(...arguments);this[r(-0xaf,-0xb2)]=![];this['context']=void 0x0;this['isWritingUndefined']=![];}[_enp(0x1a5,0x1b5)](a){const b=this[s(0x5b5,0x5cb)][s(0x603,0x5eb)]();b[s(0x5dc,0x5ef)]=this;function s(a,b){return _enp(b-0x454,a);}b['needToBuildProposedValue']=this[s(0x5b3,0x5c9)];return b;}['write'](a,b,c,d,...e){c=c||b['getWriteTarget'](a);c[t(0x209,0x21e)]=d;c['proposedArguments']=e['length']>0x0?e:void 0x0;function t(a,b){return _enp(b-0x9b,a);}c[t(0x246,0x235)]=b[t(0x22e,0x23f)][t(0x224,0x239)]>0x0;c[t(0x22a,0x222)]=d;}[_enp(0x179,0x17a)](a,b,...c){function u(a,b){return _enp(a-0x2b5,b);}a[u(0x43f,0x434)](this,b,...c);}[_enp(0x182,0x194)](a,b,...c){a['write'](this,b,...c);}[_enp(0x184,0x17f)](a){return a['readAsync'](this);}[_enp(0x173,0x16e)](a){function v(a,b){return _enp(a-0xd0,b);}return a[v(0x24a,0x23b)](this);}[_enp(0x18f,0x194)](a){function w(a,b){return _enp(b- -0x322,a);}return a[w(-0x1ab,-0x1a8)](this);}[_enp(0x178,0x163)](a){return a['readAsync'](this);}['buildProposedValue'](a,b,c){return void 0x0;}['enterGraph'](a){}['leaveGraph'](a){}}function _enp(a,b){return _enb(a- -0x6d,b);}const IdentifierC=a=>Identifier[_enp(0x197,0x182)](a);const QuarkSync=Quark[_enp(0x199,0x1a3)](CalculationSync[_enp(0x199,0x18f)](Map));const QuarkGen=Quark['mix'](CalculationGen['mix'](Map));class Variable extends Identifier{['calculation'](a){function x(a,b){return _enp(b-0xf7,a);}throw new Error(x(0x28c,0x280));}[_enp(0x18a,0x180)](a,b,c,d,...e){function y(a,b){return _enp(b- -0xd6,a);}c=c||b['getWriteTarget'](a);c[y(0xbf,0xa7)]=d;c[y(0xda,0xc2)]=e[y(0xb4,0xb2)]>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0x18b,0x19a)])],Variable[_enp(0x196,0x1ab)],_enp(0x18e,0x17c),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x196,0x1a6)],'quarkClass',void 0x0);function VariableC(...a){function z(a,b){return _enp(b-0x327,a);}return Variable[z(0x4d8,0x4be)](...a);}class CalculatedValueSync extends Identifier{[_enp(0x17f,0x179)](a){return a(ProposedOrPrevious);}}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync['prototype'],_enp(0x177,0x190),void 0x0);function CalculatedValueSyncC(...a){function A(a,b){return _enp(b-0xe3,a);}return CalculatedValueSync[A(0x264,0x27a)](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x17f,0x168)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen['prototype'],'quarkClass',void 0x0);function CalculatedValueGenC(...a){function B(a,b){return _enp(b-0x12e,a);}return CalculatedValueGen[B(0x2d4,0x2c5)](...a);}const throwUnknownIdentifier=a=>{function C(a,b){return _enp(b-0x13f,a);}throw new Error(C(0x2e4,0x2dc)+a);};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e0;let f=c[d];return f;};return _enb(a,b);}export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function o(a,b){return _enb(
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x107;let f=c[d];return f;};return _enb(a,b);}function _ena(){const S=['forceCalculation','visitedAt','895082SzwoDX','proposedValueIsBuilt','originId','values','value','usedProposedOrPrevious','proposedArguments','level','isShadow','9165506hJviSO','165WvEGkN','cleanup','$outgoingPast','cleanupCalculation','getProposedValue','3oEuSJQ','getValue','resetToEpoch','35731861LBmAzG','outgoingInTheFutureAndPastTransactionCb','edgesFlow','context','copyFrom','clearOutgoing','proposedIsPrevious','7769136HKeDlT','startOrigin','1035976DZuoGm','outgoingInTheFutureAndPastCb','clear','clearProperties','getOutgoingPast','Tombstone','41244WoaEqQ','getLatestEntryFor','calculation','get','hasProposedValue','getOrigin','hasProposedValueInner','addOutgoingTo','hasValue','origin','new','819AwqzCQ','previous','proposedValue','getLatestStableEntryFor','assign','Normal','identifier','writtenValue','getOutgoing','set','2AJdQVc','35870eRIzeo','Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry','mergePreviousOrigin','Past','needToBuildProposedValue','setValue'];_ena=function(){return S;};return _ena();}(function(a,b){function o(a,b){return _enb(b- -0x344,a);}const c=a();while(!![]){try{const d=-parseInt(o(-0x224,-0x20f))/0x1*(-parseInt(o(-0x217,-0x218))/0x2)+parseInt(o(-0x208,-0x200))/0x3*(parseInt(o(-0x241,-0x233))/0x4)+-parseInt(o(-0x21a,-0x205))/0x5*(-parseInt(o(-0x215,-0x22d))/0x6)+parseInt(o(-0x1e8,-0x206))/0x7+parseInt(o(-0x22a,-0x235))/0x8+-parseInt(o(-0x232,-0x222))/0x9*(-parseInt(o(-0x22a,-0x217))/0xa)+-parseInt(o(-0x257,-0x23c))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb489c));import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){function p(a,b){return _enb(a- -0x7c,b);}a[a[p(0xab,0xbe)]=0x1]=p(0xab,0x9a);a[a[p(0xb4,0xcf)]=0x2]='Past';}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;function _enr(a,b){return _enb(b-0x218,a);}class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x349,0x367)]=void 0x0;this[q(0x35a,0x354)]=void 0x0;this[q(0x345,0x335)]=void 0x0;this[q(0x32f,0x328)]=![];function q(a,b){return _enb(a-0x221,b);}this[q(0x35c,0x366)]=void 0x0;this[q(0x35b,0x360)]=![];this[q(0x34a,0x350)]=void 0x0;this[q(0x344,0x34e)]=void 0x0;this[q(0x341,0x323)]=void 0x0;this[q(0x358,0x33c)]=MIN_SMI;this['needToBuildProposedValue']=![];this[q(0x32b,0x310)]=0x0;this[q(0x355,0x363)]=NOT_VISITED;this['visitEpoch']=0x0;this['promise']=void 0x0;this[q(0x362,0x35a)]=void 0x0;}static[_enr(0x357,0x339)](c){const d=new this();c&&Object[s(0x3d0,0x3d2)](d,c);function s(a,b){return _enr(b,a-0x92);}return d;}get['level'](){function t(a,b){return _enr(b,a- -0x6);}return this[t(0x33a,0x326)][t(0x34e,0x352)];}get[_enr(0x33a,0x331)](){function u(a,b){return _enr(b,a- -0x2a7);}return this[u(0x99,0x99)][u(0x8a,0x82)];}get[_enr(0x33b,0x323)](){function v(a,b){return _enr(a,b- -0x4a8);}return this['identifier'][v(-0x16c,-0x185)]||this[v(-0x14e,-0x168)];}[_enr(0x33a,0x34b)](){this['edgesFlow']=MAX_SMI;}[_enr(0x352,0x358)](){function w(a,b){return _enr(a,b- -0x4f2);}this[w(-0x179,-0x198)]();}[_enr(0x33e,0x355)](){function x(a,b){return _enr(b,a- -0x1d5);}return Boolean(this[x(0x163,0x179)]&&this[x(0x163,0x145)]!==this);}[_enr(0x32d,0x31f)](c){this['visitEpoch']=c;this[y(0x38f,0x376)]=NOT_VISITED;if(this[y(0x34e,0x34c)]<0x0)this[y(0x367,0x34c)]=0x0;this[y(0x396,0x37c)]=![];this['cleanupCalculation']();function y(a,b){return _enr(a,b-0x2a);}this[y(0x335,0x34f)]();this['promise']=void 0x0;if(this['origin']&&this[y(0x35e,0x362)]===this){this['proposedArguments']=void 0x0;if(this[y(0x36b,0x37b)]!==void 0x0){this['proposedValue']=this['value'];}this['value']=void 0x0;}else{this[y(0x37a,0x362)]=void 0x0;this[y(0x394,0x37b)]=void 0x0;}if(this[y(0x37a,0x36a)][y(0x37a,0x378)]&&this['proposedValue']!==TombStone){this[y(0x35f,0x373)]=!![];this[y(0x37d,0x366)]=void 0x0;}}[_enr(0x320,0x324)](c){this[z(0x40f,0x407)]=c[z(0x408,0x407)];this[z(0x404,0x3f2)]=c['proposedValue'];this[z(0x41c,0x409)]=c[z(0x405,0x409)];function z(a,b){return _enr(a,b-0xb6);}this['usedProposedOrPrevious']=c[z(0x40a,0x408)];}[_enr(0x33c,0x32c)](){function A(a,b){return _enr(b,a- -0x41f);}this[A(-0xce,-0xc5)]=void 0x0;this[A(-0xe3,-0xca)]=void 0x0;this[A(-0xcc,-0xe9)]=void 0x0;this['writtenValue']=void 0x0;}[_enr(0x357,0x347)](c){const d=this[B(0x420,0x43c)];if(d!==this[B(0x423,0x429)])throw new Error('Invalid\x20state');function B(a,b){return _enr(b,a-0xe8);}this[B(0x40c,0x425)](d);const e=this[B(0x42a,0x412)]();for(const [f,g]of d[B(0x42a,0x42a)]()){const h=e[B(0x41a,0x41e)](f);if(!h){const i=c['get'](f);if(!i||i[B(0x437,0x434)]===g[B(0x437,0x424)])e[B(0x42b,0x437)](f,i||g);}}if(d[B(0x441,0x445)]!==void 0x0){const j=this['getOutgoingPast']();for(const [k,l]of d[B(0x415,0x41f)]()){const m=j[B(0x41a,0x430)](k);if(!m){const n=c[B(0x41a,0x426)](k);if(!n||n[B(0x437,0x451)]===l[B(0x437,0x44e)])j['set'](k,n||l);}}}this[B(0x420,0x439)]=this;d[B(0x414,0x42f)]();d[B(0x413,0x406)]();}['setOrigin'](c){this[C(0x349,0x354)]=c;function C(a,b){return _enr(a,b-0x1c);}this[C(0x34d,0x36b)]=c[C(0x388,0x36b)];}[_enr(0x353,0x334)](){if(this[D(0x3da,0x3e2)])return this['origin'];function D(a,b){return _enr(b,a-0xa2);}return this[D(0x3ca,0x3de)]();}[_enr(0x30a,0x328)](){function E(a,b){return _enr(a,b- -0x20);}this[E(0x326,0x32f)]=ORIGIN_ID++;return this['origin']=this;}[_enr(0x35e,0x342)](){return this;}[_enr(0x33e,0x32d)](){if(this[F(0x386,0x38f)]!==void 0x0)return this[F(0x386,0x372)];function F(a,b){return _enr(b,a-0x2d);}return this[F(0x386,0x368)]=new Map();}[_enr(0x34b,0x336)](c,d){function G(a,b){return _enr(a,b- -0x308);}const e=d===EdgeType[G(0x56,0x37)]?this:this['getOutgoingPast']();e[G(0x51,0x3b)](c[G(0x18,0x38)],c);}[_enr(0x335,0x325)](){this[H(0x177,0x185)]();function H(a,b){return _enr(b,a- -0x1b4);}if(this['$outgoingPast']!==void 0x0)this[H(0x1a5,0x19d)]['clear']();}[_enr(0x377,0x35d)](){function I(a,b){return _enr(b,a- -0x5b8);}const c=this[I(-0x280,-0x283)];return c===this?this[I(-0x267,-0x249)]:c?c['getValue']():void 0x0;}[_enr(0x34f,0x34a)](c){function J(a,b){return _enr(a,b-0x135);}if(this[J(0x47b,0x46d)]&&this[J(0x460,0x46d)]!==this)throw new Error(J(0x469,0x47b));this['getOrigin']()[J(0x47a,0x486)]=c;}[_enr(0x348,0x337)](){function K(a,b){return _enr(a,b- -0x5ed);}return this[K(-0x298,-0x290)]()!==void 0x0;}[_enr(0x322,0x333)](){function L(a,b){return _enr(a,b- -0x3f1);}if(this['isShadow']())return![];return this[L(-0xc3,-0xbc)]();}[_enr(0x31f,0x335)](){function M(a,b){return _enr(a,b- -0x5ad);}return this[M(-0x271,-0x271)]!==void 0x0;}[_enr(0x372,0x35b)](c){if(this[N(0x408,0x412)]){this[N(0x413,0x405)]=this['identifier']['buildProposedValue']['call'](this['identifier']['context']||this[N(0x3fa,0x409)],this['identifier'],this,c);this[N(0x40e,0x412)]=![];}function N(a,b){return _enr(a,b-0xc9);}return this[N(0x422,0x405)];}['outgoingInTheFutureCb'](c,d){function O(a,b){return _enr(b,a- -0xa6);}let e=this;while(e){for(const f of e[O(0x29c,0x2b1)]()[O(0x2aa,0x28e)]()){if(f['originId']===c['getLatestEntryFor'](f[O(0x29a,0x289)])[O(0x2a9,0x2a2)])d(f);}if(e[O(0x2af,0x298)]())e=e[O(0x295,0x28f)];else e=null;}}[_enr(0x336,0x32a)](c,d){function P(a,b){return _enr(b,a-0x25);}let e=this;while(e){for(const f of e[P(0x367,0x354)]()[P(0x375,0x36f)]()){const g=c[P(0x355,0x342)](f[P(0x365,0x373)]);if(g&&f[P(0x374,0x391)]===g[P(0x374,0x393)])d(f);}if(e['$outgoingPast']!==void 0x0){for(const h of e[P(0x37e,0x37c)][P(0x375,0x382)]()){const i=c['getLatestEntryFor'](h['identifier']);if(i&&h[P(0x374,0x35d)]===i['originId'])d(h);}}if(e[P(0x37a,0x37c)]())e=e[P(0x360,0x37c)];else e=null;}}[_enr(0x32e,0x321)](c,d){let e=this;function Q(a,b){return _enr(b,a- -0x305);}while(e){for(const f of e[Q(0x3d,0x57)]()[Q(0x4b,0x66)]()){const g=c[Q(0x38,0x42)](f[Q(0x3b,0x5b)]);if(g&&f[Q(0x4a,0x46)]===g['originId'])d(f);}if(e[Q(0x54,0x3b)]!==void 0x0){for(const h of e[Q(0x54,0x55)][Q(0x4b,0x51)]()){const i=c['getLatestStableEntryFor'](h[Q(0x3b,0x4d)]);if(i&&h['originId']===i[Q(0x4a,0x55)])d(h);}}if(e[Q(0x50,0x6f)]())e=e[Q(0x36,0x1c)];else e=null;}}['outgoingInTheFutureTransactionCb'](c,d){function R(a,b){return _enr(b,a- -0x1ec);}let e=this;while(e){for(const f of e[R(0x156,0x140)]()['values']()){const g=c[R(0x144,0x125)](f['identifier']);if(g&&f[R(0x163,0x15c)]===g['originId'])d(f);}if(e['isShadow']())e=e[R(0x14f,0x150)];else e=null;}}}){}const TombStone=Symbol(_enr(0x327,0x32e));export{EdgeType,Quark,TombStone};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(a,b){const c=a();function h(a,b){return _enb(b-0x12e,a);}while(!![]){try{const d=parseInt(h(0x28e,0x283))/0x1*(-parseInt(h(0x25e,0x261))/0x2)+parseInt(h(0x288,0x286))/0x3*(-parseInt(h(0x25f,0x263))/0x4)+-parseInt(h(0x28e,0x278))/0x5+-parseInt(h(0x269,0x275))/0x6+parseInt(h(0x2ae,0x294))/0x7+parseInt(h(0x293,0x274))/0x8+-parseInt(h(0x267,0x27c))/0x9*(-parseInt(h(0x2a3,0x29d))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x35515));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'../vendor/later/later.js';import{AbstractPartOfProjectModelMixin}from'../quark/model/mixin/AbstractPartOfProjectModelMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x133;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalType}from'../scheduling/Types.js';function convertAvailabilityValue(a){if(a){if(typeof a==i(0x4eb,0x4ef)){a=a[i(0x502,0x4e9)](',');a[i(0x50d,0x52b)](b=>{const [c,d]=b['split']('-');return{'startDate':c,'endDate':d};});}}else{a=null;}function i(a,b){return _enb(a-0x3a3,b);}return a;}const JSON_START=/^[\s\n]*[[{]/;class CalendarIntervalMixin extends Mixin([AbstractPartOfProjectModelMixin],a=>{function j(a,b){return _enb(b-0x92,a);}class b extends a{static get[j(0x1e1,0x1d1)](){function k(a,b){return j(a,b- -0x396);}return[k(-0x1bb,-0x1ab),{'name':k(-0x18c,-0x19f),'type':'date'},{'name':k(-0x1ad,-0x1ae),'type':k(-0x1af,-0x196)},k(-0x1d0,-0x1cb),k(-0x187,-0x1a0),k(-0x1be,-0x1c8),k(-0x1bf,-0x1ad),k(-0x1d0,-0x1b1),{'name':k(-0x1d5,-0x1c0),'type':'boolean','defaultValue':![]},{'name':k(-0x1ad,-0x19b),'type':k(-0x19e,-0x1a3)},{'name':k(-0x1dd,-0x1c1)},{'name':k(-0x1b9,-0x1c3),'convert':convertAvailabilityValue},{'name':'compositeCode'},k(-0x1b1,-0x1b4)];}[j(0x1dd,0x1e3)](){function l(a,b){return j(b,a- -0x18);}return this[l(0x1d6,0x1e5)][0x0]['calendar'];}get['compositeIntervalCode'](){function m(a,b){return j(a,b-0x33e);}return this[m(0x539,0x532)]||(this[m(0x533,0x535)]?.[m(0x51e,0x51f)]()||'')+'-'+(this[m(0x53a,0x526)]?.[m(0x533,0x51f)]()||'')+'-'+(this[m(0x504,0x513)]||'');}[j(0x1e3,0x1ec)](){this[n(0x17,0x31)]=null;function n(a,b){return j(a,b- -0x1d1);}this['getCalendar']()[n(-0xd,0xa)]();}['getPrioritySortValue'](){function o(a,b){return j(b,a- -0x3a5);}if(this['prioritySortValue']!=null)return this[o(-0x1a3,-0x1bf)];let c=0x2710;let d=this[o(-0x1aa,-0x1c6)];if(d==null){switch(this[o(-0x1d0,-0x1b4)]){case CalendarIntervalType[o(-0x1b5,-0x1c1)]:c+=this[o(-0x1c2,-0x1ca)]()['getDepth']()*0x64;d=this[o(-0x1db,-0x1e0)]()?0x1e:0x14;break;case CalendarIntervalType[o(-0x1b0,-0x1ad)]:c+=this[o(-0x1c2,-0x1b8)]()[o(-0x1ca,-0x1ab)]()*0x2710;d=0x28;break;default:c+=this[o(-0x1c2,-0x1e0)]()['getDepth']()*0x64;if(this[o(-0x1bf,-0x1d7)]()){d=0x14;if(this[o(-0x1db,-0x1cf)]()){d+=0xa;}}else{d=0x28;}}d+=this[o(-0x1dc,-0x1df)];}return this[o(-0x1a3,-0x1c1)]=c+d;}[j(0x1f7,0x1e6)](){function p(a,b){return j(a,b- -0x222);}return Boolean(this[p(-0x55,-0x44)]()||this['type']===CalendarIntervalType[p(-0x2f,-0x2d)]&&this[p(-0x4d,-0x4e)]());}[j(0x1b7,0x1d0)](){function q(a,b){return j(a,b-0x335);}return Boolean(this[q(0x549,0x52c)]&&this[q(0x509,0x51d)]&&!this[q(0x514,0x51b)]());}[j(0x1ab,0x1ca)](){function r(a,b){return j(b,a- -0x13b);}return Boolean(this[r(0xbc,0xcc)]||this[r(0xad,0x9c)]);}[j(0x1e3,0x1dd)](c){let d;if(c&&c!==Object(c)){if(c['match'](JSON_START)){try{d=JSON[s(0xbf,0xa0)](c);}catch(f){}}if(!d){d=_enc[s(0xbf,0xb0)]['text'](c['trim']());if(d['error']>=0x0){throw new Error('Parsing\x20the\x20\x27later\x27\x20schedule\x20has\x20failed:\x20\x22'+c+'\x22.\x20Please\x20consult\x20the\x20\x27later\x27\x20documentation\x20for\x20recognizable\x20formats:\x20https://bunkat.github.io/later/parsers.html');}}}else{d=c;}function s(a,b){return j(b,a- -0x113);}return d;}[j(0x1cd,0x1de)](){if(!this[t(0x44d,0x45c)])return null;if(this[t(0x471,0x47c)])return this['startDateSchedule'];function t(a,b){return j(b,a-0x282);}const c=this[t(0x45f,0x470)](this[t(0x44d,0x46a)]);if(c?.[t(0x474,0x467)]?.[0x0]){const d=c['schedules'][0x0];if(!this['startDate']&&d[t(0x448,0x45b)]){this[t(0x479,0x490)]=new Date(d[t(0x448,0x45d)][0x0]);delete d[t(0x448,0x429)];}if(!this[t(0x46a,0x46a)]&&d[t(0x481,0x491)]){this[t(0x46a,0x475)]=new Date(d[t(0x481,0x4a0)][0x0]);delete d[t(0x481,0x485)];}}return this['startDateSchedule']=_enc[t(0x461,0x47f)](c);}[j(0x203,0x1ed)](){function u(a,b){return j(b,a- -0x2e1);}if(this['endDateSchedule'])return this['endDateSchedule'];if(!this[u(-0xeb,-0x108)]||this[u(-0xeb,-0xef)]===u(-0xfd,-0x115))return null;const c=this[u(-0x104,-0xec)](this[u(-0xeb,-0xe3)]);if(c?.[u(-0xef,-0x10d)]?.[0x0]){const d=c[u(-0xef,-0xf8)][0x0];if(this[u(-0xea,-0xf9)]?.[u(-0x100,-0x107)]()&&d['fd_a']?.[0x0]&&this[u(-0xea,-0xe0)]?.[u(-0x100,-0xe4)]()===d[u(-0x11b,-0x128)]?.[0x0]){delete d['fd_a'];}if(this[u(-0xf9,-0xfd)]?.[u(-0x100,-0x10c)]()&&d[u(-0xe2,-0xd3)]?.[0x0]&&this['endDate']?.['getTime']()===d[u(-0xe2,-0xf8)]?.[0x0]){delete d[u(-0xe2,-0xde)];}}return this[u(-0x112,-0x100)]=_enc['schedule'](c);}[j(0x1f1,0x1d4)](){function v(a,b){return j(b,a- -0x225);}if(this[v(-0x52,-0x4d)]?.[v(-0x2c,-0x31)]){if(this['availabilityStartSchedule'])return this[v(-0x27,-0x35)];const c='at\x20'+this[v(-0x52,-0x60)]['map'](e=>e[v(-0x2e,-0x17)])[v(-0x4e,-0x6b)]()[v(-0x59,-0x55)](',');const d=this[v(-0x48,-0x43)](c);return this[v(-0x27,-0x44)]=_enc['schedule'](d);}}[j(0x200,0x1fa)](){function w(a,b){return j(b,a- -0x2c0);}if(this[w(-0xed,-0xe0)]?.[w(-0xc7,-0xc0)]){if(this['availabilityEndSchedule'])return this[w(-0xc3,-0xd6)];const c=w(-0xf3,-0xed)+this[w(-0xed,-0xe8)]['map'](e=>e[w(-0xd8,-0xdc)])['sort']()[w(-0xf4,-0xdc)](',');const d=this[w(-0xe3,-0xd5)](c);return this[w(-0xc3,-0xc4)]=_enc[w(-0xe1,-0xeb)](d);}}['afterChange'](c,d,e,f,g){super[x(0xdb,0xee)](c,d,e,f,g);function x(a,b){return j(a,b- -0xda);}if(d?.[x(0xf9,0xf1)]){this[x(0x12d,0x115)]=void 0x0;}if(d?.[x(0x10e,0x11c)]){this['endDateSchedule']=void 0x0;}if(d?.[x(0x104,0xf9)]){this[x(0x113,0x124)]=void 0x0;this[x(0x123,0x123)]=void 0x0;}}}return b;}){}function _ena(){const y=['2xrGAZo','fd_a','156ySWdpv','afterChange','parentIndex','isOverride','recurrentStartDate','join','at\x20','cls','endDateSchedule','isStatic','fields','parse','availability','getAvailabilityStartSchedule','type','isWorking','sort','2293936Itbttr','1522734MhMtCU','string','getDepth','1624690THJMrP','parseDateSchedule','getStartDateSchedule','schedule','385956fdOwnr','getTime','recurrentDatesTimeZone','getCalendar','EOD','iconCls','isRecurrent','97191cLjVgw','endDate','color','21978kJfZVL','name','resetPriority','getEndDateSchedule','stores','startDateSchedule','Week','split','schedules','number','compositeCode','Exception','recurrentEndDate','startDate','1449945RlVmbk','length','getAvailabilityEndSchedule','priority','map','availabilityEndSchedule','availabilityStartSchedule','fd_b','date','160CyhJZF','prioritySortValue'];_ena=function(){return y;};return _ena();}export{CalendarIntervalMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function q(a,b){return _enb(a- -0x3e7,b);}const c=a();while(!![]){try{const d=parseInt(q(-0x2d7,-0x2db))/0x1*(parseInt(q(-0x2ce,-0x2be))/0x2)+parseInt(q(-0x2b5,-0x2c8))/0x3*(-parseInt(q(-0x2b9,-0x2af))/0x4)+-parseInt(q(-0x2c5,-0x2bf))/0x5*(parseInt(q(-0x298,-0x2bd))/0x6)+parseInt(q(-0x294,-0x271))/0x7*(-parseInt(q(-0x2b4,-0x2d5))/0x8)+-parseInt(q(-0x2ba,-0x2ae))/0x9+-parseInt(q(-0x295,-0x28c))/0xa*(-parseInt(q(-0x293,-0x280))/0xb)+parseInt(q(-0x2c4,-0x2c1))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xbd1ad));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 r(a,b){return _enb(b-0x59,a);}if(typeof Reflect===r(0x174,0x189)&&typeof Reflect[r(0x18e,0x162)]===r(0x17f,0x157))h=Reflect[r(0x181,0x162)](a,b,e,f);else for(var k=a['length']-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;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['15264513LWhKEB','buildProposedDispatcher','endOffset','startDate','calculateStartDate','calculateMinPercent','function','startOffset','MasterStartDateVar','calculateEndOffsetByStartOffsetAndDuration','formulaId','skipNonWorkingTimeWhenSchedulingManually','map','assign','length','calculateEndOffset','percentDone','decorate','MasterTotalDurationVar','convertDurationGen','writeStartDate','calculateDuration','calculateStartOffsetByEndOffsetAndDuration','event','198323TolEFw','collectInfo','push','resolution','calculateMaxPercent','startPercentDone','calculateManuallyScheduled','calculateEndOffsetByMasterTotalDurationAndStartOffset','previousSegment','8oYKQBo','new','getStm','afterChange','prototype','stm','addPreviousValueFlag','min','addProposedValueFlag','60qLQlsQ','29619648PCgAwF','shouldRecordFieldChange','duration','durationUnit','calculateEndDate','MasterEndDateVar','baseRevision','equality','segments','isEventSegment','12588795NUvOsv','9092UukwdK','calculateEndDateByMasterStartAndEndOffset','object','modified','573MjcSmH','8fOwSDI','calculateProjectedXDateWithDuration','write','isRestoring','storeFieldChange','skipNonWorkingTime','applyingSyncResponse','StartOffsetVar','calculateDurationByOffsets','nextSegment','get','dispatcher','calculatePercentDone','calculateProjectedDuration','calculateStartDateByMasterStartAndStartOffset','prepareDispatcher','call','cycleResolutionContext','isManuallyScheduled','mix','meta','endPercentDone','toJSON','getProject','MasterDurationVar','calculateStartOffset','hasIdentifier','Millisecond','260034JkUicb','endDate','calculateEndOffsetByMasterDurationAndStartOffset','10BUbpkT','10652180rKGGTI'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol(_ens(0x270,0x24a));const MasterEndDateVar=Symbol(_ens(0x27e,0x272));const MasterDurationVar=Symbol(_ens(0x296,0x295));const MasterTotalDurationVar=Symbol(_ens(0x26f,0x254));const StartOffsetVar=Symbol(_ens(0x27e,0x284));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xf9;let f=c[d];return f;};return _enb(a,b);}const EndOffsetVar=Symbol('EndOffsetVar');const durationByOffsetsFormula=Formula[_ens(0x267,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x277,0x264)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x27c,0x264)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x238,0x264)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula[_ens(0x258,0x264)]({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x26c,0x264)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x282,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x240,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x292,0x264)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});function _ens(a,b){return _enb(b-0x14a,a);}const durationByMasterEndDateFormula=Formula[_ens(0x277,0x264)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x24a,0x264)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x28c,0x264)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier[_ens(0x29d,0x290)](CalculatedValueGen){[_ens(0x29b,0x274)](a,b){function t(a,b){return _ens(b,a- -0x33);}const c=a['resolution'];const d=b[t(0x22a,0x234)];return c[t(0x254,0x22b)](StartDateVar)===d['get'](StartDateVar)&&c[t(0x254,0x25f)](EndDateVar)===d[t(0x254,0x27f)](EndDateVar)&&c[t(0x254,0x243)](DurationVar)===d['get'](DurationVar)&&c[t(0x254,0x273)](MasterStartDateVar)===d[t(0x254,0x22c)](MasterStartDateVar)&&c[t(0x254,0x231)](MasterEndDateVar)===d[t(0x254,0x239)](MasterEndDateVar)&&c[t(0x254,0x280)](MasterDurationVar)===d['get'](MasterDurationVar)&&c[t(0x254,0x240)](MasterTotalDurationVar)===d[t(0x254,0x22c)](MasterTotalDurationVar)&&c[t(0x254,0x270)](StartOffsetVar)===d[t(0x254,0x274)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x254,0x255)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0xec,0xf2)](){return!![];}get['stm'](){function v(a,b){return u(a,b-0x420);}return this[v(0x4ec,0x4f5)]?.[v(0x506,0x504)];}set['stm'](c){}[u(0xe8,0xd2)](c,d,e,f,g=!![]){function w(a,b){return u(b,a-0x290);}const h=this[w(0x365,0x364)];const i=this['getProject']();if(h&&!this[w(0x36e,0x372)]&&d[w(0x37f,0x374)][w(0x3a3,0x37a)](c)&&!(i&&i[w(0x371,0x343)]()[w(0x38c,0x3b5)])){d[w(0x38b,0x3aa)](h['$'][w(0x351,0x37d)],f,g);}else{c['constructor'][w(0x373,0x358)]['write'][w(0x399,0x37e)](this,c,d,e,f,g);if(g&&this[w(0x392,0x3a9)]){const j=this['endOffset']-this['nextSegment']['startOffset'];if(j>0x0){let k=this;while(k=k[w(0x392,0x366)]){d['write'](k['$'][w(0x355,0x35f)],k['startOffset']+j);d[w(0x38b,0x364)](k['$']['endOffset'],k[w(0x350,0x36f)]+j);}}}}}['shouldRecordFieldChange'](c,d,e){function x(a,b){return u(a,b- -0x32d);}return c===x(-0x296,-0x268)||c===x(-0x284,-0x26d)||super[x(-0x248,-0x243)](c,d,e);}*[u(0x10d,0x112)](){function y(a,b){return u(b,a-0x245);}const c=yield this['$'][y(0x349,0x31b)];const d=c['resolution'][y(0x348,0x33e)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula['formulaId']){e=yield*this[y(0x319,0x327)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x30d,0x31d)]){const f=yield ProposedOrPreviousValueOf(this[y(0x31a,0x33a)]['$'][y(0x306,0x330)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x306,0x2fb)]);e=yield*this[y(0x31a,0x2f3)][y(0x34b,0x330)](f,g,TimeUnit[y(0x359,0x337)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){const c=yield this['$'][z(0x64,0x46)];const d=c[z(0x33,0x1b)][z(0x67,0x45)](EndOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function z(a,b){return u(a,b- -0xbe);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(-0x6,0xa)]){e=yield*this[z(0x7,0x9)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x8,0xa)]){const f=yield ProposedOrPreviousValueOf(this[z(-0x4,0x17)]['$'][z(-0x11,0x3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x5e,0x58)]);e=yield*this[z(0x43,0x17)]['calculateProjectedDuration'](f,g,TimeUnit[z(0x29,0x56)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(-0x16,0xa)]){e=yield*this[z(0x6f,0x59)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(-0x8,0xa)]){e=yield*this['calculateEndOffsetByMasterTotalDurationAndStartOffset']();}return e;}*['calculateStartDate'](){function A(a,b){return u(b,a- -0x38e);}const c=yield this['$'][A(-0x28a,-0x277)];const d=c[A(-0x2b5,-0x28d)][A(-0x28b,-0x2ae)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x2c6,-0x2f4)]){e=yield*this[A(-0x287,-0x287)]();}else{e=yield*super[A(-0x2cc,-0x2aa)]();}return e;}*['calculateEndDate'](){function B(a,b){return u(b,a-0xfc);}const c=yield this['$'][B(0x200,0x216)];const d=c[B(0x1d5,0x1e1)][B(0x1ff,0x216)](EndDateVar);if(!this[B(0x1d1,0x1cb)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula['formulaId']){e=yield*this[B(0x1f1,0x212)]();}else{e=yield*super[B(0x1e9,0x1f7)]();}return e;}*[u(0xd6,0xd3)](){const c=yield this['$'][C(0x48f,0x49f)];const d=c[C(0x464,0x482)][C(0x48e,0x497)](DurationVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(0x453,0x43f)]){e=yield*this['calculateDurationByOffsets']();}else if(d===durationByMasterEndDateFormula[C(0x453,0x478)]){e=yield*this[C(0x48c,0x471)]();}else{e=yield*super[C(0x45e,0x435)]();}function C(a,b){return u(b,a-0x38b);}return e;}[u(0x97,0xbf)](c,d,e){const f=super['buildProposedDispatcher'](c,d,e);f[D(-0xfc,-0xf7)](MasterStartDateVar);f[D(-0x11f,-0xf7)](StartOffsetVar);function D(a,b){return u(a,b- -0x1dc);}f['addPreviousValueFlag'](EndOffsetVar);return f;}*[u(0xea,0x108)](c){const d=yield*super[E(0x367,0x37c)](c);if(!this[E(0x334,0x34e)]){return d;}if(c(PreviousValueOf(this[E(0x334,0x359)]['$'][E(0x320,0x305)]))!=null)d['addPreviousValueFlag'](MasterStartDateVar);function E(a,b){return u(b,a-0x25f);}if(c(HasProposedValue(this[E(0x334,0x341)]['$'][E(0x320,0x2f9)])))d['addProposedValueFlag'](MasterStartDateVar);if(!c(HasProposedValue(this[E(0x334,0x347)]['$'][E(0x350,0x36e)]))){d[E(0x336,0x30f)](c,this[E(0x334,0x352)]['$'][E(0x34a,0x33e)],MasterDurationVar);if(c(HasProposedValue(this['event']['$'][E(0x375,0x353)]))){const f=c(ProposedArgumentsOf(this['event']['$'][E(0x375,0x34b)]));if(!f?.[0x0]){d[E(0x346,0x355)](MasterEndDateVar);}}const e=c(this[E(0x334,0x355)]['$']['dispatcher']);if(e[E(0x338,0x332)][E(0x362,0x353)](StartDateVar)===CalculateProposed&&e[E(0x338,0x31d)]['get'](EndDateVar)===CalculateProposed){d[E(0x346,0x31f)](MasterTotalDurationVar);}}d[E(0x336,0x34a)](c,this['$'][E(0x324,0x321)],StartOffsetVar);d[E(0x336,0x32a)](c,this['$'][E(0x31f,0x30f)],EndOffsetVar);return d;}[u(0x114,0x10a)](c){return segmentCycleResolution;}*[u(0x13b,0x117)](){const c=yield ProposedOrPreviousValueOf(this[F(0x33c,0x31f)]['$'][F(0x33d,0x335)]);const d=yield this['event']['$'][F(0x32d,0x336)];const e=yield this['$']['startOffset'];const f=this[F(0x33b,0x34c)];let g;let h=yield*this[F(0x342,0x31b)](c,d,TimeUnit[F(0x37c,0x35e)]);const j=[];function F(a,b){return u(a,b-0x24a);}let k=this;while(k=k[F(0x2fc,0x328)]){j[F(0x343,0x322)](k);}for(let l=j[F(0x32d,0x316)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(0x32f,0x30f)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(0x336,0x30a)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(0x33a,0x330)](h,(yield ProposedOrPreviousValueOf(this['$']['endOffset']))-e);}}else{g=e;}return g;}*[u(0xf4,0xdd)](){function G(a,b){return u(a,b- -0x31e);}const c=yield ProposedOrPreviousValueOf(this[G(-0x272,-0x249)]['$'][G(-0x24e,-0x25d)]);const d=yield ProposedOrPreviousValueOf(this['event']['$'][G(-0x216,-0x208)]);const e=yield*this['event'][G(-0x236,-0x218)](c,d,TimeUnit[G(-0x233,-0x20a)],{'ignoreSegments':!![]});const f=yield ProposedOrPreviousValueOf(this['$'][G(-0x257,-0x259)]);let g=yield ProposedOrPreviousValueOf(this['$']['endOffset']);let h=this[G(-0x1ff,-0x21c)];if(f<=e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(-0x27a,-0x259)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(-0x233,-0x259)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$'][H(0x402,0x405)];function H(a,b){return u(a,b-0x31a);}const d=yield this['$']['durationUnit'];const e=yield this['$']['endOffset'];return e-(yield*this['event'][H(0x401,0x3eb)](c,d,TimeUnit[H(0x420,0x42e)]));}*[u(0xa4,0xc7)](){const c=yield this['$'][I(-0x76,-0x4e)];function I(a,b){return u(a,b- -0x139);}const d=yield this['$'][I(-0x41,-0x4d)];const e=yield this['$'][I(-0x95,-0x74)];return e+(yield*this[I(-0x78,-0x64)][I(-0x40,-0x68)](c,d,TimeUnit[I(-0x37,-0x25)]));}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0xa0);}const c=yield this['event']['$'][J(0xa,0x21)];const d=yield this['$'][J(0x9,0x20)];const e=yield*this[J(0x24,0x35)]['calculateProjectedXDateWithDuration'](c,!![],d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this[J(0x56,0x70)]()[J(0x2e,0x29)]?e:yield*this[J(0x5e,0x35)][J(0x54,0x5e)](e,![]);}*[u(0x10b,0x107)](){const c=yield this[K(0x174,0x188)]['$'][K(0x160,0x16a)];const d=yield this['$'][K(0x164,0x157)];function K(a,b){return u(b,a-0x9f);}const e=yield*this[K(0x174,0x191)][K(0x199,0x185)](c,!![],d,TimeUnit[K(0x1b3,0x1b3)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()[K(0x168,0x173)]?e:yield*this[K(0x174,0x150)][K(0x19d,0x1a3)](e);}*['calculateDurationByOffsets'](){const c=yield this['$'][L(0x16e,0x198)];const d=yield this['$']['endOffset'];function L(a,b){return u(a,b-0xd3);}const e=yield this['$'][L(0x1cb,0x1bf)];return yield*this['convertDurationGen'](d-c,TimeUnit[L(0x1d2,0x1e7)],e);}*[u(0x10c,0x105)](){let c=0x0;if(!this[M(0x2ff,0x2f3)]){return yield ProposedOrPrevious;}const d=yield this[M(0x30d,0x2f3)]['$'][M(0x303,0x30f)];if(d){const e=yield this['event']['$'][M(0x2ed,0x2ec)];const f=yield this['event']['$'][M(0x2e3,0x309)];const g=yield this[M(0x2d6,0x2f3)]['$'][M(0x334,0x30a)];let h=yield*this[M(0x306,0x2ef)](f,g,TimeUnit[M(0x34c,0x332)]);let i=e*0.01*h;for(const j of d){const k=j[M(0x2b5,0x2e3)];const l=j[M(0x2fb,0x2de)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}function M(a,b){return u(a,b-0x21e);}return c;}*[u(0xd5,0xc3)](){const c=this[N(-0x20a,-0x1ed)];function N(a,b){return u(b,a- -0x2e8);}if(!this['event']){return yield ProposedOrPrevious;}if(c){return yield c['$'][N(-0x1da,-0x1f0)];}return 0x0;}*[u(0xd9,0xda)](){if(!this[O(0xde,0xc2)]){return yield ProposedOrPrevious;}const c=yield this[O(0xde,0xe3)]['$']['duration'];const d=yield this[O(0xde,0xf0)]['$'][O(0xf5,0xc7)];let e=yield*this[O(0xda,0xce)](c,d,TimeUnit[O(0x11d,0x10a)]);function O(a,b){return u(b,a-0x9);}const f=yield this['$'][O(0xce,0xb6)];const g=yield this['$'][O(0xc9,0xd8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x11e,0xfa)](c,d,e,f){function P(a,b){return u(b,a-0x326);}if(!f)f=yield this['$'][P(0x412,0x412)];return yield*this[P(0x3fb,0x3fb)][P(0x420,0x401)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x100,0x106)](c,d,e,...f){function Q(a,b){return u(a,b-0x37);}if(!e)e=yield this['$']['durationUnit'];return yield*this[Q(0x136,0x10c)][Q(0x15c,0x13d)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0xbb,0xdc)](){function R(a,b){return u(a,b- -0x25d);}if(this[R(-0x16e,-0x188)]){return yield*this[R(-0x16d,-0x188)][R(-0x176,-0x152)]();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super[S(-0x11a,-0x123)](c,d,e,f,g);const h=this[S(-0x147,-0x130)];function S(a,b){return u(a,b- -0x205);}if(d&&h){if(!(S(-0xf9,-0x114)in h[S(-0xf2,-0xf8)][S(-0x106,-0x10e)])&&h[S(-0x13d,-0x114)]){const l=h[S(-0x130,-0x114)][S(-0x136,-0x13b)](m=>Object[S(-0x165,-0x13a)](m['toJSON'](),m[S(-0xf2,-0xf8)][S(-0xf2,-0x10e)]));h[S(-0xdd,-0x108)](S(-0x136,-0x114),l);}const i=h[S(-0xdf,-0xf5)]();const j=i?.[S(-0xfd,-0x106)];if(i)i['applyingSyncResponse']=!![];const k=h[S(-0x12d,-0x114)]?.['map'](m=>m[S(-0x10f,-0xf6)]());h[S(-0x12e,-0x123)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(-0x125,-0x106)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0xdc,0xe3)],u(0x130,0x104),void 0x0);__decorate([model_field({'persist':![]})],b['prototype'],u(0xba,0xc5),void 0x0);__decorate([model_field({'persist':![]})],b[u(0xc8,0xe3)],u(0xcb,0xc0),void 0x0);__decorate([field()],b[u(0x104,0xe3)],'percentDone',void 0x0);__decorate([field()],b['prototype'],u(0xba,0xdb),void 0x0);__decorate([field()],b[u(0x10a,0xe3)],u(0x123,0x10e),void 0x0);function u(a,b){return _ens(a,b- -0x184);}__decorate([write('startDate')],b[u(0xfd,0xe3)],u(0xa4,0xd2),null);__decorate([calculate(u(0xa5,0xc5))],b['prototype'],u(0x11f,0x112),null);__decorate([calculate(u(0xd4,0xc0))],b['prototype'],u(0xf7,0xcd),null);__decorate([calculate(u(0xb3,0xce))],b['prototype'],u(0xff,0x105),null);__decorate([calculate('startPercentDone')],b[u(0xc6,0xe3)],'calculateMinPercent',null);__decorate([calculate('endPercentDone')],b[u(0xde,0xe3)],u(0xdd,0xda),null);__decorate([calculate('manuallyScheduled')],b[u(0xcc,0xe3)],'calculateManuallyScheduled',null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
1
|
+
(function(a,b){function q(a,b){return _enb(b-0x33,a);}const c=a();while(!![]){try{const d=parseInt(q(0x23a,0x23d))/0x1+-parseInt(q(0x235,0x234))/0x2*(-parseInt(q(0x1ed,0x20e))/0x3)+-parseInt(q(0x278,0x253))/0x4*(-parseInt(q(0x251,0x256))/0x5)+parseInt(q(0x1fa,0x21c))/0x6+-parseInt(q(0x212,0x200))/0x7+parseInt(q(0x223,0x24c))/0x8*(parseInt(q(0x253,0x22e))/0x9)+-parseInt(q(0x228,0x23a))/0xa*(parseInt(q(0x22b,0x23c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3fd8e));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===r(0x3f,0x17)&&typeof Reflect[r(-0x1c,0x4)]===r(-0x9,-0x1f))h=Reflect[r(-0x1,0x4)](a,b,e,f);else for(var k=a[r(0x4f,0x25)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function r(a,b){return _enb(b- -0x1fc,a);}return g>0x3&&h&&Object[r(-0x24,-0x18)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ens(a,b){return _enb(b-0x3b7,a);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['35giqZhJ','StartOffsetVar','calculateStartDate','isEventSegment','equality','1484924JstxcQ','map','shouldRecordFieldChange','Millisecond','prepareDispatcher','calculateDurationByOffsets','calculateManuallyScheduled','calculateProjectedXDateWithDuration','calculateEndOffsetByMasterDurationAndStartOffset','afterChange','MasterDurationVar','calculateMaxPercent','buildProposedDispatcher','prototype','74388XImHKG','calculateEndOffsetByStartOffsetAndDuration','function','collectInfo','toJSON','percentDone','duration','calculateEndOffsetByMasterTotalDurationAndStartOffset','startDate','defineProperty','getProject','addProposedValueFlag','new','durationUnit','124704Szhcva','constructor','skipNonWorkingTimeWhenSchedulingManually','manuallyScheduled','convertDurationGen','calculateStartDateByMasterStartAndStartOffset','assign','calculatePercentDone','previousSegment','EndOffsetVar','calculateProjectedDuration','endOffset','write','MasterTotalDurationVar','dispatcher','addPreviousValueFlag','resolution','calculateEndDate','846657qqgFDg','baseRevision','startOffset','segments','calculateDuration','decorate','22KmzwFv','nextSegment','MasterEndDateVar','endDate','isManuallyScheduled','startPercentDone','2011190Mqabxf','storeFieldChange','22TqyldN','233258gCWlam','push','getStm','meta','call','formulaId','event','calculateEndOffset','durationInMS','object','min','cycleResolutionContext','applyingSyncResponse','stm','modified','8rbLkdt','isRestoring','calculateStartOffset','calculateEndDateByMasterStartAndEndOffset','calculateStartOffsetByEndOffsetAndDuration','get','writeStartDate','145724lzGFOz','length','calculateMinPercent'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol('MasterStartDateVar');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ca;let f=c[d];return f;};return _enb(a,b);}const MasterEndDateVar=Symbol(_ens(0x59e,0x5ba));const MasterDurationVar=Symbol(_ens(0x5a1,0x58e));const MasterTotalDurationVar=Symbol(_ens(0x5bc,0x5ad));const StartOffsetVar=Symbol(_ens(0x5e7,0x5db));const EndOffsetVar=Symbol(_ens(0x588,0x5a9));const durationByOffsetsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x573,0x59e)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x5ca,0x59e)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x5b5,0x59e)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x574,0x59e)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x570,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x5c8,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x5b6,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const durationByMasterEndDateFormula=Formula[_ens(0x59b,0x59e)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x59c,0x59e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x58d,0x59e)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier['mix'](CalculatedValueGen){[_ens(0x5a2,0x583)](a,b){const c=a[t(0x224,0x226)];const d=b[t(0x224,0x22e)];function t(a,b){return _ens(b,a- -0x38c);}return c['get'](StartDateVar)===d[t(0x249,0x25b)](StartDateVar)&&c[t(0x249,0x227)](EndDateVar)===d[t(0x249,0x26a)](EndDateVar)&&c[t(0x249,0x256)](DurationVar)===d['get'](DurationVar)&&c[t(0x249,0x250)](MasterStartDateVar)===d[t(0x249,0x25e)](MasterStartDateVar)&&c[t(0x249,0x26d)](MasterEndDateVar)===d['get'](MasterEndDateVar)&&c[t(0x249,0x26f)](MasterDurationVar)===d[t(0x249,0x25c)](MasterDurationVar)&&c[t(0x249,0x26f)](MasterTotalDurationVar)===d['get'](MasterTotalDurationVar)&&c[t(0x249,0x232)](StartOffsetVar)===d[t(0x249,0x21b)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x249,0x21e)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0x28f,0x27a)](){return!![];}get[u(0x2e1,0x2c6)](){function v(a,b){return u(a,b- -0x1af);}return this[v(0xef,0x110)]?.[v(0xec,0x117)];}set[u(0x29a,0x2c6)](c){}['writeStartDate'](c,d,e,f,g=!![]){const h=this[w(0x21,0x2a)];const i=this[w(-0xa,-0x24)]();function w(a,b){return u(b,a- -0x29e);}if(h&&!this['previousSegment']&&d[w(0xd,0x14)]['hasIdentifier'](c)&&!(i&&i[w(0x1d,0x45)]()[w(0x2b,0x9)])){d[w(0x6,0x12)](h['$'][w(-0xc,-0xe)],f,g);}else{c[w(-0x5,0xf)][w(-0x15,0x12)][w(0x6,0x30)][w(0x1f,0x37)](this,c,d,e,f,g);if(g&&this[w(0x13,0x11)]){const j=this[w(0x5,-0x19)]-this[w(0x13,-0x18)][w(0xe,0x26)];if(j>0x0){let k=this;while(k=k['nextSegment']){d['write'](k['$'][w(0xe,0xa)],k[w(0xe,-0x13)]+j);d[w(0x6,-0x13)](k['$']['endOffset'],k[w(0x5,-0x7)]+j);}}}}}[u(0x281,0x27e)](c,d,e){function x(a,b){return u(b,a- -0x33f);}return c===x(-0x93,-0x99)||c==='endOffset'||super['shouldRecordFieldChange'](c,d,e);}*[u(0x2f7,0x2ca)](){const c=yield this['$'][y(0x152,0x136)];const d=c[y(0x10a,0x138)][y(0x148,0x15d)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function y(a,b){return u(a,b- -0x170);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[y(0x177,0x14e)]){e=yield*this[y(0x187,0x15c)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x16b,0x14e)]){const f=yield ProposedOrPreviousValueOf(this[y(0x128,0x14f)]['$'][y(0x129,0x122)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x102,0x122)]);e=yield*this[y(0x179,0x14f)]['calculateProjectedDuration'](f,g,TimeUnit[y(0xfd,0x10f)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){function z(a,b){return u(a,b- -0xaf);}const c=yield this['$'][z(0x1d4,0x1f7)];const d=c[z(0x204,0x1f9)][z(0x204,0x21e)](EndOffsetVar);if(!this[z(0x200,0x210)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(0x1fa,0x20f)]){e=yield*this[z(0x1bc,0x1dc)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x236,0x20f)]){const f=yield ProposedOrPreviousValueOf(this[z(0x220,0x210)]['$'][z(0x1e1,0x1e3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x22b,0x204)]);e=yield*this[z(0x1fd,0x210)][z(0x1dd,0x1f3)](f,g,TimeUnit[z(0x1e0,0x1d0)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(0x1f7,0x20f)]){e=yield*this[z(0x1ca,0x1d5)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(0x213,0x20f)]){e=yield*this[z(0x1c6,0x1e2)]();}return e;}*[u(0x25c,0x279)](){const c=yield this['$'][A(-0x15,-0x36)];const d=c['resolution'][A(-0xe,-0xf)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}function A(a,b){return u(a,b- -0x2dc);}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x33,-0x1e)]){e=yield*this[A(-0x4a,-0x3f)]();}else{e=yield*super['calculateStartDate']();}return e;}*[u(0x2c5,0x2a9)](){const c=yield this['$'][B(0x3a4,0x394)];const d=c[B(0x3a6,0x396)][B(0x3b2,0x3bb)](EndDateVar);if(!this[B(0x39f,0x3ad)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[B(0x3cf,0x3ac)]){e=yield*this[B(0x3e7,0x3b9)]();}else{e=yield*super[B(0x39c,0x397)]();}function B(a,b){return u(a,b-0xee);}return e;}*[u(0x29c,0x2ae)](){const c=yield this['$'][C(-0xa6,-0xb4)];const d=c['resolution'][C(-0x77,-0x8d)](DurationVar);if(!this[C(-0x95,-0x9b)]){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(-0x85,-0x9c)]){e=yield*this[C(-0xcb,-0xd9)]();}else if(d===durationByMasterEndDateFormula[C(-0xbd,-0x9c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[C(-0xb0,-0xac)]();}function C(a,b){return u(a,b- -0x35a);}return e;}[u(0x277,0x288)](c,d,e){const f=super[D(0x4d8,0x4e4)](c,d,e);f[D(0x4f7,0x4cd)](MasterStartDateVar);function D(a,b){return u(b,a-0x250);}f['addPreviousValueFlag'](StartOffsetVar);f[D(0x4f7,0x4ca)](EndOffsetVar);return f;}*[u(0x270,0x280)](c){const d=yield*super['prepareDispatcher'](c);if(!this[E(0x4d4,0x4b7)]){return d;}function E(a,b){return u(b,a-0x215);}const e=this['event']['$'];if(c(PreviousValueOf(e[E(0x4a7,0x47e)]))!=null)d[E(0x4bc,0x4e4)](MasterStartDateVar);if(c(HasProposedValue(e[E(0x4a7,0x47b)])))d[E(0x4aa,0x4c7)](MasterStartDateVar);if(!c(HasProposedValue(e[E(0x4c2,0x498)]))){d[E(0x4a2,0x47d)](c,e[E(0x4a5,0x4a5)],MasterDurationVar);if(c(HasProposedValue(e['endDate']))){const g=c(ProposedArgumentsOf(e[E(0x4c8,0x4c8)]));if(!g?.[0x0]){d[E(0x4aa,0x485)](MasterEndDateVar);}}const f=c(e[E(0x4bb,0x499)]);if(f['resolution'][E(0x4e2,0x4fa)](StartDateVar)===CalculateProposed&&f[E(0x4bd,0x4bf)][E(0x4e2,0x4bd)](EndDateVar)===CalculateProposed){d['addProposedValueFlag'](MasterTotalDurationVar);}}d['collectInfo'](c,this['$'][E(0x4c1,0x4d1)],StartOffsetVar);d['collectInfo'](c,this['$'][E(0x4b8,0x4c4)],EndOffsetVar);return d;}[u(0x2a3,0x2c4)](c){return segmentCycleResolution;}*[u(0x291,0x284)](){const c=yield ProposedOrPreviousValueOf(this[F(-0x17,-0x16)]['$']['duration']);const d=yield this[F(-0x17,-0x22)]['$'][F(-0x3f,-0x35)];function F(a,b){return u(b,a- -0x2d6);}const e=yield this['$']['startOffset'];const f=this[F(-0x25,-0x11)];let g;let h=yield*this[F(-0x3a,-0x10)](c,d,TimeUnit['Millisecond']);const j=[];let k=this;while(k=k[F(-0x36,-0x22)]){j[F(-0x1c,-0x34)](k);}for(let l=j[F(-0x6,-0x26)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(-0x2a,-0x7)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(-0x33,-0x2b)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(-0x13,-0x29)](h,(yield ProposedOrPreviousValueOf(this['$'][F(-0x33,-0x2a)]))-e);}}else{g=e;}return g;}*[u(0x277,0x291)](){const c=yield ProposedOrPreviousValueOf(this['event']['$'][G(0xc0,0xa8)]);const d=yield ProposedOrPreviousValueOf(this[G(0xc6,0xd5)]['$'][G(0xf6,0xc9)]);const e=yield*this['event'][G(0xd6,0xb8)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function G(a,b){return u(a,b- -0x1ea);}const f=yield ProposedOrPreviousValueOf(this['$'][G(0xb1,0xc2)]);let g=yield ProposedOrPreviousValueOf(this['$'][G(0xd8,0xb9)]);let h=this[G(0xa7,0xc7)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(0xc3,0xc2)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(0xdf,0xc2)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$']['durationInMS'];function H(a,b){return u(b,a- -0x2c2);}const d=yield this['$'][H(-0x1f,-0x7)];return d-c;}*[u(0x292,0x28b)](){function I(a,b){return u(b,a-0x219);}const c=yield this['$'][I(0x4da,0x4e1)];const d=yield this['$'][I(0x4c5,0x4d6)];return d+c;}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0x288);}const c=yield this[J(0xc,0x37)]['$'][J(0x11,0xa)];const d=yield this['$'][J(0x16,0x1b)];const e=yield*this[J(0x23,0x37)][J(0x4,-0x5)](c,!![],d,TimeUnit[J(-0x25,-0x9)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()['skipNonWorkingTimeWhenSchedulingManually']?e:yield*this[J(0x20,0x37)]['skipNonWorkingTime'](e,![]);}*['calculateStartDateByMasterStartAndStartOffset'](){function K(a,b){return u(a,b-0xf0);}const c=yield this['event']['$'][K(0x39d,0x382)];const d=yield this['$']['startOffset'];const e=yield*this['event'][K(0x388,0x373)](c,!![],d,TimeUnit[K(0x35e,0x36f)],{'ignoreSegments':!![]});const f=yield*this[K(0x3be,0x3a4)]();return f&&!this['getProject']()[K(0x384,0x38a)]?e:yield*this['event']['skipNonWorkingTime'](e);}*['calculateDurationInMS'](){const c=yield ProposedOrPrevious;if(!this['event']){return c;}const d=yield this['$'][L(0x3ef,0x3e3)],e=d[L(0x3f1,0x3dc)][L(0x416,0x424)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$'][L(0x3d9,0x3b1)]))||(yield HasProposedValue(this['$'][L(0x3e0,0x3f1)]))||c===void 0x0){const f=yield this['$'][L(0x3e0,0x3dd)],g=yield this['$'][L(0x3d9,0x3d6)];return yield*this[L(0x408,0x3f2)][L(0x3e5,0x3f5)](g,f,TimeUnit['Millisecond']);}else{return c;}}function L(a,b){return u(b,a-0x149);}return(yield this['$']['endOffset'])-(yield this['$'][L(0x3f5,0x3fe)]);}*[u(0x282,0x281)](){const c=yield this['$'][M(0x33,0x4f)];function M(a,b){return u(a,b- -0x248);}const d=yield this['$']['durationInMS'];return yield*this[M(0x63,0x54)](d,TimeUnit['Millisecond'],c);}*[u(0x2b1,0x29f)](){let c=0x0;function N(a,b){return u(b,a-0x83);}if(!this[N(0x342,0x31f)]){return yield ProposedOrPrevious;}const d=yield this[N(0x342,0x33d)]['$']['segments'];if(d){const e=yield this[N(0x342,0x36a)]['$'][N(0x312,0x306)];const f=yield this[N(0x342,0x326)]['$']['duration'];const g=yield this[N(0x342,0x367)]['$']['durationUnit'];let h=yield*this[N(0x31f,0x2f5)](f,g,TimeUnit[N(0x302,0x318)]);let i=e*0.01*h;for(const j of d){const k=j[N(0x32f,0x351)];const l=j[N(0x326,0x2fc)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*[u(0x2ea,0x2d1)](){const c=this[O(0x7f,0x94)];function O(a,b){return u(a,b- -0x20c);}if(!this[O(0xca,0xb3)]){return yield ProposedOrPrevious;}if(c){return yield c['$']['endPercentDone'];}return 0x0;}*[u(0x28f,0x287)](){if(!this['event']){return yield ProposedOrPrevious;}const c=yield this[P(0x4fd,0x4d7)]['$'][P(0x4ce,0x4c6)];function P(a,b){return u(b,a-0x23e);}const d=yield this[P(0x4fd,0x500)]['$'][P(0x4d5,0x4a9)];let e=yield*this['convertDurationGen'](c,d,TimeUnit[P(0x4bd,0x4e7)]);const f=yield this['$'][P(0x4ea,0x4cd)];const g=yield this['$'][P(0x4e1,0x4c8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x280,0x283)](c,d,e,f){function Q(a,b){return u(a,b- -0x370);}if(!f)f=yield this['$'][Q(-0xdd,-0xd9)];return yield*this[Q(-0xcb,-0xb1)][Q(-0xf6,-0xed)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x2b0,0x2a2)](c,d,e,...f){function R(a,b){return u(b,a- -0x1e1);}if(!e)e=yield this['$'][R(0xb6,0xbc)];return yield*this['event'][R(0xc1,0xb4)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0x294,0x282)](){if(this['event']){return yield*this['event']['isManuallyScheduled']();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super['afterChange'](c,d,e,f,g);const h=this['event'];function S(a,b){return u(b,a- -0x230);}if(d&&h){if(!(S(0x7d,0x54)in h[S(0x8c,0x5f)][S(0x97,0x9e)])&&h[S(0x7d,0x7b)]){const l=h[S(0x7d,0xa0)][S(0x4d,0x3b)](m=>Object[S(0x6e,0x43)](m[S(0x5e,0x62)](),m[S(0x8c,0x92)][S(0x97,0x9a)]));h[S(0x87,0x61)](S(0x7d,0x86),l);}const i=h[S(0x64,0x79)]();const j=i?.[S(0x95,0x80)];if(i)i[S(0x95,0xc3)]=!![];const k=h[S(0x7d,0x7b)]?.[S(0x4d,0x5a)](m=>m[S(0x5e,0x64)]());h[S(0x55,0x2e)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(0x95,0xc2)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0x263,0x289)],u(0x2bd,0x2a6),void 0x0);__decorate([model_field({'persist':![]})],b[u(0x280,0x289)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[u(0x2b1,0x289)],'endOffset',void 0x0);__decorate([field()],b[u(0x2a8,0x289)],u(0x27b,0x28f),void 0x0);__decorate([field()],b[u(0x264,0x289)],u(0x28f,0x2b5),void 0x0);__decorate([field()],b[u(0x2b0,0x289)],'endPercentDone',void 0x0);__decorate([field()],b['prototype'],u(0x2c2,0x2c1),void 0x0);__decorate([write(u(0x28e,0x292))],b[u(0x267,0x289)],u(0x2ab,0x2ce),null);__decorate([calculate(u(0x298,0x2ac))],b[u(0x295,0x289)],'calculateStartOffset',null);__decorate([calculate('endOffset')],b[u(0x29e,0x289)],u(0x2d7,0x2c0),null);__decorate([calculate(u(0x2e9,0x2c1))],b[u(0x26e,0x289)],'calculateDurationInMS',null);__decorate([calculate('percentDone')],b['prototype'],u(0x2a7,0x29f),null);function u(a,b){return _ens(a,b- -0x308);}__decorate([calculate(u(0x2a9,0x2b5))],b[u(0x2af,0x289)],u(0x2de,0x2d1),null);__decorate([calculate('endPercentDone')],b[u(0x2b3,0x289)],u(0x27d,0x287),null);__decorate([calculate(u(0x2b0,0x29b))],b[u(0x294,0x289)],u(0x296,0x282),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function L(a,b){return _enb(b- -0x1da,a);}while(!![]){try{const d=parseInt(L(0x4d,0x12))/0x1*(parseInt(L(0x5e,0x3d))/0x2)+parseInt(L(0x7d,0x38))/0x3+-parseInt(L(0x24,0x52))/0x4*(-parseInt(L(-0x1b,-0x10))/0x5)+-parseInt(L(0xa0,0x5b))/0x6+-parseInt(L(-0x15,0x1e))/0x7*(-parseInt(L(0x65,0x35))/0x8)+parseInt(L(0x46,0x2f))/0x9+parseInt(L(0xc,0x44))/0xa*(-parseInt(L(0x80,0x58))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5074c));var __decorate=function(a,b,e,f){var g=arguments[M(0x5ad,0x5bd)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x5bd,0x5bd)]===M(0x595,0x56c))h=Reflect[M(0x5bd,0x5b5)](a,b,e,f);else for(var k=a[M(0x5ad,0x5da)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function M(a,b){return _enb(a-0x3ac,b);}return g>0x3&&h&&Object[M(0x5e0,0x619)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1af;let f=c[d];return f;};return _enb(a,b);}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';function _enN(a,b){return _enb(a-0x14a,b);}import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';function _ena(){const at=['startOffset','segmentIndex','has','equality','modified','convert','endBatch','getSegmentByDate','effectiveDirection','function','assignmentsByCalendar','maxCalendarRange','92231lVnZZg','hasIdentifier','splitToSegments','getPath','cycleResolutionContext','processSegmentsValue','get','effectiveCalendar','cls','graph','calculateDurationProposed','forceSegmentsMerging','7oXnZsO','calculateStartDate','adjustDurationToDST','unlink','isSegmented','ignoreSegments','generation','isForward','dispatcher','length','getSegments','skipNonWorkingTimeWhenSchedulingManually','autoMergeAdjacentSegments','_skipSegmentsIsEqual','getTime','join','splice','2920302bMTAFY','skipNonWorkingTime','processData','calculateProjectedDuration','toJSON','slice','1203120NJWVhh','adjustedSegments','decorate','306594tCikhT','add','segmentModelClass','array','isModel','6RQRedP','shift','min','setPath','internalId','calculateAdjustedSegments','normalizeUnit','20LKQcJY','getValue','_processingDataForProject','useEventAvailabilityIterator','isManuallyScheduled','lastSegment','calculateProjectedXDateWithDuration','processSegmentValue','firstSegment','getSegment','doWriteSegments','Millisecond','pop','_lastSegmentsSnapshot','352fsGwnR','map','calculateSegments','prototype','new','endOffset','3699157GXPGGg','push','defineProperty','265086ypcDSR','calculateEndDate','event','mergeSegments','meta','formulaId','internalClearChanges','$name','findIndex','isHasSubEventsMixin','nextSegment','hasSegmentChangesProposed','zeroDurationMsThreshold','assign','endDate','addProposedValueFlag','duration','forEachAvailabilityInterval','data','removeEntities','Forward','forEach','from','getTimezoneOffset','run','segments','getSegmentIndexByDate','size','resolution','calculateDurationBySegments','$activeTransaction','ignoreResourceCalendar','_segmentGeneration','getLatestStableEntryFor','copy','getProject','10940phjcsc','getSegmentsSnapshot','project','leaveProject','calculateStartDateBySegments','durationUnit','setProject','storeFieldChange','commitAsync','replica','write','segmentsToCleanup','effectiveCalendarsCombination','max','convertDurationGen','startDate','getCalendarsWorkStatus','call','direction','writeSegments','rawModifications','getFieldPersistentValue'];_ena=function(){return at;};return _ena();}import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol('SegmentsVar');const segmentsConverter=(a,b,c)=>c[_enN(0x33b,0x326)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula['new']({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(0x37a,0x3a6)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(0x37a,0x348)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(0x37a,0x37b)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(0x32d,0x36d)](a,b){function O(a,b){return _enN(b-0xd6,a);}const c=a[O(0x3a8,0x3e2)];const d=b[O(0x41d,0x3e2)];return super[O(0x3e4,0x403)](a,b)&&c[O(0x3ca,0x412)](SegmentsVar)===d[O(0x3ef,0x412)](SegmentsVar);}}function compareSegmentsArray(c,d){if(!c&&!d)return!![];if(this[P(-0xf2,-0x12a)])return![];if(!c&&d||c&&!d)return![];function P(a,b){return _enN(a- -0x441,b);}if(c[P(-0xf6,-0x10a)]!==d[P(-0xf6,-0x130)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x5ee,0x62b)]?c:d;const f=e['fieldMap'];const g=c[Q(0x5b1,0x59c)]instanceof Date?c[Q(0x5b1,0x5bc)][Q(0x5de,0x5fc)]():f[Q(0x5b1,0x581)][Q(0x5bd,0x5ca)](c[Q(0x5b1,0x571)])?.['getTime']();const h=d[Q(0x5b1,0x5cc)]instanceof Date?d[Q(0x5b1,0x5ea)][Q(0x5de,0x614)]():f[Q(0x5b1,0x5c0)][Q(0x5bd,0x601)](d['startDate'])?.[Q(0x5de,0x5af)]();const i=c[Q(0x58c,0x56d)]instanceof Date?c['endDate'][Q(0x5de,0x5e8)]():f[Q(0x58c,0x575)][Q(0x5bd,0x578)](c[Q(0x58c,0x549)])?.['getTime']();const j=d[Q(0x58c,0x5ce)]instanceof Date?d['endDate'][Q(0x5de,0x5de)]():f[Q(0x58c,0x5cd)]['convert'](d[Q(0x58c,0x583)])?.[Q(0x5de,0x5bf)]();function Q(a,b){return _enN(a-0x28e,b);}return g===h&&i===j;};const fillNextPrevious=a=>{a['reduce']((b,c,d)=>{if(b){b['nextSegment']=c;}c['previousSegment']=b;function R(a,b){return _enb(a- -0x34a,b);}c[R(-0x169,-0x17b)]=d;return c;},null);function S(a,b){return _enN(b- -0x3cb,a);}if(a[S(-0x68,-0x80)]){a[a[S(-0x7f,-0x80)]-0x1][S(-0xf0,-0xd1)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a- -0x243,b);}this[T(-0x7d,-0x59)]={};}get[U(-0xf7,-0xfa)](){function V(a,b){return U(b-0x2be,a);}let c=super[V(0x1c0,0x1c7)];if(this[V(0x16c,0x1a8)]&&(!c||!('segments'in c))){for(const d of this['segments']){if(d['rawModifications']){c=c||{};c[V(0x1a1,0x1a8)]=this[V(0x1d2,0x1c8)](V(0x1c6,0x1a8));break;}}}return c;}['internalClearChanges'](c,d,e,...f){for(const g of this[W(-0xfd,-0x126)]||[]){if(g[W(-0xa6,-0x77)]){g[W(-0x81,-0xb9)]['call'](g,c,d,null,...f);}}function W(a,b){return U(a-0x19,b);}super[W(-0x81,-0xc7)][W(-0xe1,-0x9f)](this,c,d,e,...f);}*['prepareDispatcher'](c){const d=yield*super['prepareDispatcher'](c);function X(a,b){return U(b-0x5f0,a);}if(yield*this[X(0x4de,0x4cc)]()){d[X(0x496,0x4d0)](SegmentsVar);}return d;}[U(-0xe5,-0xf3)](c){const d=c(this['$'][Y(-0xc1,-0xa5)]);function Y(a,b){return U(b-0x48,a);}return d[Y(-0x92,-0xb1)]===Direction[Y(-0xc1,-0xd3)]||d[Y(-0x75,-0xb1)]===Direction['None']?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(-0x124,-0x113)](){function Z(a,b){return U(a-0x253,b);}const c=yield ProposedValueOf(this['$'][Z(0x13d,0x17c)]);let d=![];if(yield HasProposedValue(this['$']['segments'])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$'][Z(0x132,0x171)]);const i=yield HasProposedValue(f['$'][Z(0x134,0x13c)]);if(g||h||i)d=!![];}return d;}[U(-0xf8,-0xea)](c,d,e,f){const g=d[a0(0x4e2,0x4f4)](c)?.[a0(0x53a,0x531)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x548,0x517)](n=>n[a0(0x531,0x4eb)]?n:this[a0(0x540,0x4fc)](n));const k=new Set(j);function a0(a,b){return U(a-0x5f0,b);}const l=this[a0(0x4e7,0x529)];const m=l[a0(0x4ee,0x4d1)];for(const n of h){if(!k[a0(0x4fd,0x4e9)](n)){l[a0(0x4f0,0x4dd)][a0(0x52e,0x52d)](n);n[a0(0x552,0x552)]=null;}}fillNextPrevious(j);c['constructor'][a0(0x54a,0x52e)][a0(0x4ef,0x50c)][a0(0x4f6,0x4ca)](this,c,d,e,j[a0(0x51c,0x4fb)]>0x0?j:null);d['write'](this['$'][a0(0x517,0x503)],Boolean(f?.[a0(0x51c,0x54a)]));for(const o of j){if(!i[a0(0x4fd,0x4bf)](o)&&o[a0(0x510,0x540)]!==m){o[a0(0x4eb,0x51f)](l);o[a0(0x552,0x580)]=this;m['addEntity'](o);}}}*[U(-0xad,-0xbe)](c,d){d=d||[];if(c[a1(0x4ca,0x4ae)]<=0x1){const e=c[a1(0x4ca,0x4c4)]?yield*this['convertDurationGen'](c[0x0][a1(0x4fa,0x512)]-c[0x0]['startOffset'],TimeUnit[a1(0x4f2,0x4f2)],yield this['$'][a1(0x498,0x46a)]):0x0;d['push']({'identifier':this['$'][a1(0x47f,0x4c0)],'proposedArgs':[e,null]});c=null;}d[a1(0x4fc,0x52d)]({'identifier':this['$'][a1(0x488,0x4c6)],'proposedArgs':[c]});function a1(a,b){return U(a-0x59e,b);}yield WriteSeveral(d);}*[U(-0xa7,-0x96)](){const c=yield this['$'][a2(0x2ad,0x29d)];const {graph:d,project:e}=this;const f=e['segmentModelClass'];const g=yield e['$'][a2(0x2b1,0x2dd)]||this[a2(0x2a4,0x2a3)];const h=yield PreviousValueOf(this['$'][a2(0x26c,0x29b)]);function a2(a,b){return U(a-0x382,b);}let i=yield ProposedOrPrevious;const j=[];let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d[a2(0x271,0x248)];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$'][a2(0x2de,0x2c9)];const t=p[a2(0x29a,0x2d2)](q['$'][a2(0x286,0x252)])&&(yield ProposedArgumentsOf(q['$'][a2(0x286,0x2c6)]));const u=p['hasIdentifier'](q['$'][a2(0x261,0x22c)])&&(yield ProposedArgumentsOf(q['$'][a2(0x261,0x292)]));n=n||t?.[0x0]||u?.[0x0];if(r===s){j[a2(0x2e0,0x2d7)](q);}else if(g&&m&&r+o<=m['endOffset']){const v=m[a2(0x2de,0x2d2)];j[a2(0x2e0,0x2e9)](q);if(m[a2(0x2a2,0x2ba)]){j['push'](m);const w=m[a2(0x28d,0x28f)];const x=n?s+v-r:Math[a2(0x284,0x29f)](s,v);const y=m[a2(0x2a1,0x276)];m=f[a2(0x2dd,0x296)]({'event':this,'cls':y,'startOffset':w,'endOffset':x});}else{m['endOffset']=n?s+m[a2(0x2de,0x310)]-r:Math['max'](s,m[a2(0x2de,0x2ed)]);}}else if(!g&&m&&(o||r<m[a2(0x2de,0x299)])){l['add'](m);j[a2(0x2e0,0x2f8)](q);if(r+o<m[a2(0x2de,0x2ff)]){o+=m['endOffset']-r-o;}m=f[a2(0x2dd,0x305)]({'id':q['id'],'event':this,'cls':m[a2(0x2a1,0x2c5)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x2c0,0x2c4)](m);}m=q;}}if(m){l['add'](m);}if(l[a2(0x26e,0x22e)]===0x1){j[a2(0x2e0,0x2b1)](...l);}k=j[a2(0x2ae,0x2ea)]>0x0;if(k){i=Array[a2(0x269,0x227)](l);}fillNextPrevious(i);}else if(h){j[a2(0x2e0,0x319)](...h);}if(j['length']){for(const z of j){z[a2(0x2e4,0x2f3)]=null;e[a2(0x282,0x2b2)][a2(0x2c0,0x280)](z);}}if(k){yield*this[a2(0x2d5,0x2df)](i);}i=i?.[a2(0x2ae,0x27f)]>0x1?i:null;return i;}*[U(-0xb9,-0xe1)](){const c=yield this['$'][a3(0x23f,0x22c)];let d=yield this['$']['segments'];const e=yield this['$'][a3(0x224,0x205)];function a3(a,b){return U(b-0x301,a);}const f=yield this['$'][a3(0x216,0x1e0)];const g=yield this['$'][a3(0x1af,0x1e2)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this['graph'];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x238,0x22d)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x1e0,0x205)];const t=yield r['$'][a3(0x19c,0x1e0)];if(s>f){l[a3(0x29b,0x25f)](r);n=q;}else{if(t[a3(0x238,0x232)]()!==f[a3(0x24c,0x232)]()){const u=r['endOffset']+(f[a3(0x22f,0x232)]()-t[a3(0x240,0x232)]())-r[a3(0x1f5,0x20c)];const v=yield*this[a3(0x1c0,0x204)](u,TimeUnit[a3(0x285,0x255)],yield r['$'][a3(0x21a,0x1fb)]);m[a3(0x24f,0x25f)]({'identifier':r['$'][a3(0x225,0x1e2)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x1d7,0x1e0)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x21c,0x25d)],'proposedArgs':[r['endOffset']+(f[a3(0x214,0x232)]()-t[a3(0x1f8,0x232)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x212,0x234)](n);if(d[a3(0x1f2,0x22d)]){d[d[a3(0x1e9,0x22d)]-0x1][a3(0x1de,0x1dc)]=null;}for(const w of l){j[a3(0x246,0x201)][a3(0x268,0x23f)](w);}}let p='';if(d){p=this[a3(0x1cd,0x1f7)](d);}if(p!==this[a3(0x23a,0x257)]){o=!![];d=d?d[a3(0x20e,0x23a)]():d;this[a3(0x271,0x257)]=p;}if(o){yield*this[a3(0x26d,0x254)](d,m);}}return h;}[U(-0x10a,-0xf4)](c){c=c||this[a4(0x32f,0x328)];function a4(a,b){return U(a-0x445,b);}return c?.['map'](d=>''+d[a4(0x350,0x35d)]+'-'+d[a4(0x349,0x332)]?.['getTime']()+'-'+d['endOffset']+'-'+d['endDate']?.[a4(0x376,0x352)]())[a4(0x377,0x3a5)](';');}static[U(-0xca,-0xeb)](c,d,e,f,g){function a5(a,b){return U(b-0x28e,a);}if(e){f[a5(0x1f9,0x1d9)]=e[a5(0x13f,0x185)];}return super[a5(0x1bc,0x1c4)](c,d,e,f,g);}[U(-0xb0,-0xd1)](c){const d=this[a6(0x57f,0x572)]?.[a6(0x58f,0x5ba)]||this[a6(0x59c,0x5c6)]?.[a6(0x602,0x5ba)];if(!d)return c;const e=c[a6(0x5b3,0x5bc)]?c:d[a6(0x5eb,0x5d6)](c);if(!e['event'])e[a6(0x5c9,0x5dd)]=this;function a6(a,b){return U(b-0x67b,a);}return e;}[U(-0xe4,-0xd6)](c){function a7(a,b){return U(b-0x4e1,a);}if(c===void 0x0)return void 0x0;if(c==null)return null;return c[a7(0x41e,0x439)](d=>this['processSegmentValue'](d));}*[U(-0xdc,-0xfb)](){const c=yield this['$'][a8(0x481,0x49b)];const d=c[a8(0x443,0x421)][a8(0x473,0x4ac)](StartDateVar);let e;function a8(a,b){return U(a-0x556,b);}if(d===startDateByEndDateAndSegmentsFormula['formulaId']){e=yield*this[a8(0x44f,0x40b)]();}else{e=yield*super[a8(0x47a,0x49c)]();}return e;}*[U(-0x107,-0xe3)](){function a9(a,b){return U(b-0x3e3,a);}const c=yield this['$'][a9(0x2f3,0x30e)];const d=yield this['$'][a9(0x291,0x2cd)];const e=yield this['$'][a9(0x28c,0x2c2)];let f;if(d){const g=d[d[a9(0x332,0x30f)]-0x1];const h=yield g['$'][a9(0x324,0x33f)];const i=yield*this['calculateProjectedXDateWithDuration'](e,![],h,TimeUnit[a9(0x300,0x337)],{'ignoreSegments':!![]});const j=yield*this[a9(0x30f,0x330)]();f=j&&!this[a9(0x30f,0x2d7)]()['skipNonWorkingTimeWhenSchedulingManually']?i:yield*this[a9(0x2f1,0x318)](i,!![]);}return f;}*['calculateEndDateBySegments'](){function aa(a,b){return U(b-0x59b,a);}const c=yield this['$']['dispatcher'];const d=yield this['$'][aa(0x48e,0x485)];const e=yield this['$'][aa(0x4d7,0x49f)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(0x4e9,0x4f7)];const i=yield*this[aa(0x510,0x4ea)](e,!![],h,TimeUnit[aa(0x50b,0x4ef)],{'ignoreSegments':!![]});const j=yield*this[aa(0x500,0x4e8)]();f=j&&!this['getProject']()[aa(0x4bc,0x4c9)]?i:yield*this[aa(0x4e1,0x4d0)](i,![]);}return f;}*[U(-0x9f,-0xb4)](){const c=yield this['$'][ab(0x25b,0x29b)];const d=c[ab(0x25e,0x25d)]['get'](EndDateVar);let e;if(d===endDateByStartDateAndSegmentsFormula[ab(0x30a,0x2d5)]){e=yield*this['calculateEndDateBySegments']();}else{e=yield*super[ab(0x29b,0x2d1)]();}function ab(a,b){return U(b-0x370,a);}return e;}*[U(-0xdf,-0xc0)](){let c;if(yield*this[ac(0x39,0x36)]()){c=yield*this[ac(0x75,0x48)]();}else{c=yield*super['calculateDurationProposed']();}function ac(a,b){return U(b-0x15a,a);}return c;}*[U(-0xcb,-0xf6)](c,d=!![],e){if(!c)return null;e=Object[ad(0x16f,0x172)]({'ignoreSegments':!![]},e);function ad(a,b){return U(b-0x294,a);}return yield*super[ad(0x20a,0x1c9)](c,d,e);}*['calculateDurationBySegments'](){let c;const d=yield this['$'][ae(0x62,0x6f)];const e=yield this['$']['durationUnit'];const f=yield this['$'][ae(0x21,0x1f)];function ae(a,b){return U(a-0x137,b);}if(f){let g=0x0;for(const h of f){g+=h[ae(0x93,0x52)]-h[ae(0x42,0x6e)];}c=yield*this[ae(0x3a,0xf)](g,TimeUnit['Millisecond'],e);}return c;}*[U(-0x11e,-0x10b)](c,d){const e=yield this['$']['isSegmented'];let f=c[af(-0x155,-0x153)];if(!e||f){return yield*super[af(-0x19b,-0x1ab)](c,d);}const g=this[af(-0x189,-0x1a9)]();const h=yield this['$'][af(-0x15f,-0x12d)];const i=yield this['$'][af(-0x168,-0x189)];const j=yield this['$'][af(-0x17c,-0x1ae)];const k=c[af(-0x153,-0x174)]!==![];const l=(yield this['$'][af(-0x18d,-0x159)])||(yield*this['hasElapsedDuration']())||c['ignoreResourceCalendar']||!i[af(-0x191,-0x173)];const m=g[af(-0x167,-0x19f)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$'][af(-0x193,-0x188)];f=f||!r||k===![]&&r[0x0][af(-0x179,-0x191)]>=c[af(-0x19e,-0x17f)]||k===!![]&&r[r['length']-0x1]['endDate']<c[af(-0x179,-0x1ae)];if(!f){r=r[af(-0x144,-0x143)]();if(k){o=r[af(-0x13a,-0x13f)]();p=0x0;n=0x1;s=o['nextSegment']?o[af(-0x121,-0x117)]:MAX_DATE['getTime']();}else{o=r['pop']();p=o[af(-0x121,-0xe7)];n=-0x1;s=o[af(-0x121,-0x13c)];}q=s-o[af(-0x172,-0x1b1)];}}const t=yield*this['isManuallyScheduled']();function af(a,b){return U(a- -0x7d,b);}const u=g[af(-0x158,-0x11b)];const v=this[af(-0x1a0,-0x182)];return j[af(-0x19b,-0x1dc)](Object['assign']({'maxRange':m},c),(w,x,y)=>{function ag(a,b){return af(b-0x7,a);}const z=y[ag(-0x157,-0x171)]();const A=y['getCalendarsWorking']();if(z[ag(-0x19c,-0x159)](h)&&(l||A['some'](B=>i[ag(-0x1a6,-0x169)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w[ag(-0x116,-0x145)]();let C=x['getTime']()-w['getTime']();if(u){const F=w[ag(-0x17b,-0x18e)]()-x[ag(-0x199,-0x18e)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(-0x15a,-0x16b)]){const G=Math['max'](D,o[ag(-0x1af,-0x16b)]);const H=Math[ag(-0x173,-0x132)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J['getTime']()-I[ag(-0x171,-0x145)]();if(q<v){o=k?r[ag(-0x114,-0x133)]():r[ag(-0x134,-0x121)]();if(o){s=!k||o[ag(-0x16b,-0x19b)]?o['endOffset']:MAX_DATE[ag(-0x173,-0x145)]();q=s-o[ag(-0x146,-0x16b)];}}else{break;}}p+=n*C;}}});}*[U(-0xb4,-0xba)](){const c=yield this['$'][ah(0x37c,0x36f)];function ah(a,b){return U(b-0x448,a);}return c||(yield*super['useEventAvailabilityIterator']());}[U(-0xee,-0x121)](c,d){d=d||this[ai(-0x14f,-0x174)]();function ai(a,b){return U(b- -0xa1,a);}if(d){const e=this['getSegmentIndexByDate'](c,d);return d[e];}}[U(-0x115,-0x133)](c,d){d=d||this['getSegments']();function aj(a,b){return U(b-0x635,a);}return d?d[aj(0x5b5,0x59d)](e=>c>=e[aj(0x535,0x539)]&&c<e[aj(0x511,0x514)]):-0x1;}get[U(-0xaf,-0xce)](){const c=this['getSegments']();return c?c[0x0]:null;}get['lastSegment'](){function ak(a,b){return U(b-0x378,a);}const c=this[ak(0x272,0x2a5)]();return c?c[c[ak(0x2be,0x2a4)]-0x1]:null;}[U(-0xae,-0xbd)](c){const d=this['getSegments']();return d?.[c];}async[U(-0xe7,-0xb9)](c,d=0x1,e){const f=this['getProject']();const g=f[al(0x17d,0x149)];await f['commitAsync']();const h=this;if(!c||h[al(0x120,0xe4)]&&h['childEvents']?.[al(0x11c,0xf6)])return;const j=h['duration'];const k=h[al(0xde,0x104)];const m=h[al(0xcb,0x10e)];const n=h[al(0x107,0xe9)];e=e?_enc[al(0x195,0x152)](e):k;function al(a,b){return U(b-0x20a,a);}if(!m||!n||m>=c||c>=n||!j)return;const o=h[al(0x102,0x131)];let p=h[al(0x10b,0xf4)]||[];let q,r;if(o){r=h[al(0xf0,0xf5)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[al(0xdd,0x10e)]:m;const u=s[al(0xcb,0xeb)];const v=s[al(0xf4,0x104)];const w=s['name'];const x=h[al(0xd2,0xf3)]('calculateProjectedDuration',t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h['run']('convertDurationGen',d,e,TimeUnit[al(0x19b,0x15e)]);const A=z+h[al(0x108,0xf3)](al(0x11a,0x141),m,c,TimeUnit[al(0x180,0x15e)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[al(0x11f,0x165)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[al(0x12b,0x143)](0x0);p[al(0x113,0x13d)](r+0x1,0x0,B);h['segments']=p;h['duration']=j;for(let C=r+0x2,D=p[al(0x106,0x136)];C<D;C++){const E=p[C];if(E){E['startOffset']+=z;E['endOffset']+=z;}}}else{const F=g[al(0x162,0x165)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[al(0x122,0x165)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h['duration']=j;h[al(0x104,0xf4)]=[F,G];}return f['commitAsync']();}async[U(-0x9d,-0x90)](c,d){function am(a,b){return U(a-0x59c,b);}if(!this[am(0x4c3,0x49f)])return;this[am(0x4be,0x4d4)]=!![];c=c||this[am(0x4ed,0x4be)];d=d||this[am(0x4ea,0x511)];if(c['startOffset']>d[am(0x4a7,0x4e8)]){let f=d;d=c;c=f;}c[am(0x47b,0x496)]=d['startDate'];const e=await this['getProject']()[am(0x499,0x4de)]();this[am(0x4be,0x48a)]=![];return e;}[U(-0x104,-0x110)](c,d){if(c===an(0x484,0x49a)&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f['toJSON']();if(!this[an(0x4ad,0x4a1)][f[an(0x4ba,0x4f6)]]||f[an(0x4f2,0x4d9)]>this[an(0x4db,0x4a1)][f[an(0x4ed,0x4f6)]]){Object['assign'](g,f[an(0x50b,0x514)][an(0x4d5,0x4bf)]);}e['push'](g);this['_segmentGeneration'][f['internalId']]=f['generation'];}else{e['push'](f);}}d=e;}function an(a,b){return U(b-0x5b0,a);}super[an(0x4ea,0x4ac)](c,d);}[U(-0x108,-0xfa)](){function ao(a,b){return U(a-0x3d8,b);}const c=this[ao(0x2c2,0x2df)];if(c){this[ao(0x2f8,0x33d)]?.[ao(0x2bc,0x2f4)](c);}super['leaveProject']();}[U(-0xef,-0xf4)](...c){function ap(a,b){return U(b-0x56f,a);}this['fieldMap'][ap(0x484,0x459)][ap(0x4b3,0x49f)]++;super[ap(0x4b6,0x480)](...c);this['fieldMap'][ap(0x46b,0x459)][ap(0x461,0x49f)]--;}[U(-0x10d,-0xf9)](c=null,d=null){const e=super[aq(0xb9,0x100)](c,d);e[aq(0xa9,0xca)][aq(0xb0,0x83)]=void 0x0;if(e[aq(0xb0,0x6f)]){e[aq(0xb0,0x7c)]=e['segments']['map'](f=>Object[aq(0xa4,0x9e)](f[aq(0xb9,0x88)](),{'event':e}));}function aq(a,b){return U(a-0x1c6,b);}return e;}['toJSON'](){const c=super['toJSON'](),d=this['getFieldDefinition'](ar(0xa9,0xd6)),{persist:e,dataSource:f,complexMapping:g}=d;if(e){let h=_end[ar(0xd9,0xea)](c,f);if(h){h=h[ar(0x117,0x14c)](i=>i[ar(0xf7,0x114)]());_end[ar(0x104,0xd3)](c,f,h);}}function ar(a,b){return U(a-0x1bf,b);}return c;}[U(-0xda,-0xcd)](){const {segments:c}=this;function as(a,b){return U(a-0x463,b);}c?.[as(0x349,0x374)](d=>d['unlink']());super[as(0x389,0x393)]();}}b[U(-0x99,-0x95)]='SplitEventMixin';__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(-0xa6,-0xdc)],U(-0xd5,-0xa0),void 0x0);__decorate([model_field({'type':U(-0xc0,-0xd4),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(-0xa6,-0xd5)],U(-0x116,-0xde),void 0x0);__decorate([field()],b[U(-0xa6,-0xa7)],'adjustedSegments',void 0x0);__decorate([field()],b[U(-0xa6,-0x72)],U(-0xd9,-0xdc),void 0x0);function U(a,b){return _enN(a- -0x41f,b);}__decorate([write(U(-0x116,-0x15d))],b[U(-0xa6,-0xc7)],U(-0xf8,-0x10e),null);__decorate([calculate(U(-0x116,-0xe2))],b[U(-0xa6,-0x8f)],'calculateSegments',null);__decorate([calculate(U(-0xc5,-0xeb))],b['prototype'],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x14d;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function L(a,b){return _enb(a-0xad,b);}while(!![]){try{const d=-parseInt(L(0x23f,0x25c))/0x1+parseInt(L(0x203,0x219))/0x2*(-parseInt(L(0x270,0x277))/0x3)+-parseInt(L(0x26a,0x28a))/0x4+-parseInt(L(0x227,0x1fa))/0x5*(parseInt(L(0x220,0x204))/0x6)+parseInt(L(0x21b,0x235))/0x7*(-parseInt(L(0x241,0x1f8))/0x8)+parseInt(L(0x289,0x29f))/0x9+-parseInt(L(0x204,0x23d))/0xa*(-parseInt(L(0x23d,0x285))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe8c4d));var __decorate=function(a,b,e,f){function M(a,b){return _enb(a- -0x9b,b);}var g=arguments[M(0xba,0x103)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x10b,0x110)]===M(0x136,0xf7))h=Reflect[M(0x10b,0xc9)](a,b,e,f);else for(var k=a[M(0xba,0x80)]-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;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const av=['forceSegmentsMerging','rawModifications','from','dispatcher','endBatch','run','convertDurationGen','data','getSegment','findIndex','getPath','function','processSegmentsValue','shift','isForward','getSegmentsSnapshot','splice','processSegmentValue','calculateStartDate','effectiveDirection','forEach','isModel','2369340YyzDmQ','calculateDurationProposed','constructor','adjustDurationToDST','segmentIndex','SegmentsVar','array','write','endDate','resolution','hasSegmentChangesProposed','length','49970kysgCX','30LuOHVb','lastSegment','useEventAvailabilityIterator','splitToSegments','min','skipNonWorkingTime','ignoreSegments','internalId','pop','isManuallyScheduled','getProject','childEvents','startDate','fieldMap','_processingDataForProject','SplitEventMixin','doWriteSegments','getTime','addProposedValueFlag','forEachAvailabilityInterval','has','setPath','storeFieldChange','133EAhMGv','segments','getSegments','isHasSubEventsMixin','mergeSegments','60WnZTcr','map','prepareDispatcher','ignoreResourceCalendar','_skipSegmentsIsEqual','calculateStartDateBySegments','startOffset','617905JPJTeb','durationUnit','getCalendarsWorking','modified','calculateProjectedDuration','call','writeSegments','skipNonWorkingTimeWhenSchedulingManually','cls','hasIdentifier','toJSON','getSegmentIndexByDate','get','getValue','calculateSegments','leaveProject','calculateEndDate','size','slice','segmentModelClass','add','duration','21289048aDgnNR','cycleResolutionContext','421350mISRWb','replica','106984IANMlq','prototype','join','copy','max','maxCalendarRange','effectiveCalendarsCombination','equality','calculateEndDateBySegments','getTimezoneOffset','processData','getSegmentByDate','graph','_segmentGeneration','push','project','getFieldDefinition','None','decorate','internalClearChanges','segmentsToCleanup','isSegmented','_lastSegmentsSnapshot','new','effectiveCalendar','zeroDurationMsThreshold','getFieldPersistentValue','nextSegment','setProject','some','endOffset','reduce','previousSegment','meta','convert','addEntity','Millisecond','unlink','event','formulaId','commitAsync','6722444TDBEMQ','firstSegment','removeEntities','adjustedSegments','generation','calculateProjectedXDateWithDuration','183NQauqh','normalizeUnit','assign'];_ena=function(){return av;};return _ena();}import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';function _enN(a,b){return _enb(b- -0x222,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0x101,-0xd3));const segmentsConverter=(a,b,c)=>c[_enN(-0x6f,-0x50)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x61,-0x77)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x36,-0x77)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x4d,-0x77)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0xaa,-0x77)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution['new']({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(-0xa1,-0x87)](a,b){const c=a[O(0x51a,0x527)];function O(a,b){return _enN(a,b-0x5f6);}const d=b[O(0x518,0x527)];return super[O(0x5aa,0x56f)](a,b)&&c[O(0x597,0x55a)](SegmentsVar)===d[O(0x52b,0x55a)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc4);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c['length']!==d[P(-0x191,-0x150)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x609,0x5c0)]?c:d;const f=e[Q(0x509,0x549)];const g=c[Q(0x543,0x548)]instanceof Date?c[Q(0x586,0x548)][Q(0x54c,0x54d)]():f['startDate'][Q(0x5bf,0x59b)](c[Q(0x572,0x548)])?.[Q(0x591,0x54d)]();const h=d[Q(0x562,0x548)]instanceof Date?d[Q(0x572,0x548)][Q(0x528,0x54d)]():f[Q(0x516,0x548)][Q(0x559,0x59b)](d[Q(0x528,0x548)])?.[Q(0x56e,0x54d)]();const i=c[Q(0x54f,0x537)]instanceof Date?c[Q(0x503,0x537)]['getTime']():f[Q(0x550,0x537)][Q(0x5cd,0x59b)](c[Q(0x578,0x537)])?.[Q(0x58a,0x54d)]();function Q(a,b){return _enN(a,b-0x607);}const j=d[Q(0x563,0x537)]instanceof Date?d['endDate'][Q(0x548,0x54d)]():f['endDate'][Q(0x55a,0x59b)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x158,0x18a)]((b,c,d)=>{function S(a,b){return R(a- -0xe4,b);}if(b){b['nextSegment']=c;}c[S(0x75,0xb5)]=b;c[S(0xf,-0x1e)]=d;return c;},null);function R(a,b){return _enN(b,a-0x1c7);}if(a['length']){a[a[R(0xfa,0xf6)]-0x1][R(0x154,0x17f)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a-0x58,b);}this[T(0x1f9,0x201)]={};}get[U(0x193,0x19a)](){let c=super['rawModifications'];function V(a,b){return U(a-0xe3,b);}if(this[V(0x21e,0x24b)]&&(!c||!(V(0x21e,0x1eb)in c))){for(const d of this['segments']){if(d[V(0x276,0x2a9)]){c=c||{};c[V(0x21e,0x205)]=this[V(0x25d,0x227)](V(0x21e,0x210));break;}}}return c;}[U(0x173,0x180)](c,d,e,...f){for(const g of this['segments']||[]){if(g[W(0x332,0x349)]){g[W(0x2fe,0x2f5)][W(0x2d6,0x319)](g,c,d,null,...f);}}function W(a,b){return U(a-0x18b,b);}super[W(0x2fe,0x2cf)]['call'](this,c,d,e,...f);}*[U(0x141,0x148)](c){const d=yield*super[X(0x542,0x539)](c);function X(a,b){return U(b-0x3f8,a);}if(yield*this[X(0x524,0x518)]()){d[X(0x51a,0x52d)](SegmentsVar);}return d;}[U(0x15d,0x149)](c){const d=c(this['$'][Y(-0x1de,-0x1e2)]);function Y(a,b){return U(a- -0x383,b);}return d['direction']===Direction['Forward']||d['direction']===Direction[Y(-0x212,-0x209)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*['hasSegmentChangesProposed'](){const c=yield ProposedValueOf(this['$'][Z(0xeb,0x113)]);let d=![];if(yield HasProposedValue(this['$'][Z(0x158,0x113)])){d=Boolean(c);}function Z(a,b){return U(b- -0x28,a);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$']['duration']);if(g||h||i)d=!![];}return d;}['writeSegments'](c,d,e,f){const g=d['getLatestStableEntryFor'](c)?.[a0(0x92,0x9f)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x44,0x8c)](n=>n[a0(0xca,0xf3)]?n:this['processSegmentValue'](n));const k=new Set(j);const l=this['project'];const m=l[a0(0x73,0xab)];function a0(a,b){return U(b- -0xb4,a);}for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n[a0(0xf8,0xd2)]=null;}}fillNextPrevious(j);c[a0(0xf1,0xf6)][a0(0xdf,0xad)][a0(0x76,0x69)][a0(0x60,0x97)](this,c,d,e,j[a0(0x6a,0x6d)]>0x0?j:null);d[a0(0x46,0x69)](this['$'][a0(0xaf,0xc1)],Boolean(f?.[a0(0x3c,0x6d)]));for(const o of j){if(!i[a0(0x56,0x83)](o)&&o['graph']!==m){o[a0(0xc1,0xc8)](l);o['event']=this;m[a0(0x9d,0xcf)](o);}}}*[U(0x133,0x115)](c,d){d=d||[];if(c[a1(-0xa5,-0xa0)]<=0x1){const e=c[a1(-0xa5,-0xb8)]?yield*this[a1(-0x2e,-0x6d)](c[0x0][a1(-0x48,-0x48)]-c[0x0]['startOffset'],TimeUnit[a1(-0x42,-0xf)],yield this['$']['durationUnit']):0x0;d['push']({'identifier':this['$'][a1(-0x6b,-0x23)],'proposedArgs':[e,null]});c=null;}d[a1(-0x58,-0x79)]({'identifier':this['$'][a1(-0x8b,-0xd4)],'proposedArgs':[c]});function a1(a,b){return U(a- -0x1c6,b);}yield WriteSeveral(d);}*[U(0x154,0x137)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(-0x22b,-0x200)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(-0x1f2,-0x218)];const h=yield PreviousValueOf(this['$']['segments']);let i=yield ProposedOrPrevious;const j=[];function a2(a,b){return U(a- -0x384,b);}let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d['$activeTransaction'];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$'][a2(-0x206,-0x244)];const t=yield q['$'][a2(-0x229,-0x1f1)];const u=p[a2(-0x235,-0x262)](q['$'][a2(-0x255,-0x29c)])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(-0x235,-0x24b)](q['$'][a2(-0x266,-0x273)])&&(yield ProposedArgumentsOf(q['$'][a2(-0x266,-0x273)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(-0x216,-0x1f3)](q);}else if(g&&m&&r+o<=m[a2(-0x206,-0x1de)]){const w=m['endOffset'];j['push'](q);if(m['graph']){j['push'](m);const x=m[a2(-0x23f,-0x22f)];const y=n?s+w-r:Math[a2(-0x220,-0x1df)](s,w);const z=m[a2(-0x236,-0x24d)];m=f[a2(-0x20d,-0x1f0)]({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(-0x206,-0x1ed)]=n?s+m[a2(-0x206,-0x1d3)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(-0x206,-0x1cf)])){l[a2(-0x22a,-0x21b)](m);j[a2(-0x216,-0x238)](q);if(r+o<m[a2(-0x206,-0x1c8)]){o+=m['endOffset']-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(-0x236,-0x205)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l['add'](m);}m=q;}}if(m){l['add'](m);}if(l[a2(-0x22d,-0x23c)]===0x1){j[a2(-0x216,-0x1f6)](...l);}k=j['length']>0x0;if(k){i=Array[a2(-0x1f0,-0x1de)](l);}fillNextPrevious(i);}else if(h){j[a2(-0x216,-0x236)](...h);}if(j[a2(-0x263,-0x282)]){for(const A of j){A['event']=null;e[a2(-0x210,-0x217)]['add'](A);}}if(k){yield*this[a2(-0x251,-0x26c)](i);}i=i?.[a2(-0x263,-0x283)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x55a,0x534)];let d=yield this['$'][a3(0x508,0x4da)];const e=yield this['$'][a3(0x4c3,0x4ce)];const f=yield this['$'][a3(0x476,0x4bd)];const g=yield this['$'][a3(0x4ce,0x4fa)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this[a3(0x4d5,0x50b)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x4e5,0x4c0)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x507,0x4ce)];const t=yield r['$'][a3(0x4ec,0x4bd)];if(s>f){l[a3(0x4c5,0x50d)](r);n=q;}else{if(t[a3(0x4fd,0x4d3)]()!==f[a3(0x498,0x4d3)]()){const u=r[a3(0x565,0x51d)]+(f[a3(0x4dc,0x4d3)]()-t[a3(0x4d6,0x4d3)]())-r[a3(0x4f7,0x4e4)];const v=yield*this[a3(0x557,0x537)](u,TimeUnit['Millisecond'],yield r['$'][a3(0x4cb,0x4e6)]);m['push']({'identifier':r['$'][a3(0x4b4,0x4fa)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x474,0x4bd)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x50c,0x51d)],'proposedArgs':[r['endOffset']+(f[a3(0x4a2,0x4d3)]()-t[a3(0x48e,0x4d3)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x532,0x541)](n);if(d['length']){d[d[a3(0x4aa,0x4c0)]-0x1][a3(0x50f,0x51a)]=null;}for(const w of l){j[a3(0x53c,0x513)][a3(0x51e,0x4f9)](w);}}let p='';if(d){p=this[a3(0x511,0x540)](d);}if(p!==this[a3(0x502,0x515)]){o=!![];d=d?d[a3(0x50f,0x4f7)]():d;this[a3(0x502,0x515)]=p;}if(o){yield*this[a3(0x4cf,0x4d2)](d,m);}}function a3(a,b){return U(b-0x39f,a);}return h;}[U(0x1a1,0x1bd)](c){c=c||this[a4(0x1b6,0x190)];function a4(a,b){return U(a-0x7b,b);}return c?.[a4(0x1bb,0x1cd)](d=>''+d[a4(0x1c0,0x187)]+'-'+d[a4(0x1aa,0x17d)]?.[a4(0x1af,0x1f4)]()+'-'+d[a4(0x1f9,0x219)]+'-'+d[a4(0x199,0x190)]?.[a4(0x1af,0x19f)]())[a4(0x1dd,0x1c0)](';');}static['processData'](c,d,e,f,g){function a5(a,b){return U(b-0x13c,a);}if(e){f[a5(0x26e,0x26d)]=e[a5(0x288,0x2ab)];}return super[a5(0x2ec,0x2a6)](c,d,e,f,g);}[U(0x1a3,0x1bf)](c){const d=this[a6(0x492,0x4cd)]?.['segmentModelClass']||this[a6(0x454,0x497)]?.[a6(0x47c,0x4a8)];if(!d)return c;function a6(a,b){return U(a-0x323,b);}const e=c[a6(0x4ca,0x4b6)]?c:d[a6(0x49a,0x465)](c);if(!e[a6(0x4a9,0x46c)])e['event']=this;return e;}['processSegmentsValue'](c){if(c===void 0x0)return void 0x0;function a7(a,b){return U(a-0x284,b);}if(c==null)return null;return c['map'](d=>this[a7(0x427,0x3eb)](d));}*[U(0x1a4,0x171)](){const c=yield this['$'][a8(0x15b,0x124)];function a8(a,b){return U(a- -0x3a,b);}const d=c[a8(0xe5,0xe8)][a8(0x118,0x147)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a8(0x14d,0x142)]){e=yield*this[a8(0x10a,0xce)]();}else{e=yield*super[a8(0x16a,0x15a)]();}return e;}*[U(0x144,0x14f)](){function a9(a,b){return U(b- -0x61,a);}const c=yield this['$'][a9(0x135,0x134)];const d=yield this['$']['segments'];const e=yield this['$'][a9(0x74,0xbd)];let f;if(d){const g=d[d[a9(0xc5,0xc0)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x149,0x12d)](e,![],h,TimeUnit[a9(0x12f,0x123)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this['getProject']()[a9(0x121,0xec)]?i:yield*this[a9(0x88,0xc7)](i,!![]);}return f;}*['calculateEndDateBySegments'](){const c=yield this['$'][aa(-0xb5,-0xe4)];const d=yield this['$']['segments'];const e=yield this['$'][aa(-0x11b,-0x11c)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(-0xcc,-0xa4)];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(-0xc6,-0xf9)],{'ignoreSegments':!![]});const j=yield*this[aa(-0x11e,-0x118)]();f=j&&!this[aa(-0x11d,-0x15a)]()[aa(-0xfd,-0x128)]?i:yield*this[aa(-0x122,-0xe9)](i,![]);}function aa(a,b){return U(a- -0x24a,b);}return f;}*['calculateEndDate'](){const c=yield this['$'][ab(-0x56,-0x68)];const d=c[ab(-0xcc,-0xa3)][ab(-0x99,-0x6d)](EndDateVar);function ab(a,b){return U(a- -0x1eb,b);}let e;if(d===endDateByStartDateAndSegmentsFormula[ab(-0x64,-0x5f)]){e=yield*this[ab(-0x83,-0xa7)]();}else{e=yield*super[ab(-0x95,-0xac)]();}return e;}*[U(0x1a9,0x1c8)](){function ac(a,b){return U(b- -0x159,a);}let c;if(yield*this[ac(0x7,-0x39)]()){c=yield*this['calculateDurationBySegments']();}else{c=yield*super['calculateDurationProposed']();}return c;}*[U(0x128,0x10c)](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);function ad(a,b){return U(a- -0x1c3,b);}return yield*super[ad(-0x9b,-0xdc)](c,d,e);}*['calculateDurationBySegments'](){function ae(a,b){return U(a-0x20c,b);}let c;const d=yield this['$'][ae(0x3a1,0x35c)];const e=yield this['$'][ae(0x353,0x31f)];const f=yield this['$']['segments'];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0x3a4,0x399)](g,TimeUnit[ae(0x390,0x37f)],e);}return c;}*[U(0x136,0xf7)](c,d){const e=yield this['$'][af(-0x1b6,-0x187)];let f=c[af(-0x202,-0x1f0)];if(!e||f){return yield*super[af(-0x1f5,-0x1b2)](c,d);}const g=this[af(-0x1fe,-0x22a)]();const h=yield this['$'][af(-0x1b3,-0x1e2)];function af(a,b){return U(a- -0x32b,b);}const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x1c5,-0x1c1)];const k=c[af(-0x18b,-0x167)]!==![];const l=(yield this['$']['ignoreResourceCalendar'])||(yield*this['hasElapsedDuration']())||c[af(-0x1e9,-0x208)]||!i[af(-0x1d4,-0x192)];const m=g[af(-0x1c6,-0x1bb)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$']['segments'];f=f||!r||k===![]&&r[0x0][af(-0x1fc,-0x1c4)]>=c[af(-0x20d,-0x1e4)]||k===!![]&&r[r[af(-0x20a,-0x22c)]-0x1]['endDate']<c[af(-0x1fc,-0x1c8)];if(!f){r=r[af(-0x1d3,-0x18c)]();if(k){o=r[af(-0x18c,-0x183)]();p=0x0;n=0x1;s=o[af(-0x1b0,-0x193)]?o[af(-0x1ad,-0x172)]:MAX_DATE[af(-0x1f7,-0x1fe)]();}else{o=r[af(-0x200,-0x1f4)]();p=o[af(-0x1ad,-0x1cd)];n=-0x1;s=o['endOffset'];}q=s-o[af(-0x1e6,-0x1d0)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0x212,-0x24c)];const v=this[af(-0x1b2,-0x1ac)];return j[af(-0x1f5,-0x202)](Object['assign']({'maxRange':m},c),(w,x,y)=>{const z=y['getCalendarsWorkStatus']();function ag(a,b){return af(b-0x309,a);}const A=y[ag(0xe6,0x126)]();if(z[ag(0x152,0x130)](h)&&(l||A[ag(0x15f,0x15b)](B=>i[ag(0x134,0x115)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x['getTime']()-w[ag(0x13b,0x112)]();if(u){const F=w[ag(0x11b,0x147)]()-x[ag(0x146,0x147)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(0x146,0x123)]){const G=Math['max'](D,o[ag(0x169,0x123)]);const H=Math[ag(0x115,0x105)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J['getTime']()-I[ag(0x12d,0x112)]();if(q<v){o=k?r[ag(0x17c,0x17d)]():r[ag(0x118,0x109)]();if(o){s=!k||o[ag(0x12c,0x159)]?o[ag(0x147,0x15c)]:MAX_DATE[ag(0x10b,0x112)]();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*[U(0x125,0x111)](){function ah(a,b){return U(b- -0x120,a);}const c=yield this['$']['isSegmented'];return c||(yield*super[ah(0x13,0x5)]());}[U(0x16b,0x184)](c,d){function ai(a,b){return U(a- -0x13,b);}d=d||this['getSegments']();if(d){const e=this[ai(0x13e,0x17b)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){d=d||this[aj(0x458,0x47b)]();function aj(a,b){return U(a-0x31c,b);}return d?d[aj(0x4b7,0x4cb)](e=>c>=e[aj(0x44b,0x48c)]&&c<e[aj(0x43a,0x425)]):-0x1;}get[U(0x18a,0x158)](){function ak(a,b){return U(b-0x11,a);}const c=this[ak(0x14e,0x14d)]();return c?c[0x0]:null;}get[U(0x124,0x101)](){function al(a,b){return U(b- -0x50,a);}const c=this[al(0xe2,0xec)]();return c?c[c[al(0x8a,0xd1)]-0x1]:null;}[U(0x19a,0x163)](c){function am(a,b){return U(a-0x2a8,b);}const d=this[am(0x3e4,0x3d9)]();return d?.[c];}async[U(0x126,0xf2)](c,d=0x1,e){const f=this[an(0x1eb,0x1de)]();const g=f[an(0x1f5,0x20a)];await f['commitAsync']();const h=this;if(!c||h[an(0x1c2,0x1ee)]&&h[an(0x205,0x1df)]?.[an(0x24e,0x208)])return;const j=h[an(0x233,0x20c)];const k=h['durationUnit'];const m=h[an(0x1e5,0x1e0)];const n=h[an(0x1cb,0x1cf)];e=e?_enc[an(0x1fa,0x241)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x268,0x226)];let p=h['segments']||[];let q,r;if(o){r=h[an(0x20c,0x202)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s['startDate']:m;const u=s[an(0x23c,0x20c)];function an(a,b){return U(b-0xb1,a);}const v=s[an(0x20f,0x1f8)];const w=s['name'];const x=h['run'](an(0x23e,0x1fb),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x27e,0x248)]('convertDurationGen',d,e,TimeUnit[an(0x1f4,0x235)]);const A=z+h[an(0x238,0x248)](an(0x23f,0x1fb),m,c,TimeUnit[an(0x251,0x235)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x22f,0x228)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x215,0x209)](0x0);p[an(0x22f,0x253)](r+0x1,0x0,B);h[an(0x1e8,0x1ec)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x1e1,0x1d2)];C<D;C++){const E=p[C];if(E){E[an(0x1b2,0x1f6)]+=z;E[an(0x1f7,0x22f)]+=z;}}}else{const F=g[an(0x223,0x228)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x251,0x228)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x252,0x20c)]=j;h[an(0x235,0x1ec)]=[F,G];}return f['commitAsync']();}async[U(0x13e,0x115)](c,d){if(!this[ao(0x3aa,0x385)])return;function ao(a,b){return U(a-0x235,b);}this[ao(0x3c7,0x3bd)]=!![];c=c||this[ao(0x3bf,0x39b)];d=d||this[ao(0x359,0x34a)];if(c['startOffset']>d[ao(0x37a,0x34d)]){let f=d;d=c;c=f;}c[ao(0x353,0x311)]=d[ao(0x364,0x331)];const e=await this[ao(0x362,0x33e)]()[ao(0x3bd,0x405)]();this[ao(0x3c7,0x391)]=![];return e;}[U(0x139,0x169)](c,d){if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x349,0x346)]();if(!this[ap(0x3a6,0x363)][f['internalId']]||f[ap(0x349,0x383)]>this[ap(0x33b,0x363)][f['internalId']]){Object['assign'](g,f[ap(0x343,0x377)][ap(0x333,0x33f)]);}e[ap(0x36c,0x364)](g);this['_segmentGeneration'][f[ap(0x324,0x320)]]=f[ap(0x3b5,0x383)];}else{e[ap(0x338,0x364)](f);}}d=e;}function ap(a,b){return U(b-0x1f6,a);}super[ap(0x30b,0x32f)](c,d);}[U(0x155,0x19c)](){const c=this[aq(0x3b1,0x3ca)];if(c){this[aq(0x3e2,0x3e5)]?.[aq(0x401,0x414)](c);}function aq(a,b){return U(a-0x276,b);}super[aq(0x3cb,0x3b7)]();}[U(0x196,0x180)](...c){this[ar(0x3ba,0x3da)][ar(0x3a8,0x3e5)][ar(0x3f1,0x3ed)]++;function ar(a,b){return U(b-0x2aa,a);}super['endBatch'](...c);this[ar(0x3f7,0x3da)]['segments'][ar(0x3b7,0x3ed)]--;}[U(0x163,0x182)](c=null,d=null){function as(a,b){return U(b-0x3c2,a);}const e=super['copy'](c,d);e[as(0x553,0x55b)]['segments']=void 0x0;if(e[as(0x525,0x4fd)]){e[as(0x4be,0x4fd)]=e['segments'][as(0x4e4,0x502)](f=>Object[as(0x547,0x553)](f[as(0x544,0x525)](),{'event':e}));}return e;}[U(0x150,0x132)](){const c=super[at(-0xda,-0xd2)](),d=this[at(-0xc1,-0xb2)](at(-0x115,-0xe7)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(b- -0x222,a);}if(e){let h=_end[at(-0x5f,-0x86)](c,f);if(h){h=h[at(-0xf8,-0xe2)](i=>i[at(-0xb1,-0xd2)]());_end[at(-0xed,-0xea)](c,f,h);}}return c;}[U(0x185,0x190)](){function au(a,b){return U(b- -0xff,a);}const {segments:c}=this;c?.[au(0xba,0xa7)](d=>d[au(0x95,0x86)]());super[au(0xa9,0x86)]();}}b['$name']=U(0x132,0x13a);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x161,0x125)],U(0x195,0x176),void 0x0);__decorate([model_field({'type':U(0x11c,0x15a),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(0x161,0x1a4)],'segments',void 0x0);__decorate([field()],b[U(0x161,0x157)],U(0x18c,0x192),void 0x0);__decorate([field()],b[U(0x161,0x18e)],U(0x175,0x152),void 0x0);__decorate([write(U(0x13b,0x166))],b['prototype'],U(0x14c,0x153),null);__decorate([calculate(U(0x13b,0x10d))],b[U(0x161,0x166)],U(0x154,0x187),null);function U(a,b){return _enN(b,a-0x1ee);}__decorate([calculate('adjustedSegments')],b[U(0x161,0x155)],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|