@bryntum/engine-thin-trial 7.2.0 → 7.2.2

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.
@@ -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(b-0x4b,a);}while(!![]){try{const d=-parseInt(j(0x218,0x218))/0x1+parseInt(j(0x25c,0x220))/0x2*(parseInt(j(0x1f9,0x206))/0x3)+-parseInt(j(0x1d3,0x1f7))/0x4*(-parseInt(j(0x240,0x256))/0x5)+parseInt(j(0x238,0x1f5))/0x6+-parseInt(j(0x229,0x20f))/0x7*(-parseInt(j(0x209,0x231))/0x8)+parseInt(j(0x230,0x232))/0x9*(parseInt(j(0x252,0x225))/0xa)+-parseInt(j(0x241,0x22e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x7efd3));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';function _ena(){const aj=['reason','autoCommitMode','cycle','autoCommitTimeoutId','clearRejected','push','propagate','warn','startNewEpoch','addEdge','topRevision','readAsync','78JYqepp','$activeTransaction','onComputationCycle','variable','forEach','hasPendingAutoCommit','baseRevisionTentative','initialize','compactRevisions','2245817dmSEKq','baseRevisionStable','onComputationCycleHandler','observe','isCommitting','delete','finalizeCommit','message','baseRevision','730081ojtvZA','addListener','onWriteDuringCommit','write','eachReachableRevision','isWritingPreviousData','$followingRevision','throw','23792BjPBIQ','previous','level','finally','origin','10tyBBAJ','isJustCleared','length','isInitialCommit','clearBranch','followingRevision','clearProperties','walkContext','dirty','8526793drAxHL','reject','autoCommitHandler','16zOpCIV','1941633VeVwbd','ongoing','startOrigin','getValue','proposedValue','identifier','lazy','autoCommit','trigger','identifierNamed','candidate','scheduleAutoCommit','proposedArguments','activeTransaction','ignore','new','variableNamed','then','constructor','value','referenceCount','cleanup','read','commit','getActiveEntry','from','scope','previousAxis','selfDependent','resolve','listeners','transactionClass','enableProgressNotifications','Adding\x20identifier\x20during\x20commit','sync','addIdentifier','5lNSEJu','log','writtenValue','getProposedValue','continueCalculation','undo','rejectedWith','addCycle','proposedIsPrevious','set','unshift','clear','redo','hasIdentifier','writes','Computation\x20cycle:\x0a','handlers','observeContext','onPropagationProgressNotification','get','reachableCount','unScheduleAutoCommit','_isInitialCommit','readProposedOrPrevious','doCommitAsync','hasValue','Invalid\x20compact\x20operation','historyLimit','markAndSweep','Removing\x20identifier\x20during\x20commit','entries','proposedArgs','Graph\x20cleared','commitAsync','hasProposedValue','readPrevious','1446972dCASFY','name','2470136mhnRid','readPreviousAsync','isShadow'];_ena=function(){return aj;};return _ena();}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x188;let f=c[d];return f;};return _enb(a,b);}function _enl(a,b){return _enb(b- -0x109,a);}class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b-0x1e3,a);}this[k(0x3b6,0x379)]=[];}[_enl(0x119,0xe6)](a){function m(a,b){return _enl(b,a- -0x181);}for(let b=0x0;b<this['handlers'][m(-0xae,-0xbc)];b++)this[m(-0xf4,-0xd9)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[n(0x236,0x23a)]=void 0x0;this[n(0x244,0x245)]=Revision[n(0x2b1,0x26f)]();this[n(0x1fe,0x232)]=void 0x0;this['historyLimit']=0x0;this[n(0x256,0x27e)]=new Map();this[n(0x270,0x24b)]=0x0;this[n(0x200,0x235)]=void 0x0;this[n(0x223,0x241)]=![];this[n(0x296,0x280)]=![];this[n(0x25c,0x261)]=Promise[n(0x254,0x27d)]();this[n(0x21b,0x215)]=!![];this[n(0x20f,0x22b)]=null;this['autoCommit']=![];function n(a,b){return _enl(a,b-0x182);}this[n(0x263,0x229)]=n(0x2a0,0x282);this[n(0x294,0x25e)]=null;this[n(0x263,0x248)]=n(0x28a,0x24d);this[n(0x25e,0x236)]=n(0x276,0x24d);this[n(0x2a8,0x27f)]=Transaction;this[n(0x239,0x254)]=![];this['$followingRevision']=void 0x0;}[_enl(0xde,0xb9)](...a){super[o(0x41c,0x431)](...a);if(!this['topRevision'])this[o(0x46a,0x428)]=this[o(0x420,0x43b)];if(this[o(0x421,0x45d)]){this[o(0x45a,0x454)]=this['autoCommitMode']===o(0x492,0x478)?b=>this['commit'](b):async b=>this[o(0x418,0x416)](b);}function o(a,b){return _enl(a,b-0x378);}this[o(0x443,0x411)]();}[_enl(0xad,0xb7)](){function p(a,b){return _enl(b,a-0x39a);}return this[p(0x443,0x42c)]!==null;}get['dirty'](){return this['activeTransaction']['dirty'];}[_enl(0x82,0x88)](){function q(a,b){return _enl(b,a- -0x218);}this[q(-0x13d,-0x15d)]();this[q(-0x186,-0x168)]();this[q(-0x155,-0x112)][q(-0x120,-0x137)]&&this[q(-0x155,-0x187)][q(-0x120,-0x14c)][q(-0x190,-0x1b1)]();this[q(-0x155,-0x173)][q(-0x14b,-0x16f)]=null;this[q(-0x11c,-0x10e)][q(-0x190,-0x157)]();this[q(-0x168,-0x17e)]=this['baseRevision'];this[q(-0x14e,-0x124)]=void 0x0;this[q(-0x165,-0x152)]=void 0x0;this[q(-0x17f,-0x13c)]();this['isJustCleared']=!![];}[_enl(0xfb,0xd5)](){this[r(0x427,0x3e5)]();this[r(0x3de,0x3de)]();function r(a,b){return _enl(b,a-0x34c);}for(const [a,b]of this[r(0x414,0x3ea)]()){if(b)a['reachableCount']--;a[r(0x43e,0x446)]--;}this[r(0x448,0x430)]['clear']();this['topRevision']=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x3ff,0x3c2)]=void 0x0;}*['eachReachableRevision'](){let a=!![];let b=0x0;function s(a,b){return _enl(a,b- -0x28d);}for(const c of this[s(-0x1ef,-0x1dd)][s(-0x176,-0x194)]()){yield[c,a||b<this[s(-0x22b,-0x1f5)]];if(c===this[s(-0x20c,-0x1ca)]){a=![];}else{if(!a)b++;}}}get[_enl(0x9a,0xd4)](){function t(a,b){return _enl(b,a-0x34e);}return this[t(0x3e1,0x3a2)];}set['isInitialCommit'](a){this['_isInitialCommit']=a;}[_enl(0x5a,0x99)](){let a;const b=[];for(const [c,d]of this['eachReachableRevision']()){if(d){c[u(0x2,0x2e)]++;a=c;}else b[u(0x1c,0xe)](c);c[u(0x63,0x5d)]++;}b[u(-0x8,0x1b)](a);function u(a,b){return _enl(b,a- -0x8f);}for(let e=b[u(0x44,0x21)]-0x1;e>=0x1&&b[e][u(0x2,-0x10)]===0x0;e--){this[u(0x2b,-0x2)](b[e-0x1],b[e]);}}[_enl(0xe6,0xba)](a,b){if(b['reachableCount']>0x0||a[v(0xfe,0x11f)]!==b)throw new Error(v(0xc8,0xae));if(b[v(0x123,0x105)]<=0x1){for(const [c,d]of a[v(0x129,0x160)]){if(d[v(0x112,0x137)]()===TombStone){b['scope'][v(0xf1,0x12b)](c);}else{const e=b[v(0x129,0x155)]['get'](c);if(d[v(0x101,0xc9)]===d){if(e){e[v(0xb9,0xf4)]();e[v(0x108,0xf3)]();}}else if(e&&d[v(0x101,0xcd)]===e){d['mergePreviousOrigin'](a[v(0x129,0x13c)]);}else if(c[v(0x115,0x12b)]&&!d[v(0x101,0xc2)]&&e&&e[v(0x101,0xc6)]){d[v(0x111,0xdf)]()[v(0x113,0xd7)]=e[v(0x101,0x101)][v(0x122,0x119)]!==void 0x0?e['origin'][v(0x122,0x11e)]:e[v(0x101,0x13a)][v(0x113,0x105)];}d['previous']=void 0x0;b[v(0x129,0x137)][v(0xb7,0x9e)](c,d);}}copySetInto(a['selfDependent'],b[v(0x12b,0x137)]);a[v(0x129,0x158)]=b['scope'];b[v(0x129,0x117)]=null;}else{a[v(0x129,0xf1)]=new Map(concat(b['scope'],a[v(0x129,0x162)]));a[v(0x12b,0x120)]=new Set(concat(b[v(0x12b,0x165)],a[v(0x12b,0x159)]));b['referenceCount']--;}function v(a,b){return _enl(b,a-0x31);}a[v(0xfe,0xff)]=null;}get[_enl(0xef,0xd6)](){if(this[w(0x494,0x4af)]!==void 0x0)return this[w(0x494,0x469)];const a=Array[w(0x4c1,0x4d4)](this[w(0x47a,0x4ad)][w(0x4c3,0x4ae)]());const b=[];for(let c=a[w(0x49d,0x47e)]-0x1;c>0x0;c--)b[w(0x475,0x488)]([a[c],a[c-0x1]]);function w(a,b){return _enl(b,a-0x3ca);}return this[w(0x494,0x4b1)]=new Map(b);}get[_enl(0xd1,0xeb)](){if(this[x(0x241,0x21b)])return this['$activeTransaction'];function x(a,b){return _enl(b,a-0x18e);}return this[x(0x241,0x26e)]=this[x(0x28b,0x2cb)]['new']({'baseRevision':this[x(0x246,0x27e)]||this[x(0x251,0x215)],'graph':this});}['branch'](a){const b=this[y(0x243,0x22a)];function y(a,b){return _enl(a,b-0x13a);}return b[y(0x1f4,0x227)](Object['assign']({},a,{'baseRevision':this[y(0x1fd,0x1fd)]}));}[_enl(0xe8,0xac)](a){function z(a,b){return _enl(a,b-0x482);}return this[z(0x5a0,0x577)](a);}[_enl(0xba,0xdb)](a){this[A(0x236,0x1fe)]['reject'](RejectEffect['new']({'reason':a}));function A(a,b){return _enl(b,a-0x14b);}this[A(0x22a,0x264)]=Promise[A(0x246,0x213)]();this[A(0x1fe,0x232)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[A(0x207,0x234)]){this[A(0x20e,0x1dc)]=this[A(0x207,0x245)];this[A(0x207,0x1d2)]=void 0x0;}}[_enl(0xcb,0xf5)](a){this[B(0x2d2,0x308)]=![];this[B(0x28f,0x2c8)]();this[B(0x2f7,0x2f2)]=this[B(0x30f,0x2f9)];const b=this[B(0x2e3,0x321)];function B(a,b){return _enl(a,b-0x236);}const c=b[B(0x321,0x32b)](a);this['$activeTransaction']=void 0x0;const d=this[B(0x32a,0x2f7)](c);this[B(0x2e0,0x2f2)]=void 0x0;this[B(0x2cb,0x30a)]=![];return d;}async['propagateAsync'](a){function C(a,b){return _enl(b,a-0x3bf);}return this[C(0x45d,0x432)](a);}async['commitAsync'](a){if(this[D(-0x64,-0x65)])return this[D(-0x8,-0x45)];this['isJustCleared']=![];function D(a,b){return _enl(a,b- -0x124);}this[D(-0xa0,-0x65)]=!![];this['baseRevisionStable']=this[D(-0x58,-0x61)];let b;return this['ongoing']=this[D(-0x21,-0x45)][D(-0x69,-0x35)](()=>{function E(a,b){return D(b,a-0xa3);}return this[E(0x14,0xe)](a);})[D(-0x1c,-0x35)](c=>{b=c;return c;})[D(-0x8b,-0x55)](()=>{this['baseRevisionStable']=void 0x0;this[F(-0x19e,-0x1d7)]=void 0x0;this['isInitialCommit']=![];function F(a,b){return D(a,b- -0x16b);}this[F(-0x1a8,-0x1d0)]=![];});}async[_enl(0xb4,0x95)](a){this['unScheduleAutoCommit']();const b=this[G(0x4b6,0x4c7)];const c=await b[G(0x4b6,0x47a)](a);const d=Boolean(b[G(0x443,0x45f)]);const e=this[G(0x4b1,0x494)];if(!d)this[G(0x4a3,0x494)]=b[G(0x4b5,0x4c4)];this[G(0x4b8,0x48f)]=void 0x0;await this['finalizeCommitAsync'](c);if(this[G(0x4d4,0x4ae)])return{'rejectedWith':RejectEffect[G(0x4b3,0x4c9)]({'reason':G(0x449,0x479)})};if(b['rejectedWith']&&!d){this[G(0x49e,0x494)]=e;this['$activeTransaction']=void 0x0;}const f=this[G(0x490,0x49d)](c);function G(a,b){return _enl(a,b-0x3dc);}if(b[G(0x439,0x45f)])b[G(0x49b,0x486)]();if(this[G(0x4df,0x4b5)]&&!b[G(0x46c,0x45f)]){await this[G(0x471,0x471)](a);}return f;}[_enl(0xb0,0xc1)](a){function H(a,b){return _enl(b,a-0x42e);}const {revision:b,entries:c,transaction:d}=a;if(!d['rejectedWith']){if(b['previous']!==this[H(0x4f1,0x4dd)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[H(0x4f6,0x4fc)]()){if(f)e['reachableCount']--;e[H(0x520,0x4ec)]--;}this[H(0x4f1,0x4b7)]=this['topRevision']=b;for(const [g,h]of c){h[H(0x521,0x503)]();if(h[H(0x4d3,0x4e6)]()||!h[H(0x4c4,0x4a7)]())continue;const i=this[H(0x52a,0x4fa)][H(0x4be,0x4f3)](g);if(i)i[H(0x514,0x4dd)](h[H(0x50f,0x523)]());}this[H(0x4f8,0x4cd)]=void 0x0;this['markAndSweep']();}else{if(this['baseRevisionStable'])this[H(0x4f1,0x532)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;this[H(0x4e6,0x508)]=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async['finalizeCommitAsync'](a){}*[_enl(0xce,0xbd)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);function I(a,b){return _enl(b,a- -0x20c);}c[I(-0x164,-0x136)]=a;b[I(-0x188,-0x18a)](a);switch(this[I(-0x158,-0x158)]){case I(-0x120,-0x15a):console[I(-0x109,-0x10e)](c[I(-0x14a,-0x11e)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0x18b,-0x15d)](d[I(-0x12a,-0xee)]!==void 0x0?d['proposedValue']:d[I(-0x11b,-0x12e)]);case I(-0x141,-0x183):throw c;case I(-0x131,-0x12d):this['reject'](c);break;case I(-0x15f,-0x16b):warn(c);break;}}['onComputationCycleHandlerSync'](a,b){const c=new ComputationCycleError(J(0x470,0x4af)+a);function J(a,b){return _enl(b,a-0x3e4);}c['cycle']=a;b['addCycle'](a);switch(this[J(0x498,0x4c8)]){case J(0x4d0,0x4c3):console[J(0x4e7,0x4f1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x465,0x43f)](d[J(0x4c6,0x4ca)]!==void 0x0?d[J(0x4c6,0x4d7)]:d[J(0x4d5,0x4d9)]);case J(0x4af,0x49f):throw c;case J(0x4bf,0x4bd):this[J(0x4bf,0x4d4)](c);break;case J(0x491,0x4c1):warn(c);break;}}[_enl(0xfa,0xe9)](){function K(a,b){return _enl(b,a-0x196);}if(this[K(0x23f,0x261)]===null&&!this[K(0x255,0x244)]){this[K(0x23f,0x206)]=setTimeout(this['autoCommitHandler'],0xa);}}[_enl(0x69,0x92)](){function L(a,b){return _enl(b,a-0x213);}if(this[L(0x2bc,0x2c6)]!==null){clearTimeout(this[L(0x2bc,0x2b3)]);this['autoCommitTimeoutId']=null;}}[_enl(0x8a,0xb5)](a){function M(a,b){return _enl(a,b- -0xe4);}const b=VariableC();return this[M(0x55,0x1d)](b,a===void 0x0?null:a);}[_enl(0xcd,0xee)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}[_enl(0xe7,0xe3)](a,b){function N(a,b){return _enl(b,a-0x2b0);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[N(0x3b1,0x387)](c);}[_enl(0xed,0xe7)](a,b,c){const d=b[O(-0x197,-0x171)][O(-0x17f,-0x1bf)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enl(a,b- -0x261);}return this['addIdentifier'](d);}[_enl(0x11e,0x101)](a,b,...c){if(this[P(-0x171,-0x185)]){if(this['onWriteDuringCommit']===P(-0x165,-0x151))throw new Error(P(-0x131,-0x167));else if(this['onWriteDuringCommit']==='warn')warn(new Error(P(-0x131,-0x10b)));}this[P(-0x145,-0x182)][P(-0x12f,-0x12f)](a,b,...c);if(this[P(-0x14b,-0x128)])this[P(-0x147,-0x112)]();function P(a,b){return _enl(b,a- -0x230);}return a;}['removeIdentifier'](a){if(this[Q(0x45d,0x496)]){if(this['onWriteDuringCommit']===Q(0x483,0x4a2))throw new Error(Q(0x493,0x471));else if(this['onWriteDuringCommit']===Q(0x459,0x484))warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function Q(a,b){return _enl(a,b-0x3d7);}this['activeTransaction']['removeIdentifier'](a);this['listeners'][Q(0x46d,0x497)](a);if(this[Q(0x4b6,0x4bc)])this['scheduleAutoCommit']();}[_enl(0xc1,0x8a)](a){function R(a,b){return _enl(a,b- -0x18a);}return this[R(-0xb9,-0x9f)][R(-0x124,-0x100)](a);}[_enl(0xfb,0xc7)](a,b,...c){function S(a,b){return _enl(b,a- -0x1df);}if(this[S(-0x120,-0x157)]){if(this[S(-0x119,-0x158)]===S(-0x114,-0x127))throw new Error('Write\x20during\x20commit');else if(this['onWriteDuringCommit']===S(-0x132,-0x13c))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][S(-0x118,-0xd7)](a,b,...c);if(this['autoCommit'])this['scheduleAutoCommit']();}[_enl(0x80,0xa0)](a){function T(a,b){return _enl(a,b-0xeb);}return this[T(0x1ba,0x1d6)][T(0x158,0x18b)](a);}[_enl(0xa9,0xa4)](a){function U(a,b){return _enl(a,b- -0xba);}return this[U(0x4b,0x31)][U(-0x4a,-0x16)](a);}[_enl(0x12e,0xf4)](a){function V(a,b){return _enl(b,a-0xad);}return this[V(0x198,0x17d)][V(0x1a1,0x18c)](a);}[_enl(0xa9,0xb1)](a){function W(a,b){return _enl(b,a- -0xe3);}return this['activeTransaction'][W(-0x32,-0x4e)](a);}[_enl(0x79,0x90)](a){function X(a,b){return _enl(b,a-0x2e1);}return this['activeTransaction'][X(0x371,0x371)](a);}[_enl(0xfa,0xbe)](a,b){const c=this[Y(0x50b,0x4f9)](CalculatedValueGen[Y(0x4f7,0x4d7)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(b,a-0x40a);}this[Y(0x4cf,0x4e8)](c,b);return c;}[_enl(0x7f,0x8e)](a,b,c){const d=this[Z(0x55e,0x528)](CalculatedValueGen[Z(0x54a,0x50b)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x522,0x53e)](d,c);function Z(a,b){return _enl(b,a-0x45d);}return d;}['addListener'](a,b){let c=this[a0(-0x63,-0x4c)]['get'](a);function a0(a,b){return _enl(a,b- -0x148);}if(!c){c=Listener[a0(-0x1c,-0x5b)]();this[a0(-0x39,-0x4c)]['set'](a,c);}c[a0(-0xd3,-0xbb)][a0(-0x75,-0x9d)](b);}[_enl(0xb7,0x82)](){const a=this[a1(-0x11,-0x18)];function a1(a,b){return _enl(b,a- -0xd4);}const b=a[a1(-0x7,0x13)];if(!b)return![];this[a1(-0x11,-0x1d)]=b;this[a1(-0x21,0x18)]=void 0x0;return!![];}[_enl(0xa0,0x89)](){function a2(a,b){return _enl(a,b-0x5e);}const a=this['baseRevision'];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x120,0xee)](a);this[a2(0x12c,0x121)]=b;this[a2(0xe5,0x111)]=void 0x0;return!![];}[_enl(0x81,0x8f)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x5e,0x90)]();c['usedProposedOrPrevious']=!![];const d=c['getProposedValue'](b);if(d!==void 0x0)return d;if(!c[a3(0x3c,0x67)])return void 0x0;function a3(a,b){return _enl(a,b- -0x66);}const e=c[a3(0x75,0x7d)];if(e[a3(0x8c,0x7e)]){if(c[a3(0x87,0x67)][a3(0x3b,0x30)]())return c[a3(0x75,0x67)][a3(0x49,0x7b)]();if(c[a3(0x69,0x67)][a3(0x49,0x39)]())return c[a3(0x98,0x67)][a3(0x4c,0x1a)](b);return null;}return b['readPrevious'](c[a3(0x69,0x7d)]);}[RejectSymbol](a,b){function a4(a,b){return _enl(b,a-0x171);}this[a4(0x24c,0x278)](a[a4(0x217,0x246)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a5(a,b){return _enl(a,b-0x38a);}return b[a5(0x4b2,0x480)]();}[OwnIdentifierSymbol](a,b){function a6(a,b){return _enl(a,b-0x141);}const c=b[a6(0x26f,0x237)]();return c[a6(0x262,0x224)];}[WriteSymbol](a,b){function a7(a,b){return _enl(b,a- -0x197);}const c=b['getActiveEntry']();const d=a[a7(-0xb4,-0xd7)][a7(-0xc9,-0xd9)]>c[a7(-0xb4,-0x7e)][a7(-0xc9,-0xc0)];if(!d)b[a7(-0xbf,-0xe5)][a7(-0xe9,-0xd5)]();b[a7(-0xd0,-0x104)](a[a7(-0xb4,-0xf1)],...a[a7(-0xfb,-0x117)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a8(0x57,0x60)]();let d=!![];function a8(a,b){return _enl(b,a- -0x9f);}a[a8(-0x14,-0x19)][a8(0x17,0xa)](e=>{function a9(a,b){return a8(b-0x211,a);}if(e['identifier'][a9(0x1ff,0x240)]<=c[a9(0x284,0x255)]['level']&&d){b[a9(0x272,0x24a)][a9(0x21a,0x220)]();d=![];}b[a9(0x266,0x239)](e[a9(0x250,0x255)],...e[a9(0x22c,0x20e)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x27c,0x2be)];function aa(a,b){return _enl(b,a-0x199);}b[aa(0x248,0x257)](d,c,EdgeTypePast);const e=b[aa(0x234,0x1f1)][aa(0x229,0x21b)](d);return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[ab(0xf6,0x108)];b[ab(0xfe,0xd4)](d,c,EdgeTypePast);function ab(a,b){return _enl(a,b-0x25);}return b[ab(0xa3,0xc5)](d);}[ProposedValueOfSymbol](a,b){function ac(a,b){return _enl(a,b-0x31);}const c=b['getActiveEntry']();const d=a[ac(0xed,0x114)];b[ac(0xfe,0xe0)](d,c,EdgeTypePast);const e=b[ac(0x8c,0xcc)][ac(0xac,0xc1)](d);const f=e&&!e[ac(0xb0,0xd6)]()?e[ac(0xf1,0xb1)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ad(a,b){return _enl(a,b- -0x1de);}const c=b[ad(-0xfd,-0xe8)]();const d=a[ad(-0xcb,-0xfb)];b[ad(-0x159,-0x12f)](d,c,EdgeTypePast);const e=b[ad(-0x126,-0x143)]['get'](d);return e?e[ad(-0xfd,-0x13f)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ae(-0x15b,-0x18c)];b[ae(-0x1e4,-0x1c0)](d,c,EdgeTypePast);const e=b['entries']['get'](d);function ae(a,b){return _enl(a,b- -0x26f);}return e?e[ae(-0x1a2,-0x1d0)]()&&e[ae(-0x229,-0x1f0)]!==void 0x0&&!e[ae(-0x210,-0x1ea)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();function af(a,b){return _enl(b,a-0x24f);}const d=a['identifier'];b[af(0x2fe,0x311)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ag(a,b){return _enl(a,b-0x2e0);}return b[ag(0x384,0x374)](a['identifier']);}[UnsafePreviousValueOfSymbol](a,b){function ah(a,b){return _enl(b,a-0x98);}return b[ah(0x138,0x162)](a[ah(0x17b,0x1ac)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(0x107,0x131)]();const d=a[ai(0x132,0x11e)];function ai(a,b){return _enl(a,b-0x3b);}b[ai(0xf4,0xea)](d,c,EdgeTypePast);const e=b[ai(0xcc,0xd6)]['get'](d);return e&&!e[ai(0xca,0xe0)]()?e[ai(0x14e,0x125)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(a-0x333,b);}while(!![]){try{const d=parseInt(l(0x426,0x434))/0x1+parseInt(l(0x40e,0x40c))/0x2*(parseInt(l(0x417,0x41a))/0x3)+-parseInt(l(0x407,0x3f7))/0x4*(-parseInt(l(0x425,0x41a))/0x5)+parseInt(l(0x420,0x43a))/0x6+-parseInt(l(0x3f9,0x3f2))/0x7*(-parseInt(l(0x423,0x42a))/0x8)+-parseInt(l(0x3f6,0x403))/0x9+parseInt(l(0x3f2,0x3f7))/0xa*(-parseInt(l(0x40f,0x3f7))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c1e3));var __decorate=function(a,b,e,f){var g=arguments[m(0xe4,0xca)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function m(a,b){return _enb(b- -0xc,a);}if(typeof Reflect===m(0xe1,0xc6)&&typeof Reflect[m(0xd1,0xbc)]===m(0xc6,0xb4))h=Reflect[m(0xb4,0xbc)](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[m(0xba,0xb1)](b,e,h),h;};import{Base}from'../class/Base.js';function _ena(){const D=['2755788emputQ','readFromGraph','sync','40AfXWHn','writeToTransaction','93735RwiTJW','464257qrkHeJ','defineProperty','Unknown\x20identifier\x20','4320UgOrUA','function','identifier','context','2488257FfqYoz','calculation','new','98077zZimzh','lazy','decorate','proposedValue','enterGraph','pure','readAsync','isWritingUndefined','needToBuildProposedValue','proposedArguments','quarkClass','leaveGraph','object','DependsOnlyOnDependsOnlyOnUserInput','4RMqtEZ','readFromTransactionAsync','length','value','graph','DependsOnSelfKind','getWriteTarget','2jnCcmV','22374FLHvPa','proposedIsPrevious','UserInput','readFromTransaction','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','equality','proposedValueIsBuilt','total','1167141HZKjTq','mix','DependsOnlyOnUserInput','writeToGraph','write','prototype','newQuark','level','Abstract\x20method\x20`calculation`\x20called'];_ena=function(){return D;};return _ena();}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){function n(a,b){return _enb(a- -0x2f6,b);}a[a[n(-0x218,-0x22c)]=0x0]=n(-0x218,-0x20a);a[a[n(-0x210,-0x206)]=0x1]=n(-0x210,-0x216);a[a[n(-0x223,-0x231)]=0x2]=n(-0x223,-0x20c);a[a['DependsOnSelfKind']=0x3]=n(-0x21d,-0x229);}(Levels||(Levels={})));class Meta extends Base{constructor(){super(...arguments);this['name']=void 0x0;this[o(0xe3,0xfd)]=![];this[o(0xff,0xeb)]=!![];function o(a,b){return _enb(a-0x1c,b);}this[o(0xe7,0xfb)]=!![];this[o(0xfe,0xef)]=![];}[_enp(-0x3f,-0x26)](a){function q(a,b){return _enp(a,b-0x290);}throw new Error(q(0x2a8,0x292));}[_enp(-0x23,-0x9)](a,b){return a===b;}}__decorate([prototypeValue(Levels[_enp(-0x29,-0x11)])],Meta[_enp(0x15,-0x1)],_enp(0x4,0x1),void 0x0);function _enp(a,b){return _enb(b- -0xea,a);}__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0x1e,0x5),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xbd;let f=c[d];return f;};return _enb(a,b);}class Identifier extends Meta{constructor(){super(...arguments);this['ignoreEdgesFlow']=![];function r(a,b){return _enp(b,a-0xac);}this[r(0x84,0x81)]=void 0x0;this[r(0x8f,0x8b)]=![];}[_enp(-0x6,0x0)](a){function s(a,b){return _enp(a,b-0x32f);}const b=this[s(0x2fd,0x315)]['new']();b[s(0x2f0,0x306)]=this;b[s(0x2fc,0x313)]=this['proposedValueIsBuilt'];return b;}[_enp(0xe,-0x2)](a,b,c,d,...e){c=c||b[t(0x41a,0x412)](a);function t(a,b){return _enp(a,b-0x422);}c[t(0x408,0x401)]=d;c[t(0x406,0x407)]=e[t(0x3f7,0x40e)]>0x0?e:void 0x0;c[t(0x3fd,0x415)]=b[t(0x425,0x410)]['isWritingPreviousData']>0x0;}[_enp(0x9,0x7)](a,b,...c){function u(a,b){return _enp(a,b- -0x18f);}a[u(-0x18a,-0x191)](this,b,...c);}[_enp(-0x15,-0x3)](a,b,...c){function v(a,b){return _enp(a,b- -0x286);}a[v(-0x281,-0x288)](this,b,...c);}['readFromGraphAsync'](a){function w(a,b){return _enp(b,a-0x441);}return a[w(0x423,0x439)](this);}[_enp(0xe,0x4)](a){return a['read'](this);}[_enp(-0x26,-0xb)](a){return a['read'](this);}[_enp(-0x18,-0x15)](a){return a['readAsync'](this);}['buildProposedValue'](a,b,c){return void 0x0;}[_enp(-0x2d,-0x20)](a){}[_enp(-0x6,-0x19)](a){}}const IdentifierC=a=>Identifier[_enp(-0x23,-0x25)](a);const QuarkSync=Quark[_enp(-0xd,-0x5)](CalculationSync['mix'](Map));const QuarkGen=Quark[_enp(-0x12,-0x5)](CalculationGen[_enp(0x12,-0x5)](Map));class Variable extends Identifier{[_enp(-0x21,-0x26)](a){function x(a,b){return _enp(a,b- -0x169);}throw new Error(x(-0x175,-0x173));}['write'](a,b,c,d,...e){function y(a,b){return _enp(a,b-0x342);}c=c||b[y(0x324,0x332)](a);c[y(0x341,0x32f)]=d;c['proposedArguments']=e['length']>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(-0x26,-0xc)])],Variable[_enp(0x6,-0x1)],'level',void 0x0);__decorate([prototypeValue(QuarkSync)],Variable['prototype'],_enp(-0x1c,-0x1a),void 0x0);function VariableC(...a){function z(a,b){return _enp(b,a-0x432);}return Variable[z(0x40d,0x406)](...a);}class CalculatedValueSync extends Identifier{[_enp(-0x15,-0x26)](a){return a(ProposedOrPrevious);}}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync['prototype'],'quarkClass',void 0x0);function CalculatedValueSyncC(...a){function A(a,b){return _enp(b,a- -0x13f);}return CalculatedValueSync[A(-0x164,-0x14d)](...a);}class CalculatedValueGen extends Identifier{*['calculation'](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen[_enp(-0x6,-0x1)],_enp(-0xa,-0x1a),void 0x0);function CalculatedValueGenC(...a){function B(a,b){return _enp(b,a- -0x17d);}return CalculatedValueGen[B(-0x1a2,-0x198)](...a);}const throwUnknownIdentifier=a=>{function C(a,b){return _enp(a,b- -0x1b4);}throw new Error(C(-0x1d4,-0x1e0)+a);};export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
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(a- -0x2c6,b);}const c=a();while(!![]){try{const d=-parseInt(o(-0xd4,-0xdb))/0x1+-parseInt(o(-0xb9,-0xc3))/0x2+-parseInt(o(-0xc1,-0xac))/0x3+parseInt(o(-0xa2,-0x98))/0x4*(parseInt(o(-0xb7,-0xae))/0x5)+-parseInt(o(-0xbe,-0xb7))/0x6+-parseInt(o(-0xc3,-0xb9))/0x7*(parseInt(o(-0xa8,-0x92))/0x8)+parseInt(o(-0x9b,-0xa2))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc3980));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){a[a[p(0x36b,0x36d)]=0x1]=p(0x369,0x36d);function p(a,b){return _enb(b-0x148,a);}a[a[p(0x332,0x349)]=0x2]=p(0x338,0x349);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this['identifier']=void 0x0;this[q(0x3ff,0x3fd)]=void 0x0;function q(a,b){return _enb(a-0x1eb,b);}this[q(0x40e,0x3f5)]=void 0x0;this['proposedIsPrevious']=![];this[q(0x3e2,0x3e1)]=void 0x0;this[q(0x403,0x3f6)]=![];this[q(0x414,0x3fc)]=void 0x0;this[q(0x3f5,0x40a)]=void 0x0;this['originId']=MIN_SMI;this[q(0x3e6,0x3db)]=![];this[q(0x3eb,0x3ef)]=0x0;this[q(0x3f7,0x3f2)]=NOT_VISITED;this[q(0x3e5,0x400)]=0x0;this[q(0x3ed,0x3e5)]=void 0x0;this[q(0x40b,0x41b)]=void 0x0;}static['new'](c){const d=new this();function r(a,b){return _enb(a- -0x13b,b);}c&&Object[r(0xc9,0xcb)](d,c);return d;}get['level'](){function s(a,b){return _enb(a-0xce,b);}return this[s(0x2f4,0x30d)][s(0x2f8,0x30e)];}get['calculation'](){return this['identifier']['calculation'];}get[_ent(-0x13c,-0x12a)](){function u(a,b){return _ent(a-0x104,b);}return this[u(-0x22,-0x20)][u(-0x38,-0x1f)]||this[u(-0x22,-0x22)];}[_ent(-0x157,-0x13e)](){function v(a,b){return _ent(a-0x1e,b);}this[v(-0x12e,-0x124)]=MAX_SMI;}[_ent(-0x130,-0x12b)](){function w(a,b){return _ent(a-0x700,b);}this[w(0x5ca,0x5bd)]();}[_ent(-0x13b,-0x11f)](){function x(a,b){return _ent(b-0x41b,a);}return Boolean(this[x(0x2cc,0x2d9)]&&this[x(0x2c3,0x2d9)]!==this);}[_ent(-0x143,-0x129)](c){this[y(-0x98,-0x93)]=c;this[y(-0x86,-0x7d)]=NOT_VISITED;function y(a,b){return _ent(a-0xba,b);}if(this[y(-0x92,-0x8c)]<0x0)this['edgesFlow']=0x0;this[y(-0x7a,-0x8a)]=![];this[y(-0x7c,-0x70)]();this[y(-0x80,-0x6b)]();this[y(-0x90,-0x92)]=void 0x0;if(this[y(-0x88,-0x9f)]&&this[y(-0x88,-0x88)]===this){this['proposedArguments']=void 0x0;if(this[y(-0x7e,-0x92)]!==void 0x0){this[y(-0x6f,-0x7d)]=this[y(-0x7e,-0x7f)];}this[y(-0x7e,-0x7f)]=void 0x0;}else{this[y(-0x88,-0x88)]=void 0x0;this[y(-0x7e,-0x64)]=void 0x0;}if(this[y(-0x6c,-0x7f)][y(-0x71,-0x8e)]&&this[y(-0x6f,-0x67)]!==TombStone){this['needToBuildProposedValue']=!![];this[y(-0x6f,-0x7e)]=void 0x0;}}[_ent(-0x14e,-0x131)](c){this[z(-0x55,-0x6a)]=c[z(-0x72,-0x6a)];this['proposedValue']=c[z(-0x51,-0x5b)];function z(a,b){return _ent(b-0xce,a);}this['proposedArguments']=c['proposedArguments'];this[z(-0x78,-0x66)]=c[z(-0x4d,-0x66)];}['clearProperties'](){this[A(0x2c0,0x2d3)]=void 0x0;function A(a,b){return _ent(b-0x40b,a);}this[A(0x2f7,0x2e2)]=void 0x0;this['proposedArguments']=void 0x0;}[_ent(-0x131,-0x117)](c){function B(a,b){return _ent(b-0x304,a);}const d=this[B(0x1af,0x1c2)];if(d!==this[B(0x1c9,0x1e1)])throw new Error(B(0x1d9,0x1cd));this['copyFrom'](d);const e=this[B(0x1a6,0x1b0)]();for(const [f,g]of d[B(0x1ae,0x1b0)]()){const h=e['get'](f);if(!h){const i=c['get'](f);if(!i||i[B(0x1df,0x1d7)]===g[B(0x1cb,0x1d7)])e['set'](f,i||g);}}if(d[B(0x1d8,0x1d8)]!==void 0x0){const j=this[B(0x1cc,0x1df)]();for(const [k,l]of d[B(0x1c5,0x1df)]()){const m=j[B(0x1c0,0x1c6)](k);if(!m){const n=c[B(0x1aa,0x1c6)](k);if(!n||n[B(0x1d6,0x1d7)]===l[B(0x1c3,0x1d7)])j['set'](k,n||l);}}}this[B(0x1b0,0x1c2)]=this;d[B(0x1b8,0x1b5)]();d[B(0x1c5,0x1d2)]();}['setOrigin'](c){this[C(0x384,0x370)]=c;function C(a,b){return _ent(a-0x4c6,b);}this[C(0x399,0x386)]=c[C(0x399,0x39a)];}[_ent(-0x12a,-0x10d)](){if(this['origin'])return this[D(0x112,0x129)];function D(a,b){return _ent(a-0x254,b);}return this[D(0xfe,0x107)]();}[_ent(-0x156,-0x15c)](){this[E(0x31a,0x301)]=ORIGIN_ID++;function E(a,b){return _ent(a-0x447,b);}return this[E(0x305,0x320)]=this;}[_ent(-0x154,-0x141)](){return this;}[_ent(-0x125,-0x134)](){function F(a,b){return _ent(a-0x519,b);}if(this['$outgoingPast']!==void 0x0)return this[F(0x3ed,0x3e5)];return this[F(0x3ed,0x3d7)]=new Map();}[_ent(-0x133,-0x11c)](c,d){const e=d===EdgeType[G(-0x12f,-0x133)]?this:this[G(-0x126,-0x131)]();function G(a,b){return _ent(b- -0xc,a);}e[G(-0x147,-0x13b)](c[G(-0x118,-0x132)],c);}[_ent(-0x13a,-0x14b)](){this[H(0x3cb,0x3bf)]();function H(a,b){return _ent(b-0x4f1,a);}if(this['$outgoingPast']!==void 0x0)this[H(0x3bd,0x3c5)][H(0x3ce,0x3bf)]();}[_ent(-0x145,-0x13d)](){const c=this['origin'];function I(a,b){return _ent(b-0x303,a);}return c===this?this[I(0x1e5,0x1cb)]:c?c[I(0x1d9,0x1be)]():void 0x0;}['setValue'](c){function J(a,b){return _ent(b-0x4d4,a);}if(this['origin']&&this[J(0x3ab,0x392)]!==this)throw new Error('Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry');this[J(0x39f,0x3aa)]()[J(0x385,0x39c)]=c;}[_ent(-0x150,-0x14a)](){return this['getValue']()!==void 0x0;}[_ent(-0x159,-0x161)](){function K(a,b){return _ent(b-0x529,a);}if(this[K(0x3f6,0x3ee)]())return![];return this[K(0x404,0x3f4)]();}['hasProposedValueInner'](){function L(a,b){return _ent(b-0x5f2,a);}return this[L(0x4b2,0x4c9)]!==void 0x0;}['getProposedValue'](c){function M(a,b){return _ent(a-0x10,b);}if(this[M(-0x141,-0x132)]){this[M(-0x119,-0x105)]=this[M(-0x116,-0x132)][M(-0x13d,-0x13f)][M(-0x131,-0x134)](this[M(-0x116,-0x116)][M(-0x12c,-0x11d)]||this[M(-0x116,-0xfe)],this['identifier'],this,c);this['needToBuildProposedValue']=![];}return this[M(-0x119,-0x116)];}['outgoingInTheFutureCb'](c,d){function N(a,b){return _ent(a-0x6d3,b);}let e=this;while(e){for(const f of e[N(0x57f,0x59a)]()[N(0x580,0x57b)]()){if(f[N(0x5a6,0x5ab)]===c[N(0x5af,0x5a1)](f[N(0x5ad,0x59a)])[N(0x5a6,0x59d)])d(f);}if(e[N(0x598,0x5ad)]())e=e[N(0x5b0,0x59b)];else e=null;}}['outgoingInTheFutureAndPastCb'](c,d){function O(a,b){return _ent(a-0x570,b);}let e=this;while(e){for(const f of e[O(0x41c,0x41f)]()[O(0x41d,0x404)]()){const g=c[O(0x44c,0x441)](f[O(0x44a,0x448)]);if(g&&f[O(0x443,0x430)]===g['originId'])d(f);}if(e[O(0x444,0x45f)]!==void 0x0){for(const h of e[O(0x444,0x43e)]['values']()){const i=c[O(0x44c,0x442)](h[O(0x44a,0x452)]);if(i&&h['originId']===i[O(0x443,0x439)])d(h);}}if(e[O(0x435,0x434)]())e=e['previous'];else e=null;}}[_ent(-0x146,-0x158)](c,d){function P(a,b){return _ent(a-0x3e,b);}let e=this;while(e){for(const f of e['getOutgoing']()[P(-0x115,-0x114)]()){const g=c[P(-0x11a,-0x11d)](f['identifier']);if(g&&f[P(-0xef,-0xd4)]===g['originId'])d(f);}if(e['$outgoingPast']!==void 0x0){for(const h of e[P(-0xee,-0xff)][P(-0x115,-0x117)]()){const i=c['getLatestStableEntryFor'](h[P(-0xe8,-0xdb)]);if(i&&h[P(-0xef,-0xe7)]===i[P(-0xef,-0xea)])d(h);}}if(e[P(-0xfd,-0x10b)]())e=e[P(-0xe5,-0xf6)];else e=null;}}[_ent(-0x139,-0x120)](c,d){let e=this;function Q(a,b){return _ent(a-0x4a4,b);}while(e){for(const f of e[Q(0x350,0x34e)]()[Q(0x351,0x363)]()){const g=c['getLatestEntryFor'](f[Q(0x37e,0x36e)]);if(g&&f[Q(0x377,0x37e)]===g['originId'])d(f);}if(e['isShadow']())e=e[Q(0x381,0x39e)];else e=null;}}}){}const TombStone=Symbol('Tombstone');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1f2;let f=c[d];return f;};return _enb(a,b);}function _ent(a,b){return _enb(a- -0x34c,b);}export{EdgeType,Quark,TombStone};function _ena(){const R=['outgoingInTheFutureTransactionCb','value','Invalid\x20state','cleanupCalculation','hasProposedValueInner','usedProposedOrPrevious','addOutgoingTo','clear','mergePreviousOrigin','cleanup','set','27656HaBokW','originId','$outgoingPast','proposedValueIsBuilt','getOrigin','proposedValue','3155764uynKdM','Normal','identifier','getOutgoingPast','getLatestEntryFor','previous','level','13765203BxPzhE','476047aUtPcD','hasProposedValue','getLatestStableEntryFor','forceCalculation','startOrigin','proposedArguments','getOutgoing','values','visitEpoch','needToBuildProposedValue','hasValue','clearProperties','copyFrom','buildProposedValue','edgesFlow','Past','promise','791vzCkfQ','assign','2149311ohgAVs','outgoingInTheFutureAndPastTransactionCb','getValue','698544zoEXcv','resetToEpoch','origin','call','visitedAt','1213296HmELkG','get','10trjsaq','context','isShadow','clearOutgoing'];_ena=function(){return R;};return _ena();}
1
+ (function(a,b){const c=a();function o(a,b){return _enb(b- -0x2cb,a);}while(!![]){try{const d=parseInt(o(-0x1e3,-0x1f4))/0x1+parseInt(o(-0x1ad,-0x1d0))/0x2+parseInt(o(-0x1ca,-0x1d1))/0x3+-parseInt(o(-0x1bb,-0x1cb))/0x4*(-parseInt(o(-0x204,-0x1f8))/0x5)+-parseInt(o(-0x1ce,-0x1d9))/0x6*(parseInt(o(-0x1d3,-0x1ec))/0x7)+-parseInt(o(-0x1d3,-0x1de))/0x8*(-parseInt(o(-0x20c,-0x20b))/0x9)+-parseInt(o(-0x203,-0x1eb))/0xa*(parseInt(o(-0x1c4,-0x1df))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xac4e3));function _enr(a,b){return _enb(b- -0xa0,a);}import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';function _ena(){const S=['clear','985392xWlOUq','getOutgoing','origin','visitEpoch','call','new','getOutgoingPast','outgoingInTheFutureHelper','edgesFlow','cleanup','values','assign','proposedIsPrevious','proposedValueIsBuilt','outgoingInTheFutureAndPastTransactionCb','getOrigin','getProposedValue','value','set','5605yGGwzV','hasProposedValue','resetToEpoch','addOutgoingTo','1176259aznYzs','needToBuildProposedValue','context','cleanupCalculation','getValue','mergePreviousOrigin','outgoingInTheFutureAndPastCb','calculation','49cCHXHI','19575740qSknPg','visitedAt','Tombstone','clearOutgoing','outgoingInTheFutureCb','startOrigin','$outgoingPast','usedProposedOrPrevious','originId','previous','promise','getLatestStableEntryFor','11CBqfzU','24UxzCHn','writtenValue','hasValue','copyFrom','Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry','1085610rWmzhb','forceCalculation','clearProperties','proposedValue','setValue','get','proposedArguments','identifier','2066817UcDTmB','1707986awROst','Normal','getLatestEntryFor','level','Invalid\x20state','3148fdDSxf','hasProposedValueInner','isShadow','Past','outgoingInTheFutureTransactionCb'];_ena=function(){return S;};return _ena();}var EdgeType;(function(a){function p(a,b){return _enb(b- -0x3be,a);}a[a[p(-0x2c6,-0x2c2)]=0x1]=p(-0x2e0,-0x2c2);a[a['Past']=0x2]=p(-0x2b1,-0x2bb);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x1e3,0x1db)]=void 0x0;this[q(0x1bb,0x1a6)]=void 0x0;this[q(0x1df,0x1c8)]=void 0x0;function q(a,b){return _enb(a-0xea,b);}this[q(0x1b6,0x196)]=![];this[q(0x1e2,0x1c9)]=void 0x0;this[q(0x1d1,0x1c0)]=![];this['writtenValue']=void 0x0;this[q(0x1d3,0x1ee)]=void 0x0;this[q(0x1ac,0x1b1)]=void 0x0;this[q(0x1d2,0x1b7)]=MIN_SMI;this[q(0x1c2,0x1ad)]=![];this['edgesFlow']=0x0;this[q(0x1cb,0x1cc)]=NOT_VISITED;this[q(0x1ad,0x1a7)]=0x0;this[q(0x1d4,0x1eb)]=void 0x0;this['$outgoingPast']=void 0x0;}static[_enr(0x31,0x25)](c){const d=new this();c&&Object[s(0xe7,0x102)](d,c);function s(a,b){return _enr(b,a-0xbc);}return d;}get[_enr(0x61,0x5e)](){function t(a,b){return _enr(a,b-0xd4);}return this[t(0x144,0x12d)][t(0x142,0x132)];}get[_enr(0x2c,0x3e)](){function u(a,b){return _enr(b,a-0x452);}return this[u(0x4ab,0x489)]['calculation'];}get[_enr(0x3e,0x39)](){function v(a,b){return _enr(b,a-0x33f);}return this['identifier'][v(0x378,0x39b)]||this[v(0x398,0x387)];}[_enr(0x31,0x53)](){this['edgesFlow']=MAX_SMI;}[_enr(0x26,0x29)](){function w(a,b){return _enr(b,a- -0x265);}this[w(-0x22b,-0x23b)]();}[_enr(0x57,0x62)](){function x(a,b){return _enr(a,b-0x182);}return Boolean(this[x(0x1ab,0x1a4)]&&this[x(0x198,0x1a4)]!==this);}[_enr(0x44,0x35)](c){this[y(-0x2a3,-0x295)]=c;function y(a,b){return _enr(b,a- -0x2c6);}this['visitedAt']=NOT_VISITED;if(this[y(-0x29e,-0x2b6)]<0x0)this[y(-0x29e,-0x2a6)]=0x0;this[y(-0x27f,-0x262)]=![];this[y(-0x28c,-0x26c)]();this[y(-0x283,-0x287)]();this[y(-0x27c,-0x269)]=void 0x0;if(this[y(-0x2a4,-0x2c2)]&&this[y(-0x2a4,-0x2bf)]===this){this[y(-0x26e,-0x268)]=void 0x0;if(this[y(-0x295,-0x29c)]!==void 0x0){this['proposedValue']=this['value'];}this['value']=void 0x0;}else{this[y(-0x2a4,-0x2b3)]=void 0x0;this['value']=void 0x0;}if(this[y(-0x26d,-0x24a)][y(-0x299,-0x280)]&&this['proposedValue']!==TombStone){this[y(-0x28e,-0x2aa)]=!![];this['proposedValue']=void 0x0;}}[_enr(0x6b,0x50)](c){function z(a,b){return _enr(a,b- -0x327);}this[z(-0x2db,-0x2f6)]=c[z(-0x2fc,-0x2f6)];this[z(-0x2bd,-0x2d2)]=c['proposedValue'];this[z(-0x2bf,-0x2cf)]=c[z(-0x2c5,-0x2cf)];this[z(-0x2d0,-0x2e0)]=c[z(-0x2c3,-0x2e0)];}[_enr(0x73,0x54)](){function A(a,b){return _enr(a,b-0x273);}this[A(0x2c1,0x2a4)]=void 0x0;this[A(0x2c1,0x2c8)]=void 0x0;this['proposedArguments']=void 0x0;this[A(0x2b9,0x2c1)]=void 0x0;}[_enr(0x44,0x3c)](c){const d=this['origin'];if(d!==this['previous'])throw new Error(B(-0x26f,-0x286));function B(a,b){return _enr(a,b- -0x2e5);}this[B(-0x29a,-0x295)](d);const e=this[B(-0x2cb,-0x2c4)]();for(const [f,g]of d[B(-0x2c8,-0x2c4)]()){const h=e[B(-0x299,-0x28e)](f);if(!h){const i=c['get'](f);if(!i||i[B(-0x2bc,-0x29d)]===g['originId'])e[B(-0x2b9,-0x2b3)](f,i||g);}}if(d[B(-0x2a4,-0x29f)]!==void 0x0){const j=this['getOutgoingPast']();for(const [k,l]of d[B(-0x2b9,-0x2bf)]()){const m=j[B(-0x289,-0x28e)](k);if(!m){const n=c[B(-0x28f,-0x28e)](k);if(!n||n[B(-0x27a,-0x29d)]===l[B(-0x27d,-0x29d)])j['set'](k,n||l);}}}this['origin']=this;d[B(-0x293,-0x291)]();d[B(-0x2ae,-0x2c6)]();}['setOrigin'](c){function C(a,b){return _enr(b,a- -0x158);}this[C(-0x136,-0x133)]=c;this[C(-0x110,-0x115)]=c[C(-0x110,-0x125)];}[_enr(0x25,0x2f)](){function D(a,b){return _enr(b,a-0xdf);}if(this[D(0x101,0xfb)])return this['origin'];return this[D(0x124,0x13a)]();}[_enr(0x60,0x45)](){function E(a,b){return _enr(b,a-0x104);}this[E(0x14c,0x16f)]=ORIGIN_ID++;return this[E(0x126,0x10a)]=this;}[_enr(0x3a,0x21)](){return this;}['getOutgoingPast'](){if(this[F(0x242,0x23d)]!==void 0x0)return this[F(0x25c,0x23d)];function F(a,b){return _enr(a,b-0x1f7);}return this['$outgoingPast']=new Map();}[_enr(0x50,0x36)](c,d){const e=d===EdgeType[G(0x21,0x16)]?this:this['getOutgoingPast']();function G(a,b){return _enr(a,b- -0x46);}e['set'](c['identifier'],c);}['clearOutgoing'](){this[H(-0x1eb,-0x1cf)]();function H(a,b){return _enr(a,b- -0x1ee);}if(this[H(-0x1b4,-0x1a8)]!==void 0x0)this[H(-0x18c,-0x1a8)][H(-0x1ea,-0x1cf)]();}[_enr(0x58,0x3b)](){const c=this[I(0x10b,0xe8)];function I(a,b){return _enr(b,a-0xe9);}return c===this?this[I(0x11a,0x119)]:c?c[I(0x124,0x138)]():void 0x0;}[_enr(0x62,0x56)](c){if(this['origin']&&this[J(0x46,0x67)]!==this)throw new Error(J(0x76,0x96));function J(a,b){return _enr(a,b-0x45);}this[J(0x70,0x74)]()[J(0x68,0x76)]=c;}[_enr(0x3b,0x4f)](){return this['getValue']()!==void 0x0;}[_enr(0x3d,0x34)](){function K(a,b){return _enr(b,a- -0x16d);}if(this[K(-0x10b,-0xf7)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f,0x61)](){function L(a,b){return _enr(b,a-0x15d);}return this[L(0x1b2,0x198)]!==void 0x0;}[_enr(0xd,0x30)](c){if(this['needToBuildProposedValue']){this[M(0x43b,0x42e)]=this['identifier']['buildProposedValue'][M(0x40a,0x40a)](this['identifier'][M(0x41f,0x441)]||this[M(0x43f,0x41c)],this['identifier'],this,c);this[M(0x41e,0x41a)]=![];}function M(a,b){return _enr(b,a-0x3e6);}return this[M(0x43b,0x42e)];}[_enr(0x23,0x27)](c,d,e){function N(a,b){return _enr(b,a-0xa5);}let f=this;while(f){for(const g of f[N(0xc6,0xa6)]()[N(0xcf,0xb8)]()){const h=c(g[N(0xfe,0xff)]);if(h&&g[N(0xed,0x10a)]===h[N(0xed,0xfd)])d(g);}if(e&&f['$outgoingPast']!==void 0x0){for(const i of f[N(0xeb,0x10d)]['values']()){const j=c(i[N(0xfe,0xee)]);if(j&&i['originId']===j[N(0xed,0x10e)])d(i);}}if(f[N(0x107,0xeb)]())f=f[N(0xee,0xce)];else f=null;}}[_enr(0x5e,0x44)](c,d){function O(a,b){return _enr(a,b- -0x2f1);}this[O(-0x2e8,-0x2ca)](e=>c['getLatestEntryFor'](e),d,![]);}[_enr(0x1b,0x3d)](c,d){function P(a,b){return _enr(a,b-0x28b);}this[P(0x295,0x2b2)](e=>c[P(0x2ec,0x2e8)](e),d,!![]);}[_enr(0xf,0x2e)](c,d){function Q(a,b){return _enr(b,a-0x220);}this['outgoingInTheFutureHelper'](e=>c[Q(0x26b,0x277)](e),d,!![]);}[_enr(0x49,0x64)](c,d){function R(a,b){return _enr(a,b- -0x186);}this[R(-0x158,-0x15f)](e=>c[R(-0x112,-0x129)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x37,0x42));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xbf;let f=c[d];return f;};return _enb(a,b);}export{EdgeType,Quark,TombStone};
@@ -1 +1 @@
1
- function _enu(a,b){return _enb(b- -0x1a5,a);}(function(a,b){const c=a();function t(a,b){return _enb(b-0xeb,a);}while(!![]){try{const d=-parseInt(t(0x178,0x1a2))/0x1+-parseInt(t(0x1bc,0x1a9))/0x2*(parseInt(t(0x25c,0x22c))/0x3)+-parseInt(t(0x1c5,0x1df))/0x4*(parseInt(t(0x1ee,0x21d))/0x5)+parseInt(t(0x20c,0x215))/0x6*(-parseInt(t(0x17b,0x1c0))/0x7)+parseInt(t(0x165,0x1a7))/0x8*(parseInt(t(0x1bd,0x1f6))/0x9)+parseInt(t(0x212,0x21a))/0xa+parseInt(t(0x18f,0x1b6))/0xb*(parseInt(t(0x1ad,0x1d5))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc2d26));import{Base}from'../class/Base.js';import{DEBUG}from'../environment/Debug.js';import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';function _ena(){const ai=['new','baseRevision','534HkjuHU','getOutgoing','hasVariableEntry','read','startProgressNotificationsAfterMs','12129150ETyARI','then','quark','1243270BjkELy','touch','entries','size','UserInput','readCurrentOrProposedOrPrevious','hasValue','hasEntryWithProposedValue','getLatestEntryFor','proposedValue','reason','calculateTransitions','onComputationCycleHandler','readProposedOrPreviousAsync','candidateClass','639795ILBwbn','hasProposedValue','setValue','plannedTotalIdentifiersToCalculate','length','calculateTransitionsStackSync','1151803CRvJWd','onEffectAsync','startNewEpoch','call','pop','14232fkMnrp','postCommit','12qObntm','activeStack','context','commit','origin','continueFrom','getLatestStableEntryFor','populateCandidateScopeFromTransitions','ongoing','isClosed','hasIdentifier','Transaction\x20rejected:\x20','value','101266qoTuVZ','walkContext','handler','Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context','set','initialize','getWriteTarget','bind','selfDependent','getValue','104811GDJQWn','addEdge','visitEpoch','currentEpoch','rejectedWith','leaveGraph','readPreviousAsync','getLowestLevel','ignoreEdgesFlow','Computation\x20cycle.\x20Async\x20get','iterationResult','markSelfDependent','addOutgoingTo','isCalculationCompleted','propagationStartDate','isShadow','readAsync','enterGraph','values','clear','stopped','3180shETpB','level','isWritingUndefined','cleanupCalculation','newQuark','propagating','stackGen','onQuarkCalculationCompleted','startOrigin','push','4dWmevR','isCalculationStarted','calculateTransitionsSync','candidate','onEffectSync','Cancel','outgoingInTheFutureAndPastTransactionCb','lastProgressNotificationDate','startFrom','onPropagationProgressNotification','yieldSync','Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly','resolve','lowestLevel','get','onReadIdentifier','add','write','yieldAsync','delete','takeLowestLevel','enableProgressNotifications','emitProgressNotificationsEveryMs','5859UcvkKe','equality','usedProposedOrPrevious','readPrevious','graph','cleanup','now','promise','selfDependedMarked','getActiveEntry','Cycle\x20during\x20synchronous\x20computation','setOrigin','forceCalculation','getLatestStableOrProposedEntryFor','previous','readProposedOrPrevious','edgesFlow','forEach','Past','removeIdentifier','calculateTransitionsStackGen','preCommit','identifier','dirty','lazy','continueCalculation','scope','clearRejected','sync'];_ena=function(){return ai;};return _ena();}import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xb3;let f=c[d];return f;};return _enb(a,b);}import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType['Normal'];const EdgeTypePast=EdgeType[_enu(-0x48,-0x88)];class Transaction extends Base{constructor(){super(...arguments);this['baseRevision']=void 0x0;this[v(0x496,0x4be)]=Revision;this[v(0x44d,0x487)]=void 0x0;this[v(0x465,0x4a8)]=void 0x0;this['isClosed']=![];this['walkContext']=void 0x0;this[v(0x48a,0x4c7)]=new Map();this[v(0x446,0x446)]=new LeveledQueue();function v(a,b){return _enu(b,a-0x4fb);}this[v(0x415,0x411)]=[];this['onEffectSync']=void 0x0;this[v(0x40e,0x441)]=void 0x0;this[v(0x439,0x47d)]=0x0;this[v(0x451,0x41e)]=0x0;this['startProgressNotificationsAfterMs']=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this['emitProgressNotificationsEveryCalculations']=0x64;this[v(0x40a,0x41f)]=0x0;this[v(0x41c,0x3ef)]=Promise[v(0x456,0x444)]();this[v(0x469,0x452)]=![];this[v(0x42f,0x473)]=void 0x0;this['stopped']=![];this['hasEntryWithProposedValue']=![];this[v(0x482,0x4ae)]=![];}[_enu(-0xf4,-0xd5)](...a){super[w(0x7e,0xb7)](...a);function w(a,b){return _enu(a,b-0x18c);}this[w(0xd8,0xb3)]=TransactionWalkDepth[w(0x131,0x10f)]({'visited':this['entries'],'transaction':this,'baseRevision':this['baseRevision'],'pushTo':this[w(0xdc,0xd7)]});if(!this[w(0xcc,0xde)])this[w(0x98,0xde)]=this['candidateClass'][w(0xf0,0x10f)]({'previous':this['baseRevision']});this['onEffectSync']=this['read'][w(0xec,0xb9)](this);this[w(0x7b,0x9f)]=this[w(0xe3,0xcc)][w(0xab,0xb9)](this);}get[_enu(-0x58,-0x83)](){function x(a,b){return _enu(b,a-0x533);}return this[x(0x4c2,0x487)]['size']>0x0;}[_enu(-0x8b,-0xc5)](){function y(a,b){return _enu(b,a-0x137);}if(this['selfDependedMarked'])return;this[y(0xa5,0xe0)]=!![];for(const a of this[y(0xbb,0xca)][y(0x65,0x3c)]){const b=this[y(0xc6,0xd0)][y(0x94,0x57)](a);if(b&&b[y(0x66,0x7a)]()===TombStone)continue;this[y(0xc5,0xcc)](a);}}['getActiveEntry'](){function z(a,b){return _enu(b,a-0x1b9);}return this[z(0xd3,0xba)][this['activeStack']['length']-0x1];}[_enu(-0xa1,-0x9f)](a){if(isPromise(a))return a;function A(a,b){return _enu(a,b-0x116);}return this[A(0x3a,0x80)][a[A(0x36,0x3e)]](a,this);}[_enu(-0xa6,-0xa7)](a){function B(a,b){return _enu(a,b-0x352);}if(isPromise(a)){throw new Error(B(0x24c,0x27b));}return this[B(0x28d,0x2bc)][a[B(0x2ae,0x27a)]](a,this);}[_enu(-0xec,-0xc0)](a){if(!(a instanceof Identifier))return this[C(0x6a,0x3d)](a);let b;const c=this['getActiveEntry']();function C(a,b){return _enu(a,b-0xdc);}if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[C(0xaf,0x6b)][C(0x40,0x39)](a);if(!b){const d=this['baseRevision'][C(0x47,0x71)](a);if(!d)throwUnknownIdentifier(a);b=d[C(0x7e,0x6f)]()?d:this['touch'](a);}}if(b[C(0x82,0x6f)]())return b[C(0xf,0xb)]();if(b['promise'])return b[C(0x44,0x49)];if(!b['previous']||!b['previous']['hasValue']())b[C(0x42,0x4e)]();return this[C(-0x15,-0x3)]=b[C(0x48,0x49)]=this['ongoing'][C(0x58,0x67)](()=>{return((async()=>{while(this['stackGen'][D(0x18d,0x1b9)]<a[D(0x177,0x144)]){await runGeneratorAsyncWithEffect(this[D(0x144,0x127)],this['calculateTransitionsStackGen'],[this['onEffectAsync'],this[D(0x17c,0x177)][D(0x194,0x172)]()],this);}if(this[D(0x165,0x17b)]){throw new Error('Transaction\x20rejected:\x20'+String(this[D(0x165,0x149)]['reason']));}this[D(0x16c,0x12d)]();if(b[D(0x160,0x18c)]()===void 0x0){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this[D(0x1ab,0x18d)],[this['onEffectAsync'],[b]],this);}if(this['rejectedWith']){throw new Error(D(0x155,0x127)+String(this[D(0x165,0x164)][D(0x1c8,0x1a4)]));}function D(a,b){return _enb(a-0x8c,b);}if(!b[D(0x1c4,0x1f8)]()){throw new Error('Computation\x20cycle.\x20Sync');}return b[D(0x160,0x151)]();})());});}[_enu(-0x87,-0xa3)](a){if(!(a instanceof Identifier))return this[E(0x333,0x353)](a);let b;const c=this[E(0x349,0x31b)]();function E(a,b){return _enu(b,a-0x3da);}if(c){b=this[E(0x30b,0x2cf)](a,c,EdgeTypeNormal);}else{b=this['entries'][E(0x337,0x333)](a);if(!b){const f=this[E(0x35e,0x319)][E(0x36f,0x364)](a);if(!f)throwUnknownIdentifier(a);b=f[E(0x36d,0x3b3)]()?f:this[E(0x368,0x372)](a);}}const d=b[E(0x309,0x341)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[E(0x36d,0x3ac)]())return d;if(b['promise'])return b[E(0x347,0x383)];if(!b['previous']||!b['previous'][E(0x36d,0x354)]())b['forceCalculation']();const e=this[E(0x31e,0x363)];while(this[E(0x325,0x363)][E(0x311,0x342)]()<a[E(0x320,0x363)]){this[E(0x31e,0x338)]=![];this[E(0x2eb,0x2e5)](this[E(0x32d,0x33a)],this['stackGen'][E(0x33d,0x376)]());this['stopped']=e;}this[E(0x315,0x358)]();if(a[E(0x35c,0x350)]){this[E(0x31e,0x2fc)]=![];this[E(0x2eb,0x304)](this['onEffectSync'],[b]);this['stopped']=e;const g=b[E(0x309,0x2d6)]();if(g===void 0x0)throw new Error('Cycle\x20during\x20synchronous\x20computation');if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this['ongoing']=b[E(0x347,0x359)]=this[E(0x2fb,0x2b7)][E(0x365,0x35e)](()=>{function F(a,b){return E(b-0xd6,a);}if(b[F(0x406,0x3df)]()===void 0x0)return runGeneratorAsyncWithEffect(this[F(0x40b,0x3c3)],this[F(0x43a,0x42a)],[this['onEffectAsync'],[b]],this);})['then'](()=>{function G(a,b){return E(b- -0x3e1,a);}if(this[G(-0x101,-0xd3)])throw new Error(G(-0xe1,-0xe3)+String(this['rejectedWith'][G(-0x44,-0x70)]));const i=b[G(-0x107,-0xd8)]();if(i===void 0x0)throw new Error(G(-0xed,-0xce));if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[E(0x366,0x32b)]=b;}return h;}}[_enu(-0x37,-0x78)](a){if(!(a instanceof Identifier))return this[H(0x396,0x397)](a);let b;const c=this[H(0x3ac,0x37c)]();if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[H(0x3cc,0x3ea)]['get'](a);if(!b){const f=this[H(0x3c1,0x401)][H(0x3d2,0x3c6)](a);if(!f)throwUnknownIdentifier(a);b=f[H(0x3d0,0x3f0)]()?f:this['touch'](a);}}const d=b['getValue']();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0)return d;if(!b[H(0x3b1,0x3c6)]||!b[H(0x3b1,0x3df)]['hasValue']())b[H(0x3af,0x3e9)]();while(this[H(0x388,0x3b2)][H(0x374,0x3b9)]()<a[H(0x383,0x351)]){this[H(0x34e,0x35a)](this[H(0x390,0x3c5)],this[H(0x388,0x3bd)][H(0x3a0,0x3ac)]());}this[H(0x378,0x35a)]();this[H(0x34e,0x355)](this[H(0x390,0x34c)],[b]);const e=b['getValue']();if(e===void 0x0)throw new Error(H(0x3ad,0x3ba));function H(a,b){return _enu(b,a-0x43d);}if(e===TombStone)throwUnknownIdentifier(a);return e;}[_enu(-0x89,-0x6e)](a){const b=this['entries'][I(0x1ca,0x1f3)](a);function I(a,b){return _enu(b,a-0x26d);}if(b){const c=b[I(0x19c,0x175)]();if(c!==void 0x0)return c;if(b[I(0x203,0x22e)]!==void 0x0)return b['proposedValue'];}return this[I(0x1d6,0x1b8)](a);}['readCurrentOrProposedOrPreviousAsync'](a){const b=this[J(0x46b,0x4a7)][J(0x439,0x460)](a);if(b){const c=b['getValue']();if(c!==void 0x0)return c;if(b[J(0x472,0x450)]!==void 0x0)return b[J(0x472,0x4aa)];}function J(a,b){return _enu(b,a-0x4dc);}return this[J(0x412,0x3dc)](a);}[_enu(-0x8e,-0x97)](a){const b=this[K(-0x4b,-0x5e)][K(-0x6b,-0x4d)](a);if(!b)return void 0x0;const c=b[K(-0x8e,-0xb3)]();function K(a,b){return _enu(a,b-0x1e);}return c!==TombStone?c===void 0x0&&a[K(-0x83,-0x64)]?this[K(-0x4e,-0x5a)](a):c:void 0x0;}['readPreviousAsync'](a){function L(a,b){return _enu(a,b-0x1d8);}const b=this[L(0x14b,0x15c)][L(0x17b,0x16d)](a);if(!b)return void 0x0;const c=b[L(0xf4,0x107)]();return c!==TombStone?c!==void 0x0?c:this['readAsync'](a):void 0x0;}[_enu(-0x58,-0x8b)](a){function M(a,b){return _enu(a,b- -0xbe);}const b=this['entries']['get'](a);if(b&&b[M(-0x155,-0x128)]!==void 0x0){return b['proposedValue'];}else{return this[M(-0x119,-0x155)](a);}}[_enu(-0x50,-0x66)](a){const b=this[N(0x4f1,0x4e7)]['get'](a);function N(a,b){return _enu(a,b-0x558);}if(b&&b[N(0x4c8,0x4ee)]!==void 0x0){return b[N(0x507,0x4ee)];}else{return this[N(0x4aa,0x48e)](a);}}[_enu(-0x87,-0xa0)](a,b,...c){if(b===void 0x0)b=null;a[O(0x1cf,0x19f)][O(0x184,0x194)](a[O(0x18a,0x178)]||a,a,this,null,b,...c);const d=this[O(0x1fe,0x233)][O(0x1cc,0x205)](a);function O(a,b){return _enu(b,a-0x26f);}this[O(0x1f6,0x1cb)]=this['hasVariableEntry']||!d['isShadow']()&&a[O(0x1b5,0x18b)]===Levels[O(0x200,0x23e)];this['hasEntryWithProposedValue']=this['hasEntryWithProposedValue']||d[O(0x20c,0x23f)]();}[_enu(-0x96,-0xd4)](a){return this['touch'](a)['startOrigin']();}['acquireQuarkIfExists'](a){function P(a,b){return _enu(b,a-0x38f);}const b=this[P(0x31e,0x30d)][P(0x2ec,0x30a)](a);return b&&b[P(0x2ac,0x2b3)]===b?b[P(0x2ac,0x273)]:void 0x0;}[_enu(-0x40,-0x72)](a){const b=this[Q(0x28f,0x276)][Q(0x25d,0x265)](a);const {walkContext:c}=this;if(c&&(!b||b[Q(0x232,0x24f)]<c[Q(0x233,0x278)])){c[Q(0x21e,0x209)]([a]);}const d=b||this[Q(0x28f,0x252)][Q(0x25d,0x29a)](a);function Q(a,b){return _enu(b,a-0x300);}d[Q(0x272,0x27d)]();return d;}[_enu(-0x10c,-0xdd)](a){const b=this[R(-0x272,-0x255)][R(-0x2a4,-0x2e9)](a);function R(a,b){return _enu(b,a- -0x201);}if(b&&b[R(-0x2d2,-0x2b1)]()===TombStone)return![];return Boolean(b||this[R(-0x27d,-0x275)][R(-0x26c,-0x2af)](a));}['addIdentifier'](a,b,...c){let d=this['entries'][S(-0x161,-0x177)](a);const e=Boolean(d);const f=a['level']===Levels[S(-0x12d,-0x14c)];if(!d){d=a[S(-0x175,-0x134)](this[S(-0x13a,-0x15d)]);d[S(-0x14a,-0x12e)]=this[S(-0x13a,-0x13f)]['getLatestEntryFor'](a);d[S(-0x14c,-0x177)]();this[S(-0x12f,-0x15d)]['set'](a,d);if(!a[S(-0x140,-0xf9)]&&!f)this[S(-0x173,-0x1b1)][S(-0x170,-0x15d)](d);this[S(-0x137,-0x11b)]=this[S(-0x137,-0x122)]||!d[S(-0x17f,-0x16d)]()&&f;this[S(-0x12a,-0x10f)]=this['hasEntryWithProposedValue']||d[S(-0x121,-0xe0)]();}if(b!==void 0x0||f){d['startOrigin']();const g=e&&(d[S(-0x128,-0x14d)]!==void 0x0||d[S(-0x199,-0x1b5)]!==void 0x0);if(!g||d[S(-0x128,-0x130)]===TombStone||d[S(-0x199,-0x1d9)]===TombStone){a[S(-0x177,-0x179)]=b===void 0x0;a[S(-0x15e,-0x1a5)][S(-0x1a9,-0x1ac)](a[S(-0x1a3,-0x1cb)]||a,a,this,d,b===void 0x0&&f?null:b,...c);a[S(-0x177,-0x1ae)]=![];}}if(d['getValue']()===TombStone)d['value']=void 0x0;if(d['proposedValue']===TombStone)d[S(-0x128,-0x14d)]=void 0x0;a[S(-0x17d,-0x16e)](this[S(-0x154,-0x172)]);function S(a,b){return _enu(b,a- -0xbe);}return d;}[_enu(-0x6c,-0x87)](a){a[T(-0x294,-0x24d)](this[T(-0x25f,-0x231)]);const b=this[T(-0x23b,-0x282)](a)[T(-0x27c,-0x239)]();b[T(-0x2bb,-0x2f4)](TombStone);function T(a,b){return _enu(b,a- -0x1c9);}this[T(-0x277,-0x298)][T(-0x29b,-0x2d6)][T(-0x267,-0x27b)](a);}[_enu(-0x105,-0xe0)](a,b){function U(a,b){return _enu(a,b-0x386);}if(a[U(0x346,0x306)][U(0x338,0x316)]===0x0){a[U(0x2f9,0x306)]=b;}else{for(const [c,d]of b){if(d[U(0x307,0x2c5)]()){const e=a[U(0x34a,0x31b)](c);d[U(0x2d2,0x30c)]()[U(0x336,0x2fd)]((f,g)=>e[U(0x306,0x30c)]()['set'](g,f));}else{a[U(0x2d8,0x306)][U(0x2ef,0x2b0)](c,d);}}}}[_enu(-0xca,-0x85)](a){if(this[V(0x359,0x357)])throw new Error('Can\x20not\x20propagate\x20closed\x20revision');this[V(0x34f,0x370)]();this[V(0x396,0x357)]=!![];this[V(0x3b2,0x373)]=Date[V(0x361,0x3a1)]();function V(a,b){return _enu(a,b-0x435);}this[V(0x33c,0x344)]=this[V(0x392,0x380)]['length'];}['postCommit'](){this['populateCandidateScopeFromTransitions'](this[W(0x3c2,0x3bb)],this[W(0x3ff,0x3f8)]);function W(a,b){return _enu(b,a-0x470);}const a=this[W(0x3ff,0x447)];this[W(0x397,0x3d2)]=void 0x0;return{'revision':this[W(0x3c2,0x3c4)],'entries':a,'transaction':this};}[_enu(-0x11c,-0xe4)](a){function X(a,b){return _enu(a,b- -0x12c);}this[X(-0x1bb,-0x1b1)](a);this['calculateTransitionsSync'](this[X(-0x1c4,-0x1d9)]);return this[X(-0x23b,-0x214)]();}['reject'](a=RejectEffect[_enu(-0xc0,-0x7d)]()){function Y(a,b){return _enu(b,a-0x26b);}this[Y(0x19f,0x19f)]=a;this['walkContext']=void 0x0;}['stop'](){function Z(a,b){return _enu(b,a-0x21f);}this[Z(0x163,0x183)]=!![];}[_enu(-0x77,-0x7f)](){for(const a of this[a0(0x313,0x345)][a0(0x2c6,0x2f3)]()){a[a0(0x2ef,0x2ca)]();}function a0(a,b){return _enu(b,a-0x384);}this['entries'][a0(0x2c7,0x2c4)]();}async['commitAsync'](a){this[a1(-0x178,-0x13f)](a);function a1(a,b){return _enu(b,a- -0xf3);}return this[a1(-0x1d2,-0x1af)]=this['ongoing'][a1(-0x168,-0x140)](()=>{function a2(a,b){return a1(b- -0xdb,a);}return runGeneratorAsyncWithEffect(this[a2(-0x2db,-0x2bb)],this[a2(-0x23b,-0x236)],[this[a2(-0x2ac,-0x2bb)]],this);})[a1(-0x168,-0x175)](()=>{function a3(a,b){return a1(a-0x46c,b);}return this[a3(0x291,0x2cf)]();});}[_enu(-0x6f,-0x6b)](a){let b=this[a4(0x439,0x462)][a4(0x407,0x435)](a)||this[a4(0x42e,0x443)][a4(0x43f,0x46e)](a);function a4(a,b){return _enu(b,a-0x4aa);}if(b&&b[a4(0x3d9,0x3d8)]()===TombStone)return void 0x0;return b;}[_enu(-0x80,-0x8d)](a){function a5(a,b){return _enu(a,b-0x103);}let b=this['entries'][a5(0x7b,0x60)](a);if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0&&b['proposedValue']===void 0x0?this[a5(0x7b,0x87)][a5(0xd2,0x98)](a):b;}else{return this[a5(0x46,0x87)][a5(0xd7,0x98)](a);}}[_enu(-0xbd,-0xe1)](a){let b=this[a6(-0x14,-0x48)][a6(-0x38,-0x7a)](a);function a6(a,b){return _enu(a,b-0x29);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0?this['baseRevision'][a6(-0x22,-0x42)](a):b;}else{return this[a6(-0x8a,-0x53)]['getLatestEntryFor'](a);}}['addEdge'](a,b,c){const d=b[a7(0x42,0x77)];if(d[a7(0xc,0x19)]<a[a7(0xc,-0x32)])throw new Error('Identifier can not read from higher level identifier');let e=this[a7(0x55,0x10)][a7(0x23,-0x2)](a);function a7(a,b){return _enu(b,a-0xc6);}if(!e){const f=this[a7(0x4a,0xa)][a7(0x5b,0x86)](a);if(!f)throwUnknownIdentifier(a);e=a['newQuark'](this[a7(0x4a,0x83)]);e['setOrigin'](f);e[a7(0x3a,0x3a)]=f;this[a7(0x55,0x6a)]['set'](a,e);}e[a7(0x2,-0x1e)](b,c);return e;}[_enu(-0x93,-0xb4)](a,b){a[a8(0x43f,0x471)]();const c=a[a8(0x44e,0x482)];function a8(a,b){return _enu(a,b-0x506);}const d=a[a8(0x43e,0x47a)];const e=Boolean(d&&d[a8(0x4c9,0x499)]()&&c[a8(0x47a,0x46d)](b,d[a8(0x43e,0x435)]()));if(e){d[a8(0x446,0x45b)](this,g=>{const h=this['entries'][a9(-0x108,-0x101)](g[a9(-0xe9,-0xa6)]);function a9(a,b){return a8(b,a- -0x56b);}if(h)h['edgesFlow']--;});a[a8(0x463,0x47c)]=MAX_SMI;a[a8(0x4bb,0x477)](d[a8(0x3f4,0x423)]);}else{a[a8(0x45d,0x453)]();a[a8(0x3f5,0x414)](b);}let f=![];if(a[a8(0x4a4,0x46e)]){if(a[a8(0x470,0x49c)]!==void 0x0){if(c[a8(0x43a,0x46d)](b,a['proposedValue']))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a8(0x483,0x458)][a8(0x47a,0x434)][a8(0x452,0x465)](c);}}['onReadIdentifier'](a,b,c){const d=this[aa(0xbe,0x82)](a,b,EdgeTypeNormal);function aa(a,b){return _enu(b,a-0x18d);}if(d['hasValue']()||d[aa(0xb2,0xf2)]!==void 0x0){const e=d[aa(0xbc,0xc5)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d[aa(0xcc,0xb3)]()){d['startOrigin']();d[aa(0xff,0x109)]();c[aa(0xdb,0xfc)](d);return void 0x0;}else{if(!d[aa(0xdd,0xc9)]()){c['push'](d);if(!d[aa(0x101,0xbd)]||!d[aa(0x101,0x11b)][aa(0x120,0x128)]())d[aa(0xff,0x144)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext[aa(0x110,0x138)]({'transaction':this,'onCycle'(h,i){function ab(a,b){return aa(a-0xfd,b);}f=ComputationCycle[ab(0x20d,0x22f)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});return OnCycleAction[ab(0x1de,0x1f8)];}});g[aa(0xe4,0x12c)]([d[aa(0x109,0x108)]]);return f;}}}*[_enu(-0x8c,-0x68)](a){function ac(a,b){return _enu(b,a-0x33e);}const b=this[ac(0x289,0x266)];while(b[ac(0x24e,0x20b)]){yield*this[ac(0x2b8,0x286)](a,b['takeLowestLevel']());}}[_enu(-0x81,-0xaf)](a){function ad(a,b){return _enu(b,a-0x16c);}const b=this['stackGen'];while(b[ad(0x7c,0xb6)]){this[ad(0x7d,0xa4)](a,b[ad(0xcf,0x8e)]());}}*[_enu(-0x8e,-0x86)](a,b){if(this[ae(-0x291,-0x260)]||this[ae(-0x26d,-0x250)])return;this[ae(-0x234,-0x26d)][ae(-0x265,-0x280)]();const c=this[ae(-0x1ff,-0x205)];const d=this[ae(-0x258,-0x256)];const e=this['graph']?this[ae(-0x205,-0x22a)][ae(-0x216,-0x230)]:![];let f=0x0;let g=this[ae(-0x257,-0x27a)];this[ae(-0x26a,-0x27a)]=b;function ae(a,b){return _enu(a,b- -0x194);}while(b['length']&&!this[ae(-0x244,-0x260)]&&!this[ae(-0x20f,-0x250)]){if(e&&!(f++%this['emitProgressNotificationsEveryCalculations'])){const m=Date[ae(-0x263,-0x228)]();const n=m-d;if(n>this[ae(-0x20e,-0x20b)]){const o=this[ae(-0x22e,-0x23e)];if(!o||m-o>this[ae(-0x1e9,-0x22f)]){this[ae(-0x1ff,-0x23e)]=m;this[ae(-0x1ef,-0x22a)][ae(-0x244,-0x23c)]({'total':this[ae(-0x2b4,-0x285)],'remaining':this['stackGen'][ae(-0x279,-0x284)]+b[ae(-0x2a4,-0x284)],'phase':ae(-0x204,-0x24a)});this[ae(-0x295,-0x27a)]=g;yield delay(0x0);this[ae(-0x276,-0x27a)]=b;}}}if(this[ae(-0x246,-0x260)]||this['stopped'])break;const h=b[b[ae(-0x271,-0x284)]-0x1];const i=h[ae(-0x1f4,-0x218)];const j=c[ae(-0x20b,-0x237)](i);if(j!==h){h[ae(-0x248,-0x229)]();b[ae(-0x268,-0x27e)]();continue;}if(!i[ae(-0x21e,-0x25c)]&&h[ae(-0x231,-0x21e)]==0x0){h[ae(-0x243,-0x21e)]--;const p=h[ae(-0x232,-0x220)];p&&p[ae(-0x202,-0x23f)](this,q=>{const r=c[af(-0x3b,-0x4)](q['identifier']);function af(a,b){return ae(a,b-0x233);}if(r)r[af(-0xf,0x15)]--;});}if(!i['ignoreEdgesFlow']&&h[ae(-0x215,-0x21e)]<0x0&&h[ae(-0x20e,-0x220)]&&h['previous'][ae(-0x26f,-0x277)]){h[ae(-0x22b,-0x223)](h[ae(-0x22d,-0x220)][ae(-0x26d,-0x277)]);if(h['size']===0x0){c[ae(-0x25a,-0x232)](i);}h[ae(-0x20d,-0x229)]();b['pop']();continue;}if(h[ae(-0x225,-0x201)]()||h[ae(-0x1e0,-0x1fe)]===TombStone){h[ae(-0x1f5,-0x229)]();b[ae(-0x2c5,-0x27e)]();continue;}const k=h[ae(-0x21e,-0x262)];let l=h['isCalculationStarted']()?h[ae(-0x238,-0x25a)]:h['startCalculation'](this['onEffectSync']);while(l&&!this[ae(-0x27f,-0x260)]&&!this[ae(-0x26b,-0x250)]){const q=l[ae(-0x25d,-0x26f)]===void 0x0?null:l[ae(-0x2a6,-0x26f)];if(h[ae(-0x25b,-0x257)]()){if(h[ae(-0x2aa,-0x262)]==k){this[ae(-0x242,-0x248)](h,q);}b['pop']();break;}else if(q instanceof Identifier){const r=this[ae(-0x245,-0x236)](q,h,b);if(r instanceof ComputationCycle){this[ae(-0x26f,-0x26d)]['startNewEpoch']();this[ae(-0x25d,-0x27a)]=g;yield*this[ae(-0x23b,-0x22a)][ae(-0x1fc,-0x1fb)](r);g=this[ae(-0x2a2,-0x27a)];this[ae(-0x245,-0x27a)]=b;h[ae(-0x245,-0x24c)]();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[ae(-0x290,-0x27e)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h['visitEpoch']===k){l=h[ae(-0x20c,-0x215)](s);}else{b[ae(-0x2be,-0x27e)]();break;}}}}this[ae(-0x2ac,-0x27a)]=g;}[_enu(-0xe8,-0xef)](a,b){function ag(a,b){return _enu(a,b-0x34f);}if(this['rejectedWith']||this[ag(0x2c3,0x293)])return;this[ag(0x281,0x276)][ag(0x252,0x263)]();const c=this['entries'];let d=this[ag(0x22a,0x269)];this[ag(0x228,0x269)]=b;while(b[ag(0x255,0x25f)]&&!this[ag(0x24b,0x283)]&&!this[ag(0x259,0x293)]){const e=b[b[ag(0x278,0x25f)]-0x1];const f=e[ag(0x28c,0x2cb)];const g=c[ag(0x2ed,0x2ac)](f);if(g!==e){e[ag(0x2da,0x2ba)]();b[ag(0x24f,0x265)]();continue;}if(e[ag(0x28b,0x2c5)]==0x0){e[ag(0x2c3,0x2c5)]--;const j=e[ag(0x280,0x2c3)];j&&j[ag(0x261,0x2a4)](this,k=>{const l=c['get'](k[ah(-0x287,-0x2bc)]);function ah(a,b){return ag(a,b- -0x587);}if(l)l[ah(-0x28a,-0x2c2)]--;});}if(e['edgesFlow']<0x0&&e['previous']&&e[ag(0x2c3,0x2c3)][ag(0x26c,0x26c)]){e[ag(0x2d3,0x2c0)](e[ag(0x29f,0x2c3)][ag(0x260,0x26c)]);if(e[ag(0x2a6,0x2df)]===0x0){c[ag(0x2cb,0x2b1)](f);}e[ag(0x295,0x2ba)]();b[ag(0x283,0x265)]();continue;}if(e['hasValue']()||e[ag(0x310,0x2e5)]===TombStone){e[ag(0x2d0,0x2ba)]();b[ag(0x21d,0x265)]();continue;}const h=e[ag(0x2c5,0x281)];let i=e[ag(0x290,0x29f)]()?e[ag(0x292,0x289)]:e['startCalculation'](this[ag(0x2cc,0x2a2)]);while(i&&!this[ag(0x29c,0x283)]&&!this[ag(0x2d0,0x293)]){const k=i[ag(0x273,0x274)]===void 0x0?null:i[ag(0x2aa,0x274)];if(e[ag(0x2c8,0x28c)]()){if(e[ag(0x2b5,0x281)]==h){this[ag(0x2a3,0x29b)](e,k);}b[ag(0x297,0x265)]();break;}else if(k instanceof Identifier){const l=this[ag(0x2ed,0x2ad)](k,e,b);if(l instanceof ComputationCycle){this[ag(0x24c,0x276)][ag(0x273,0x263)]();this[ag(0x226,0x269)]=d;this[ag(0x2c0,0x2b9)]['onComputationCycleHandlerSync'](l,this);d=this['activeStack'];this[ag(0x23a,0x269)]=b;e['cleanupCalculation']();i=void 0x0;}else{i=l;}}else if(k===SynchronousCalculationStarted){b[ag(0x28c,0x265)]();break;}else{const m=a(k);if(isPromise(m))throw new Error(ag(0x27d,0x2a9));if(m===BreakCurrentStackExecution)break;if(e[ag(0x2b8,0x281)]===h){i=e[ag(0x2f6,0x2ce)](m);}else{b[ag(0x24a,0x265)]();break;}}}}this[ag(0x299,0x269)]=d;}}export{EdgeTypeNormal,EdgeTypePast,Transaction};
1
+ (function(a,b){function t(a,b){return _enb(a-0x10a,b);}const c=a();while(!![]){try{const d=-parseInt(t(0x210,0x216))/0x1+-parseInt(t(0x275,0x292))/0x2*(parseInt(t(0x240,0x253))/0x3)+parseInt(t(0x1f7,0x1d3))/0x4+-parseInt(t(0x236,0x27b))/0x5+parseInt(t(0x1eb,0x1da))/0x6*(-parseInt(t(0x232,0x270))/0x7)+-parseInt(t(0x245,0x21b))/0x8*(-parseInt(t(0x226,0x261))/0x9)+-parseInt(t(0x247,0x277))/0xa*(-parseInt(t(0x24e,0x28c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xdf729));import{Base}from'../class/Base.js';import{DEBUG}from'../environment/Debug.js';function _ena(){const al=['add','getLatestStableOrProposedEntryFor','forceCalculation','isCalculationCompleted','identifier','ignoreEdgesFlow','outgoingInTheFutureAndPastTransactionCb','calculateTransitionsStackSync','UserInput','clearCycles','isCalculationStarted','walkContext','get','4setaCd','continueCalculation','entries','readingIdentifier','yieldSync','readProposedOrPreviousAsync','cachedBaseRevisionLookup','getActiveEntry','requestedEntry','readCurrentOrProposedOrPreviousAsync','selfDependent','hasProposedValue','now','reason','set','emitProgressNotificationsEveryCalculations','Computation\x20cycle.\x20Async\x20get','acquireQuarkIfExists','8300922NljiZf','getLatestStableEntryFor','forEach','readCurrentOrProposedOrPrevious','yieldAsync','startCalculation','readProposedOrPrevious','activeStack','onComputationCycleHandler','stop','visitEpoch','readPrevious','5012124uZgLpq','origin','level','removeIdentifier','Transaction\x20rejected:\x20','read','length','cycledIdentifiers','previous','onQuarkCalculationCompleted','addIdentifier','getWriteTarget','cleanup','lastProgressNotificationDate','emitProgressNotificationsEveryMs','pop','readPreviousAsync','quark','promise','addCycle','resolve','plannedTotalIdentifiersToCalculate','new','markSelfDependent','candidateClass','1041865LvZbYN','delete','then','calculateTransitionsStackGen','isClosed','bind','initialize','newQuark','hasValue','hasIdentifier','baseRevision','onEffectAsync','onReadIdentifier','onComputationCycleHandlerSync','handler','proposedValue','stopped','commit','Normal','cleanupCalculation','stackGen','edgesFlow','7146tzYAOm','startNewEpoch','baseRevisionCache','hasEntryWithProposedValue','graph','propagating','context','shift','readAsync','Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context','hasVariableEntry','calculateTransitionsSync','7CfeZDR','has','cycle','enterGraph','3375830lkWPWW','ongoing','rejectedWith','cycles','clearRejected','getLatestEntryFor','iterationResult','size','reject','value','2578491xtVPcy','candidate','leaveGraph','calculateTransitions','scope','4160ZRabhQ','onEffectSync','40688420SftBuW','postCommit','getOutgoing','populateCandidateScopeFromTransitions','takeLowestLevel','startProgressNotificationsAfterMs','addEdge','11mLvDRJ','equality','from','write','push','getLowestLevel','setValue','onPropagationProgressNotification','getValue','preCommit','propagationStartDate','touch','isWritingUndefined','sync','Cycle\x20during\x20synchronous\x20computation','isShadow','values','Past','startOrigin','lazy','call','filter','setOrigin','selfDependedMarked','clear','Computation\x20cycle.\x20Sync'];_ena=function(){return al;};return _ena();}import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';function _enu(a,b){return _enb(a- -0x9b,b);}import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xda;let f=c[d];return f;};return _enb(a,b);}import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType[_enu(0x7d,0xc0)];const EdgeTypePast=EdgeType[_enu(0xba,0x6c)];class Transaction extends Base{constructor(){super(...arguments);this[v(-0x1fb,-0x1ec)]=void 0x0;this['candidateClass']=Revision;this[v(-0x1d4,-0x1ca)]=void 0x0;this[v(-0x1eb,-0x203)]=void 0x0;this[v(-0x201,-0x1da)]=![];this[v(-0x1a2,-0x185)]=void 0x0;this['entries']=new Map();this[v(-0x1f1,-0x1b1)]=new LeveledQueue();this[v(-0x223,-0x268)]=[];this[v(-0x1cf,-0x192)]=void 0x0;this[v(-0x1fa,-0x1ac)]=void 0x0;this[v(-0x1bd,-0x183)]=0x0;this[v(-0x211,-0x206)]=0x0;this[v(-0x1c9,-0x1f1)]=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this[v(-0x22d,-0x254)]=0x64;this[v(-0x209,-0x204)]=0x0;this[v(-0x1de,-0x1af)]=Promise[v(-0x20a,-0x23c)]();this[v(-0x1b0,-0x1f0)]=![];this['rejectedWith']=void 0x0;function v(a,b){return _enu(a- -0x270,b);}this['stopped']=![];this['hasEntryWithProposedValue']=![];this[v(-0x1e5,-0x1e0)]=![];this[v(-0x1ed,-0x238)]=new Map();this[v(-0x1dc,-0x1af)]=new Set();this['cycledIdentifiers']=new Map();}['initialize'](...a){super[w(0x31e,0x2d2)](...a);this[w(0x37b,0x36d)]=TransactionWalkDepth[w(0x315,0x2fd)]({'visited':this['entries'],'transaction':this,'baseRevision':this[w(0x322,0x2dc)],'pushTo':this[w(0x32c,0x2e3)]});if(!this['candidate'])this[w(0x349,0x382)]=this[w(0x317,0x33d)][w(0x315,0x34d)]({'previous':this[w(0x322,0x2ec)]});this[w(0x34e,0x320)]=this['read']['bind'](this);function w(a,b){return _enu(a-0x2ad,b);}this['onEffectAsync']=this[w(0x336,0x351)][w(0x31d,0x350)](this);}get['dirty'](){function x(a,b){return _enu(a-0x1e9,b);}return this[x(0x2bb,0x2d0)]['size']>0x0;}[_enu(0x69,0x29)](){if(this[y(0x46,0x40)])return;this[y(0x46,0x62)]=!![];function y(a,b){return _enu(a- -0x7a,b);}for(const a of this[y(-0x5,0x4)]['selfDependent']){const b=this[y(0x58,0x1f)][y(0x55,0x26)](a);if(b&&b[y(0x37,0x44)]()===TombStone)continue;this[y(0x3a,-0xc)](a);}}[_enu(0xd7,0x9b)](){function z(a,b){return _enu(a- -0x33f,b);}return this[z(-0x2f2,-0x318)][this[z(-0x2f2,-0x306)][z(-0x2e7,-0x334)]-0x1];}[_enu(0x4a,0x75)](a){if(isPromise(a))return a;function A(a,b){return _enu(a-0x249,b);}return this['graph'][a[A(0x2c2,0x2ea)]](a,this);}['yieldSync'](a){function B(a,b){return _enu(b-0xce,a);}if(isPromise(a)){throw new Error(B(0x133,0x158));}return this['graph'][a[B(0x15a,0x147)]](a,this);}['readAsync'](a){function C(a,b){return _enu(a-0x235,b);}if(!(a instanceof Identifier))return this[C(0x27f,0x28e)](a);let b;const c=this['getActiveEntry']();if(c){b=this[C(0x2dd,0x31e)](a,c,EdgeTypeNormal);}else{b=this[C(0x307,0x2f9)][C(0x304,0x2bb)](a);if(!b){const d=this[C(0x30b,0x343)](a);if(!d)throwUnknownIdentifier(a);b=d[C(0x2a8,0x2f6)]()?d:this[C(0x2e9,0x328)](a);}}if(b['hasValue']())return b[C(0x2e6,0x2d7)]();if(b['promise'])return b['promise'];if(!b[C(0x28f,0x2d3)]||!b['previous'][C(0x2a8,0x295)]())b[C(0x2fa,0x2b5)]();return this[C(0x2c7,0x2d6)]=b[C(0x299,0x2ad)]=this['ongoing'][C(0x2a2,0x27a)](()=>{return((async()=>{function D(a,b){return _enb(b-0x14e,a);}while(this[D(0x284,0x268)]['lowestLevel']<a[D(0x215,0x23d)]){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this[D(0x289,0x257)],[this[D(0x25c,0x25f)],this[D(0x229,0x268)][D(0x2b7,0x28f)]()],this);}if(this['rejectedWith']){throw new Error('Transaction\x20rejected:\x20'+String(this[D(0x26b,0x27c)][D(0x251,0x22a)]));}this[D(0x26c,0x252)]();if(b['getValue']()===void 0x0){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[D(0x230,0x25f)],[b]],this);}if(this['rejectedWith']){throw new Error(D(0x247,0x23f)+String(this[D(0x2aa,0x27c)][D(0x251,0x22a)]));}if(!b[D(0x226,0x25c)]()){throw new Error(D(0x29f,0x2ab));}return b[D(0x2bd,0x29a)]();})());});}[_enu(0xcf,0x116)](a){if(!(a instanceof Identifier))return this[E(0x262,0x21c)](a);let b;const c=this[E(0x25b,0x21f)]();function E(a,b){return _enu(b-0x148,a);}if(c){b=this[E(0x238,0x1f0)](a,c,EdgeTypeNormal);}else{b=this['entries'][E(0x21f,0x217)](a);if(!b){const f=this[E(0x248,0x21e)](a);if(!f)throwUnknownIdentifier(a);b=f[E(0x180,0x1bb)]()?f:this[E(0x1b1,0x1fc)](a);}}const d=b[E(0x226,0x1f9)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[E(0x1a1,0x1bb)]())return d;if(b[E(0x1a5,0x1ac)])return b[E(0x1e0,0x1ac)];if(!b[E(0x175,0x1a2)]||!b[E(0x1ad,0x1a2)]['hasValue']())b['forceCalculation']();const e=this[E(0x1ef,0x1c3)];while(this[E(0x1c8,0x1c7)][E(0x1d5,0x1f6)]()<a[E(0x16a,0x19c)]){this[E(0x1c9,0x1c3)]=![];this[E(0x257,0x212)](this[E(0x1b0,0x1e9)],this[E(0x191,0x1c7)][E(0x1ab,0x1ee)]());this[E(0x1ed,0x1c3)]=e;}this[E(0x178,0x1b1)]();if(a[E(0x1d7,0x1fe)]){this[E(0x1ca,0x1c3)]=![];this['calculateTransitionsStackSync'](this[E(0x1d5,0x1e9)],[b]);this[E(0x191,0x1c3)]=e;const g=b[E(0x1ba,0x1f9)]();if(g===void 0x0)throw new Error(E(0x1f3,0x1ff));if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this['ongoing']=b[E(0x187,0x1ac)]=this[E(0x1ea,0x1da)]['then'](()=>{function F(a,b){return E(b,a-0x1eb);}if(b[F(0x3e4,0x40a)]()===void 0x0)return runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[F(0x3a9,0x38c)],[b]],this);})[E(0x1f2,0x1b5)](()=>{if(this[G(-0x222,-0x22a)])throw new Error(G(-0x25f,-0x23f)+String(this[G(-0x222,-0x210)][G(-0x274,-0x290)]));const i=b['getValue']();if(i===void 0x0)throw new Error(G(-0x271,-0x228));function G(a,b){return E(b,a- -0x3fd);}if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[E(0x15f,0x1ab)]=b;}return h;}}[_enu(0x57,0x28)](a){if(!(a instanceof Identifier))return this[H(-0x272,-0x24e)](a);const b=this[H(-0x244,-0x24f)];this['readingIdentifier']=a;let c;const d=this[H(-0x24f,-0x24b)]();if(d){c=this[H(-0x2ae,-0x27a)](a,d,EdgeTypeNormal);}else{c=this[H(-0x29c,-0x250)][H(-0x228,-0x253)](a);if(!c){const g=this[H(-0x295,-0x24c)](a);if(!g){this[H(-0x246,-0x24f)]=b;throwUnknownIdentifier(a);}c=g[H(-0x2c4,-0x2af)]()?g:this[H(-0x25d,-0x26e)](a);}}const e=c[H(-0x259,-0x271)]();if(e===TombStone){this[H(-0x287,-0x24f)]=b;throwUnknownIdentifier(a);}if(e!==void 0x0){this[H(-0x22c,-0x24f)]=b;return e;}if(!c[H(-0x2ef,-0x2c8)]||!c[H(-0x314,-0x2c8)][H(-0x2c3,-0x2af)]())c['forceCalculation']();while(this[H(-0x271,-0x2a3)][H(-0x278,-0x274)]()<a[H(-0x297,-0x2ce)]){this[H(-0x269,-0x258)](this[H(-0x26a,-0x281)],this[H(-0x27c,-0x2a3)][H(-0x2b9,-0x27c)]());}function H(a,b){return _enu(b- -0x322,a);}this['markSelfDependent']();this['calculateTransitionsStackSync'](this[H(-0x282,-0x281)],[c]);const f=c[H(-0x255,-0x271)]();this[H(-0x23d,-0x24f)]=b;if(f===TombStone){throwUnknownIdentifier(a);}return f;}[_enu(0x49,0x46)](a){const b=this[I(0xa8,0xbc)][I(0xa5,0x88)](a);if(b){const c=b[I(0x87,0x5b)]();if(c!==void 0x0)return c;if(b[I(0x50,0x86)]!==void 0x0)return b[I(0x50,0x8b)];}function I(a,b){return _enu(a- -0x2a,b);}return this[I(0x27,0x15)](a);}[_enu(0xd9,0x9c)](a){const b=this[J(-0x1a5,-0x1c4)][J(-0x1a8,-0x170)](a);function J(a,b){return _enu(a- -0x277,b);}if(b){const c=b[J(-0x1c6,-0x17e)]();if(c!==void 0x0)return c;if(b[J(-0x1fd,-0x22b)]!==void 0x0)return b[J(-0x1fd,-0x234)];}return this[J(-0x215,-0x1c9)](a);}[_enu(0x51,0x5)](a){const b=this[K(0x385,0x399)](a);if(!b)return void 0x0;const c=b[K(0x360,0x38b)]();function K(a,b){return _enu(a-0x2af,b);}return c!==TombStone?c===void 0x0&&a[K(0x36b,0x373)]?this['read'](a):c:void 0x0;}['readPreviousAsync'](a){const b=this[L(-0x24,-0x72)](a);function L(a,b){return _enu(a- -0xfa,b);}if(!b)return void 0x0;const c=b[L(-0x49,-0x19)]();return c!==TombStone?c!==void 0x0?c:this[L(-0x71,-0xb4)](a):void 0x0;}[_enu(0x4c,0x97)](a){const b=this[M(0x2da,0x29a)][M(0x28d,0x297)](a);function M(a,b){return _enu(b-0x1c8,a);}if(b&&b['proposedValue']!==void 0x0){return b[M(0x264,0x242)];}else{return this[M(0x1e7,0x219)](a);}}[_enu(0xd5,0xb0)](a){const b=this[N(0x31,0x77)]['get'](a);function N(a,b){return _enu(a- -0xa1,b);}if(b&&b[N(-0x27,-0x21)]!==void 0x0){return b[N(-0x27,0x20)];}else{return this['readPreviousAsync'](a);}}[_enu(0xac,0x66)](a,b,...c){if(b===void 0x0)b=null;a[O(0x122,0xdd)]['call'](a[O(0xfd,0xce)]||a,a,this,null,b,...c);const d=this['entries']['get'](a);this[O(0x101,0x13e)]=this[O(0x101,0xed)]||!d[O(0x12e,0x16f)]()&&a[O(0xca,0x8a)]===Levels['UserInput'];function O(a,b){return _enu(a-0x76,b);}this[O(0xfa,0xe9)]=this[O(0xfa,0xd5)]||d[O(0xb5,0x68)]();}[_enu(0x5d,0x60)](a){function P(a,b){return _enu(a-0xa9,b);}return this[P(0x15d,0x1a2)](a)[P(0x164,0x122)]();}[_enu(0x45,0x77)](a){const b=this[Q(0x362,0x324)][Q(0x35f,0x342)](a);function Q(a,b){return _enu(a-0x290,b);}return b&&b['origin']===b?b[Q(0x2e3,0x29d)]:void 0x0;}['touch'](a){const b=this['entries'][R(-0x89,-0x60)](a);const {walkContext:c}=this;if(c&&(!b||b[R(-0x108,-0x121)]<c['currentEpoch'])){c['continueFrom']([a]);}const d=b||this[R(-0x86,-0x8c)][R(-0x89,-0x4b)](a);d[R(-0x93,-0x60)]();function R(a,b){return _enu(a- -0x158,b);}return d;}[_enu(0x74,0x73)](a){const b=this[S(0x102,0xc9)][S(0xff,0x122)](a);function S(a,b){return _enu(a-0x30,b);}if(b&&b[S(0xe1,0x106)]()===TombStone)return![];return Boolean(b||this[S(0x106,0xe0)](a));}[_enu(0x5c,0x99)](a,b,...c){let d=this[T(-0x1d8,-0x1ee)][T(-0x1db,-0x1a3)](a);const e=Boolean(d);const f=a[T(-0x256,-0x28d)]===Levels[T(-0x1df,-0x1a2)];if(!d){d=a[T(-0x238,-0x239)](this[T(-0x235,-0x203)]);d[T(-0x250,-0x258)]=this['cachedBaseRevisionLookup'](a);d[T(-0x1e5,-0x19d)]();this[T(-0x1d8,-0x1b3)][T(-0x268,-0x268)](a,d);if(!a[T(-0x1ee,-0x239)]&&!f)this['stackGen'][T(-0x1fd,-0x20e)](d);this['hasVariableEntry']=this[T(-0x21f,-0x20b)]||!d['isShadow']()&&f;this[T(-0x226,-0x252)]=this[T(-0x226,-0x1f4)]||d[T(-0x26b,-0x27b)]();}function T(a,b){return _enu(a- -0x2aa,b);}if(b!==void 0x0||f){d[T(-0x1ef,-0x20f)]();const g=e&&(d[T(-0x230,-0x241)]!==void 0x0||d['value']!==void 0x0);if(!g||d[T(-0x230,-0x206)]===TombStone||d[T(-0x210,-0x210)]===TombStone){a[T(-0x1f5,-0x23c)]=b===void 0x0;a[T(-0x1fe,-0x1cd)][T(-0x1ed,-0x233)](a[T(-0x223,-0x213)]||a,a,this,d,b===void 0x0&&f?null:b,...c);a[T(-0x1f5,-0x1b9)]=![];}}if(d[T(-0x1f9,-0x1c4)]()===TombStone)d[T(-0x210,-0x1d5)]=void 0x0;if(d[T(-0x230,-0x25c)]===TombStone)d[T(-0x230,-0x1f6)]=void 0x0;a[T(-0x21a,-0x21d)](this[T(-0x225,-0x1e3)]);return d;}[_enu(0x55,0x4f)](a){a[U(-0x4f,-0x52)](this[U(-0x88,-0x6a)]);const b=this[U(-0x4c,-0x3b)](a)['startOrigin']();b[U(-0xb,-0x40)](TombStone);function U(a,b){return _enu(b- -0xef,a);}this[U(-0x90,-0x53)][U(-0x56,-0x15)][U(-0xac,-0x83)](a);}[_enu(0xa5,0xc2)](a,b){function V(a,b){return _enu(b- -0x148,a);}if(a[V(-0xbd,-0xa9)]['size']===0x0){a[V(-0xe1,-0xa9)]=b;}else{for(const [c,d]of b){if(d[V(-0x49,-0x90)]()){const e=a[V(-0x8f,-0xb2)](c);const f=e['getOutgoing']();for(const [g,h]of d[V(-0xd4,-0xa4)]()){f[V(-0xf4,-0x106)](g,h);}}else{a[V(-0xd4,-0xa9)]['set'](c,d);}}}}[_enu(0xb2,0x9c)](a){if(this[W(-0x9c,-0xa0)])throw new Error('Can\x20not\x20propagate\x20closed\x20revision');this[W(-0xa2,-0xeb)]();this[W(-0x9c,-0x89)]=!![];function W(a,b){return _enu(a- -0x10b,b);}this[W(-0x58,-0x59)]=Date[W(-0xcb,-0x116)]();this[W(-0xa4,-0xb1)]=this[W(-0x8c,-0x83)][W(-0xb3,-0xea)];}[_enu(0xa3,0x73)](){function X(a,b){return _enu(b- -0x2de,a);}this['populateCandidateScopeFromTransitions'](this['candidate'],this[X(-0x243,-0x20c)]);const a=this[X(-0x1e1,-0x20c)];this[X(-0x23e,-0x210)]=void 0x0;this[X(-0x23d,-0x25b)]=new Map();return{'revision':this[X(-0x28b,-0x242)],'entries':a,'transaction':this};}[_enu(0x7c,0xb4)](a){this[Y(0x441,0x3fc)](a);function Y(a,b){return _enu(b-0x34a,a);}this[Y(0x3a3,0x3d6)](this[Y(0x3ac,0x3eb)]);return this[Y(0x42c,0x3ed)]();}[_enu(0x99,0x88)](a=RejectEffect[_enu(0x68,0x32)]()){this[Z(0x147,0x133)]=a;function Z(a,b){return _enu(a-0xb4,b);}this[Z(0x182,0x180)]=void 0x0;this['clearCycles']();}[_enu(0x4f,0x72)](){this['stopped']=!![];}[_enu(0x95,0xbc)](){function a0(a,b){return _enu(a- -0x2cc,b);}for(const a of this['entries'][a0(-0x213,-0x1f1)]()){a[a0(-0x26e,-0x253)]();}this[a0(-0x1fa,-0x1c3)][a0(-0x20b,-0x246)]();}async['commitAsync'](a){this[a1(0x15c,0x116)](a);function a1(a,b){return _enu(b-0x64,a);}return this[a1(0x119,0xf6)]=this[a1(0x120,0xf6)][a1(0xe0,0xd1)](()=>{function a2(a,b){return a1(a,b- -0x326);}return runGeneratorAsyncWithEffect(this[a2(-0x23a,-0x24c)],this[a2(-0x266,-0x224)],[this[a2(-0x207,-0x24c)]],this);})[a1(0x104,0xd1)](()=>{function a3(a,b){return a1(a,b- -0x305);}return this[a3(-0x21d,-0x1fe)]();});}[_enu(0xd6,0xb0)](a){const b=this[a4(-0x5b,-0x2e)];let c=b[a4(-0x21,0x1e)](a);if(c!==void 0x0)return c;c=this['baseRevision'][a4(-0x1c,-0x1b)](a);function a4(a,b){return _enu(b- -0xb1,a);}b[a4(-0x8c,-0x6f)](a,c);return c;}[_enu(0x96,0x88)](a){function a5(a,b){return _enu(a- -0x29,b);}let b=this['entries']['get'](a)||this[a5(0xad,0xf8)](a);if(b&&b['getValue']()===TombStone)return void 0x0;return b;}[_enu(0xc4,0x8d)](a){let b=this[a6(0x1b9,0x1c2)][a6(0x19f,0x1bf)](a);function a6(a,b){return _enu(b-0xf0,a);}if(b){const c=b[a6(0x1b1,0x1a1)]();if(c===TombStone)return void 0x0;return c===void 0x0&&b['proposedValue']===void 0x0?this[a6(0x194,0x1c6)](a):b;}else{return this['cachedBaseRevisionLookup'](a);}}[_enu(0x47,0x31)](a){let b=this[a7(0x1a0,0x1e4)][a7(0x19d,0x17a)](a);function a7(a,b){return _enu(a-0xce,b);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0?this[a7(0x1a4,0x1d1)](a):b;}else{return this[a7(0x1a4,0x1ea)](a);}}[_enu(0xa8,0x7a)](a,b,c){function a8(a,b){return _enu(a-0x1ce,b);}const d=b[a8(0x295,0x288)];if(d['level']<a[a8(0x222,0x211)])throw new Error('Identifier can not read from higher level identifier');let e=this[a8(0x2a0,0x254)][a8(0x29d,0x2cc)](a);if(!e){const f=this[a8(0x2a4,0x270)](a);if(!f)throwUnknownIdentifier(a);e=a[a8(0x240,0x22e)](this[a8(0x243,0x270)]);e[a8(0x28d,0x2ba)](f);e[a8(0x228,0x1f9)]=f;this[a8(0x2a0,0x255)]['set'](a,e);}e['addOutgoingTo'](b,c);return e;}[_enu(0x5b,0x92)](a,b){a[a9(0x71,0x51)]();const c=a['identifier'];function a9(a,b){return _enu(b- -0xd,a);}const d=a[a9(0x9a,0x4d)];const e=Boolean(d&&d[a9(0x98,0x66)]()&&c[a9(0xbb,0x9d)](b,d[a9(0xb6,0xa4)]()));if(e){d['outgoingInTheFutureAndPastTransactionCb'](this,g=>{function aa(a,b){return a9(a,b-0xd0);}const h=this[aa(0x147,0x195)]['get'](g[aa(0x17f,0x18a)]);if(h)h['edgesFlow']--;});a['edgesFlow']=MAX_SMI;a['setOrigin'](d[a9(0x83,0x46)]);}else{a['startOrigin']();a['setValue'](b);}let f=![];if(a['usedProposedOrPrevious']){if(a[a9(0x3c,0x6d)]!==void 0x0){if(c[a9(0xe7,0x9d)](b,a[a9(0x26,0x6d)]))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a9(0x59,0x8f)][a9(0x8a,0xcd)][a9(0x69,0xb6)](c);}}['onReadIdentifier'](a,b,c){const d=this['addEdge'](a,b,EdgeTypeNormal);function ab(a,b){return _enu(a- -0x149,b);}if(d[ab(-0xd6,-0xe5)]()||d['value']!==void 0x0){const e=d[ab(-0x98,-0x9c)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d[ab(-0x91,-0x60)]()){d[ab(-0x8e,-0x99)]();d[ab(-0x84,-0x6d)]();c['push'](d);return void 0x0;}else{if(!d[ab(-0x7c,-0x80)]()){c[ab(-0x9c,-0xbf)](d);if(!d[ab(-0xef,-0xe3)]||!d['previous']['hasValue']())d[ab(-0x84,-0xab)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext['new']({'transaction':this,'onCycle'(h,i){f=ComputationCycle[ac(0x35c,0x31a)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});function ac(a,b){return ab(a-0x43d,b);}return OnCycleAction['Cancel'];}});g['startFrom']([d[ab(-0x82,-0x3b)]]);return f;}}}*['calculateTransitions'](a){const b=this[ad(0x4d2,0x4c5)];function ad(a,b){return _enu(a-0x453,b);}while(b[ad(0x4ab,0x4b0)]){yield*this[ad(0x4c1,0x4f1)](a,b[ad(0x4f9,0x529)]());}}[_enu(0x8c,0x49)](a){const b=this[ae(-0x6e,-0xb3)];function ae(a,b){return _enu(b- -0x132,a);}while(b[ae(-0xcb,-0xda)]){this[ae(-0xb6,-0x68)](a,b[ae(-0xd0,-0x8c)]());}}*[_enu(0x6e,0xb9)](a,b){if(this[af(-0x11f,-0x167)]||this[af(-0x137,-0x113)])return;this[af(-0xe4,-0xc0)][af(-0x130,-0x151)]();const c=this['entries'];const d=this['propagationStartDate'];const e=this[af(-0x12d,-0x149)]?this['graph']['enableProgressNotifications']:![];let f=0x0;let g=this[af(-0x165,-0x162)];this[af(-0x165,-0x125)]=b;function af(a,b){return _enu(a- -0x1b2,b);}while(b[af(-0x15a,-0x16f)]&&!this['rejectedWith']&&!this[af(-0x137,-0x17c)]){if(e&&!(f++%this['emitProgressNotificationsEveryCalculations'])){const m=Date[af(-0x172,-0x124)]();const n=m-d;if(n>this[af(-0x10b,-0x127)]){const o=this[af(-0x153,-0x14b)];if(!o||m-o>this[af(-0x152,-0x141)]){this[af(-0x153,-0x181)]=m;this['graph'][af(-0x102,-0x145)]({'total':this['plannedTotalIdentifiersToCalculate'],'remaining':this[af(-0x133,-0x124)][af(-0x15a,-0x131)]+b[af(-0x15a,-0x147)],'phase':af(-0x12c,-0xf5)});this[af(-0x165,-0x1a8)]=g;yield delay(0x0);this[af(-0x165,-0x14b)]=b;}}}if(this[af(-0x11f,-0xe8)]||this[af(-0x137,-0x16e)])break;const h=b[b[af(-0x15a,-0x1a7)]-0x1];const i=h[af(-0xeb,-0x9e)];const j=c[af(-0xe3,-0xc1)](i);if(j!==h){h[af(-0x154,-0x18f)]();b[af(-0x151,-0x126)]();continue;}if(!i['ignoreEdgesFlow']&&h[af(-0x132,-0x12f)]==0x0){h['edgesFlow']--;const p=h[af(-0x158,-0x19a)];p&&p[af(-0xe9,-0xd7)](this,q=>{function ag(a,b){return af(a-0xd6,b);}const r=c[ag(-0xd,-0x2c)](q[ag(-0x15,-0x47)]);if(r)r[ag(-0x5c,-0x6b)]--;});}if(!i[af(-0xea,-0xfa)]&&h['edgesFlow']<0x0&&h[af(-0x158,-0x10d)]&&h[af(-0x158,-0x163)][af(-0x15f,-0x17d)]){h[af(-0xf3,-0xce)](h['previous']['origin']);if(h[af(-0x11a,-0x165)]===0x0){c[af(-0x146,-0x180)](i);}h['cleanup']();b['pop']();continue;}if(h[af(-0x13f,-0x14f)]()||h[af(-0x138,-0x170)]===TombStone){h[af(-0x154,-0x188)]();b[af(-0x151,-0x10e)]();continue;}const k=h[af(-0x162,-0x17e)];let l=h['isCalculationStarted']()?h[af(-0x11b,-0xd7)]:h[af(-0x167,-0x125)](this[af(-0x111,-0x116)]);while(l&&!this[af(-0x11f,-0x115)]&&!this['stopped']){const q=l[af(-0x118,-0x10b)]===void 0x0?null:l[af(-0x118,-0x111)];if(h['isCalculationCompleted']()){if(h[af(-0x162,-0x181)]==k){this[af(-0x157,-0x167)](h,q);}b[af(-0x151,-0x13c)]();break;}else if(q instanceof Identifier){const r=this[af(-0x13b,-0x166)](q,h,b);if(r instanceof ComputationCycle){this['walkContext'][af(-0x130,-0x179)]();this[af(-0x165,-0x14b)]=g;yield*this[af(-0x12d,-0x158)][af(-0x164,-0x15c)](r,this);g=this['activeStack'];this['activeStack']=b;h[af(-0x134,-0xe7)]();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[af(-0x151,-0x167)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h['visitEpoch']===k){l=h[af(-0xe1,-0xf5)](s);}else{b[af(-0x151,-0x162)]();break;}}}}this[af(-0x165,-0x117)]=g;}[_enu(0x65,0x66)](a){this[ah(-0x108,-0x10f)][ah(-0xd9,-0x123)](a);const {cycledIdentifiers:b}=this;a[ah(-0x10d,-0x105)][ah(-0x154,-0x12f)](e=>{b['set'](e,a);});const c=[];function ah(a,b){return _enu(a- -0x19c,b);}let d=a[ah(-0xc4,-0x98)];while(d){b[ah(-0x15a,-0x182)](d[ah(-0xd5,-0xa0)],a);c[ah(-0xef,-0xcb)](...Array[ah(-0xf1,-0xab)](d[ah(-0xe3,-0xa1)]())[ah(-0xde,-0xb9)](e=>!b['has'](e[ah(-0xd5,-0xa0)])));d=c[ah(-0x114,-0x152)]();}}[_enu(0xcc,0xc9)](){function ai(a,b){return _enu(a- -0x267,b);}this[ai(-0x1d3,-0x1dd)]['clear']();this[ai(-0x20e,-0x1f3)][ai(-0x1a6,-0x176)]();}['calculateTransitionsStackSync'](a,b){if(this[aj(0x9d,0x54)]||this[aj(-0x8,0x3c)])return;this[aj(0xa4,0x8f)][aj(0x37,0x43)]();function aj(a,b){return _enu(b- -0x3f,a);}const c=this[aj(0x7a,0x93)];let d=this[aj(-0x3e,0xe)];this[aj(-0x22,0xe)]=b;const {cycledIdentifiers:e}=this;while(b['length']&&!this[aj(0x3a,0x54)]&&!this[aj(0x4a,0x3c)]){const f=b[b['length']-0x1];const g=f[aj(0x64,0x88)];if(e[aj(0xa,0x4f)](g)){f[aj(-0x7,0x1f)]();b[aj(-0xc,0x22)]();continue;}const h=c['get'](g);if(h!==f){f[aj(0x38,0x1f)]();b[aj(-0x1c,0x22)]();continue;}if(f[aj(0x85,0x41)]==0x0){f[aj(0x6d,0x41)]--;const k=f['previous'];k&&k[aj(0xbe,0x8a)](this,l=>{function ak(a,b){return aj(a,b- -0x273);}const m=c[ak(-0x22f,-0x1e3)](l[ak(-0x1a5,-0x1eb)]);if(m)m['edgesFlow']--;});}if(f[aj(0x71,0x41)]<0x0&&f[aj(-0x30,0x1b)]&&f[aj(0x1a,0x1b)][aj(-0x18,0x14)]){f[aj(0x65,0x80)](f[aj(0x2,0x1b)][aj(0x4f,0x14)]);if(f[aj(0x5b,0x59)]===0x0){c[aj(0x73,0x2d)](g);}f['cleanup']();b['pop']();continue;}if(f[aj(0x79,0x34)]()||f[aj(0x38,0x3b)]===TombStone){f[aj(0x21,0x1f)]();b[aj(0x10,0x22)]();continue;}const i=f['visitEpoch'];let j=f[aj(0x71,0x8e)]()?f[aj(0x26,0x58)]:f[aj(-0xc,0xc)](this[aj(0x3b,0x62)]);while(j&&!this[aj(0x91,0x54)]&&!this[aj(0x2,0x3c)]){const l=j[aj(0x98,0x5b)]===void 0x0?null:j[aj(0x67,0x5b)];if(f[aj(0x93,0x87)]()){if(f['visitEpoch']==i){this[aj(0x22,0x1c)](f,l);}b[aj(0x46,0x22)]();break;}else if(l instanceof Identifier){if(e[aj(0x13,0x4f)](l)){j=void 0x0;f[aj(-0x2c,0x1f)]();b[aj(0x69,0x22)]();continue;}const m=this[aj(0x45,0x38)](l,f,b);if(m instanceof ComputationCycle){this[aj(0x8e,0x8f)][aj(0x1a,0x43)]();this[aj(0x14,0xe)]=d;this[aj(0x32,0x46)][aj(0x85,0x39)](m,this);d=this['activeStack'];this[aj(-0x39,0xe)]=b;f[aj(0x49,0x3f)]();j=void 0x0;}else{j=m;}}else if(l===SynchronousCalculationStarted){b[aj(-0x2,0x22)]();break;}else{const n=a(l);if(isPromise(n))throw new Error('Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly');if(n===BreakCurrentStackExecution)break;if(f[aj(-0x26,0x11)]===i){j=f[aj(0xdc,0x92)](n);}else{b[aj(-0x2b,0x22)]();break;}}}}this[aj(0x12,0xe)]=d;}}export{EdgeTypeNormal,EdgeTypePast,Transaction};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function g(a,b){return _enb(a-0x1b4,b);}while(!![]){try{const d=parseInt(g(0x300,0x30c))/0x1+parseInt(g(0x314,0x30b))/0x2+parseInt(g(0x30c,0x30f))/0x3+-parseInt(g(0x31a,0x31e))/0x4+parseInt(g(0x31f,0x327))/0x5*(parseInt(g(0x306,0x30b))/0x6)+parseInt(g(0x30d,0x303))/0x7+-parseInt(g(0x320,0x321))/0x8*(parseInt(g(0x31e,0x32a))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc205c));function _eni(a,b){return _enb(a-0x270,b);}import{Base}from'../class/Base.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x148;let f=c[d];return f;};return _enb(a,b);}import{NOT_VISITED,OnCycleAction,VISITED_TOPOLOGICALLY}from'../graph/WalkDepth.js';function _ena(){const r=['level','15651cQdhXw','5uHJYPN','15544WqjQfd','transaction','pushTo','keys','apply','lazy','identifier','doCollectNext','visitedAt','collectNext','1286234oVmHYf','getOutgoing','Resume','push','$outgoingPast','Can\x20not\x20start\x20new\x20walk\x20epoch\x20in\x20the\x20middle\x20of\x20the\x20walk','8921778AeYoLP','toVisit','baseRevision','continueFrom','startFrom','edgesFlow','1557405KITxzV','7514815CqOTvy','visitEpoch','onTopologicalNode','currentEpoch','walkDepth','previous','UserInput','868150ZTUwao','set','getLatestEntryFor','length','pop','visited','2505436DNNXfL','onCycle','get'];_ena=function(){return r;};return _ena();}import{Levels}from'./Identifier.js';class TransactionWalkDepth extends Base{constructor(){super(...arguments);this[h(0x40f,0x421)]=new Map();this[h(0x417,0x41a)]=void 0x0;this[h(0x3fe,0x3fc)]=void 0x0;this[h(0x418,0x412)]=void 0x0;function h(a,b){return _enb(a-0x2aa,b);}this[h(0x3fd,0x40a)]=[];this['currentEpoch']=0x0;}[_eni(0x3c6,0x3cf)](a){function j(a,b){return _eni(a- -0x3f5,b);}this[j(-0x30,-0x3d)](a);}['continueFrom'](a){function k(a,b){return _eni(a- -0x34f,b);}this[k(0x74,0x79)][k(0x70,0x5e)][k(0x91,0x9e)](this[k(0x74,0x7c)],a);this[k(0x7e,0x6c)]();}['startNewEpoch'](){function l(a,b){return _eni(a-0x170,b);}if(this[l(0x533,0x537)][l(0x543,0x54a)])throw new Error(l(0x531,0x521));this['currentEpoch']++;}[_eni(0x3cb,0x3c4)](a,b){function m(a,b){return _eni(b- -0x40d,a);}if(!a[m(-0x2a,-0x2c)]&&a[m(-0x35,-0x34)]!==Levels[m(-0x33,-0x3e)])this[m(-0x3b,-0x2f)][m(-0x57,-0x4e)](b);}[_eni(0x3d7,0x3d1)](a,b){return OnCycleAction['Resume'];}[_eni(0x3b9,0x3bc)](a,b,c){let d=this[n(-0x19c,-0x18d)]['get'](b);if(!d){d=b['newQuark'](this[n(-0x1ad,-0x1bf)]);d[n(-0x1a7,-0x1af)]=this[n(-0x1a5,-0x1ac)];this[n(-0x19c,-0x18d)][n(-0x1a0,-0x19f)](b,d);}function n(a,b){return _eni(a- -0x571,b);}c['push'](b);}['collectNext'](a,b,c){const d=this[o(0x2d1,0x2d3)][o(0x2df,0x2d0)](a);if(d){c[o(0x2db,0x2da)]=d;d['outgoingInTheFutureAndPastTransactionCb'](this[o(0x2ea,0x2e6)],e=>{function p(a,b){return o(a- -0x528,b);}this[p(-0x262,-0x260)](a,e[p(-0x263,-0x270)],b);});}for(const e of c[o(0x2ca,0x2db)]()[o(0x2ec,0x2f0)]()){this[o(0x2c6,0x2d0)](a,e,b);}function o(a,b){return _eni(a- -0xf3,b);}if(c[o(0x2cd,0x2bf)]!==void 0x0)for(const f of c['getOutgoingPast']()['keys']()){this[o(0x2c6,0x2bb)](a,f,b);}}[_eni(0x3cd,0x3bc)](){const a=this[q(0x1a7,0x1a0)];function q(a,b){return _eni(b- -0x235,a);}const b=this[q(0x199,0x18e)];let c;while(c=b[q(0x192,0x19e)]){const d=b[c-0x1];let e=a[q(0x1ab,0x1a3)](d);if(e&&e['visitedAt']===VISITED_TOPOLOGICALLY&&e[q(0x183,0x195)]===this[q(0x190,0x197)]){e[q(0x17d,0x192)]++;b[q(0x197,0x19f)]();continue;}if(e&&e[q(0x1a8,0x195)]===this[q(0x1a1,0x197)]&&e[q(0x176,0x185)]!==NOT_VISITED){if(e[q(0x182,0x185)]<c){if(this[q(0x192,0x1a2)](d,b)!==OnCycleAction[q(0x178,0x189)])break;e[q(0x194,0x192)]++;}else{e[q(0x196,0x185)]=VISITED_TOPOLOGICALLY;this[q(0x1ab,0x196)](d,e);}b[q(0x1aa,0x19f)]();}else{const f=b[q(0x1b2,0x19e)];if(!e){e=d['newQuark'](this[q(0x197,0x18f)]);e[q(0x18d,0x195)]=this['currentEpoch'];a[q(0x18c,0x19c)](d,e);}this[q(0x190,0x186)](d,b,e);if(e[q(0x183,0x195)]<this[q(0x1a1,0x197)]){e['resetToEpoch'](this[q(0x191,0x197)]);}e[q(0x189,0x185)]=c;e[q(0x198,0x192)]++;if(b[q(0x191,0x19e)]===f){e['visitedAt']=VISITED_TOPOLOGICALLY;this[q(0x196,0x196)](d,e);b[q(0x1a4,0x19f)]();}}}}}export{TransactionWalkDepth};
1
+ (function(a,b){function g(a,b){return _enb(a- -0x24,b);}const c=a();while(!![]){try{const d=-parseInt(g(0x56,0x5b))/0x1*(parseInt(g(0x4b,0x4e))/0x2)+-parseInt(g(0x5d,0x4c))/0x3+-parseInt(g(0x66,0x79))/0x4+-parseInt(g(0x51,0x3e))/0x5*(-parseInt(g(0x49,0x42))/0x6)+-parseInt(g(0x5b,0x64))/0x7*(parseInt(g(0x46,0x30))/0x8)+-parseInt(g(0x4f,0x4d))/0x9+parseInt(g(0x43,0x42))/0xa*(parseInt(g(0x50,0x45))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6d7c5));import{Base}from'../class/Base.js';import{NOT_VISITED,OnCycleAction,VISITED_TOPOLOGICALLY}from'../graph/WalkDepth.js';function _eni(a,b){return _enb(a-0x2db,b);}import{Levels}from'./Identifier.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x65;let f=c[d];return f;};return _enb(a,b);}class TransactionWalkDepth extends Base{constructor(){super(...arguments);function h(a,b){return _enb(a-0x3ac,b);}this[h(0x41a,0x40d)]=new Map();this[h(0x433,0x426)]=void 0x0;this[h(0x427,0x414)]=void 0x0;this[h(0x415,0x410)]=void 0x0;this[h(0x422,0x429)]=[];this[h(0x41e,0x41f)]=0x0;}[_eni(0x36a,0x376)](a){function j(a,b){return _eni(b- -0x12a,a);}this[j(0x22f,0x21c)](a);}['continueFrom'](a){this['toVisit'][k(0x16e,0x159)][k(0x157,0x14b)](this[k(0x168,0x15b)],a);function k(a,b){return _eni(a- -0x1e9,b);}this['walkDepth']();}[_eni(0x369,0x36f)](){if(this[l(-0x25a,-0x26b)]['length'])throw new Error('Can\x20not\x20start\x20new\x20walk\x20epoch\x20in\x20the\x20middle\x20of\x20the\x20walk');function l(a,b){return _eni(a- -0x5ab,b);}this[l(-0x25e,-0x272)]++;}[_eni(0x341,0x34e)](a,b){function m(a,b){return _eni(b- -0x51d,a);}if(!a[m(-0x1b1,-0x1b1)]&&a['level']!==Levels[m(-0x1ca,-0x1b6)])this[m(-0x1e0,-0x1d9)][m(-0x1c9,-0x1c6)](b);}[_eni(0x368,0x363)](a,b){function n(a,b){return _eni(a- -0x540,b);}return OnCycleAction[n(-0x1d5,-0x1e8)];}[_eni(0x35b,0x36a)](a,b,c){let d=this[o(-0x16f,-0x178)][o(-0x15c,-0x15b)](b);if(!d){d=b[o(-0x15e,-0x15e)](this[o(-0x164,-0x16b)]);d[o(-0x16c,-0x163)]=this[o(-0x17a,-0x174)];this['visited']['set'](b,d);}function o(a,b){return _eni(b- -0x4c1,a);}c[o(-0x17a,-0x16a)](b);}[_eni(0x352,0x341)](a,b,c){const d=this['transaction'][p(0x2b2,0x2c0)](a);function p(a,b){return _eni(b- -0x9f,a);}if(d){c[p(0x2bb,0x2ba)]=d;d['outgoingInTheFutureAndPastTransactionCb'](this[p(0x2b4,0x2c3)],e=>{function q(a,b){return p(a,b- -0x45e);}this[q(-0x1a1,-0x1a2)](a,e['identifier'],b);});}for(const e of c[p(0x2a3,0x2a8)]()[p(0x299,0x2a4)]()){this[p(0x2ca,0x2bc)](a,e,b);}if(c[p(0x2bc,0x2b4)]!==void 0x0)for(const f of c[p(0x2ce,0x2c1)]()[p(0x2ab,0x2a4)]()){this[p(0x2b7,0x2bc)](a,f,b);}}[_eni(0x35d,0x34b)](){function r(a,b){return _eni(a-0x0,b);}const a=this[r(0x349,0x35b)];const b=this['toVisit'];let c;while(c=b['length']){const d=b[c-0x1];let e=a[r(0x366,0x36e)](d);if(e&&e['visitedAt']===VISITED_TOPOLOGICALLY&&e[r(0x35e,0x34d)]===this['currentEpoch']){e[r(0x34c,0x33d)]++;b[r(0x364,0x35f)]();continue;}if(e&&e[r(0x35e,0x34e)]===this[r(0x34d,0x363)]&&e[r(0x358,0x35c)]!==NOT_VISITED){if(e['visitedAt']<c){if(this[r(0x368,0x379)](d,b)!==OnCycleAction[r(0x36b,0x360)])break;e[r(0x34c,0x346)]++;}else{e[r(0x358,0x355)]=VISITED_TOPOLOGICALLY;this[r(0x341,0x353)](d,e);}b['pop']();}else{const f=b['length'];if(!e){e=d[r(0x363,0x34e)](this[r(0x356,0x35f)]);e['visitEpoch']=this['currentEpoch'];a[r(0x34b,0x34a)](d,e);}this[r(0x352,0x344)](d,b,e);if(e['visitEpoch']<this[r(0x34d,0x362)]){e[r(0x361,0x358)](this[r(0x34d,0x363)]);}e['visitedAt']=c;e[r(0x34c,0x342)]++;if(b[r(0x354,0x367)]===f){e[r(0x358,0x348)]=VISITED_TOPOLOGICALLY;this[r(0x341,0x32b)](d,e);b['pop']();}}}}}function _ena(){const s=['onCycle','startNewEpoch','startFrom','Resume','lazy','apply','onTopologicalNode','10XJMbEp','keys','pushTo','41312awFqrh','continueFrom','getOutgoing','1302syppVc','visited','2YaXRwH','set','edgesFlow','currentEpoch','2111040idxlns','25323056nOkRxq','16175uHjFzb','toVisit','collectNext','$outgoingPast','length','617177oPbbZX','baseRevision','push','visitedAt','previous','1169ForSTx','doCollectNext','1279392NNcWip','walkDepth','visitEpoch','cachedBaseRevisionLookup','getOutgoingPast','resetToEpoch','transaction','newQuark','pop','1660196HcjqWR','get','UserInput'];_ena=function(){return s;};return _ena();}export{TransactionWalkDepth};
@@ -1 +1 @@
1
- function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d3;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function f(a,b){return _enb(a- -0x114,b);}while(!![]){try{const d=parseInt(f(0xc5,0xbe))/0x1*(parseInt(f(0xc3,0xbd))/0x2)+-parseInt(f(0xc6,0xcd))/0x3+parseInt(f(0xd0,0xd4))/0x4*(parseInt(f(0xcc,0xd3))/0x5)+-parseInt(f(0xc1,0xbb))/0x6*(-parseInt(f(0xc0,0xc9))/0x7)+-parseInt(f(0xcf,0xcd))/0x8+parseInt(f(0xcb,0xcd))/0x9+parseInt(f(0xc7,0xc6))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5d000));function _ena(){const n=['getLowestLevel','3420180fYBuKO','55kGSJMm','lowestLevel','pop','3810752MIJrbG','37828wRyKVJ','length','5558UJUsUt','1686aaNExL','levels','6zXTyWx','push','52471SMOgHB','91458wSIBfU','231840Euoprl','level','takeLowestLevel'];_ena=function(){return n;};return _ena();}import{MAX_SMI}from'./Helpers.js';class LeveledQueue{constructor(){function g(a,b){return _enb(a-0xf5,b);}this[g(0x2c8,0x2d1)]=0x0;this[g(0x2cb,0x2d1)]=[];this[g(0x2d6,0x2df)]=MAX_SMI;}[_enh(0x35b,0x355)](){for(let a=this['lowestLevel']!==MAX_SMI?this[i(0x48a,0x48a)]:0x0;a<this[i(0x485,0x47f)][i(0x47a,0x47c)];a++){if(this[i(0x484,0x47f)][a])return this['lowestLevel']=a;}function i(a,b){return _enh(b-0x12c,a);}return this[i(0x48e,0x48a)]=MAX_SMI;}[_enh(0x35a,0x35b)](){function j(a,b){return _enh(a- -0x30f,b);}for(let a=this[j(0x4f,0x48)]!==MAX_SMI?this[j(0x4f,0x55)]:0x0;a<this['levels'][j(0x41,0x48)];a++){const b=this[j(0x44,0x42)][a];if(b){this['length']-=b[j(0x41,0x3f)];this[j(0x44,0x42)][a]=null;this[j(0x4f,0x58)]=a+0x1;return b;}}}['pop'](){for(let a=this[k(0x41b,0x421)]!==MAX_SMI?this[k(0x424,0x421)]:0x0;a<this[k(0x411,0x416)][k(0x40d,0x413)];a++){const b=this[k(0x410,0x416)][a];this[k(0x41b,0x421)]=a;if(b&&b['length']>0x0){this['length']--;return b[k(0x41a,0x422)]();}}function k(a,b){return _enh(b-0xc3,a);}this[k(0x42a,0x421)]=MAX_SMI;}[_enh(0x355,0x353)](a){function l(a,b){return _enh(b- -0x2e0,a);}const b=a[l(0x80,0x79)];let c=this[l(0x6d,0x73)][b];if(!c){for(let d=this[l(0x76,0x73)][l(0x6a,0x70)];d<b;d++)this['levels'][d]=null;c=this['levels'][b]=[];}c[l(0x7b,0x75)](a);this['length']++;if(b<this[l(0x7d,0x7e)])this[l(0x76,0x7e)]=b;}*[Symbol['iterator']](){function m(a,b){return _enh(b- -0x322,a);}for(let a=0x0;a<this[m(0x2e,0x31)][m(0x31,0x2e)];a++){const b=this[m(0x38,0x31)][a];if(b)yield*b;}}}function _enh(a,b){return _enb(a-0x17d,b);}export{LeveledQueue};
1
+ function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa1;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function f(a,b){return _enb(a- -0x36b,b);}const c=a();while(!![]){try{const d=-parseInt(f(-0x2c0,-0x2c0))/0x1+-parseInt(f(-0x2c2,-0x2bc))/0x2+parseInt(f(-0x2c4,-0x2c9))/0x3+parseInt(f(-0x2c1,-0x2c8))/0x4*(parseInt(f(-0x2bc,-0x2b5))/0x5)+parseInt(f(-0x2bb,-0x2c2))/0x6*(-parseInt(f(-0x2c9,-0x2cb))/0x7)+parseInt(f(-0x2c8,-0x2c9))/0x8*(-parseInt(f(-0x2bd,-0x2b7))/0x9)+parseInt(f(-0x2ba,-0x2b1))/0xa*(parseInt(f(-0x2ca,-0x2ca))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc93dc));import{MAX_SMI}from'./Helpers.js';class LeveledQueue{constructor(){function g(a,b){return _enb(b- -0x2b5,a);}this['length']=0x0;this[g(-0x209,-0x210)]=[];this[g(-0x200,-0x203)]=MAX_SMI;}['getLowestLevel'](){for(let a=this['lowestLevel']!==MAX_SMI?this[h(0xb2,0xb4)]:0x0;a<this[h(0x9e,0xa7)][h(0xb6,0xb5)];a++){if(this[h(0x9e,0xa7)][a])return this[h(0xab,0xb4)]=a;}function h(a,b){return _enb(b-0x2,a);}return this['lowestLevel']=MAX_SMI;}[_eni(0x249,0x24a)](){function j(a,b){return _eni(b,a- -0xeb);}for(let a=this[j(0x164,0x16a)]!==MAX_SMI?this[j(0x164,0x164)]:0x0;a<this[j(0x157,0x15c)][j(0x165,0x16d)];a++){const b=this[j(0x157,0x15a)][a];if(b){this[j(0x165,0x15d)]-=b[j(0x165,0x15c)];this[j(0x157,0x15c)][a]=null;this[j(0x164,0x167)]=a+0x1;return b;}}}['pop'](){for(let a=this[k(0x2ef,0x2f7)]!==MAX_SMI?this[k(0x2ef,0x2f8)]:0x0;a<this[k(0x2e2,0x2da)][k(0x2f0,0x2f9)];a++){const b=this[k(0x2e2,0x2e8)][a];if(b&&b[k(0x2f0,0x2eb)]>0x0){this['length']--;const c=b[k(0x2e1,0x2e8)]();this['lowestLevel']=b[k(0x2f0,0x2f0)]>0x0?a:a+0x1;return c;}}function k(a,b){return _eni(b,a-0xa0);}this['lowestLevel']=MAX_SMI;}[_eni(0x23f,0x249)](a){const b=a[l(0x444,0x441)];function l(a,b){return _eni(b,a-0x1ff);}let c=this[l(0x441,0x438)][b];if(!c){for(let d=this[l(0x441,0x447)][l(0x44f,0x44e)];d<b;d++)this['levels'][d]=null;c=this[l(0x441,0x44b)][b]=[];}c['push'](a);this['length']++;if(b<this['lowestLevel'])this['lowestLevel']=b;}*[Symbol[_eni(0x23c,0x243)]](){function m(a,b){return _eni(b,a- -0x532);}for(let a=0x0;a<this[m(-0x2f0,-0x2f4)][m(-0x2e2,-0x2df)];a++){const b=this[m(-0x2f0,-0x2e6)][a];if(b)yield*b;}}}function _ena(){const n=['5BylOQc','30MpyClA','170DtjHQL','lowestLevel','length','1218954mxExqT','252161kQNhvK','11599432tRWOWy','pop','levels','iterator','3636453exfzPg','level','1794402YfGPYa','1090488Iygabu','17082mmgtHM','push','takeLowestLevel','9cvHkTU'];_ena=function(){return n;};return _ena();}function _eni(a,b){return _enb(b-0x19d,a);}export{LeveledQueue};
@@ -1 +1 @@
1
- function _ena(){const x=['boolean','cls','availabilityEndSchedule','join','prioritySortValue','name','at\x20','348578MBkGNt','startDate','endDateSchedule','parseDateSchedule','getCalendar','date','11724uHukVw','recurrentStartDate','getAvailabilityEndSchedule','5493290OeXVvH','compositeCode','startDateSchedule','fd_b','14gapVZw','2125ZrQTAd','getPrioritySortValue','endDate','availabilityStartSchedule','number','schedules','3bDIVdD','2276VOpOrJ','EOD','1178604iZWsTL','schedule','type','parse','recurrentTimeZone','priority','iconCls','parentIndex','getStartDateSchedule','isRecurrent','availability','29307xCmerQ','recurrentEndDate','isOverride','resetPriority','length','getDepth','71928MAKJiJ','fd_a','isStatic','match','Week','getTime','afterChange','sort','448PiYHgx','19635vbKnSw','map','split','text','fields'];_ena=function(){return x;};return _ena();}(function(a,b){function h(a,b){return _enb(b-0x398,a);}const c=a();while(!![]){try{const d=parseInt(h(0x586,0x5a1))/0x1+parseInt(h(0x578,0x57f))/0x2*(-parseInt(h(0x575,0x593))/0x3)+parseInt(h(0x5a9,0x594))/0x4*(parseInt(h(0x580,0x58d))/0x5)+-parseInt(h(0x5a4,0x596))/0x6*(parseInt(h(0x56e,0x58c))/0x7)+parseInt(h(0x5b7,0x5af))/0x8*(-parseInt(h(0x5c4,0x5a7))/0x9)+-parseInt(h(0x581,0x588))/0xa+-parseInt(h(0x5c5,0x5b0))/0xb*(-parseInt(h(0x574,0x585))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6e1df));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import _enc from'../vendor/later/later.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1df;let f=c[d];return f;};return _enb(a,b);}import{AbstractPartOfProjectModelMixin}from'../quark/model/mixin/AbstractPartOfProjectModelMixin.js';import{CalendarIntervalType}from'../scheduling/Types.js';function convertAvailabilityValue(a){function i(a,b){return _enb(a-0x2f2,b);}if(a){if(typeof a=='string'){a=a[i(0x50c,0x4f2)](',');a[i(0x50b,0x51e)](b=>{function j(a,b){return i(a-0xda,b);}const [c,d]=b[j(0x5e6,0x5cf)]('-');return{'startDate':c,'endDate':d};});}}else{a=null;}return a;}const JSON_START=/^[\s\n]*[[{]/;class CalendarIntervalMixin extends Mixin([AbstractPartOfProjectModelMixin],a=>{function k(a,b){return _enb(a- -0x2d1,b);}class b extends a{static get[k(-0xf2,-0x106)](){function l(a,b){return k(b-0x559,a);}return[l(0x468,0x46d),{'name':'startDate','type':l(0x470,0x474)},{'name':l(0x471,0x47f),'type':l(0x47e,0x474)},'recurrentStartDate',l(0x4a8,0x492),l(0x466,0x469),'color',l(0x481,0x48c),{'name':'isWorking','type':l(0x460,0x468),'defaultValue':![]},{'name':l(0x47a,0x48b),'type':l(0x466,0x481)},{'name':l(0x474,0x488)},{'name':'availability','convert':convertAvailabilityValue},{'name':l(0x47b,0x479)},l(0x483,0x48a)];}['getCalendar'](){return this['stores'][0x0]['calendar'];}get['compositeIntervalCode'](){function m(a,b){return k(a-0x556,b);}return this[m(0x476,0x45b)]||(this[m(0x46d,0x453)]?.[m(0x499,0x4af)]()||'')+'-'+(this['endDate']?.[m(0x499,0x480)]()||'')+'-'+(this[m(0x485,0x489)]||'');}[k(-0xc5,-0xb1)](){function n(a,b){return k(a-0x185,b);}this[n(0x98,0x7f)]=null;this[n(0x9f,0xbd)]()[n(0xc2,0xb4)]();}[k(-0xdb,-0xef)](){if(this[o(0x275,0x27a)]!=null)return this['prioritySortValue'];let c=0x2710;let d=this[o(0x27d,0x299)];if(d==null){switch(this['type']){case CalendarIntervalType[o(0x2b4,0x2a9)]:c+=this[o(0x27c,0x281)]()['getDepth']()*0x64;d=this['isOverride']()?0x1e:0x14;break;case CalendarIntervalType['Exception']:c+=this['getCalendar']()[o(0x2ad,0x2a4)]()*0x2710;d=0x28;break;default:c+=this[o(0x285,0x281)]()[o(0x2c0,0x2a4)]()*0x64;if(this[o(0x2b3,0x29d)]()){d=0x14;if(this[o(0x2b0,0x2a1)]()){d+=0xa;}}else{d=0x28;}}d+=this[o(0x28f,0x29b)];}function o(a,b){return k(b-0x367,a);}return this['prioritySortValue']=c+d;}[k(-0xca,-0xc2)](){function p(a,b){return k(a-0x270,b);}return Boolean(this[p(0x1a5,0x1b0)]()||this[p(0x19f,0x19e)]===CalendarIntervalType['Exception']&&this['getAvailabilityStartSchedule']());}[k(-0xc0,-0xd7)](){function q(a,b){return k(a-0x333,b);}return Boolean(this[q(0x24a,0x25f)]&&this[q(0x259,0x275)]&&!this[q(0x269,0x269)]());}['isOverride'](){return Boolean(this['startDate']||this['endDate']);}['parseDateSchedule'](c){let d;function r(a,b){return k(a- -0x89,b);}if(c&&c!==Object(c)){if(c[r(-0x148,-0x167)](JSON_START)){try{d=JSON[r(-0x159,-0x169)](c);}catch(f){}}if(!d){d=_enc['parse'][r(-0x13f,-0x15b)](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;}return d;}[k(-0xcb,-0xae)](){if(!this[s(-0x7d,-0x71)])return null;if(this['startDateSchedule'])return this[s(-0x79,-0x6b)];const c=this['parseDateSchedule'](this[s(-0x7d,-0x97)]);function s(a,b){return k(a-0x66,b);}if(c?.[s(-0x71,-0x6c)]?.[0x0]){const d=c[s(-0x71,-0x6c)][0x0];if(!this[s(-0x83,-0x89)]&&d[s(-0x5b,-0x5d)]){this['startDate']=new Date(d[s(-0x5b,-0x76)][0x0]);delete d['fd_a'];}if(!this[s(-0x74,-0x6f)]&&d[s(-0x78,-0x7d)]){this[s(-0x74,-0x85)]=new Date(d[s(-0x78,-0x7e)][0x0]);delete d['fd_b'];}}return this['startDateSchedule']=_enc[s(-0x6c,-0x58)](c);}['getEndDateSchedule'](){if(this[t(0x216,0x234)])return this[t(0x216,0x20d)];function t(a,b){return k(a-0x2fe,b);}if(!this[t(0x237,0x22e)]||this['recurrentEndDate']===t(0x22a,0x21a))return null;const c=this[t(0x217,0x228)](this[t(0x237,0x238)]);if(c?.[t(0x227,0x226)]?.[0x0]){const d=c[t(0x227,0x241)][0x0];if(this[t(0x215,0x227)]?.['getTime']()&&d['fd_a']?.[0x0]&&this[t(0x215,0x208)]?.['getTime']()===d[t(0x23d,0x23e)]?.[0x0]){delete d[t(0x23d,0x247)];}if(this[t(0x224,0x23a)]?.[t(0x241,0x224)]()&&d['fd_b']?.[0x0]&&this[t(0x224,0x242)]?.[t(0x241,0x24d)]()===d[t(0x220,0x216)]?.[0x0]){delete d['fd_b'];}}return this[t(0x216,0x218)]=_enc[t(0x22c,0x234)](c);}['getAvailabilityStartSchedule'](){function u(a,b){return k(a-0x4d4,b);}if(this[u(0x40b,0x3ef)]?.[u(0x410,0x424)]){if(this['availabilityStartSchedule'])return this[u(0x3fb,0x3ec)];const c='at\x20'+this[u(0x40b,0x3fa)]['map'](e=>e[u(0x3eb,0x3ea)])[u(0x419,0x422)]()[u(0x3e6,0x402)](',');const d=this[u(0x3ed,0x3f0)](c);return this[u(0x3fb,0x3dd)]=_enc['schedule'](d);}}[k(-0xe2,-0xec)](){function v(a,b){return k(a- -0xad,b);}if(this[v(-0x176,-0x181)]?.[v(-0x171,-0x167)]){if(this[v(-0x19c,-0x188)])return this[v(-0x19c,-0x1a3)];const c=v(-0x198,-0x182)+this['availability'][v(-0x165,-0x17d)](e=>e[v(-0x187,-0x18d)])[v(-0x168,-0x159)]()[v(-0x19b,-0x1b3)](',');const d=this[v(-0x194,-0x1a6)](c);return this['availabilityEndSchedule']=_enc[v(-0x17f,-0x164)](d);}}[k(-0xbc,-0xb1)](c,d,e,f,g){super['afterChange'](c,d,e,f,g);if(d?.[w(0x29d,0x2b8)]){this[w(0x2a1,0x28e)]=void 0x0;}if(d?.[w(0x2b9,0x2d7)]){this[w(0x298,0x285)]=void 0x0;}function w(a,b){return k(a-0x380,b);}if(d?.[w(0x2b7,0x2b3)]){this[w(0x2a7,0x2b2)]=void 0x0;this[w(0x291,0x299)]=void 0x0;}}}return b;}){}export{CalendarIntervalMixin};
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 l(a,b){return _enb(a- -0x22e,b);}const c=a();while(!![]){try{const d=-parseInt(l(-0x11a,-0xff))/0x1+-parseInt(l(-0xde,-0xd8))/0x2*(-parseInt(l(-0xdc,-0xc6))/0x3)+-parseInt(l(-0x117,-0xf9))/0x4+-parseInt(l(-0x114,-0x125))/0x5*(-parseInt(l(-0xfc,-0xd8))/0x6)+-parseInt(l(-0xd8,-0xfe))/0x7+parseInt(l(-0xe5,-0xdc))/0x8+parseInt(l(-0xe3,-0xc0))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x9d063));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x24e,0x23f)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect['decorate']===m(0x21f,0x236))h=Reflect[m(0x23f,0x246)](a,b,e,f);else for(var k=a[m(0x265,0x244)]-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(b-0x10c,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{isInstanceOf,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity,generic_field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier,MinimalFieldIdentifierGen,MinimalFieldIdentifierSync,MinimalFieldVariable}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{ReferenceField,ReferenceIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Reference.js';import{ReferenceBucketField,ReferenceBucketIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/ReferenceBucket.js';function _eno(a,b){return _enb(a-0x75,b);}import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Field}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Field.js';import{isGeneratorFunction,prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x10f;let f=c[d];return f;};return _enb(a,b);}import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{QuarkSync}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ena(){const F=['isCommitting','637988LdpNDH','getIdentifierClass','converter','3001040hUUJIG','constructor','quarkClass','4937245uayQDM','defaultParseFormat','readCurrentOrProposedOrPrevious','push','isConstructing','isDelayingCalculation','self','format','updateParentEvent','mix','CurrentOrProposedOrPrevious','setValue','IsChronoModelSymbol','modelFieldConfig','graph','DATA','function','sync','defineProperty','fields','failedResolutionReferences','parentEvent','field','hasBucket','6jHOqLQ','getOwnPropertyDescriptor','isCycleEffect','MAX_SAFE_INTEGER','getActiveEntry','call','length','name','decorate','context','data','isBase','project','$entity','dateFormat','identifierCls','getFromGraph','equality','inSetting','lazy','identifier','buildProposedValue','resolve','3949264SnTiWe','addToBucket','8701389apVvgW','level','set','activeTransaction','prototype','997018LapYto','serialize','3STdKte','parse','candidate','get','6405126UFnQQI','fieldsInjected','hasOwnProperty','proposedValue','getBucket','convert','getTime','writeToGraph','write','delete','ignore'];_ena=function(){return F;};return _ena();}const isSerializableEqual=function(a,b){function n(a,b){return _enb(a- -0x28c,b);}return a===b||(b?.[n(-0x14f,-0x159)]?this[n(-0x13b,-0x129)](b):b)===(a?.[n(-0x14f,-0x154)]?this[n(-0x13b,-0x115)](a):a);};class ModelField extends Field{constructor(){super(...arguments);this['modelFieldConfig']={};}[_eno(0x18a,0x1a8)](a){function p(a,b){return _eno(b-0x23c,a);}if(this[p(0x401,0x3f2)])return this[p(0x40b,0x3f2)];if(!a)return MinimalChronoModelFieldVariable;return isGeneratorFunction(a)?MinimalChronoModelFieldIdentifierGen:MinimalChronoModelFieldIdentifierSync;}}class ModelReferenceField extends ReferenceField[_eno(0x198,0x177)](ModelField){constructor(){super(...arguments);this['identifierCls']=ChronoModelReferenceFieldIdentifier;}}class ModelBucketField extends ReferenceBucketField['mix'](Field){constructor(){super(...arguments);function q(a,b){return _eno(a-0x98,b);}this[q(0x24e,0x26a)]=ChronoModelReferenceBucketFieldIdentifier;}}const IsChronoModelSymbol=Symbol(_eno(0x19b,0x1a6));class ChronoModelFieldIdentifier extends Mixin([FieldIdentifier],a=>{const b=a[r(0x524,0x532)];class c extends a{[IsChronoModelSymbol](){}[r(0x517,0x51c)](d){function s(a,b){return r(b- -0x63,a);}if(d){if(d['readMode']===ReadMode[s(0x48e,0x496)]){const f=d[s(0x4a4,0x485)]&&this[s(0x4e1,0x4be)]>(d['activeTransaction'][s(0x489,0x4a8)]()?.[s(0x4db,0x4be)]??Number[s(0x4cb,0x4a7)]);if(this[s(0x4b5,0x49d)]&&!this['context'][s(0x49f,0x4b0)][s(0x488,0x491)]&&!f)return d[s(0x4e6,0x4c7)](this);if(this[s(0x4b5,0x4b7)]){try{return d[s(0x4e1,0x4c0)][s(0x47b,0x48e)](this);}catch(g){if(g[s(0x481,0x4a6)]){return void 0x0;}else{throw g;}}}return d[s(0x4bc,0x4c0)][s(0x46e,0x48e)](this);}return b[s(0x4b9,0x4b4)]['call'](this,d);}else return this['DATA'];}[r(0x4e4,0x4fd)](d,e,...f){function t(a,b){return r(a- -0x22,b);}if(d){b[t(0x4c2,0x4dc)][t(0x4ea,0x4fe)](this,d,e,...f);}else{this[t(0x4dc,0x4f9)]=e;if(!this[t(0x4d3,0x4e5)][t(0x4f7,0x4da)]&&!this[t(0x4d3,0x4c5)][t(0x4d1,0x4e2)]&&!this[t(0x4e3,0x4e2)][t(0x4c5,0x4c1)]){this['self'][t(0x500,0x4f9)](this[t(0x4e3,0x4e4)]['name'],e,![],![],!![]);}}}[r(0x4e5,0x4e5)](d,e,f,g,...h){function u(a,b){return r(a- -0x6f0,b);}g=d[u(-0x1c0,-0x1a6)](g);b[u(-0x20b,-0x1fd)][u(-0x1e4,-0x1c9)](this,d,e,f,g,...h);}[r(0x530,0x50f)](d){const e=this['field'];const f=this[v(0xd1,0xd0)]['getFieldDefinition'](e[v(0xc4,0xe9)]);if(f?.['convert']){d=f[v(0x104,0x10b)](d,this['context'][v(0x111,0xec)],this[v(0xcc,0xeb)]);}else if(e[v(0xdf,0xc6)]){d=e['converter'](d,e);}function v(a,b){return r(b- -0x425,a);}return d;}[r(0x518,0x527)](d,e){if(d instanceof Date&&e instanceof Date)return d['getTime']()===e[w(-0x26a,-0x25c)]();function w(a,b){return r(b- -0x78d,a);}return d===e;}}function r(a,b){return _eno(a-0x360,b);}__decorate([prototypeValue(![])],c['prototype'],r(0x500,0x500),void 0x0);return c;}){}class ChronoModelReferenceFieldQuark extends Mixin([QuarkSync],a=>{function x(a,b){return _eno(a-0xac,b);}const b=a['prototype'];class c extends a{[x(0x246,0x25b)](d){b[y(0x178,0x18d)][y(0x18a,0x181)](this,d);function y(a,b){return x(a- -0xce,b);}if(d!==TombStone)this[y(0x199,0x180)][y(0x17c,0x174)]=d;}}return c;}){}class ChronoModelReferenceFieldIdentifier extends ReferenceIdentifier[_eno(0x198,0x188)](ChronoModelFieldIdentifier[_eno(0x198,0x1af)](MinimalFieldIdentifierSync)){[_eno(0x1bc,0x1d3)](a,b,c){const d=b;const e=d[z(0x10e,0x12b)];function z(a,b){return _eno(b- -0xa3,a);}if(e===null||e===void 0x0){c[z(0x103,0x126)][z(0x11a,0x100)][z(0xed,0xe3)](d[z(0x13a,0x118)]);return null;}if(isInstanceOf(e,Entity)&&e['graph']){if(a[z(0x106,0x103)]())a[z(0x126,0x12c)](e)[z(0x113,0x11c)](c,a[z(0xfb,0xf2)]);c[z(0x115,0x126)]['failedResolutionReferences'][z(0xd9,0xe3)](d[z(0xf5,0x118)]);if(a[z(0x11a,0x102)][z(0x108,0x10b)]===z(0x120,0x101)){a['self'][z(0xf6,0xf4)](e,a[z(0x113,0xfb)]);}return e;}const f=a[z(0xf7,0x11a)](e);if(isInstanceOf(f,Entity)&&f[z(0xf3,0xfa)]){if(a['hasBucket']())a['getBucket'](f)['addToBucket'](c,a['self']);c['candidate']['failedResolutionReferences'][z(0x106,0xe3)](d[z(0xf4,0x118)]);return f;}else{c['candidate'][z(0xed,0x100)][z(0x141,0x11f)](d[z(0xf3,0x118)],e);return null;}}}__decorate([prototypeValue(!![])],ChronoModelReferenceFieldIdentifier[_eno(0x1c4,0x1cf)],_eno(0x1a0,0x183),void 0x0);__decorate([prototypeValue(ChronoModelReferenceFieldQuark)],ChronoModelReferenceFieldIdentifier[_eno(0x1c4,0x1b6)],_eno(0x18e,0x186),void 0x0);class ChronoModelReferenceBucketFieldIdentifier extends ReferenceBucketIdentifier[_eno(0x198,0x17a)](ChronoModelFieldIdentifier[_eno(0x198,0x1ad)](MinimalFieldIdentifierSync)){}__decorate([prototypeValue(!![])],ChronoModelReferenceBucketFieldIdentifier['prototype'],'sync',void 0x0);class MinimalChronoModelFieldIdentifierSync extends ChronoModelFieldIdentifier[_eno(0x198,0x186)](MinimalFieldIdentifierSync){}class MinimalChronoModelFieldIdentifierGen extends ChronoModelFieldIdentifier[_eno(0x198,0x17a)](MinimalFieldIdentifierGen){}class MinimalChronoModelFieldVariable extends ChronoModelFieldIdentifier[_eno(0x198,0x1b4)](MinimalFieldVariable){}const model_field=function(a={},b={},c=ModelField){return function(d,e){const f=generic_field({'modelFieldConfig':a,...b},c);function A(a,b){return _enb(a- -0x1cf,b);}f(d,e);injectStaticFieldsProperty(d[A(-0xb7,-0xba)]);};};const injectStaticFieldsProperty=a=>{function B(a,b){return _eno(b- -0x2b5,a);}if(!a[B(-0x106,-0xe8)](B(-0xcf,-0xe9))){let b=[];if(a[B(-0xe9,-0xe8)](B(-0x106,-0x113))){b=a[B(-0x119,-0x113)];}Object[B(-0x136,-0x114)](a,B(-0x119,-0x113),{'get':function(){return b['concat'](getDecoratedModelFields(this));}});a[B(-0xe0,-0xe9)]=!![];}};const getDecoratedModelFields=a=>{function C(a,b){return _eno(a-0x367,b);}const b=a[C(0x52b,0x51e)];const c=[];if(b[C(0x534,0x522)]('$entity')){b[C(0x51b,0x51a)]['ownFields']['forEach'](d=>{function D(a,b){return C(a- -0x114,b);}if(d instanceof ModelField){const e=d[D(0x3ef,0x403)]||{};if(!e[D(0x423,0x417)]&&d[D(0x3de,0x3fc)]&&d[D(0x3de,0x401)]!==dateConverter){e[D(0x423,0x427)]=d[D(0x3de,0x3d6)];}c[D(0x3e5,0x40a)](Object['assign'](e,{'$chrono':d,'name':d[D(0x401,0x424)]}));}});}return c;};const dateConverter=(a,b)=>{if(a===null){return null;}function E(a,b){return _eno(b-0x111,a);}if(!(a instanceof Date)){a=_enc[E(0x2e3,0x2d9)](a,b[E(0x28f,0x2ad)]?.[E(0x2a8,0x2a7)]||b[E(0x2ce,0x2ad)]?.[E(0x2d0,0x2c6)]||_enc[E(0x27a,0x2a1)]);}return a||void 0x0;};export{ChronoModelFieldIdentifier,ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ChronoModelReferenceFieldQuark,IsChronoModelSymbol,MinimalChronoModelFieldIdentifierGen,MinimalChronoModelFieldIdentifierSync,MinimalChronoModelFieldVariable,ModelBucketField,ModelField,ModelReferenceField,dateConverter,getDecoratedModelFields,injectStaticFieldsProperty,isSerializableEqual,model_field};
1
+ (function(a,b){const c=a();function l(a,b){return _enb(b-0x2db,a);}while(!![]){try{const d=parseInt(l(0x489,0x49d))/0x1*(parseInt(l(0x4d2,0x4d9))/0x2)+parseInt(l(0x4ea,0x4ce))/0x3+parseInt(l(0x4eb,0x4c9))/0x4+parseInt(l(0x4a3,0x4b8))/0x5+-parseInt(l(0x4b3,0x497))/0x6+parseInt(l(0x4d7,0x4c6))/0x7*(parseInt(l(0x49b,0x4b3))/0x8)+-parseInt(l(0x49b,0x4a1))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x86be0));var __decorate=function(a,b,e,f){var g=arguments[m(-0x106,-0xe7)],h=g<0x3?b:f===null?f=Object[m(-0xf6,-0xe5)](b,e):f,j;function m(a,b){return _enb(a- -0x2ea,b);}if(typeof Reflect===m(-0xf4,-0xff)&&typeof Reflect[m(-0xf5,-0xee)]===m(-0xf9,-0x103))h=Reflect['decorate'](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[m(-0x123,-0x10a)](b,e,h),h;};import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{isInstanceOf,Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Entity,generic_field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier,MinimalFieldIdentifierGen,MinimalFieldIdentifierSync,MinimalFieldVariable}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{ReferenceField,ReferenceIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Reference.js';function _ena(){const F=['fields','converter','graph','level','parentEvent','buildProposedValue','58QFgGnO','serialize','writeToGraph','IsChronoModelSymbol','mix','set','push','1359216NIISTb','getIdentifierClass','$entity','name','activeTransaction','hasOwnProperty','24709BObVVJ','project','failedResolutionReferences','hasBucket','20487078rXoKsP','defineProperty','getActiveEntry','DATA','ignore','assign','concat','context','get','equality','updateParentEvent','candidate','inSetting','write','dateFormat','defaultParseFormat','prototype','forEach','16NqTiky','convert','proposedValue','identifier','self','3100290gusJNz','identifierCls','setValue','getFieldDefinition','getTime','addToBucket','modelFieldConfig','length','readCurrentOrProposedOrPrevious','quarkClass','resolve','isCommitting','isDelayingCalculation','call','753767BVpDOa','sync','parse','3763200XNXCVK','field','isBase','function','getFromGraph','1686003lchdNq','getOwnPropertyDescriptor','decorate','object','delete'];_ena=function(){return F;};return _ena();}import{ReferenceBucketField,ReferenceBucketIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/ReferenceBucket.js';import{ReadMode}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Replica.js';import{Field}from'@bryntum/engine-thin/lib/ChronoGraph/schema/Field.js';import{isGeneratorFunction,prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';function _enp(a,b){return _enb(b- -0xa,a);}import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import{QuarkSync}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';const isSerializableEqual=function(a,b){function n(a,b){return _enb(a- -0x2ff,b);}return a===b||(b?.[n(-0x10f,-0x132)]?this[n(-0x100,-0x10d)](b):b)===(a?.[n(-0x10f,-0xf1)]?this[n(-0x100,-0x124)](a):a);};class ModelField extends Field{constructor(){function o(a,b){return _enb(b- -0x320,a);}super(...arguments);this[o(-0x11a,-0x13d)]={};}[_enp(0x1b4,0x1b3)](a){function q(a,b){return _enp(b,a- -0x15);}if(this[q(0x1bf,0x1e1)])return this[q(0x1bf,0x1c5)];if(!a)return MinimalChronoModelFieldVariable;return isGeneratorFunction(a)?MinimalChronoModelFieldIdentifierGen:MinimalChronoModelFieldIdentifierSync;}}class ModelReferenceField extends ReferenceField[_enp(0x212,0x1f8)](ModelField){constructor(){super(...arguments);this['identifierCls']=ChronoModelReferenceFieldIdentifier;}}class ModelBucketField extends ReferenceBucketField['mix'](Field){constructor(){super(...arguments);function r(a,b){return _enp(b,a- -0x24d);}this[r(-0x79,-0x86)]=ChronoModelReferenceBucketFieldIdentifier;}}const IsChronoModelSymbol=Symbol(_enp(0x1f7,0x1f7));class ChronoModelFieldIdentifier extends Mixin([FieldIdentifier],a=>{const b=a[s(0x3ae,0x3bd)];class c extends a{[IsChronoModelSymbol](){}[s(0x3f7,0x3d9)](d){function t(a,b){return s(b,a- -0x576);}if(d){if(d['readMode']===ReadMode['CurrentOrProposedOrPrevious']){const e=d[t(-0x1a7,-0x1af)]&&this[t(-0x194,-0x1b7)]>(d[t(-0x1cf,-0x1ad)][t(-0x1c7,-0x1d9)]()?.[t(-0x194,-0x1b6)]??Number['MAX_SAFE_INTEGER']);if(this['sync']&&!this[t(-0x1c2,-0x1a3)][t(-0x1cc,-0x1bc)][t(-0x1a6,-0x1b7)]&&!e)return d[t(-0x1c1,-0x1a9)](this);return d[t(-0x1cf,-0x1b1)][t(-0x1aa,-0x1cd)](this);}return b[t(-0x19d,-0x17a)]['call'](this,d);}else return this[t(-0x1c6,-0x1b0)];}[s(0x3de,0x3e7)](d,e,...f){function u(a,b){return s(a,b-0x1e8);}if(d){b['writeToGraph'][u(0x5bc,0x5b9)](this,d,e,...f);}else{this[u(0x5b3,0x598)]=e;if(!this[u(0x5d0,0x5ab)][u(0x58b,0x5a1)]&&!this['self']['isConstructing']&&!this['field'][u(0x5a0,0x599)]){this[u(0x5b1,0x5ab)][u(0x5bb,0x5d2)](this[u(0x5db,0x5be)][u(0x5ac,0x58e)],e,![],![],!![]);}}}['write'](d,e,f,g,...h){function v(a,b){return s(b,a- -0x9d);}g=d[v(0x323,0x32d)](g);b[v(0x31d,0x33f)][v(0x334,0x33e)](this,d,e,f,g,...h);}[s(0x3c3,0x3c0)](d){function w(a,b){return s(a,b- -0x251);}const e=this[w(0x171,0x185)];const f=this[w(0x17e,0x172)][w(0x191,0x176)](e[w(0x15e,0x155)]);if(f?.[w(0x16d,0x16f)]){d=f[w(0x193,0x16f)](d,this[w(0x165,0x163)]['data'],this[w(0x16b,0x163)]);}else if(e[w(0x191,0x18f)]){d=e['converter'](d,e);}return d;}[s(0x3a2,0x3b6)](d,e){function x(a,b){return s(b,a- -0x177);}if(d instanceof Date&&e instanceof Date)return d['getTime']()===e[x(0x251,0x242)]();return d===e;}}function s(a,b){return _enp(a,b-0x1f1);}__decorate([prototypeValue(![])],c[s(0x3ac,0x3bd)],s(0x3e7,0x3d3),void 0x0);return c;}){}class ChronoModelReferenceFieldQuark extends Mixin([QuarkSync],a=>{const b=a['prototype'];class c extends a{['setValue'](d){function y(a,b){return _enb(a-0x1c2,b);}b[y(0x3a1,0x38b)][y(0x3ac,0x3a0)](this,d);if(d!==TombStone)this['identifier'][y(0x38b,0x39a)]=d;}}return c;}){}class ChronoModelReferenceFieldIdentifier extends ReferenceIdentifier['mix'](ChronoModelFieldIdentifier['mix'](MinimalFieldIdentifierSync)){[_enp(0x20b,0x1f3)](a,b,c){function z(a,b){return _enp(b,a-0x155);}const d=b;const e=d[z(0x325,0x345)];if(e===null||e===void 0x0){c[z(0x31c,0x30d)][z(0x30f,0x31a)][z(0x342,0x328)](d['identifier']);return null;}if(isInstanceOf(e,Entity)&&e[z(0x345,0x327)]){if(a['hasBucket']())a['getBucket'](e)[z(0x32d,0x347)](c,a[z(0x327,0x317)]);c[z(0x31c,0x315)]['failedResolutionReferences'][z(0x342,0x345)](d[z(0x326,0x307)]);if(a[z(0x33a,0x34c)][z(0x30a,0x32b)]===z(0x347,0x32e)){a[z(0x327,0x339)][z(0x31b,0x31d)](e,a[z(0x314,0x328)]);}return e;}const f=a[z(0x332,0x319)](e);if(isInstanceOf(f,Entity)&&f[z(0x345,0x363)]){if(a[z(0x310,0x304)]())a['getBucket'](f)[z(0x32d,0x31a)](c,a['self']);c['candidate'][z(0x30f,0x311)][z(0x342,0x323)](d['identifier']);return f;}else{c['candidate'][z(0x30f,0x2fb)][z(0x34e,0x35c)](d[z(0x326,0x303)],e);return null;}}}__decorate([prototypeValue(!![])],ChronoModelReferenceFieldIdentifier['prototype'],_enp(0x1f0,0x1e2),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1bc;let f=c[d];return f;};return _enb(a,b);}__decorate([prototypeValue(ChronoModelReferenceFieldQuark)],ChronoModelReferenceFieldIdentifier['prototype'],_enp(0x1c5,0x1dc),void 0x0);class ChronoModelReferenceBucketFieldIdentifier extends ReferenceBucketIdentifier[_enp(0x20a,0x1f8)](ChronoModelFieldIdentifier['mix'](MinimalFieldIdentifierSync)){}__decorate([prototypeValue(!![])],ChronoModelReferenceBucketFieldIdentifier['prototype'],_enp(0x1be,0x1e2),void 0x0);class MinimalChronoModelFieldIdentifierSync extends ChronoModelFieldIdentifier[_enp(0x1ee,0x1f8)](MinimalFieldIdentifierSync){}class MinimalChronoModelFieldIdentifierGen extends ChronoModelFieldIdentifier[_enp(0x21a,0x1f8)](MinimalFieldIdentifierGen){}class MinimalChronoModelFieldVariable extends ChronoModelFieldIdentifier[_enp(0x20b,0x1f8)](MinimalFieldVariable){}const model_field=function(a={},b={},c=ModelField){return function(d,e){const f=generic_field({'modelFieldConfig':a,...b},c);f(d,e);injectStaticFieldsProperty(d['constructor']);};};const injectStaticFieldsProperty=a=>{function A(a,b){return _enp(a,b-0x156);}if(!a[A(0x2ea,0x30d)]('fieldsInjected')){let b=[];if(a[A(0x2ee,0x30d)](A(0x356,0x344))){b=a[A(0x329,0x344)];}Object['defineProperty'](a,A(0x358,0x344),{'get':function(){function B(a,b){return A(a,b-0x219);}return b[B(0x547,0x531)](getDecoratedModelFields(this));}});a['fieldsInjected']=!![];}};const getDecoratedModelFields=a=>{function C(a,b){return _enp(b,a-0x1bf);}const b=a[C(0x38b,0x39a)];const c=[];if(b[C(0x376,0x36f)](C(0x373,0x370))){b[C(0x373,0x371)]['ownFields'][C(0x38c,0x3a6)](d=>{function D(a,b){return C(a-0x87,b);}if(d instanceof ModelField){const e=d['modelFieldConfig']||{};if(!e['convert']&&d[D(0x435,0x457)]&&d[D(0x435,0x43c)]!==dateConverter){e[D(0x415,0x3fe)]=d[D(0x435,0x435)];}c[D(0x440,0x444)](Object[D(0x407,0x40d)](e,{'$chrono':d,'name':d[D(0x3fb,0x3d7)]}));}});}return c;};const dateConverter=(a,b)=>{if(a===null){return null;}if(!(a instanceof Date)){a=_enc[E(0x20,0x14)](a,b[E(0x7,0xa)]?.['format']||b['modelFieldConfig']?.[E(-0xb,-0x5)]||_enc[E(-0x6,-0x4)]);}function E(a,b){return _enp(a,b- -0x1cf);}return a||void 0x0;};export{ChronoModelFieldIdentifier,ChronoModelReferenceBucketFieldIdentifier,ChronoModelReferenceFieldIdentifier,ChronoModelReferenceFieldQuark,IsChronoModelSymbol,MinimalChronoModelFieldIdentifierGen,MinimalChronoModelFieldIdentifierSync,MinimalChronoModelFieldVariable,ModelBucketField,ModelField,ModelReferenceField,dateConverter,getDecoratedModelFields,injectStaticFieldsProperty,isSerializableEqual,model_field};