@bryntum/engine-thin-trial 7.2.3 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/lib/ChronoGraph/chrono/Effect.js +1 -1
  2. package/lib/ChronoGraph/chrono/Graph.js +1 -1
  3. package/lib/ChronoGraph/chrono/Identifier.js +1 -1
  4. package/lib/ChronoGraph/chrono/Quark.js +1 -1
  5. package/lib/calendar/CalendarCacheSingle.js +1 -1
  6. package/lib/chrono/ChronoModelMixin.js +1 -1
  7. package/lib/chrono/Replica.js +1 -1
  8. package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -1
  9. package/lib/quark/model/gantt/ConstrainedLateScheduleMixin.js +1 -1
  10. package/lib/quark/model/mixin/AbstractPartOfProjectModelMixin.js +1 -1
  11. package/lib/quark/model/mixin/ChronoPartOfProjectModelMixin.js +1 -1
  12. package/lib/quark/model/scheduler_basic/BaseCalendarMixin.js +1 -1
  13. package/lib/quark/model/scheduler_basic/HasCalendarMixin.js +1 -1
  14. package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -1
  15. package/lib/quark/model/scheduler_core/SchedulerCoreProjectMixin.js +1 -1
  16. package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
  17. package/lib/quark/model/scheduler_pro/ConstrainedScheduleMixin.js +1 -1
  18. package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
  19. package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
  20. package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
  21. package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -1
  22. package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
  23. package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
  24. package/lib/quark/store/mixin/AbstractPartOfProjectStoreMixin.js +1 -1
  25. package/lib/quark/store/mixin/ChronoPartOfProjectStoreMixin.js +1 -1
  26. package/lib/quark/store/mixin/CorePartOfProjectStoreMixin.js +1 -1
  27. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(a,b){function q(a,b){return _enb(b-0x33,a);}const c=a();while(!![]){try{const d=parseInt(q(0x23a,0x23d))/0x1+-parseInt(q(0x235,0x234))/0x2*(-parseInt(q(0x1ed,0x20e))/0x3)+-parseInt(q(0x278,0x253))/0x4*(-parseInt(q(0x251,0x256))/0x5)+parseInt(q(0x1fa,0x21c))/0x6+-parseInt(q(0x212,0x200))/0x7+parseInt(q(0x223,0x24c))/0x8*(parseInt(q(0x253,0x22e))/0x9)+-parseInt(q(0x228,0x23a))/0xa*(parseInt(q(0x22b,0x23c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3fd8e));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect===r(0x3f,0x17)&&typeof Reflect[r(-0x1c,0x4)]===r(-0x9,-0x1f))h=Reflect[r(-0x1,0x4)](a,b,e,f);else for(var k=a[r(0x4f,0x25)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function r(a,b){return _enb(b- -0x1fc,a);}return g>0x3&&h&&Object[r(-0x24,-0x18)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _ens(a,b){return _enb(b-0x3b7,a);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';function _ena(){const T=['35giqZhJ','StartOffsetVar','calculateStartDate','isEventSegment','equality','1484924JstxcQ','map','shouldRecordFieldChange','Millisecond','prepareDispatcher','calculateDurationByOffsets','calculateManuallyScheduled','calculateProjectedXDateWithDuration','calculateEndOffsetByMasterDurationAndStartOffset','afterChange','MasterDurationVar','calculateMaxPercent','buildProposedDispatcher','prototype','74388XImHKG','calculateEndOffsetByStartOffsetAndDuration','function','collectInfo','toJSON','percentDone','duration','calculateEndOffsetByMasterTotalDurationAndStartOffset','startDate','defineProperty','getProject','addProposedValueFlag','new','durationUnit','124704Szhcva','constructor','skipNonWorkingTimeWhenSchedulingManually','manuallyScheduled','convertDurationGen','calculateStartDateByMasterStartAndStartOffset','assign','calculatePercentDone','previousSegment','EndOffsetVar','calculateProjectedDuration','endOffset','write','MasterTotalDurationVar','dispatcher','addPreviousValueFlag','resolution','calculateEndDate','846657qqgFDg','baseRevision','startOffset','segments','calculateDuration','decorate','22KmzwFv','nextSegment','MasterEndDateVar','endDate','isManuallyScheduled','startPercentDone','2011190Mqabxf','storeFieldChange','22TqyldN','233258gCWlam','push','getStm','meta','call','formulaId','event','calculateEndOffset','durationInMS','object','min','cycleResolutionContext','applyingSyncResponse','stm','modified','8rbLkdt','isRestoring','calculateStartOffset','calculateEndDateByMasterStartAndEndOffset','calculateStartOffsetByEndOffsetAndDuration','get','writeStartDate','145724lzGFOz','length','calculateMinPercent'];_ena=function(){return T;};return _ena();}import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol('MasterStartDateVar');function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ca;let f=c[d];return f;};return _enb(a,b);}const MasterEndDateVar=Symbol(_ens(0x59e,0x5ba));const MasterDurationVar=Symbol(_ens(0x5a1,0x58e));const MasterTotalDurationVar=Symbol(_ens(0x5bc,0x5ad));const StartOffsetVar=Symbol(_ens(0x5e7,0x5db));const EndOffsetVar=Symbol(_ens(0x588,0x5a9));const durationByOffsetsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x573,0x59e)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x5ca,0x59e)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x5b5,0x59e)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const endOffsetByMasterStartAndEndDateFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x574,0x59e)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x570,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula[_ens(0x5c8,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x5b6,0x59e)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const durationByMasterEndDateFormula=Formula[_ens(0x59b,0x59e)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const segmentCycleDescription=CycleDescription[_ens(0x59c,0x59e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x58d,0x59e)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcherIdentifier extends FieldIdentifier['mix'](CalculatedValueGen){[_ens(0x5a2,0x583)](a,b){const c=a[t(0x224,0x226)];const d=b[t(0x224,0x22e)];function t(a,b){return _ens(b,a- -0x38c);}return c['get'](StartDateVar)===d[t(0x249,0x25b)](StartDateVar)&&c[t(0x249,0x227)](EndDateVar)===d[t(0x249,0x26a)](EndDateVar)&&c[t(0x249,0x256)](DurationVar)===d['get'](DurationVar)&&c[t(0x249,0x250)](MasterStartDateVar)===d[t(0x249,0x25e)](MasterStartDateVar)&&c[t(0x249,0x26d)](MasterEndDateVar)===d['get'](MasterEndDateVar)&&c[t(0x249,0x26f)](MasterDurationVar)===d[t(0x249,0x25c)](MasterDurationVar)&&c[t(0x249,0x26f)](MasterTotalDurationVar)===d['get'](MasterTotalDurationVar)&&c[t(0x249,0x232)](StartOffsetVar)===d[t(0x249,0x21b)](StartOffsetVar)&&c['get'](EndOffsetVar)===d[t(0x249,0x21e)](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[u(0x28f,0x27a)](){return!![];}get[u(0x2e1,0x2c6)](){function v(a,b){return u(a,b- -0x1af);}return this[v(0xef,0x110)]?.[v(0xec,0x117)];}set[u(0x29a,0x2c6)](c){}['writeStartDate'](c,d,e,f,g=!![]){const h=this[w(0x21,0x2a)];const i=this[w(-0xa,-0x24)]();function w(a,b){return u(b,a- -0x29e);}if(h&&!this['previousSegment']&&d[w(0xd,0x14)]['hasIdentifier'](c)&&!(i&&i[w(0x1d,0x45)]()[w(0x2b,0x9)])){d[w(0x6,0x12)](h['$'][w(-0xc,-0xe)],f,g);}else{c[w(-0x5,0xf)][w(-0x15,0x12)][w(0x6,0x30)][w(0x1f,0x37)](this,c,d,e,f,g);if(g&&this[w(0x13,0x11)]){const j=this[w(0x5,-0x19)]-this[w(0x13,-0x18)][w(0xe,0x26)];if(j>0x0){let k=this;while(k=k['nextSegment']){d['write'](k['$'][w(0xe,0xa)],k[w(0xe,-0x13)]+j);d[w(0x6,-0x13)](k['$']['endOffset'],k[w(0x5,-0x7)]+j);}}}}}[u(0x281,0x27e)](c,d,e){function x(a,b){return u(b,a- -0x33f);}return c===x(-0x93,-0x99)||c==='endOffset'||super['shouldRecordFieldChange'](c,d,e);}*[u(0x2f7,0x2ca)](){const c=yield this['$'][y(0x152,0x136)];const d=c[y(0x10a,0x138)][y(0x148,0x15d)](StartOffsetVar);if(!this['event']){return yield ProposedOrPrevious;}let e;function y(a,b){return u(a,b- -0x170);}if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[y(0x177,0x14e)]){e=yield*this[y(0x187,0x15c)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[y(0x16b,0x14e)]){const f=yield ProposedOrPreviousValueOf(this[y(0x128,0x14f)]['$'][y(0x129,0x122)]);const g=yield ProposedOrPreviousValueOf(this['$'][y(0x102,0x122)]);e=yield*this[y(0x179,0x14f)]['calculateProjectedDuration'](f,g,TimeUnit[y(0xfd,0x10f)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){function z(a,b){return u(a,b- -0xaf);}const c=yield this['$'][z(0x1d4,0x1f7)];const d=c[z(0x204,0x1f9)][z(0x204,0x21e)](EndOffsetVar);if(!this[z(0x200,0x210)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[z(0x1fa,0x20f)]){e=yield*this[z(0x1bc,0x1dc)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[z(0x236,0x20f)]){const f=yield ProposedOrPreviousValueOf(this[z(0x220,0x210)]['$'][z(0x1e1,0x1e3)]);const g=yield ProposedOrPreviousValueOf(this['$'][z(0x22b,0x204)]);e=yield*this[z(0x1fd,0x210)][z(0x1dd,0x1f3)](f,g,TimeUnit[z(0x1e0,0x1d0)],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[z(0x1f7,0x20f)]){e=yield*this[z(0x1ca,0x1d5)]();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[z(0x213,0x20f)]){e=yield*this[z(0x1c6,0x1e2)]();}return e;}*[u(0x25c,0x279)](){const c=yield this['$'][A(-0x15,-0x36)];const d=c['resolution'][A(-0xe,-0xf)](StartDateVar);if(!this['event']){return yield ProposedOrPrevious;}function A(a,b){return u(a,b- -0x2dc);}let e;if(d===startDateByMasterStartAndStartOffsetFormula[A(-0x33,-0x1e)]){e=yield*this[A(-0x4a,-0x3f)]();}else{e=yield*super['calculateStartDate']();}return e;}*[u(0x2c5,0x2a9)](){const c=yield this['$'][B(0x3a4,0x394)];const d=c[B(0x3a6,0x396)][B(0x3b2,0x3bb)](EndDateVar);if(!this[B(0x39f,0x3ad)]){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[B(0x3cf,0x3ac)]){e=yield*this[B(0x3e7,0x3b9)]();}else{e=yield*super[B(0x39c,0x397)]();}function B(a,b){return u(a,b-0xee);}return e;}*[u(0x29c,0x2ae)](){const c=yield this['$'][C(-0xa6,-0xb4)];const d=c['resolution'][C(-0x77,-0x8d)](DurationVar);if(!this[C(-0x95,-0x9b)]){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[C(-0x85,-0x9c)]){e=yield*this[C(-0xcb,-0xd9)]();}else if(d===durationByMasterEndDateFormula[C(-0xbd,-0x9c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[C(-0xb0,-0xac)]();}function C(a,b){return u(a,b- -0x35a);}return e;}[u(0x277,0x288)](c,d,e){const f=super[D(0x4d8,0x4e4)](c,d,e);f[D(0x4f7,0x4cd)](MasterStartDateVar);function D(a,b){return u(b,a-0x250);}f['addPreviousValueFlag'](StartOffsetVar);f[D(0x4f7,0x4ca)](EndOffsetVar);return f;}*[u(0x270,0x280)](c){const d=yield*super['prepareDispatcher'](c);if(!this[E(0x4d4,0x4b7)]){return d;}function E(a,b){return u(b,a-0x215);}const e=this['event']['$'];if(c(PreviousValueOf(e[E(0x4a7,0x47e)]))!=null)d[E(0x4bc,0x4e4)](MasterStartDateVar);if(c(HasProposedValue(e[E(0x4a7,0x47b)])))d[E(0x4aa,0x4c7)](MasterStartDateVar);if(!c(HasProposedValue(e[E(0x4c2,0x498)]))){d[E(0x4a2,0x47d)](c,e[E(0x4a5,0x4a5)],MasterDurationVar);if(c(HasProposedValue(e['endDate']))){const g=c(ProposedArgumentsOf(e[E(0x4c8,0x4c8)]));if(!g?.[0x0]){d[E(0x4aa,0x485)](MasterEndDateVar);}}const f=c(e[E(0x4bb,0x499)]);if(f['resolution'][E(0x4e2,0x4fa)](StartDateVar)===CalculateProposed&&f[E(0x4bd,0x4bf)][E(0x4e2,0x4bd)](EndDateVar)===CalculateProposed){d['addProposedValueFlag'](MasterTotalDurationVar);}}d['collectInfo'](c,this['$'][E(0x4c1,0x4d1)],StartOffsetVar);d['collectInfo'](c,this['$'][E(0x4b8,0x4c4)],EndOffsetVar);return d;}[u(0x2a3,0x2c4)](c){return segmentCycleResolution;}*[u(0x291,0x284)](){const c=yield ProposedOrPreviousValueOf(this[F(-0x17,-0x16)]['$']['duration']);const d=yield this[F(-0x17,-0x22)]['$'][F(-0x3f,-0x35)];function F(a,b){return u(b,a- -0x2d6);}const e=yield this['$']['startOffset'];const f=this[F(-0x25,-0x11)];let g;let h=yield*this[F(-0x3a,-0x10)](c,d,TimeUnit['Millisecond']);const j=[];let k=this;while(k=k[F(-0x36,-0x22)]){j[F(-0x1c,-0x34)](k);}for(let l=j[F(-0x6,-0x26)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$'][F(-0x2a,-0x7)]);const o=yield ProposedOrPreviousValueOf(m['$'][F(-0x33,-0x2b)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[F(-0x13,-0x29)](h,(yield ProposedOrPreviousValueOf(this['$'][F(-0x33,-0x2a)]))-e);}}else{g=e;}return g;}*[u(0x277,0x291)](){const c=yield ProposedOrPreviousValueOf(this['event']['$'][G(0xc0,0xa8)]);const d=yield ProposedOrPreviousValueOf(this[G(0xc6,0xd5)]['$'][G(0xf6,0xc9)]);const e=yield*this['event'][G(0xd6,0xb8)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function G(a,b){return u(a,b- -0x1ea);}const f=yield ProposedOrPreviousValueOf(this['$'][G(0xb1,0xc2)]);let g=yield ProposedOrPreviousValueOf(this['$'][G(0xd8,0xb9)]);let h=this[G(0xa7,0xc7)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][G(0xc3,0xc2)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][G(0xdf,0xc2)];}*['calculateStartOffsetByEndOffsetAndDuration'](){const c=yield this['$']['durationInMS'];function H(a,b){return u(b,a- -0x2c2);}const d=yield this['$'][H(-0x1f,-0x7)];return d-c;}*[u(0x292,0x28b)](){function I(a,b){return u(b,a-0x219);}const c=yield this['$'][I(0x4da,0x4e1)];const d=yield this['$'][I(0x4c5,0x4d6)];return d+c;}*['calculateEndDateByMasterStartAndEndOffset'](){function J(a,b){return u(a,b- -0x288);}const c=yield this[J(0xc,0x37)]['$'][J(0x11,0xa)];const d=yield this['$'][J(0x16,0x1b)];const e=yield*this[J(0x23,0x37)][J(0x4,-0x5)](c,!![],d,TimeUnit[J(-0x25,-0x9)],{'ignoreSegments':!![]});const f=yield*this['isManuallyScheduled']();return f&&!this['getProject']()['skipNonWorkingTimeWhenSchedulingManually']?e:yield*this[J(0x20,0x37)]['skipNonWorkingTime'](e,![]);}*['calculateStartDateByMasterStartAndStartOffset'](){function K(a,b){return u(a,b-0xf0);}const c=yield this['event']['$'][K(0x39d,0x382)];const d=yield this['$']['startOffset'];const e=yield*this['event'][K(0x388,0x373)](c,!![],d,TimeUnit[K(0x35e,0x36f)],{'ignoreSegments':!![]});const f=yield*this[K(0x3be,0x3a4)]();return f&&!this['getProject']()[K(0x384,0x38a)]?e:yield*this['event']['skipNonWorkingTime'](e);}*['calculateDurationInMS'](){const c=yield ProposedOrPrevious;if(!this['event']){return c;}const d=yield this['$'][L(0x3ef,0x3e3)],e=d[L(0x3f1,0x3dc)][L(0x416,0x424)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$'][L(0x3d9,0x3b1)]))||(yield HasProposedValue(this['$'][L(0x3e0,0x3f1)]))||c===void 0x0){const f=yield this['$'][L(0x3e0,0x3dd)],g=yield this['$'][L(0x3d9,0x3d6)];return yield*this[L(0x408,0x3f2)][L(0x3e5,0x3f5)](g,f,TimeUnit['Millisecond']);}else{return c;}}function L(a,b){return u(b,a-0x149);}return(yield this['$']['endOffset'])-(yield this['$'][L(0x3f5,0x3fe)]);}*[u(0x282,0x281)](){const c=yield this['$'][M(0x33,0x4f)];function M(a,b){return u(a,b- -0x248);}const d=yield this['$']['durationInMS'];return yield*this[M(0x63,0x54)](d,TimeUnit['Millisecond'],c);}*[u(0x2b1,0x29f)](){let c=0x0;function N(a,b){return u(b,a-0x83);}if(!this[N(0x342,0x31f)]){return yield ProposedOrPrevious;}const d=yield this[N(0x342,0x33d)]['$']['segments'];if(d){const e=yield this[N(0x342,0x36a)]['$'][N(0x312,0x306)];const f=yield this[N(0x342,0x326)]['$']['duration'];const g=yield this[N(0x342,0x367)]['$']['durationUnit'];let h=yield*this[N(0x31f,0x2f5)](f,g,TimeUnit[N(0x302,0x318)]);let i=e*0.01*h;for(const j of d){const k=j[N(0x32f,0x351)];const l=j[N(0x326,0x2fc)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*[u(0x2ea,0x2d1)](){const c=this[O(0x7f,0x94)];function O(a,b){return u(a,b- -0x20c);}if(!this[O(0xca,0xb3)]){return yield ProposedOrPrevious;}if(c){return yield c['$']['endPercentDone'];}return 0x0;}*[u(0x28f,0x287)](){if(!this['event']){return yield ProposedOrPrevious;}const c=yield this[P(0x4fd,0x4d7)]['$'][P(0x4ce,0x4c6)];function P(a,b){return u(b,a-0x23e);}const d=yield this[P(0x4fd,0x500)]['$'][P(0x4d5,0x4a9)];let e=yield*this['convertDurationGen'](c,d,TimeUnit[P(0x4bd,0x4e7)]);const f=yield this['$'][P(0x4ea,0x4cd)];const g=yield this['$'][P(0x4e1,0x4c8)];const h=yield this['$']['startPercentDone'];return h+0x64*(g-f)/e;}*[u(0x280,0x283)](c,d,e,f){function Q(a,b){return u(a,b- -0x370);}if(!f)f=yield this['$'][Q(-0xdd,-0xd9)];return yield*this[Q(-0xcb,-0xb1)][Q(-0xf6,-0xed)](c,d,e,f,{'ignoreSegments':!![]});}*[u(0x2b0,0x2a2)](c,d,e,...f){function R(a,b){return u(b,a- -0x1e1);}if(!e)e=yield this['$'][R(0xb6,0xbc)];return yield*this['event'][R(0xc1,0xb4)](c,d,e,{'ignoreSegments':!![]},...f);}*[u(0x294,0x282)](){if(this['event']){return yield*this['event']['isManuallyScheduled']();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super['afterChange'](c,d,e,f,g);const h=this['event'];function S(a,b){return u(b,a- -0x230);}if(d&&h){if(!(S(0x7d,0x54)in h[S(0x8c,0x5f)][S(0x97,0x9e)])&&h[S(0x7d,0x7b)]){const l=h[S(0x7d,0xa0)][S(0x4d,0x3b)](m=>Object[S(0x6e,0x43)](m[S(0x5e,0x62)](),m[S(0x8c,0x92)][S(0x97,0x9a)]));h[S(0x87,0x61)](S(0x7d,0x86),l);}const i=h[S(0x64,0x79)]();const j=i?.[S(0x95,0x80)];if(i)i[S(0x95,0xc3)]=!![];const k=h[S(0x7d,0x7b)]?.[S(0x4d,0x5a)](m=>m[S(0x5e,0x64)]());h[S(0x55,0x2e)]({'segments':k},{'segments':k},e,f,g);if(i)i[S(0x95,0xc2)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[u(0x263,0x289)],u(0x2bd,0x2a6),void 0x0);__decorate([model_field({'persist':![]})],b[u(0x280,0x289)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[u(0x2b1,0x289)],'endOffset',void 0x0);__decorate([field()],b[u(0x2a8,0x289)],u(0x27b,0x28f),void 0x0);__decorate([field()],b[u(0x264,0x289)],u(0x28f,0x2b5),void 0x0);__decorate([field()],b[u(0x2b0,0x289)],'endPercentDone',void 0x0);__decorate([field()],b['prototype'],u(0x2c2,0x2c1),void 0x0);__decorate([write(u(0x28e,0x292))],b[u(0x267,0x289)],u(0x2ab,0x2ce),null);__decorate([calculate(u(0x298,0x2ac))],b[u(0x295,0x289)],'calculateStartOffset',null);__decorate([calculate('endOffset')],b[u(0x29e,0x289)],u(0x2d7,0x2c0),null);__decorate([calculate(u(0x2e9,0x2c1))],b[u(0x26e,0x289)],'calculateDurationInMS',null);__decorate([calculate('percentDone')],b['prototype'],u(0x2a7,0x29f),null);function u(a,b){return _ens(a,b- -0x308);}__decorate([calculate(u(0x2a9,0x2b5))],b[u(0x2af,0x289)],u(0x2de,0x2d1),null);__decorate([calculate('endPercentDone')],b[u(0x2b3,0x289)],u(0x27d,0x287),null);__decorate([calculate(u(0x2b0,0x29b))],b[u(0x294,0x289)],u(0x296,0x282),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
1
+ (function(a,b){function q(a,b){return _enb(a-0x26f,b);}const c=a();while(!![]){try{const d=parseInt(q(0x409,0x43b))/0x1*(-parseInt(q(0x3f8,0x400))/0x2)+parseInt(q(0x3f3,0x3e7))/0x3+-parseInt(q(0x40e,0x410))/0x4*(-parseInt(q(0x408,0x3f5))/0x5)+parseInt(q(0x3d0,0x3aa))/0x6*(parseInt(q(0x42e,0x438))/0x7)+parseInt(q(0x42b,0x430))/0x8*(parseInt(q(0x3d2,0x3d9))/0x9)+parseInt(q(0x3fa,0x3dc))/0xa*(parseInt(q(0x42a,0x454))/0xb)+-parseInt(q(0x3d6,0x3f2))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x198d4));var __decorate=function(a,b,e,f){var g=arguments[r(0x247,0x248)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;function r(a,b){return _enb(a-0xd4,b);}if(typeof Reflect===r(0x288,0x256)&&typeof Reflect[r(0x259,0x258)]==='function')h=Reflect['decorate'](a,b,e,f);else for(var k=a[r(0x247,0x267)]-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[r(0x26a,0x257)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposeCountOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,CycleDescription,CycleResolution,Formula,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ens(a,b){return _enb(a-0x3ba,b);}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{FieldIdentifier}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Identifier.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{TimeUnit}from'../../../scheduling/Types.js';import{DurationVar,EndDateVar,Instruction,SEDDispatcher,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{BaseEventMixin}from'../scheduler_basic/BaseEventMixin.js';const MasterStartDateVar=Symbol(_ens(0x529,0x4f9));const MasterEndDateVar=Symbol(_ens(0x548,0x542));const MasterDurationVar=Symbol(_ens(0x530,0x50d));const MasterTotalDurationVar=Symbol(_ens(0x564,0x58a));const StartOffsetVar=Symbol(_ens(0x540,0x542));const EndOffsetVar=Symbol(_ens(0x54d,0x54d));const durationByOffsetsFormula=Formula[_ens(0x51c,0x4f6)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,EndOffsetVar])});function _ena(){const Y=['Millisecond','storeFieldChange','startOffset','afterChange','MasterStartDateVar','constructor','push','isEventSegment','length','prepareDispatcher','mix','MasterDurationVar','resolution','segments','hasFlag','get','calculateEndOffsetByStartOffsetAndDuration','previousSegment','percentDone','calculateMaxPercent','stm','write','endPercentDone','skipNonWorkingTimeWhenSchedulingManually','calculateEndOffset','237663eDEFXk','decorate','StartOffsetVar','calculateStartOffset','dispatcherClass','32420LUNqSA','nextSegment','1173310ozsuDu','endDate','KeepEndDate','MasterEndDateVar','min','endOffset','calculateManuallyScheduled','shouldRecordFieldChange','EndOffsetVar','collectInfo','equality','defineProperty','isManuallyScheduled','writeStartDate','6800cXWBBW','10SkTlIL','calculateDuration','HasProposedValue','buildProposedDispatcher','meta','148PzybSB','dispatcher','cycleResolutionContext','addProposedValueFlag','formulaId','input','durationUnit','assign','toJSON','event','calculateProjectedDuration','MasterTotalDurationVar','calculateDispatcher','addInstruction','calculateProjectedXDateWithDuration','calculateStartOffsetByEndOffsetAndDuration','calculateDurationInMS','startPercentDone','calculateEndDate','calculateStartDateByMasterStartAndStartOffset','calculateEndOffsetByMasterTotalDurationAndStartOffset','object','calculateStartDate','calculateDurationByOffsets','KeepDuration','getProject','isRestoring','duration','11nNrIBS','18504fnqeVU','prototype','startDate','497esoaku','addPreviousValueFlag','durationInMS','calculateEndDateByMasterStartAndEndOffset','applyingSyncResponse','calculateMinPercent','16122oMbHOx','new','531VoIBce','map','calculatePercentDone','getStm','3688272mJnbNI','convertDurationGen','modified','KeepStartDate'];_ena=function(){return Y;};return _ena();}const durationByMasterEndDateFormula=Formula[_ens(0x51c,0x53f)]({'output':DurationVar,'inputs':new Set([StartOffsetVar,MasterEndDateVar])});const startDateByMasterStartAndStartOffsetFormula=Formula[_ens(0x51c,0x524)]({'output':StartDateVar,'inputs':new Set([StartOffsetVar,MasterStartDateVar])});const endDateByMasterStartAndEndOffsetFormula=Formula[_ens(0x51c,0x508)]({'output':EndDateVar,'inputs':new Set([EndOffsetVar,MasterStartDateVar])});const startOffsetByMasterStartAndStartDateFormula=Formula[_ens(0x51c,0x542)]({'output':StartOffsetVar,'inputs':new Set([StartDateVar,MasterStartDateVar])});const startOffsetByEndOffsetAndDurationFormula=Formula[_ens(0x51c,0x504)]({'output':StartOffsetVar,'inputs':new Set([EndOffsetVar,DurationVar])});const endOffsetByMasterStartAndEndDateFormula=Formula[_ens(0x51c,0x535)]({'output':EndOffsetVar,'inputs':new Set([EndDateVar,MasterStartDateVar])});function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x15c;let f=c[d];return f;};return _enb(a,b);}const endOffsetByStartOffsetAndDurationFormula=Formula[_ens(0x51c,0x542)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,DurationVar])});const endOffsetByMasterTotalDurationAndStartOffsetFormula=Formula['new']({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterTotalDurationVar])});const endOffsetByMasterDurationAndStartOffsetFormula=Formula[_ens(0x51c,0x52f)]({'output':EndOffsetVar,'inputs':new Set([StartOffsetVar,MasterDurationVar])});const segmentCycleDescription=CycleDescription[_ens(0x51c,0x523)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,MasterStartDateVar,MasterEndDateVar,MasterDurationVar,MasterTotalDurationVar,StartOffsetVar,EndOffsetVar]),'formulas':new Set([durationByOffsetsFormula,startDateByMasterStartAndStartOffsetFormula,endDateByMasterStartAndEndOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula,endOffsetByStartOffsetAndDurationFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,durationByMasterEndDateFormula])});const segmentCycleResolution=CycleResolution[_ens(0x51c,0x504)]({'description':segmentCycleDescription,'defaultResolutionFormulas':new Set([endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByStartOffsetAndDurationFormula])});class SegmentSEDDispatcher extends SEDDispatcher{[_ens(0x54e,0x573)](a,b,c){function t(a,b){return _ens(b- -0x49f,a);}if(a(PreviousValueOf(b))!=null)this[t(0x80,0x77)](c);if(a(ProposedValueOf(b))!=null)this['addProposedValueFlag'](c);}[_ens(0x533,0x535)](a,b){function u(a,b){return _ens(b- -0x4e6,a);}return Boolean(this[u(0x91,0x78)][u(0x23,0x4e)](a)&b);}['removeFlag'](a,b){const c=this[v(0xf8,0xc7)][v(0xce,0xb0)](a);function v(a,b){return _ens(a- -0x466,b);}this[v(0xf8,0x121)]['set'](a,(0xff^b)&c);}}class SegmentSEDDispatcherIdentifier extends FieldIdentifier[_ens(0x52f,0x500)](CalculatedValueGen){[_ens(0x54f,0x563)](a,b){const c=a[w(0x3e3,0x3be)];const d=b[w(0x3bd,0x3be)];function w(a,b){return _ens(b- -0x173,a);}return c[w(0x3d2,0x3c1)](StartDateVar)===d[w(0x3a5,0x3c1)](StartDateVar)&&c[w(0x3c7,0x3c1)](EndDateVar)===d[w(0x3f0,0x3c1)](EndDateVar)&&c[w(0x391,0x3c1)](DurationVar)===d['get'](DurationVar)&&c['get'](MasterStartDateVar)===d[w(0x3cb,0x3c1)](MasterStartDateVar)&&c[w(0x3d3,0x3c1)](MasterEndDateVar)===d[w(0x3d5,0x3c1)](MasterEndDateVar)&&c[w(0x3ba,0x3c1)](MasterDurationVar)===d['get'](MasterDurationVar)&&c[w(0x3dd,0x3c1)](MasterTotalDurationVar)===d[w(0x3b7,0x3c1)](MasterTotalDurationVar)&&c['get'](StartOffsetVar)===d[w(0x3ea,0x3c1)](StartOffsetVar)&&c[w(0x3a3,0x3c1)](EndOffsetVar)===d['get'](EndOffsetVar);}}class SchedulerProEventSegment extends Mixin([BaseEventMixin],a=>{class b extends a{get[x(0x300,0x309)](){return!![];}get[x(0x30d,0x32f)](){function y(a,b){return x(b-0x231,a);}return this['event']?.[y(0x529,0x53e)];}set[x(0x30d,0x30d)](c){}[x(0x316,0x2e9)](c){return SegmentSEDDispatcher;}[x(0x32b,0x339)](c,d,e){function z(a,b){return x(b-0x113,a);}const f=super[z(0x432,0x43e)](c,d,e);f[z(0x3d1,0x3fd)](MasterStartDateVar);f[z(0x3e3,0x3fd)](StartOffsetVar);f[z(0x3ea,0x3fd)](EndOffsetVar);return f;}*[x(0x302,0x32a)](c){const d=yield*super[A(0x428,0x3fd)](c);if(!this[A(0x40e,0x431)]){return d;}const e=this[A(0x45e,0x431)]['$'];if(c(PreviousValueOf(e[A(0x428,0x447)]))!=null)d[A(0x3e4,0x3e5)](MasterStartDateVar);function A(a,b){return x(b-0xfb,a);}if(c(HasProposedValue(e['startDate'])))d[A(0x45d,0x42b)](MasterStartDateVar);if(!c(HasProposedValue(e['segments']))){d[A(0x3f6,0x41d)](c,e[A(0x456,0x443)],MasterDurationVar);if(c(HasProposedValue(e[A(0x3e9,0x415)]))){const g=c(ProposedArgumentsOf(e['endDate']));if(!g?.[0x0]){d[A(0x422,0x42b)](MasterEndDateVar);}}const f=c(e['dispatcher'])[A(0x411,0x400)];if(f['get'](StartDateVar)===CalculateProposed&&f['get'](EndDateVar)===CalculateProposed){d[A(0x44a,0x42b)](MasterTotalDurationVar);}}d['collectInfo'](c,this['$']['startOffset'],StartOffsetVar);d['collectInfo'](c,this['$'][A(0x445,0x419)],EndOffsetVar);return d;}*[x(0x339,0x315)](c){const d=yield ProposedOrPrevious;const e=yield*this['prepareDispatcher'](c);const f=yield ProposedArgumentsOf(this['$'][B(0x565,0x584)]);function B(a,b){return x(a-0x219,b);}const g=yield ProposedArgumentsOf(this['$'][B(0x533,0x50b)]);const h=yield ProposedArgumentsOf(this['$']['duration']);const i=c(ProposeCountOf(this['$'][B(0x565,0x565)]));const j=c(ProposeCountOf(this['$'][B(0x533,0x55d)]));const k=f?f[0x0]?Instruction[B(0x55e,0x576)]:Instruction[B(0x534,0x55e)]:void 0x0;const l=g?g[0x0]?Instruction[B(0x55e,0x561)]:Instruction[B(0x511,0x513)]:void 0x0;let m;if(h){switch(h[0x0]){case!![]:m=Instruction[B(0x511,0x53f)];break;case![]:m=Instruction[B(0x534,0x503)];break;}}if(e[B(0x520,0x53e)](StartDateVar,VariableInputState[B(0x543,0x518)])&&e[B(0x520,0x51a)](EndDateVar,VariableInputState[B(0x543,0x56b)])&&e[B(0x520,0x552)](DurationVar,VariableInputState[B(0x543,0x549)])){if(k===Instruction[B(0x55e,0x533)]&&l===Instruction['KeepStartDate']){if(i<j){yield*e[B(0x553,0x537)](l,this);e['removeFlag'](DurationVar,VariableInputState[B(0x543,0x54b)]);}else{yield*e[B(0x553,0x550)](k,this);}}}else{if(k)yield*e['addInstruction'](k,this);if(l)yield*e[B(0x553,0x57b)](l,this);if(m)yield*e[B(0x553,0x52a)](m,this);}return e;}[x(0x32f,0x343)](c){return segmentCycleResolution;}['writeStartDate'](c,d,e,f,g=!![]){const h=this[C(0x480,0x4b1)];const i=this['getProject']();function C(a,b){return x(b-0x17b,a);}if(h&&!this[C(0x4a3,0x485)]&&d['baseRevision']['hasIdentifier'](c)&&!(i&&i[C(0x49b,0x46f)]()[C(0x4aa,0x4c2)])){d['write'](h['$'][C(0x4f5,0x4c7)],f,g);}else{c[C(0x447,0x479)][C(0x4a4,0x4c6)][C(0x491,0x489)]['call'](this,c,d,e,f,g);if(g&&this['nextSegment']){const j=this[C(0x4a5,0x499)]-this['nextSegment']['startOffset'];if(j>0x0){let k=this;while(k=k[C(0x497,0x493)]){d[C(0x492,0x489)](k['$'][C(0x49d,0x476)],k['startOffset']+j);d['write'](k['$'][C(0x4c7,0x499)],k[C(0x4a0,0x499)]+j);}}}}}[x(0x320,0x34b)](c,d,e){function D(a,b){return x(b-0x1b9,a);}return c===D(0x4cd,0x4b4)||c===D(0x4b2,0x4d7)||super[D(0x4e6,0x4d9)](c,d,e);}*['calculateStartOffset'](){function E(a,b){return x(b- -0x336,a);}const c=yield this['$'][E(0x29,-0x8)];const d=c['resolution'][E(-0x44,-0x2e)](StartOffsetVar);if(!this[E(0x16,0x0)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===startOffsetByEndOffsetAndDurationFormula[E(-0x31,-0x5)]){e=yield*this[E(0x2f,0x6)]();}else if(d===startOffsetByMasterStartAndStartDateFormula[E(0xc,-0x5)]){const f=yield ProposedOrPreviousValueOf(this['event']['$'][E(0x31,0x16)]);const g=yield ProposedOrPreviousValueOf(this['$'][E(-0x4,0x16)]);e=yield*this[E(-0xc,0x0)][E(0x1d,0x1)](f,g,TimeUnit[E(-0x23,-0x3d)],{'ignoreSegments':!![]});}return e;}*['calculateEndOffset'](){const c=yield this['$'][F(0x548,0x551)];const d=c[F(0x51f,0x4ee)][F(0x522,0x528)](EndOffsetVar);if(!this[F(0x550,0x52e)]){return yield ProposedOrPrevious;}let e;if(d===CalculateProposed){e=yield ProposedOrPrevious;}else if(d===endOffsetByStartOffsetAndDurationFormula[F(0x54b,0x558)]){e=yield*this[F(0x523,0x50b)]();}else if(d===endOffsetByMasterStartAndEndDateFormula[F(0x54b,0x541)]){const f=yield ProposedOrPreviousValueOf(this[F(0x550,0x54f)]['$'][F(0x566,0x595)]);const g=yield ProposedOrPreviousValueOf(this['$'][F(0x534,0x53e)]);e=yield*this[F(0x550,0x572)][F(0x551,0x54d)](f,g,TimeUnit['Millisecond'],{'ignoreSegments':!![]});}else if(d===endOffsetByMasterDurationAndStartOffsetFormula[F(0x54b,0x56d)]){e=yield*this['calculateEndOffsetByMasterDurationAndStartOffset']();}else if(d===endOffsetByMasterTotalDurationAndStartOffsetFormula[F(0x54b,0x56e)]){e=yield*this[F(0x55b,0x550)]();}function F(a,b){return x(a-0x21a,b);}return e;}*[x(0x343,0x332)](){function G(a,b){return x(a- -0x65,b);}const c=yield this['$'][G(0x2c9,0x2ec)];const d=c[G(0x2a0,0x2a7)][G(0x2a3,0x2ad)](StartDateVar);if(!this[G(0x2d1,0x2b8)]){return yield ProposedOrPrevious;}let e;if(d===startDateByMasterStartAndStartOffsetFormula['formulaId']){e=yield*this[G(0x2db,0x2b0)]();}else{e=yield*super[G(0x2de,0x2ff)]();}return e;}*[x(0x33f,0x366)](){const c=yield this['$'][H(-0x1bc,-0x1bd)];const d=c[H(-0x208,-0x1e6)][H(-0x1e3,-0x1e3)](EndDateVar);function H(a,b){return x(b- -0x4eb,a);}if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===endDateByMasterStartAndEndOffsetFormula[H(-0x197,-0x1ba)]){e=yield*this[H(-0x1f3,-0x1ff)]();}else{e=yield*super['calculateEndDate']();}return e;}*[x(0x329,0x319)](){function I(a,b){return x(b- -0x125,a);}const c=yield this['$']['dispatcher'];const d=c[I(0x1c4,0x1e0)][I(0x20f,0x1e3)](DurationVar);if(!this['event']){return yield ProposedOrPrevious;}let e;if(d===durationByOffsetsFormula[I(0x220,0x20c)]){e=yield*this[I(0x1f6,0x21f)]();}else if(d===durationByMasterEndDateFormula[I(0x1de,0x20c)]){e=yield*this['calculateDurationByOffsets']();}else{e=yield*super[I(0x22e,0x204)]();}return e;}*['calculateEndOffsetByMasterDurationAndStartOffset'](){const c=yield ProposedOrPreviousValueOf(this['event']['$']['duration']);const d=yield this['event']['$'][J(0x277,0x263)];const e=yield this['$'][J(0x249,0x22b)];const f=this[J(0x25a,0x248)];let g;let h=yield*this[J(0x205,0x226)](c,d,TimeUnit[J(0x1fa,0x229)]);function J(a,b){return x(b- -0xd0,a);}const j=[];let k=this;while(k=k[J(0x25a,0x23a)]){j[J(0x214,0x22f)](k);}for(let l=j[J(0x21b,0x231)]-0x1;l>=0x0;l--){const m=j[l];const n=yield ProposedOrPreviousValueOf(m['$']['startOffset']);const o=yield ProposedOrPreviousValueOf(m['$'][J(0x226,0x24e)]);const p=o-n;h-=p;}if(h>0x0){if(!f){g=e+h;}else{g=e+Math[J(0x243,0x24d)](h,(yield ProposedOrPreviousValueOf(this['$'][J(0x242,0x24e)]))-e);}}else{g=e;}return g;}*['calculateEndOffsetByMasterTotalDurationAndStartOffset'](){function K(a,b){return x(b- -0x56b,a);}const c=yield ProposedOrPreviousValueOf(this[K(-0x230,-0x235)]['$'][K(-0x1f7,-0x21f)]);const d=yield ProposedOrPreviousValueOf(this[K(-0x216,-0x235)]['$'][K(-0x251,-0x251)]);const e=yield*this['event'][K(-0x213,-0x234)](c,d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const f=yield ProposedOrPreviousValueOf(this['$'][K(-0x288,-0x270)]);let g=yield ProposedOrPreviousValueOf(this['$'][K(-0x252,-0x24d)]);let h=this[K(-0x241,-0x253)];if(f<e){if(g<=e){if(!h||(yield ProposedOrPreviousValueOf(h['$'][K(-0x290,-0x270)]))>=e){return e;}return g;}else{return e;}}return yield this['$'][K(-0x27b,-0x270)];}*[x(0x33c,0x30e)](){const c=yield this['$'][L(-0x133,-0x131)];const d=yield this['$'][L(-0x12c,-0xfe)];function L(a,b){return x(b- -0x41c,a);}return d-c;}*['calculateEndOffsetByStartOffsetAndDuration'](){const c=yield this['$']['durationInMS'];const d=yield this['$'][M(0x464,0x486)];function M(a,b){return x(b-0x18b,a);}return d+c;}*[x(0x2ec,0x2dd)](){const c=yield this[N(-0xba,-0xa3)]['$']['startDate'];const d=yield this['$'][N(-0xd2,-0xde)];function N(a,b){return x(a- -0x3f0,b);}const e=yield*this[N(-0xba,-0xdf)][N(-0xb5,-0xba)](c,!![],d,TimeUnit[N(-0xf7,-0xea)],{'ignoreSegments':!![]});const f=yield*this[N(-0xcb,-0xcc)]();return f&&!this[N(-0xaa,-0xc0)]()[N(-0xe0,-0x109)]?e:yield*this[N(-0xba,-0xaf)]['skipNonWorkingTime'](e,![]);}*[x(0x340,0x372)](){const c=yield this['event']['$'][O(0x2bb,0x2d7)];const d=yield this['$'][O(0x292,0x286)];const e=yield*this[O(0x2d0,0x2c1)][O(0x2a9,0x2c6)](c,!![],d,TimeUnit['Millisecond'],{'ignoreSegments':!![]});function O(a,b){return x(b- -0x75,a);}const f=yield*this['isManuallyScheduled']();return f&&!this[O(0x2cf,0x2d1)]()[O(0x2a6,0x29b)]?e:yield*this[O(0x2b5,0x2c1)]['skipNonWorkingTime'](e);}*[x(0x33d,0x30b)](){const c=yield ProposedOrPrevious;if(!this[P(-0x1e9,-0x1e3)]){return c;}function P(a,b){return x(b- -0x519,a);}const d=yield this['$'][P(-0x20b,-0x1eb)],e=d[P(-0x1f5,-0x214)][P(-0x221,-0x211)](DurationVar);if(e===CalculateProposed){if((yield HasProposedValue(this['$']['duration']))||(yield HasProposedValue(this['$'][P(-0x1f4,-0x1e6)]))||c===void 0x0){const f=yield this['$'][P(-0x1d0,-0x1e6)],g=yield this['$']['duration'];return yield*this[P(-0x1e2,-0x1e3)][P(-0x23b,-0x223)](g,f,TimeUnit[P(-0x24d,-0x220)]);}else{return c;}}return(yield this['$'][P(-0x1e3,-0x1fb)])-(yield this['$'][P(-0x22a,-0x21e)]);}*[x(0x344,0x339)](){const c=yield this['$']['durationUnit'];const d=yield this['$']['durationInMS'];function Q(a,b){return x(a- -0x2e1,b);}return yield*this[Q(0x15,-0x19)](d,TimeUnit[Q(0x18,-0x14)],c);}*[x(0x2f3,0x2e9)](){let c=0x0;if(!this[R(0x1e7,0x211)]){return yield ProposedOrPrevious;}const d=yield this['event']['$'][R(0x1b7,0x1e4)];function R(a,b){return x(a- -0x14f,b);}if(d){const e=yield this[R(0x1e7,0x203)]['$'][R(0x1bc,0x1c5)];const f=yield this[R(0x1e7,0x1ce)]['$'][R(0x1f9,0x223)];const g=yield this[R(0x1e7,0x20c)]['$'][R(0x1e4,0x1c2)];let h=yield*this[R(0x1a7,0x194)](f,g,TimeUnit['Millisecond']);let i=e*0.01*h;for(const j of d){const k=j[R(0x1ac,0x1d3)];const l=j[R(0x1cf,0x1b0)];const m=l-k;if(j===this){if(i>=m)return 0x64;else if(i>0x0)return 0x64*i/m;else return 0x0;}i-=m;}}return c;}*['calculateMinPercent'](){const c=this[S(0x2a5,0x2b9)];function S(a,b){return x(a- -0x65,b);}if(!this[S(0x2d1,0x2ba)]){return yield ProposedOrPrevious;}if(c){return yield c['$'][S(0x2aa,0x2c6)];}return 0x0;}*[x(0x30c,0x332)](){if(!this[T(0x65,0x77)]){return yield ProposedOrPrevious;}const c=yield this[T(0x65,0x57)]['$'][T(0x77,0x96)];function T(a,b){return x(a- -0x2d1,b);}const d=yield this['event']['$'][T(0x62,0x5f)];let e=yield*this[T(0x25,0x21)](c,d,TimeUnit[T(0x28,0x3d)]);const f=yield this['$']['startOffset'];const g=yield this['$']['endOffset'];const h=yield this['$'][T(0x6d,0x7b)];return h+0x64*(g-f)/e;}*['calculateProjectedXDateWithDuration'](c,d,e,f){if(!f)f=yield this['$'][U(0x367,0x33a)];function U(a,b){return x(b-0x7,a);}return yield*this['event'][U(0x342,0x342)](c,d,e,f,{'ignoreSegments':!![]});}*[x(0x337,0x321)](c,d,e,...f){if(!e)e=yield this['$'][V(0x30c,0x2e1)];function V(a,b){return x(b- -0x52,a);}return yield*this[V(0x2ea,0x2e4)][V(0x2bb,0x2e5)](c,d,e,{'ignoreSegments':!![]},...f);}*[x(0x31f,0x311)](){function W(a,b){return x(a-0x24b,b);}if(this[W(0x581,0x555)]){return yield*this[W(0x581,0x594)][W(0x570,0x576)]();}else{return yield ProposedOrPrevious;}}['afterChange'](c,d,e,f,g){super[X(-0x27e,-0x273)](c,d,e,f,g);const h=this['event'];function X(a,b){return x(b- -0x56f,a);}if(d&&h){if(!(X(-0x23c,-0x269)in h['meta'][X(-0x29d,-0x278)])&&h['segments']){const l=h['segments']['map'](m=>Object[X(-0x224,-0x23b)](m[X(-0x24c,-0x23a)](),m[X(-0x21c,-0x243)][X(-0x28c,-0x278)]));h[X(-0x299,-0x275)](X(-0x261,-0x269),l);}const i=h[X(-0x24a,-0x229)]();const j=i?.[X(-0x293,-0x282)];if(i)i[X(-0x257,-0x282)]=!![];const k=h[X(-0x289,-0x269)]?.[X(-0x277,-0x27d)](m=>m[X(-0x20d,-0x23a)]());h[X(-0x274,-0x273)]({'segments':k},{'segments':k},e,f,g);if(i)i[X(-0x258,-0x282)]=j;}}}__decorate([field({'identifierCls':SegmentSEDDispatcherIdentifier})],b[x(0x34b,0x319)],x(0x32e,0x317),void 0x0);__decorate([model_field({'persist':![]})],b[x(0x34b,0x358)],'startOffset',void 0x0);__decorate([model_field({'persist':![]})],b[x(0x34b,0x342)],'endOffset',void 0x0);__decorate([field()],b['prototype'],x(0x30b,0x2f9),void 0x0);__decorate([field()],b[x(0x34b,0x336)],x(0x33e,0x352),void 0x0);__decorate([field()],b[x(0x34b,0x343)],x(0x30f,0x321),void 0x0);__decorate([field()],b[x(0x34b,0x342)],x(0x2eb,0x2eb),void 0x0);__decorate([write('startDate')],b['prototype'],x(0x326,0x34b),null);__decorate([calculate(x(0x2fb,0x322))],b[x(0x34b,0x362)],x(0x315,0x327),null);__decorate([calculate(x(0x31e,0x2f5))],b[x(0x34b,0x339)],x(0x311,0x2e3),null);function x(a,b){return _ens(a- -0x22c,b);}__decorate([calculate(x(0x2eb,0x2d5))],b[x(0x34b,0x329)],x(0x33d,0x36e),null);__decorate([calculate(x(0x30b,0x326))],b['prototype'],'calculatePercentDone',null);__decorate([calculate(x(0x33e,0x35c))],b[x(0x34b,0x36f)],x(0x2ee,0x319),null);__decorate([calculate(x(0x30f,0x328))],b['prototype'],x(0x30c,0x2f7),null);__decorate([calculate('manuallyScheduled')],b[x(0x34b,0x346)],x(0x31f,0x308),null);return b;}){}export{EndOffsetVar,MasterDurationVar,MasterEndDateVar,MasterStartDateVar,MasterTotalDurationVar,SchedulerProEventSegment,SegmentSEDDispatcher,SegmentSEDDispatcherIdentifier,StartOffsetVar,durationByMasterEndDateFormula,durationByOffsetsFormula,endDateByMasterStartAndEndOffsetFormula,endOffsetByMasterDurationAndStartOffsetFormula,endOffsetByMasterStartAndEndDateFormula,endOffsetByMasterTotalDurationAndStartOffsetFormula,endOffsetByStartOffsetAndDurationFormula,segmentCycleDescription,segmentCycleResolution,startDateByMasterStartAndStartOffsetFormula,startOffsetByEndOffsetAndDurationFormula,startOffsetByMasterStartAndStartDateFormula};
@@ -1 +1 @@
1
- (function(a,b){function z(a,b){return _enb(a- -0x3bc,b);}const c=a();while(!![]){try{const d=parseInt(z(-0x2cb,-0x2ce))/0x1*(parseInt(z(-0x2bd,-0x2af))/0x2)+parseInt(z(-0x2c8,-0x2e0))/0x3*(parseInt(z(-0x2ea,-0x306))/0x4)+-parseInt(z(-0x2a4,-0x2a2))/0x5+parseInt(z(-0x2cd,-0x2ea))/0x6*(parseInt(z(-0x2cc,-0x2c8))/0x7)+parseInt(z(-0x29d,-0x295))/0x8*(-parseInt(z(-0x2c1,-0x2e5))/0x9)+-parseInt(z(-0x2b2,-0x2b2))/0xa*(-parseInt(z(-0x2b9,-0x2ac))/0xb)+parseInt(z(-0x2cf,-0x2c2))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xc3a4b));var __decorate=function(a,b,e,f){var g=arguments[A(0x1ef,0x1e9)],h=g<0x3?b:f===null?f=Object[A(0x21e,0x1f8)](b,e):f,j;function A(a,b){return _enb(b-0xf2,a);}if(typeof Reflect===A(0x213,0x210)&&typeof Reflect[A(0x214,0x1ee)]==='function')h=Reflect['decorate'](a,b,e,f);else for(var k=a[A(0x1fe,0x1e9)]-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[A(0x1fe,0x20c)](b,e,h),h;};import{HasProposedValue}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Reject}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIteratorResult}from'../../../calendar/CalendarCache.js';import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{EmptyCalendarEffect}from'../scheduler_basic/BaseCalendarMixin.js';import{BaseHasAssignmentsMixin}from'../scheduler_basic/BaseHasAssignmentsMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xcf;let f=c[d];return f;};return _enb(a,b);}import{EffectResolutionResult,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{format}from'../../../util/Functions.js';class SchedulerProHasAssignmentsMixin extends Mixin([BaseHasAssignmentsMixin],a=>{const b=a[B(0x265,0x262)];class c extends a{['afterConstruct'](){function C(a,b){return B(b,a- -0xbc);}super[C(0x1a9,0x1b6)]();this['zeroDurationMsThreshold']=0x1;}*[B(0x20f,0x230)](){return yield HasProposedValue(this['$']['assigned']);}*['hasProposedValueForAssignmentsField'](d){const e=yield this['$'][D(0x87,0x6b)];for(const f of e){const g=yield f['$'][D(0x6f,0x54)];if(g&&(yield HasProposedValue(f['$'][d])))return!![];}function D(a,b){return B(a,b- -0x1e3);}return![];}*[B(0x23f,0x241)](){function E(a,b){return B(b,a-0x191);}return yield*this[E(0x3cd,0x3cf)]('units');}*['hasPreviousValueForUnits'](){return!![];}async[B(0x238,0x238)](d,e=void 0x0,f=void 0x0,g=void 0x0){const h=this[F(0x310,0x2f1)]()[F(0x327,0x335)][F(0x32c,0x327)];const i={'event':this,'resource':d,...e!==void 0x0?{'units':e}:{}};if(d[F(0x318,0x33f)]===ResourceType[F(0x323,0x331)]&&g!==void 0x0){i['cost']=g;}else if(d[F(0x318,0x2fc)]!==ResourceType[F(0x323,0x30d)]&&f!==void 0x0){i['rateTable']=f;}function F(a,b){return B(b,a-0xcc);}this['addAssignment'](new h(i));return this[F(0x322,0x321)]();}*['forEachAvailabilityInterval'](d,e){const f=yield this['$'][G(-0x202,-0x22a)];const g=yield this['$'][G(-0x1f6,-0x1db)];const h=yield this['$'][G(-0x1f8,-0x1fc)];const i=(yield this['$'][G(-0x1ec,-0x1de)])||(yield*this['hasElapsedDuration']())||d[G(-0x1ec,-0x1eb)]||!g[G(-0x1e7,-0x1ce)];const j=this[G(-0x1e6,-0x1d0)]()['maxCalendarRange'];if(j){d=Object['assign']({'maxRange':j},d);}function G(a,b){return B(b,a- -0x42a);}const k=this[G(-0x1e6,-0x1fd)]();const l=yield this['$']['manuallyScheduled'];return h['forEachAvailabilityInterval'](d,(m,n,o)=>{const p=o[H(0x2b8,0x29e)]();function H(a,b){return G(b-0x456,a);}const q=o[H(0x284,0x296)]();if(p[H(0x281,0x265)](f)&&(i||q[H(0x293,0x299)](r=>g[H(0x2b4,0x297)](r))||l&&!k[H(0x288,0x267)])){return e(m,n,o);}});}*[B(0x20f,0x233)](){const d=yield*this['isManuallyScheduled']();function I(a,b){return B(a,b- -0xe8);}const e=this['getProject']();const f=[yield this['$'][I(0x162,0x140)]];if(!d||e[I(0x13f,0x153)]){const g=yield this['$']['assignmentsByCalendar'];f[I(0x198,0x18d)](...g[I(0x19c,0x188)]());}return e[I(0x133,0x152)](f);}*[B(0x251,0x266)](){const d=yield this['$']['assigned'];const e=this['getProject']();function J(a,b){return B(b,a- -0x2b0);}const f=yield this['$'][J(-0x7a,-0x52)];const g=(yield this['$'][J(-0x72,-0x52)])||(yield*this['hasElapsedDuration']())||f&&!e[J(-0x75,-0x76)];const h=new Map();for(const i of d){const j=yield i['$'][J(-0x79,-0x5d)];if(j&&(yield j['$'][J(-0x64,-0x42)])===ResourceType[J(-0x49,-0x6a)]){const k=yield g?this['$']['effectiveCalendar']:j['$'][J(-0x88,-0x90)];let l=h[J(-0x77,-0x82)](k);if(!l){l=[];h['set'](k,l);}l[J(-0x3b,-0x42)](i);}}return h;}*[B(0x251,0x24b)](){return{'ignoreResourceCalendar':![]};}*[B(0x257,0x261)](){function K(a,b){return B(a,b-0x1a);}const d=yield this['$'][K(0x245,0x24e)];return d[K(0x264,0x25d)]>0x0;}*[B(0x23c,0x25d)](d,e=!![],f){if(!d)return null;function L(a,b){return B(b,a- -0xfd);}const g=yield this['$'][L(0x137,0x141)];const h=yield this['$'][L(0x141,0x140)]||(yield*this['hasElapsedDuration']());if(yield*this[L(0x164,0x18c)]()){const i=Object[L(0x13b,0x13b)](yield*this[L(0x14e,0x157)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':L(0x161,0x176)},f);let j;const k=yield*this[L(0x130,0x119)](i,(l,m,n)=>{j=e?l:m;return![];});if(k===CalendarIteratorResult[L(0x148,0x168)]||k===CalendarIteratorResult[L(0x167,0x15a)]){const l=[yield this['$'][L(0x12b,0x136)]];if(!i[L(0x141,0x158)]&&!h){l[L(0x178,0x162)](...g['keys']());}const m=SchedulerProEmptyCalendarEffect[L(0x131,0x131)]({'event':this,'calendars':l,'date':d,'isForward':e});if((yield m)===EffectResolutionResult[L(0x140,0x11e)]){yield Reject(m);}else{return null;}}return new Date(j);}else{return yield*b['skipNonWorkingTime']['call'](this,d,e);}}*['calculateProjectedDuration'](d,e,f,g,h=![]){if(!d||!e){return null;}function M(a,b){return B(a,b- -0xd0);}if(yield*this['useEventAvailabilityIterator']()){const i=d[M(0x191,0x172)]()<=e[M(0x18b,0x172)]()||!h?0x1:-0x1;if(i<0x0){[d,e]=[e,d];}const j=Object[M(0x18c,0x168)](yield*this['getBaseOptionsForDurationCalculations'](),{'startDate':d,'endDate':e,'isForward':!![]},g,{'purpose':'progressing'});const k=this[M(0x194,0x174)]()[M(0x14d,0x165)];let l=0x0;yield*this[M(0x164,0x15d)](j,(m,n)=>{function N(a,b){return M(b,a-0xc2);}l+=n[N(0x234,0x254)]()-m[N(0x234,0x211)]();if(k){const o=m[N(0x24c,0x244)]()-n[N(0x24c,0x260)]();l+=o*0x3c*0x3e8;}});if(!f)f=yield this['$'][M(0x170,0x170)];l=yield*this[M(0x17a,0x161)](l,TimeUnit['Millisecond'],f);return i*l;}else{return yield*b[M(0x1b4,0x198)][M(0x1bf,0x19e)](this,d,e,f,g,h);}}*[B(0x26a,0x252)](d,e=!![],f,g,h){function O(a,b){return B(a,b- -0x17e);}if(f==null||isNaN(f)||d==null)return null;if(f==0x0)return d;g=g||(yield this['$'][O(0xd4,0xc2)]);const i=yield*this[O(0x8b,0xb3)](f,g,TimeUnit[O(0xa4,0xc9)]);let j=d['getTime']();let k=i;const l=yield this['$']['effectiveCalendar'];const m=this[O(0xfd,0xf1)];if(yield*this['useEventAvailabilityIterator']()){const n=Object[O(0xa8,0xba)](yield*this[O(0xc5,0xcd)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':O(0xa0,0xae)},h);const o=this[O(0xef,0xc6)]()['adjustDurationToDST'];const p=yield*this[O(0x92,0xaf)](n,(q,r,s)=>{function P(a,b){return O(b,a-0x393);}const t=q['getTime'](),u=r[P(0x457,0x46e)](),v=u-t,w=k-v;if(w<m){if(o){const x=e?q['getTimezoneOffset']()-new Date(t+k)['getTimezoneOffset']():new Date(u-k)['getTimezoneOffset']()-r[P(0x46f,0x47c)]();k-=x*0x3c*0x3e8;}j=e?t+k:u-k;return![];}else{k-=v;if(o){const y=q['getTimezoneOffset']()-r[P(0x46f,0x453)]();k-=y*0x3c*0x3e8;}}});return p===CalendarIteratorResult[O(0xf9,0xd5)]?new Date(j):null;}else{return l[O(0xbe,0xd1)](d,i,e)[O(0xcf,0xd3)];}}}__decorate([field()],c[B(0x272,0x262)],B(0x22c,0x232),void 0x0);__decorate([field()],c[B(0x254,0x262)],B(0x25a,0x234),void 0x0);__decorate([model_field({'type':B(0x257,0x23f)})],c[B(0x283,0x262)],B(0x249,0x23e),void 0x0);__decorate([calculate(B(0x224,0x232))],c[B(0x23b,0x262)],B(0x225,0x233),null);__decorate([calculate('assignmentsByCalendar')],c[B(0x23f,0x262)],B(0x265,0x266),null);function B(a,b){return _enb(b-0x159,a);}return c;}){}class SchedulerProEmptyCalendarEffect extends EmptyCalendarEffect{[_enQ(-0x2a4,-0x287)](){function R(a,b){return _enQ(a-0x12c,b);}if(!this['getInvalidCalendar']()){return[IgnoreResourceCalendarEmptyCalendarEffectResolution['new']({'event':this['event']})];}return super[R(-0x178,-0x194)]();}}function _ena(){const U=['IgnoreResourceCalendarEmptyCalendarEffectResolution','hasProposedAssignments','convertDurationGen','effectiveCalendarsCombination','calculateEffectiveCalendarsCombination','assignmentsByCalendar','adjustDurationToDST','manuallyScheduled','resource','assign','get','combineCalendars','skipNonWorkingTimeInDurationWhenSchedulingManually','hasProposedValueForAssignmentsField','Cancel','ignoreResourceCalendar','boolean','durationUnit','hasProposedValueForUnits','getTime','size','getProject','MaxRangeReached','5126400WLvyRw','Millisecond','22374GDHdwF','483znoYqo','2947tYUZBw','getBaseOptionsForDurationCalculations','type','15YtHfHj','assigned','accumulateWorkingTime','length','finalDate','calculateProjectedXDateWithDuration','StoppedByIterator','10680867rEWcAx','decorate','commitAsync','Cost','902UJrCGe','event','getTimezoneOffset','assignmentStore','8973679PxxGtT','skipNonWorkingTime','positioning','getOwnPropertyDescriptor','modelClass','useEventAvailabilityIterator','prototype','10NwZUsA','FullRangeIterated','afterConstruct','calculateAssignmentsByCalendar','Work','calculateProjectedDuration','getResolutions','getCalendarsWorking','has','resolve','some','call','zeroDurationMsThreshold','keys','7050620kHVMgb','getCalendarsWorkStatus','defineProperty','name','push','L{descriptionTpl}','object','8zquQlv','effectiveCalendar','getDescription','$name','455084vhyscD','progressing','forEachAvailabilityInterval','new'];_ena=function(){return U;};return _ena();}function _enQ(a,b){return _enb(a- -0x3b4,b);}class IgnoreResourceCalendarEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enQ(-0x2e4,-0x2d1)](){function S(a,b){return _enQ(a-0x3de,b);}const {event:a}=this;return format(this['L'](S(0x147,0x163)),a[S(0x145,0x14b)]);}[_enQ(-0x2a1,-0x2bc)](){function T(a,b){return _enQ(b-0x2a1,a);}this[T(0x7,-0x13)]['ignoreResourceCalendar']=!![];}}IgnoreResourceCalendarEmptyCalendarEffectResolution[_enQ(-0x2e3,-0x2fc)]=_enQ(-0x2de,-0x2d4);export{IgnoreResourceCalendarEmptyCalendarEffectResolution,SchedulerProEmptyCalendarEffect,SchedulerProHasAssignmentsMixin};
1
+ (function(a,b){const c=a();function z(a,b){return _enb(a-0x363,b);}while(!![]){try{const d=-parseInt(z(0x54e,0x572))/0x1+parseInt(z(0x555,0x54e))/0x2*(-parseInt(z(0x546,0x51f))/0x3)+-parseInt(z(0x562,0x569))/0x4+-parseInt(z(0x583,0x586))/0x5*(parseInt(z(0x577,0x596))/0x6)+-parseInt(z(0x54a,0x55c))/0x7*(-parseInt(z(0x54d,0x548))/0x8)+-parseInt(z(0x542,0x541))/0x9+parseInt(z(0x538,0x54a))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3c283));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[A(-0x1e,-0x5)](b,e):f,j;if(typeof Reflect===A(-0xc,-0x1)&&typeof Reflect['decorate']==='function')h=Reflect[A(0x7,-0xe)](a,b,e,f);else for(var k=a[A(0xd,-0x9)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function A(a,b){return _enb(b- -0x1fd,a);}return g>0x3&&h&&Object[A(0x22,0x13)](b,e,h),h;};import{HasProposedValue}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const W=['units','useEventAvailabilityIterator','has','getOwnPropertyDescriptor','type','calculateProjectedXDateWithDuration','getTime','object','Cancel','hasProposedValueForUnits','1280124QoieSR','hasProposedValueForAssignmentsField','convertDurationGen','new','Millisecond','getBaseOptionsForDurationCalculations','effectiveCalendar','manuallyScheduled','IgnoreResourceCalendarEmptyCalendarEffectResolution','effectiveCalendarsCombination','Cost','commitAsync','keys','assign','getTimezoneOffset','resolve','ignoreResourceCalendar','defineProperty','getProject','adjustDurationToDST','progressing','18pnxdum','skipNonWorkingTimeInDurationWhenSchedulingManually','rateTable','push','cost','forEachAvailabilityInterval','$name','assignmentStore','getResolutions','zeroDurationMsThreshold','positioning','assigned','472855XzHFRd','getCalendarsWorking','7250940uNrTZU','size','finalDate','hasProposedAssignments','resource','getInvalidCalendar','durationUnit','calculateProjectedDuration','skipNonWorkingTime','assignmentsByCalendar','2092644valjwk','call','name','accumulateWorkingTime','45654dqsPdJ','L{descriptionTpl}','calculateAssignmentsByCalendar','hasElapsedDuration','1060612ZoPwgX','StoppedByIterator','getDescription','24SQCTYM','51325yIJUUc','calculateEffectiveCalendarsCombination','combineCalendars','event','decorate','isManuallyScheduled','prototype','6xYtVxl','boolean','length'];_ena=function(){return W;};return _ena();}import{Reject}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIteratorResult}from'../../../calendar/CalendarCache.js';function _enT(a,b){return _enb(a-0xfe,b);}import{ResourceType,TimeUnit}from'../../../scheduling/Types.js';import{EmptyCalendarEffect}from'../scheduler_basic/BaseCalendarMixin.js';import{BaseHasAssignmentsMixin}from'../scheduler_basic/BaseHasAssignmentsMixin.js';import{EffectResolutionResult,SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{format}from'../../../util/Functions.js';class SchedulerProHasAssignmentsMixin extends Mixin([BaseHasAssignmentsMixin],a=>{const b=a[B(0x58e,0x590)];class c extends a{['afterConstruct'](){super['afterConstruct']();function C(a,b){return B(b- -0x1fd,a);}this[C(0x3bd,0x3bd)]=0x1;}*[B(0x575,0x583)](){function D(a,b){return B(b- -0x30d,a);}return yield HasProposedValue(this['$'][D(0x28b,0x2af)]);}*[B(0x59d,0x582)](d){function E(a,b){return B(a- -0x1ca,b);}const e=yield this['$'][E(0x3f2,0x3e5)];for(const f of e){const g=yield f['$'][E(0x3ac,0x3d0)];if(g&&(yield HasProposedValue(f['$'][d])))return!![];}return![];}*[B(0x59b,0x5b9)](){function F(a,b){return B(a- -0x27b,b);}return yield*this[F(0x322,0x318)](F(0x317,0x31f));}*['hasPreviousValueForUnits'](){return!![];}async[B(0x5a9,0x585)](d,e=void 0x0,f=void 0x0,g=void 0x0){function G(a,b){return B(b- -0x548,a);}const h=this[G(0x5e,0x66)]()[G(0x4c,0x70)]['modelClass'];const i={'event':this,'resource':d,...e!==void 0x0?{'units':e}:{}};if(d[G(0x73,0x4e)]===ResourceType[G(0x54,0x5e)]&&g!==void 0x0){i[G(0x8d,0x6d)]=g;}else if(d[G(0x55,0x4e)]!==ResourceType[G(0x71,0x5e)]&&f!==void 0x0){i[G(0x8b,0x6b)]=f;}this['addAssignment'](new h(i));return this[G(0x47,0x5f)]();}*[B(0x5b6,0x5d6)](d,e){const f=yield this['$'][H(0x5c4,0x5d4)];const g=yield this['$']['assignmentsByCalendar'];const h=yield this['$'][H(0x5b2,0x5d7)];function H(a,b){return B(b-0x32,a);}const i=(yield this['$'][H(0x5d4,0x5de)])||(yield*this[H(0x5aa,0x5b5)]())||d[H(0x5fd,0x5de)]||!g['size'];const j=this['getProject']()['maxCalendarRange'];if(j){d=Object['assign']({'maxRange':j},d);}const k=this[H(0x5f6,0x5e0)]();const l=yield this['$'][H(0x5f7,0x5d5)];return h[H(0x60c,0x5e8)](d,(m,n,o)=>{function I(a,b){return H(a,b- -0x18f);}const p=o['getCalendarsWorkStatus']();const q=o[I(0x483,0x461)]();if(p['get'](f)&&(i||q['some'](r=>g[I(0x42f,0x437)](r))||l&&!k['skipNonWorkingTimeInDurationWhenSchedulingManually'])){return e(m,n,o);}});}*[B(0x589,0x57f)](){function J(a,b){return B(b- -0x5c3,a);}const d=yield*this[J(-0x52,-0x36)]();const e=this[J(-0x16,-0x15)]();const f=[yield this['$'][J(-0x19,-0x21)]];if(!d||e[J(-0x35,-0x11)]){const g=yield this['$']['assignmentsByCalendar'];f[J(0x9,-0xf)](...g[J(-0x27,-0x1b)]());}return e[J(-0x4f,-0x39)](f);}*[B(0x582,0x569)](){const d=yield this['$'][K(0x37e,0x35e)];const e=this['getProject']();const f=yield this['$'][K(0x367,0x345)];function K(a,b){return B(b- -0x25e,a);}const g=(yield this['$'][K(0x342,0x34e)])||(yield*this[K(0x31f,0x325)]())||f&&!e[K(0x364,0x354)];const h=new Map();for(const i of d){const j=yield i['$'][K(0x33c,0x318)];if(j&&(yield j['$'][K(0x321,0x338)])===ResourceType['Work']){const k=yield g?this['$'][K(0x353,0x344)]:j['$'][K(0x357,0x344)];let l=h['get'](k);if(!l){l=[];h['set'](k,l);}l[K(0x343,0x356)](i);}}return h;}*[B(0x5a1,0x58c)](){return{'ignoreResourceCalendar':![]};}*['useEventAvailabilityIterator'](){const d=yield this['$']['assignmentsByCalendar'];function L(a,b){return B(b- -0x309,a);}return d[L(0x268,0x26a)]>0x0;}*[B(0x57a,0x58a)](d,e=!![],f){if(!d)return null;function M(a,b){return B(a- -0xe1,b);}const g=yield this['$'][M(0x49a,0x4bf)];const h=yield this['$'][M(0x4cb,0x4bb)]||(yield*this['hasElapsedDuration']());if(yield*this[M(0x4b2,0x4d1)]()){const i=Object[M(0x4c8,0x4aa)](yield*this[M(0x4c0,0x4dc)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':M(0x4da,0x500)},f);let j;const k=yield*this[M(0x4d5,0x4eb)](i,(l,m,n)=>{j=e?l:m;return![];});if(k===CalendarIteratorResult['MaxRangeReached']||k===CalendarIteratorResult['FullRangeIterated']){const l=[yield this['$']['effectiveCalendar']];if(!i[M(0x4cb,0x4e5)]&&!h){l[M(0x4d3,0x4c7)](...g[M(0x4c7,0x4d1)]());}const m=SchedulerProEmptyCalendarEffect[M(0x4be,0x4c7)]({'event':this,'calendars':l,'date':d,'isForward':e});if((yield m)===EffectResolutionResult[M(0x4b9,0x4b6)]){yield Reject(m);}else{return null;}}return new Date(j);}else{return yield*b[M(0x499,0x4a6)][M(0x49c,0x495)](this,d,e);}}*['skipWorkingTime'](d,e,f,g,h){function N(a,b){return B(b- -0x2e2,a);}return yield*this[N(0x29a,0x2b5)](d,e,f,g,h);}*[B(0x579,0x590)](d,e,f,g,h=![]){function O(a,b){return B(a- -0x2b6,b);}if(!d||!e){return null;}if(yield*this[O(0x2dd,0x2c6)]()){const i=d[O(0x2e2,0x2cc)]()<=e[O(0x2e2,0x2df)]()||!h?0x1:-0x1;if(i<0x0){[d,e]=[e,d];}const j=Object[O(0x2f3,0x2ce)](yield*this[O(0x2eb,0x311)](),{'startDate':d,'endDate':e,'isForward':!![]},g,{'purpose':O(0x2fa,0x2e7)});const k=this[O(0x2f8,0x2d5)]()[O(0x2f9,0x2da)];let l=0x0;yield*this[O(0x300,0x2e1)](j,(m,n)=>{function P(a,b){return O(b- -0x41d,a);}l+=n[P(-0x148,-0x13b)]()-m['getTime']();if(k){const o=m['getTimezoneOffset']()-n['getTimezoneOffset']();l+=o*0x3c*0x3e8;}});if(!f)f=yield this['$'][O(0x2c2,0x2ae)];l=yield*this[O(0x2e8,0x2f3)](l,TimeUnit[O(0x2ea,0x2cd)],f);return i*l;}else{return yield*b[O(0x2c3,0x2ab)]['call'](this,d,e,f,g,h);}}*[B(0x597,0x594)](d,e=!![],f,g,h){if(f==null||isNaN(f)||d==null)return null;if(f===0x0)return d;g=g||(yield this['$'][Q(0x561,0x56a)]);const i=yield*this['convertDurationGen'](f,g,TimeUnit[Q(0x589,0x5a9)]);let j=d[Q(0x581,0x56b)]();function Q(a,b){return B(a- -0x17,b);}let k=i;const l=yield this['$'][Q(0x58b,0x56e)];const m=this[Q(0x5a3,0x598)];if(yield*this['useEventAvailabilityIterator']()){const n=Object[Q(0x592,0x5b6)](yield*this[Q(0x58a,0x597)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=this['getProject']()[Q(0x598,0x57d)];const p=yield*this[Q(0x59f,0x5c1)](n,(q,r,s)=>{const t=q[R(0x5cf,0x5d6)](),u=r[R(0x5d3,0x5d6)](),v=u-t,w=k-v;function R(a,b){return Q(b-0x55,a);}if(w<m){if(o){const x=e?q[R(0x5dc,0x5e8)]()-new Date(t+k)[R(0x5cf,0x5e8)]():new Date(u-k)['getTimezoneOffset']()-r['getTimezoneOffset']();k-=x*0x3c*0x3e8;}j=e?t+k:u-k;return![];}else{k-=v;if(o){const y=q[R(0x609,0x5e8)]()-r['getTimezoneOffset']();k-=y*0x3c*0x3e8;}}});return p===CalendarIteratorResult[Q(0x56e,0x580)]?new Date(j):null;}else{return l[Q(0x568,0x549)](d,i,e)[Q(0x55d,0x579)];}}}__decorate([field()],c[B(0x58e,0x5a0)],B(0x5a5,0x5cc),void 0x0);__decorate([field()],c[B(0x58e,0x593)],B(0x57b,0x588),void 0x0);__decorate([model_field({'type':B(0x590,0x56c)})],c[B(0x58e,0x5b2)],B(0x5ac,0x5ba),void 0x0);__decorate([calculate(B(0x5a5,0x5ad))],c[B(0x58e,0x5b0)],B(0x589,0x59d),null);function B(a,b){return _enb(a-0x39d,b);}__decorate([calculate(B(0x57b,0x55d))],c['prototype'],B(0x582,0x597),null);return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d5;let f=c[d];return f;};return _enb(a,b);}class SchedulerProEmptyCalendarEffect extends EmptyCalendarEffect{['getResolutions'](){function S(a,b){return _enb(a-0x1d,b);}if(!this[S(0x1f7,0x1f8)]()){return[IgnoreResourceCalendarEmptyCalendarEffectResolution[S(0x21f,0x227)]({'event':this[S(0x20b,0x1f0)]})];}return super[S(0x239,0x219)]();}}class IgnoreResourceCalendarEmptyCalendarEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enT(0x2e7,0x2fd)](){const {event:a}=this;function U(a,b){return _enT(a- -0x170,b);}return format(this['L'](U(0x172,0x16c)),a[U(0x16f,0x14b)]);}[_enT(0x30c,0x329)](){function V(a,b){return _enT(b- -0x3a7,a);}this[V(-0xa9,-0xbb)]['ignoreResourceCalendar']=!![];}}IgnoreResourceCalendarEmptyCalendarEffectResolution[_enT(0x318,0x32c)]=_enT(0x305,0x328);export{IgnoreResourceCalendarEmptyCalendarEffectResolution,SchedulerProEmptyCalendarEffect,SchedulerProHasAssignmentsMixin};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function W(a,b){return _enb(a-0x33b,b);}while(!![]){try{const d=-parseInt(W(0x590,0x556))/0x1+parseInt(W(0x565,0x5b3))/0x2+parseInt(W(0x5ab,0x5cd))/0x3+parseInt(W(0x533,0x505))/0x4*(parseInt(W(0x585,0x5ce))/0x5)+-parseInt(W(0x51a,0x4e4))/0x6+-parseInt(W(0x56b,0x5b8))/0x7+parseInt(W(0x571,0x58d))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3ca72));var __decorate=function(a,b,e,f){var g=arguments[X(-0x2f,-0x11)],h=g<0x3?b:f===null?f=Object[X(-0xb1,-0x6d)](b,e):f,j;function X(a,b){return _enb(b- -0x25e,a);}if(typeof Reflect===X(-0x75,-0x36)&&typeof Reflect['decorate']===X(-0xb8,-0x83))h=Reflect[X(0x37,-0xc)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1db;let f=c[d];return f;};return _enb(a,b);}import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';function _ena(){const b9=['proposedStartDateMin','FixedDuration','195786zBvmYS','calculateProjectedDuration','type','calculateProposedStartOffsetRaw','Backward','positioning','set','effortDriven','proposedStartOffset','proposedAssignmentDuration','FixedUnits','effortUnit','forEach','phantomEndOffset','addProposedValueFlag','proposedStartOffsets','hasInputOnlyOnEffort','expandTrailingAssignmentsByDuration','calculateStartDate','end','calculateProjectedXDateWithDuration','proposedEndOffset','calculateMaxAssignmentProposedEndDate','calculateProjectedXDate','selector','MAX_VALUE','timePhasedData','982650uPHumH','hasOnlyTimePhasedAssignments','timePhasedIntervalsCache','calculateProposedAssignmentDuration','endDate','calculateEffortPure','isChangingOnlyEffortOnAssignment','hasSomeInput','ion','project','proposedEndDateArgs','prepare','calculateProposedStartDate','calculateProposedEndOffsets','calculateProposedEndOffsetRaw','push','event','isManuallyScheduled','minAssignmentProposedStartDate','calculateProposedStartDateMin','function','has','Forward','proposedTotalUnits','1774092OkjfQV','hasPreviousEffortValue','resolution','isSegmented','timePhasedDispatcher','Normal','calculateAssignmentsTypeSelector','HasProposedValue','maxAssignmentProposedEndDate','startDate','calculateDuration','calculateProposedStartOffsets','isChangingOnlyDuration','prototype','shouldSkipNonWorkingTime','calculateAssignmentUnits','units','getProject','getOwnPropertyDescriptor','calculateMaxAssignmentProposedEndDateIncludingPhantom','progressing','call','minOffset','getCalendarsWorking','effectiveSchedulingMode','8CdfXmD','effectiveDirection','isTimePhased','forEachAvailabilityInterval','some','maxCalendarRange','$convertDuration','isForward','dispatcher','calculateTotalAssignmentsEffort','direction','calculateProposedEndDateMax','minAssignment','hasTimePhasedInput','hasInputOnAssignments','purpose','expandTrailingAssigmentsByEffort','skipNonWorkingTimeInDurationWhenSchedulingManually','calculateHasOnlyRegularAssignmentsRaw','ignoreSegments','collectInfo','calculateProposedTotalUnits','ignoreResourceCalendar','isDurationDefinedByEffort','hasProposedAssignments','isChangingOnlyEffort','calculateMinAssignmentProposedStartDate','getDateShifter','assignmentsByCalendar','calculateProjectedXDateByEffort','hasUnitsOnAllAssignments','calculateTimePhasedIntervalsCache','graph','useEventAvailabilityIterator','assignmentsTypeSelector','isChangingOnlyEndDate','getBaseOptionsForDurationCalculations','expandTrailingAssigmentsByDates','new','getBaseOptionsForEffortCalculations','add','calculateEffort','Millisecond','calculateSelector','assign','skipNonWorkingTime','proposedMirror','delete','object','assigned','419650hKxYqT','proposedEndDateMax','move','calculateTimePhasedDispatcher','resource','regularAssignmentsByCalendar','1685467NpTbOq','proposedEndDate','input','time','Unknown\x20duration\x20scenario','size','460736dffvCa','calculateRegularAssignmentsByCalendar','hasInputOnEndDate','proposedStartDate','write','start','effort','duration','proposedEndOffsets','collectAssignmentsByCalendar','hasPreviousValueForUnits','get','isConstrainedAlongDirection','hasInputOnDuration','assignment','hasInputOnEffort','calculateProposedEndDate','hasPhantomTimePhasedAssignments','getTime','unscheduled','964290XaPYud','calculateEndDate','calculateProjectedEffort','length','effectiveCalendarsCombination','hasOnlyRegularAssignments','effectiveCalendar','getCalendarsWorkStatus','decorate'];_ena=function(){return b9;};return _ena();}import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){this['timePhasedData']=[];}[_enY(0x555,0x59b)](a){function Z(a,b){return _enY(a,b- -0x21c);}this['timePhasedData'][Z(0x357,0x37f)]({'time':a[Z(0x297,0x2e8)],'type':Z(0x34f,0x33b),'assignment':a['assignment']},{'time':a[Z(0x393,0x374)],'type':Z(0x3b2,0x368),'assignment':a[Z(0x33e,0x344)]});}[_enY(0x558,0x597)](){function a0(a,b){return _enY(b,a- -0x3d);}this[a0(0x54e,0x590)]['sort']((a,b)=>{return a['time']-b['time'];});}[_enY(0x533,0x548)](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a1(0x52f,0x517)][a1(0x506,0x4f5)]-0x1){if(g[a1(0x4ee,0x4db)]<=c){e[a1(0x4f2,0x4cf)](g[a1(0x4de,0x4ec)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a1(0x4b0,0x4db)]){e[a1(0x516,0x4cf)](g[a1(0x526,0x4ec)]);if(f(d,c,e)===![])return-0x1;return b;}}function a1(a,b){return _enY(a,b- -0x74);}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a1(0x4cb,0x517)][a1(0x514,0x4f5)];k+=h){const n=this[a1(0x4cc,0x517)][k];const o=a?n[a1(0x4e6,0x4db)]>=d:n[a1(0x4ed,0x4db)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a1(0x4a0,0x4db)]<c:n['time']>c;if(!p){if(j[a1(0x4de,0x4f0)]()!==n['time'][a1(0x4d3,0x4f0)]()){if(a){if(f(j,n[a1(0x507,0x4db)],e)===![])return-0x1;}else{if(f(n[a1(0x4d8,0x4db)],j,e)===![])return-0x1;}}const q=a?n[a1(0x4d6,0x4ff)]==='start':n[a1(0x4d8,0x4ff)]==='end';if(q)e[a1(0x48a,0x4c8)](n[a1(0x517,0x4ec)]);else e[a1(0x4e4,0x4cf)](n['assignment']);}l=k;j=n['time'];}if(l===void 0x0){return k;}const m=this[a1(0x4f2,0x517)][l];if(a){e['delete'](m[a1(0x502,0x4ec)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a1(0x4d0,0x4cf)](m[a1(0x520,0x4ec)]);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){function a2(a,b){return _enY(a,b- -0x69f);}this[a2(-0xea,-0x103)]=null;this[a2(-0x18a,-0x183)]=null;this[a2(-0x11a,-0x13e)]=![];this[a2(-0x14a,-0x140)]=![];this[a2(-0x12a,-0x14b)]=![];this[a2(-0x150,-0x109)]=null;this[a2(-0x1c4,-0x17d)]=![];this[a2(-0x150,-0x1a3)]=![];}get[_enY(0x519,0x52d)](){function a3(a,b){return _enY(a,b-0x8a);}const a=this[a3(0x593,0x5a6)];return this[a3(0x5cc,0x5eb)]&&!Boolean(a['input'][a3(0x5fc,0x5e7)](StartVar)&VariableInputState[a3(0x59b,0x58c)])&&!Boolean(a[a3(0x603,0x5d8)][a3(0x5d0,0x5e7)](EndVar)&VariableInputState[a3(0x5cb,0x58c)])&&!Boolean(a['input'][a3(0x5c9,0x5e7)](DurationVar)&VariableInputState['HasProposedValue'])&&!a['hasTimePhasedInput'];}get[_enY(0x52f,0x507)](){const a=this[a4(0x5d6,0x59e)];function a4(a,b){return _enY(b,a-0xba);}return this[a4(0x619,0x65a)]&&!Boolean(a[a4(0x608,0x5f5)][a4(0x617,0x613)](StartVar)&VariableInputState[a4(0x5bc,0x5d0)])&&!Boolean(a[a4(0x608,0x634)][a4(0x617,0x655)](EndVar)&VariableInputState[a4(0x5bc,0x5eb)])&&!Boolean(a[a4(0x608,0x648)]['get'](EffortVar)&VariableInputState[a4(0x5bc,0x587)])&&!a[a4(0x5db,0x5c7)];}get[_enY(0x4e3,0x537)](){const a=this[a5(-0x1e2,-0x1a8)];const b=this[a5(-0x119,-0x12e)];function a5(a,b){return _enY(a,b- -0x6c4);}return this[a5(-0x14e,-0x170)]&&(!b||!b[0x0])&&!Boolean(a['input'][a5(-0x16e,-0x167)](StartVar)&VariableInputState[a5(-0x1e3,-0x1c2)])&&!Boolean(a['input'][a5(-0x14d,-0x167)](DurationVar)&VariableInputState[a5(-0x200,-0x1c2)])&&!Boolean(a[a5(-0x1b1,-0x176)][a5(-0x1b4,-0x167)](EffortVar)&VariableInputState['HasProposedValue'])&&!a[a5(-0x1c1,-0x1a3)];}*[_enY(0x55f,0x528)](){const a=this[a6(0x2b3,0x2c7)];this['hasInputOnEffort']=yield HasProposedNotPreviousValue(a['$'][a6(0x26f,0x258)]);this[a6(0x276,0x236)]=yield HasProposedNotPreviousValue(a['$'][a6(0x270,0x232)]);this[a6(0x26b,0x256)]=yield HasProposedNotPreviousValue(a['$'][a6(0x2a7,0x2a5)]);this[a6(0x233,0x22c)]=yield a['$'][a6(0x216,0x1f4)];function a6(a,b){return _enY(b,a- -0x2e9);}this[a6(0x2ad,0x279)]=yield ProposedArgumentsOf(a['$']['endDate']);this[a6(0x239,0x255)]=yield*a[a6(0x243,0x256)]();this[a6(0x213,0x253)]=yield HasPreviousValue(a['$'][a6(0x26f,0x28e)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a7(0x278,0x279)]=null;this['assigned']=null;this[a7(0x247,0x266)]=null;this[a7(0x269,0x218)]=null;function a7(a,b){return _enY(b,a- -0x324);}this[a7(0x20e,0x241)]=null;this[a7(0x23f,0x23a)]=null;}*['collectInfo'](){function a8(a,b){return _enY(a,b- -0xb);}const a=this['event'];const b=this['assigned']=yield a['$'][a8(0x534,0x53a)];if(b['size']===0x0){this[a8(0x53a,0x560)]=!![];this[a8(0x549,0x582)]=![];this[a8(0x511,0x558)]=![];this[a8(0x523,0x527)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a8(0x52c,0x560)]===null&&e[a8(0x52f,0x50b)]){this['hasOnlyRegularAssignments']=![];c++;}if(this[a8(0x5cf,0x582)]===null&&!e[a8(0x55e,0x50b)]){this[a8(0x5b5,0x582)]=![];c++;}if(this[a8(0x582,0x558)]===null&&e['isPhantomTimePhased']){this[a8(0x55f,0x558)]=!![];c++;}if(this[a8(0x51b,0x527)]===null&&!e[a8(0x579,0x551)]){this['hasUnitsOnAllAssignments']=![];c++;}if(c===0x4)break;}if(this[a8(0x553,0x560)]===null)this[a8(0x580,0x560)]=!![];if(this[a8(0x531,0x582)]===null)this['hasOnlyTimePhasedAssignments']=!![];if(this[a8(0x515,0x558)]===null)this[a8(0x594,0x558)]=![];if(this[a8(0x4e9,0x527)]===null)this[a8(0x573,0x527)]=!![];}}}function _enY(a,b){return _enb(b-0x31c,a);}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a['prototype'];class c extends a{*[a9(0x18c,0x156)](){const d=yield this['$'][aa(0x65,0x68)];let e=0x0;function aa(a,b){return a9(a- -0x143,b);}for(const f of d){const g=yield f['$']['resource'];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][aa(0x2b,0x14)]);e+=h;}return e;}*[a9(0x1fb,0x1dd)](){function ab(a,b){return a9(b- -0x35b,a);}return yield ProposedOrPreviousValueOf(this['$'][ab(-0x1e0,-0x1f4)]);}*[a9(0x1c5,0x1a8)](){function ac(a,b){return a9(a-0xc5,b);}return yield ProposedOrPreviousValueOf(this['$'][ac(0x2b8,0x265)]);}*[a9(0x202,0x21d)](){function ad(a,b){return a9(a- -0xe9,b);}const d=yield this['$'][ad(0xcf,0xdc)];const e=yield this['$'][ad(0x118,0x131)];return d<e?d:e??d;}*[a9(0x182,0x1ac)](){const d=yield this['$'][ae(0x405,0x3f1)];const e=yield this['$'][ae(0x3bb,0x3be)];function ae(a,b){return a9(a-0x255,b);}return d>e?d:e??d;}*[a9(0x169,0x132)](){function af(a,b){return a9(a-0x45a,b);}const d=yield this['$'][af(0x602,0x64a)];const e=new Map();let f;let g=Number[af(0x647,0x673)];for(const h of d){if(yield*h[af(0x5d3,0x5fa)]()){const i=yield*h[af(0x631,0x5e4)]();e[af(0x634,0x5ed)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a9(0x1fc,0x22f)](){const d=yield this['$'][ag(0x445,0x44d)];function ag(a,b){return a9(a-0x29d,b);}const e=new Map();let f;let g=Number[ag(0x48a,0x45d)];for(const h of d){if(yield*h[ag(0x416,0x3f7)]()){const i=yield*h[ag(0x49a,0x48e)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a9(0x164,0x18d)](){const d=new TimePhasedEventAssignmentTypeSelector();d[ah(0x20e,0x237)]=this;function ah(a,b){return a9(a-0xf,b);}yield*d[ah(0x19a,0x1bb)]();return d;}*['calculateSelector'](){function ai(a,b){return a9(b-0x227,a);}const d=new TimePhasedEventSelector();d[ai(0x479,0x426)]=this;yield*d[ai(0x3d2,0x3b2)]();return d;}*[a9(0x1ac,0x1d9)](d){const e=TimePhasedEventAssignmentDispatcher[aj(-0xd5,-0x86)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[aj(-0xe7,-0x12a)](d,this['$'][aj(-0x10b,-0xe5)],StartVar);e[aj(-0xe7,-0x10f)](d,this['$'][aj(-0x7f,-0x55)],EndVar);e[aj(-0xe7,-0x10e)](d,this['$'][aj(-0xb6,-0xc2)],DurationVar);e[aj(-0xe7,-0xe9)](d,this['$'][aj(-0xb7,-0xec)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];function aj(a,b){return a9(a- -0x272,b);}const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][aj(-0x10b,-0xc2)])]);h[aj(-0x74,-0xb7)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0x7f,-0xa7)])]);i[aj(-0x74,-0x99)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0xb6,-0xad)])]);j[aj(-0x74,-0x75)]([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g['some'](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[aj(-0xf7,-0x128)](([l,m])=>m)){e[aj(-0x90,-0xb9)](TimePhasedEndDate);}if(i[aj(-0xf7,-0xd8)](([l,m])=>m)){e[aj(-0x90,-0x5b)](TimePhasedDuration);}if(j[aj(-0xf7,-0x104)](([l,m])=>m)){e[aj(-0x90,-0x63)](TimePhasedEffort);e[aj(-0x90,-0xd9)](EffortVar);}return e;}*[a9(0x196,0x1ac)](){const d=new Map();function ak(a,b){return a9(b- -0x18b,a);}const e=new Map();const f=yield this['$'][ak(0x44,0x1d)];for(const g of f){if(yield*g['isTimePhased']()){e[ak(0x57,0x4f)](g,{'proposedStartOffset':yield g['$'][ak(0x61,0x51)],'proposedEndOffset':yield g['$'][ak(0x8a,0x5e)]});}}return function*(h,i){const j=String(i[al(0x1da,0x21a)]())+'/'+(h?'1':'0');let k=d[al(0x262,0x213)](j);if(k){return k;}function al(a,b){return ak(a,b-0x1de);}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l['calculateProjectedXDateWithDuration'](i,!![],m[al(0x252,0x22f)],TimeUnit['Millisecond']);n=yield*l[al(0x1da,0x1f7)](n,!![]);o=yield*l[al(0x25a,0x23e)](n,!![]);}else{const p=yield l['$'][al(0x27e,0x23f)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p['isUserTimePhased']?m[al(0x20c,0x23c)]:yield l['$'][al(0x21a,0x234)],TimeUnit[al(0x23e,0x1f4)]);n=yield*l[al(0x20e,0x23e)](o,![]);}if(n&&o)k[al(0x24d,0x251)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[al(0x24e,0x24d)]();d[al(0x21e,0x22d)](j,k);return k;};}*['calculateStartDate'](){const d=yield*this[am(0x359,0x354)]();function am(a,b){return a9(b-0x186,a);}if(d||(yield this['$'][am(0x30c,0x2e7)])){return yield*super[am(0x323,0x36c)]();}else{const e=yield this['$'][am(0x2d3,0x2fe)];const f=yield*this[am(0x386,0x347)](e[am(0x2d7,0x307)]);const g=yield this['$'][am(0x326,0x305)];const h=yield this['$'][am(0x29f,0x2e8)];const i=yield PreviousValueOf(this['$']['startDate']);if(!(yield*this[am(0x3d9,0x386)]())&&!(yield this['$'][am(0x393,0x34e)])&&f){if(g[am(0x32f,0x2e6)][am(0x31c,0x346)](_ene)===CalculateProposed&&i!=null&&!h[am(0x2e2,0x30a)]){const j=yield ProposedOrPrevious;if(e['direction']===Direction['Forward']){yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}else{if(j<i){yield*this['expandTrailingAssigmentsByDates'](i,j,![]);}}}return yield*super['calculateStartDate']();}else{if(e[am(0x2b9,0x307)]===Direction[am(0x2b2,0x2e2)]){const k=yield*super[am(0x3c0,0x36c)]();const l=yield this['$'][am(0x39e,0x387)];return l?l<k?l:k:k;}else{if(g[am(0x2a0,0x2e6)][am(0x337,0x346)](_ene)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[am(0x330,0x36e)](yield this['$'][am(0x352,0x379)],![],yield this['$']['duration']);}if(g['resolution'][am(0x351,0x346)](_ene)===CalculateProposed&&!h[am(0x35c,0x30a)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[am(0x335,0x322)](i,m,![]);}return yield*super['calculateStartDate']();}}}}*[a9(0x1ca,0x1fa)](){function an(a,b){return a9(a-0x2fc,b);}const d=yield*this[an(0x4ca,0x4ac)]();if(d||(yield this['$'][an(0x45d,0x451)])){return yield*super[an(0x4c6,0x4b7)]();}else{const e=yield this['$']['effectiveDirection'];const f=yield*this[an(0x4bd,0x4c6)](e['direction']);if(!(yield*this[an(0x4fc,0x511)]())&&!(yield this['$'][an(0x4c4,0x510)])&&f){return yield*super['calculateEndDate']();}else{if(e[an(0x47d,0x488)]===Direction[an(0x458,0x489)]){const g=yield this['$'][an(0x47b,0x4b1)];const h=yield this['$'][an(0x45e,0x415)];if(g[an(0x45c,0x4a6)][an(0x4bc,0x4d9)](_end)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[an(0x4e4,0x4e5)](yield this['$']['startDate'],!![],yield this['$']['duration']);}const i=yield PreviousValueOf(this['$'][an(0x4ef,0x539)]);if(g[an(0x45c,0x47b)]['get'](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[an(0x498,0x448)](i,j,!![]);}return yield*super[an(0x4c6,0x47d)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$'][an(0x462,0x498)];return l>k?l:k;}}}}*[a9(0x1f5,0x1c3)](){const d=yield this['$'][ao(0x80,0x37)];function ao(a,b){return a9(b- -0x171,a);}let e=![];for(const f of d){const g=yield f['$'][ao(0xb9,0x7b)];if(g[ao(0x35,0x53)])e=!![];if(g[ao(0x8f,0x85)]&&!g[ao(0x78,0x73)])return![];}return e;}*['hasUnitsOnAllAssignments'](){const d=yield this['$'][ap(0x559,0x584)];function ap(a,b){return a9(a-0x3c0,b);}return d[ap(0x555,0x55f)];}*[a9(0x190,0x164)](){const d=yield this['$'][aq(0x162,0x19e)];function aq(a,b){return a9(a- -0x8a,b);}return d[aq(0x106,0xc1)];}*[a9(0x16a,0x172)](){function ar(a,b){return a9(a-0x17e,b);}const d=yield this['$'][ar(0x36a,0x39b)];return d['isChangingOnlyDuration'];}*['isChangingOnlyEndDate'](){const d=yield this['$'][as(0x2ed,0x2bc)];function as(a,b){return a9(a-0x101,b);}return d[as(0x29b,0x278)];}*[a9(0x168,0x123)](){const d=yield*this[at(0x22a,0x227)]();function at(a,b){return a9(a-0x5c,b);}if(d||(yield this['$'][at(0x1bd,0x1d9)])){return yield*super['calculateDuration']();}else{const e=yield this['$'][at(0x1d4,0x1ff)];const f=e['direction']===Direction['Forward'];const g=yield this['$'][at(0x1db,0x20e)];const h=yield this['$']['timePhasedDispatcher'];if(g[at(0x1bc,0x1ca)][at(0x21c,0x1cb)](_enc)===durationFormula['formulaId']&&!h[at(0x1e0,0x203)]){const i=yield*super['calculateDuration']();yield*this[at(0x241,0x253)](i,f);return i;}if(g['resolution'][at(0x21c,0x24e)](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&!(h[at(0x20d,0x20c)][at(0x21c,0x1f1)](DurationVar)&VariableInputState[at(0x1c1,0x1d3)])){const j=yield ProposedOrPrevious;return j;}if(g[at(0x1bc,0x1a9)][at(0x21c,0x243)](_enc)===CalculateProposed&&!h[at(0x1e0,0x1dc)]&&h['input']['get'](DurationVar)&VariableInputState[at(0x1c1,0x1f5)]){const k=yield ProposedOrPrevious;yield*this['expandTrailingAssignmentsByDuration'](k,f);const l=yield*this['hasOnlyTimePhasedAssignments']();const m=yield this['$']['proposedAssignmentDuration'];return l?k>m?m:k:k;}if(!h[at(0x1e0,0x1bb)]){const n=yield ProposedOrPrevious;yield*this[at(0x241,0x264)](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[at(0x24c,0x22b)]();const p=yield this['$']['proposedAssignmentDuration'];if(o){return p;}else{return Math['max'](p,yield ProposedOrPrevious);}}else{throw new Error(at(0x20f,0x239));}}}*[a9(0x1a0,0x178)](){function au(a,b){return a9(a-0x1b0,b);}const d=yield this['$']['childEvents'];if(d[au(0x364,0x3b5)]>0x0||(yield this['$']['isSegmented']))return yield*super['calculateEffort']();else{const e=yield*this[au(0x326,0x346)]();const f=yield this['$'][au(0x343,0x385)];if(e===SchedulingMode['Normal']){if(f[au(0x364,0x321)]>0x0){if(yield*this['isChangingOnlyEffort']()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][au(0x36b,0x351)]);if(g<=h){return g;}else{const i=yield this['$']['effectiveDirection'];yield*this[au(0x337,0x2fb)](g,h,i[au(0x331,0x2ee)]===Direction[au(0x30c,0x31b)]);return g;}}else{return yield*this[au(0x3a4,0x371)]();}}else{return yield*super[au(0x350,0x390)]();}}else{return yield*this[au(0x3a4,0x35a)]();}}}*[a9(0x1f4,0x1c6)](){if(yield this['$'][av(0x23f,0x1f9)]){return yield*super[av(0x2ac,0x28c)]();}const d=yield this['$'][av(0x244,0x240)];function av(a,b){return a9(b-0x98,a);}if(d[av(0x256,0x24c)]>0x0){return yield*this[av(0x1f4,0x218)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][av(0x216,0x253)]);if(e===void 0x0){return yield*this[av(0x261,0x263)](yield this['$']['startDate'],yield this['$'][av(0x2cb,0x28b)]);}else{return e;}}}*[a9(0x180,0x186)](){let d=0x0;function aw(a,b){return a9(a- -0x2a3,b);}const e=yield this['$'][aw(-0xfb,-0x140)];for(const f of e){d+=yield*this[aw(-0x134,-0x175)]()[aw(-0x126,-0x13a)](yield f['$'][aw(-0xe8,-0xb0)],yield f['$'][aw(-0xc4,-0xf5)],TimeUnit['Millisecond']);}return yield*this[aw(-0x134,-0x16f)]()[aw(-0x126,-0x106)](d,TimeUnit['Millisecond'],yield this['$']['effortUnit']);}*['calculateAssignmentUnits'](d){function ax(a,b){return a9(a- -0x2bc,b);}return yield*d[ax(-0x14f,-0x1a3)](null);}*[a9(0x192,0x1aa)](d){function ay(a,b){return a9(a- -0x206,b);}if(yield*this[ay(-0x78,-0x58)]()){const e=this;const f=yield this['$']['effort'];return function*(g){function az(a,b){return ay(a-0x4be,b);}return yield*e[az(0x44c,0x438)](g,d,f);};}else{return yield*super[ay(-0x74,-0x4b)](d);}}*[a9(0x18e,0x1e3)](){const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][aA(0x4b8,0x4a3)];function aA(a,b){return a9(a-0x2dd,b);}return d!==SchedulingMode[aA(0x4b0,0x45d)]&&d!==SchedulingMode[aA(0x440,0x42c)]&&(e||d===SchedulingMode['FixedEffort'])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this[aA(0x477,0x498)]())||d===SchedulingMode[aA(0x4bb,0x4e5)]&&(yield*this[aA(0x4d2,0x4dc)]())&&(yield*this[aA(0x472,0x497)]());}*[a9(0x16c,0x16f)](){function aB(a,b){return a9(a-0x1c7,b);}if(yield*this[aB(0x355,0x39a)]()){return(yield this['$'][aB(0x382,0x36f)])>0x0;}else{return yield*super['shouldSkipNonWorkingTime']();}}*[a9(0x1e5,0x231)](d,e=!![]){const f=yield this['$'][aC(0x57c,0x528)];function aC(a,b){return a9(b-0x34b,a);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$']['endDate']);const h=yield*this['calculateProjectedXDateWithDuration'](g,!![],d-f,void 0x0,{'purpose':aC(0x539,0x524)});yield*this['expandTrailingAssigmentsByDates'](g,h,e);}else{const i=yield PreviousValueOf(this['$'][aC(0x46a,0x4b2)]);const j=yield*this[aC(0x530,0x533)](i,![],d-f,void 0x0,{'purpose':aC(0x546,0x524)});yield*this[aC(0x52c,0x4e7)](i,j,e);}}}*[a9(0x19c,0x188)](d,e,f=!![]){if(d[aD(-0xad,-0x79)]()===e[aD(-0xcc,-0x79)]()){return;}const g=yield this['$'][aD(-0xd9,-0x98)];const h=[];for(const i of g){if(yield*i['isTimePhased']()){if(f){const j=yield PreviousValueOf(i['$'][aD(0x7,-0x4d)]);if(j&&j[aD(-0xb4,-0x79)]()===d[aD(-0x4c,-0x79)]())h['push'](i);}else{const k=yield PreviousValueOf(i['$']['startDate']);if(k&&k['getTime']()===d[aD(-0x60,-0x79)]())h['push'](i);}}}function aD(a,b){return a9(b- -0x240,a);}this[aD(-0x11,-0x48)][aD(-0x97,-0x49)]({'commitFinalized':{'fn':()=>{function aE(a,b){return aD(b,a-0x406);}h[aE(0x3a6,0x35a)](l=>{function aF(a,b){return aE(a- -0x33f,b);}this[aF(0x1e,0x29)][aF(0x40,0x5d)](f?l['$'][aF(0x7a,0x77)]:l['$'][aF(-0x12,-0x57)],e,![]);});},'once':!![]}});}*[a9(0x187,0x147)](d,e,f=!![]){function aG(a,b){return a9(a-0x1ef,b);}const g=f?yield PreviousValueOf(this['$'][aG(0x3e2,0x395)]):yield PreviousValueOf(this['$'][aG(0x356,0x318)]);const h=yield this['$']['assigned'];const i=new Set();for(const l of h){if(yield*l[aG(0x368,0x36d)]()){if(f){const m=yield PreviousValueOf(l['$'][aG(0x3e2,0x396)]);if(m&&m[aG(0x3b6,0x401)]()===g[aG(0x3b6,0x3fe)]())i[aG(0x38e,0x36b)](l);}else{const n=yield PreviousValueOf(l['$'][aG(0x356,0x363)]);if(n&&n['getTime']()===g[aG(0x3b6,0x3b6)]())i[aG(0x38e,0x342)](l);}}}const j=yield*this[aG(0x3ad,0x3ed)](function*(o){function aH(a,b){return aG(b- -0x47b,a);}return i[aH(-0x172,-0x131)](o)||!(yield*o[aH(-0x118,-0x113)]());});const k=yield*this[aG(0x383,0x3c7)](g,f,d-e,void 0x0,void 0x0,j);this[aG(0x3e7,0x3cc)][aG(0x3e6,0x40f)]({'commitFinalized':{'fn':()=>{function aI(a,b){return aG(a- -0x52a,b);}i[aI(-0x15b,-0x197)](o=>{function aJ(a,b){return aI(b-0x2df,a);}this[aJ(0x131,0x13b)]['write'](f?o['$']['endDate']:o['$'][aJ(0x13f,0x10b)],k,![]);});},'once':!![]}});}*[a9(0x198,0x17f)](){return!![];}*[a9(0x1f2,0x226)](){const d=yield this['$'][aK(0x187,0x156)];function aK(a,b){return a9(b- -0x22,a);}return d[aK(0x1b3,0x15f)]===Direction['Forward']?yield*this['calculateProjectedDuration'](yield this['$'][aK(0x1f0,0x1b0)],(yield*this[aK(0x1f1,0x1a4)]())?yield*this[aK(0x17b,0x14f)]():yield this['$']['maxAssignmentProposedEndDate'],void 0x0,{'isForward':!![]}):yield*this[aK(0x19f,0x1b3)](yield this['$'][aK(0x1ce,0x1df)],yield this['$'][aK(0x187,0x188)],void 0x0,{'isForward':![]});}*[a9(0x1d5,0x210)](d,e,f,g,...h){function aL(a,b){return a9(a-0x211,b);}const i=yield this['$'][aL(0x389,0x38b)];const j=g?.[aL(0x38f,0x360)]!==void 0x0?g:i['direction']===Direction[aL(0x36d,0x392)]?Object[aL(0x3b4,0x37b)]({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});return yield*super[aL(0x3e6,0x3dc)](d,e,f,j,...h);}*[a9(0x1b6,0x1ef)](){return yield*this['collectAssignmentsByCalendar'](function*(d){function aM(a,b){return _enb(b-0x2b5,a);}return!(yield*d[aM(0x49d,0x4af)]());});}*['calculateAssignmentsByCalendar'](){function aN(a,b){return a9(a- -0x37,b);}return yield*this[aN(0x187,0x17c)]();}*[a9(0x1be,0x19b)](d){const e=yield this['$'][aO(0x55e,0x50b)];const f=yield this['$'][aO(0x4ad,0x4e4)];const g=this[aO(0x494,0x4ab)]();const h=yield*this[aO(0x51f,0x53c)]();function aO(a,b){return a9(b-0x33c,a);}const i=(yield this['$'][aO(0x477,0x4c9)])||h&&!g[aO(0x4a6,0x4c4)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aO(0x4e7,0x4e9)];const m=i||(yield k['$'][aO(0x47b,0x4c9)]);if(l){const n=m?e:yield l['$'][aO(0x51f,0x50b)];let o=j[aO(0x543,0x4fc)](n);if(!o){o=[];j[aO(0x4e8,0x516)](n,o);}o[aO(0x525,0x53a)](k);}}}return j;}*[a9(0x17a,0x1b3)](d,e){const f=d[aP(-0x16d,-0x17f)]??aP(-0x12b,-0x12c);if(f==='positioning'||(yield*this['hasOnlyRegularAssignments']())||d[aP(-0x14f,-0x17b)]||(yield this['$']['isSegmented'])){return yield*super[aP(-0x195,-0x18b)](d,e);}const g=d['isForward']!==![];function aP(a,b){return a9(b- -0x305,a);}const h=yield this['$'][aP(-0x16f,-0x136)];const i=this[aP(-0x1b9,-0x196)]();const j=yield*this[aP(-0x126,-0x105)]();const k=yield this['$'][aP(-0x139,-0x157)];const l=yield this['$'][aP(-0x18a,-0x138)];const m=(yield this['$'][aP(-0x18d,-0x178)])||d[aP(-0x160,-0x178)];const n=d['ignoreTimePhasedData']??![];const o=i[aP(-0x14b,-0x189)];if(o){d=Object[aP(-0x172,-0x162)]({'maxRange':o},d);}const p=yield this['$'][aP(-0x131,-0x114)];const q=yield*p(g,g?d[aP(-0x194,-0x19e)]:d['endDate']);let r=g?0x0:q[aP(-0x15d,-0x117)][aP(-0xef,-0x139)]-0x1;let s=g?d[aP(-0x175,-0x19e)]:d[aP(-0x146,-0x112)];const t=new Set();const u=l['forEachAvailabilityInterval'](d,(v,w,x)=>{const y=x[aQ(0x16b,0x119)]();const z=x[aQ(0x7a,0xbe)]();function aQ(a,b){return aP(a,b-0x24e);}r=q[aQ(0xb1,0xf4)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aQ(0xe4,0xf4)](g,r,s,g?w:v,t,(A,B,C)=>{function aR(a,b){return aQ(b,a-0x418);}if(y[aR(0x521,0x568)](h)&&(n||someInSet(C,D=>{function aS(a,b){return aR(b- -0x32a,a);}return m||D[aS(0x187,0x1c4)]||y['get'](D[aS(0x1cf,0x1e4)][aS(0x236,0x206)])||j&&!i[aS(0x1e1,0x1bf)];})||z[aR(0x4dc,0x4c5)](D=>k[aR(0x4bc,0x495)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*[a9(0x189,0x134)](){const d=yield this['$'][aT(-0x5d,-0x59)];function aT(a,b){return a9(b- -0x201,a);}for(const e of d){if(yield*e['isUserTimePhased']())return![];}return!![];}*[a9(0x1ce,0x21f)](){function aU(a,b){return a9(b-0x2c4,a);}const d=yield this['$'][aU(0x421,0x45d)];return d[aU(0x4a8,0x492)];}*[a9(0x1f0,0x19d)](){const d=yield this['$'][aV(-0x15c,-0x197)];function aV(a,b){return a9(a- -0x2f5,b);}return d[aV(-0x105,-0x146)];}*[a9(0x1c6,0x204)](){function aW(a,b){return a9(b- -0x2fe,a);}const d=yield this['$'][aW(-0x176,-0x165)];return d[aW(-0x113,-0x138)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;const e=yield this['$'][aX(0x276,0x240)];function aX(a,b){return a9(a-0xce,b);}for(const f of e){const g=yield f[aX(0x273,0x2c4)]['$']['startDate'];if(g&&g<d)d=g;}return d[aX(0x295,0x252)]()-MAX_DATE[aX(0x295,0x274)]()?d:null;}*[a9(0x1ea,0x230)](){let d=MIN_DATE;const e=yield this['$'][aY(0x416,0x3fa)];for(const f of e){const g=yield f[aY(0x413,0x420)]['$'][aY(0x461,0x472)];if(g&&g>d)d=g;}function aY(a,b){return a9(a-0x26e,b);}return d['getTime']()-MIN_DATE[aY(0x435,0x41a)]()?d:null;}*['calculateMaxAssignmentProposedEndDateIncludingPhantom'](){let d=MIN_DATE;const e=yield this['$'][aZ(0x136,0x13e)];function aZ(a,b){return a9(a- -0x72,b);}for(const f of e){const g=(yield*f[aZ(0x107,0xe1)]())?(yield*f['isUserTimePhased']())?yield f['proposedMirror']['$'][aZ(0x181,0x149)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d['getTime']()-MIN_DATE[aZ(0x155,0x181)]()?d:null;}*[a9(0x1cb,0x1a1)](d,e,f){const g=yield*this[b0(0x3e3,0x436)]();if(g||(yield this['$'][b0(0x413,0x3c9)])){return yield*super['calculateProjectedEffort'](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][b0(0x413,0x416)];const i=new Map();function b0(a,b){return a9(b-0x268,a);}for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][b0(0x3c2,0x3d6)];}i[b0(0x40c,0x442)](l,n);}let j=0x0;const k=Object[b0(0x43c,0x40b)](yield*this[b0(0x458,0x406)](),{'startDate':d,'endDate':e},{'purpose':b0(0x403,0x3da)});yield*this['forEachAvailabilityInterval'](k,(p,q,r,s)=>{function b1(a,b){return b0(a,b- -0x3bb);}const t=r[b1(0x64,0x22)]();const u=p[b1(0x53,0x74)](),v=q[b1(0x66,0x74)](),w=v-u;let x=0x0;for(const y of t){x+=i[b1(0xa9,0x6d)](y)||0x0;}if(!f){s[b1(0x7a,0x8d)](z=>{x+=z['units'];});}j+=x*w*0.01;});return yield*this[b0(0x3f5,0x3d7)]()[b0(0x3ea,0x3e5)](j,TimeUnit[b0(0x3c3,0x409)],yield this['$'][b0(0x42b,0x447)]);}*[a9(0x1e8,0x237)](d,e=!![],f,g,h){const i=yield*super[b2(0x20e,0x1dd)](d,e,f,g,h);function b2(a,b){return a9(b- -0xb,a);}if(yield this['$'][b2(0x196,0x156)])return i;const j=yield*this[b2(0x194,0x1e5)]();if(j){const k=yield this['$'][b2(0x161,0x16d)];if(k[b2(0x178,0x176)]===Direction[b2(0x167,0x151)]&&e===![]){const l=yield this['$'][b2(0x1e8,0x1d8)];const m=l[b2(0x1bd,0x169)];if(m>0x0){return yield*l[b2(0x159,0x178)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit[b2(0x1b1,0x196)]);}}else if(k['direction']===Direction[b2(0x1c6,0x1cd)]&&e===!![]){const n=yield this['$']['proposedEndOffsets'];const o=n['minOffset'];if(o>0x0){return yield*n[b2(0x138,0x178)][b2(0x1a1,0x1dd)](i,!![],o,TimeUnit[b2(0x1c8,0x196)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){function b3(a,b){return a9(a- -0x3c,b);}const d=yield*this[b3(0x13a,0x183)]();if(d===SchedulingMode[b3(0x197,0x1a3)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations'][b3(0x137,0x151)](this);}}*['calculateProjectedXDateByEffort'](d,e=!![],f,g,h,i){if(yield this['$'][b4(0x2b8,0x2d6)]){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b4(0x33f,0x330)];g=g!==void 0x0?g:yield this['$'][b4(0x35f,0x354)];const j=yield*this[b4(0x32a,0x2e4)]()[b4(0x2c4,0x2f2)](f,g,TimeUnit[b4(0x316,0x316)]);if(d==null||f==null)return null;let k=d[b4(0x2fd,0x33c)]();let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object['assign'](yield*this[b4(0x2be,0x310)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this[b4(0x312,0x343)]();if(h?.[b4(0x340,0x2fb)]==='positioning'||o){const s=new Map();const t=yield this['$'][b4(0x324,0x31d)];let u=0x0;const v=new Map();for(const y of t){const z=yield y['$'][b4(0x2f6,0x2e3)];u+=z;v[b4(0x393,0x34f)](y,z);}if(u===0x0){return yield*super[b4(0x2cb,0x309)](d,e,f,g,h,i);}for(const A of t){s['set'](A,j*v[b4(0x33f,0x335)](A)/u);}const w=yield this['$'][b4(0x314,0x308)];const x=new Map();for(const [B,C]of w){for(const D of C){x['set'](D,B);}}yield*this[b4(0x32d,0x2ef)](n,(E,F,G)=>{const H=E[b5(0x53b,0x505)](),I=F[b5(0x513,0x505)](),J=I-H;for(const K of t){const L=x[b5(0x4b6,0x4fe)](K);if(G[b5(0x546,0x50e)]()['get'](L)){const M=s[b5(0x4c3,0x4fe)](K);let N=v[b5(0x528,0x4fe)](K);const O=N*J*0.01;const P=M-O;if(!P||P<m){const Q=e?H+M/(0.01*N):I-M/(0.01*N);if(e&&Q>k||!e&&Q<k){k=Q;}s[b5(0x4a3,0x4e4)](K);}else{s[b5(0x55c,0x518)](K,M-O);}}}function b5(a,b){return b4(a,b-0x1c9);}if(s['size']===0x0)return![];});return new Date(k);}const p=i?i:yield this['$']['regularAssignmentsByCalendar'];const q=new Map();(yield this['$'][b4(0x2b5,0x308)])[b4(0x394,0x355)]((E,F)=>{function b6(a,b){return b4(b,a- -0x36a);}E[b6(-0x15,0x1c)](G=>q['set'](G,F));});function b4(a,b){return a9(b-0x175,a);}const r=new Map();for(const [E,F]of p){let G=0x0;for(const H of F){G+=yield H['$'][b4(0x311,0x2e3)];}r[b4(0x30b,0x34f)](E,G);}yield*this[b4(0x2b3,0x2ef)](n,(I,J,K,L)=>{const M=K[b7(0x41c,0x459)]();const N=K[b7(0x493,0x4b4)]();const O=I['getTime'](),P=J[b7(0x4c8,0x4ab)](),Q=P-O;function b7(a,b){return b4(a,b-0x16f);}let R=0x0;for(const U of M){R+=r[b7(0x472,0x4a4)](U)||0x0;}if(!i){L[b7(0x49a,0x4c4)](V=>{function b8(a,b){return b7(b,a-0x16e);}if(N[b8(0x612,0x65b)](q[b8(0x612,0x64b)](V)))R+=V[b8(0x5c0,0x5ea)];});}const S=R*Q*0.01;const T=l-S;if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}function a9(a,b){return _enY(b,a- -0x39d);}__decorate([field({'lazy':!![]})],c[a9(0x16b,0x163)],a9(0x1b8,0x1b3),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1a7)],'proposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x131)],a9(0x1d2,0x224),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x18d)],'proposedEndDateMax',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1a0)],a9(0x201,0x231),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x186)],a9(0x166,0x14e),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x165)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x15b)],a9(0x199,0x19a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a9(0x15d,0x14c),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a9(0x16b,0x183)],a9(0x162,0x198),void 0x0);__decorate([field()],c[a9(0x16b,0x19c)],'selector',void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x1bc)],a9(0x1e3,0x1f0),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x15d)],a9(0x1bd,0x1d3),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x16c)],a9(0x1ae,0x1a8),void 0x0);__decorate([field({'lazy':!![]})],c[a9(0x16b,0x19e)],a9(0x1f1,0x1d0),void 0x0);__decorate([calculate(a9(0x15d,0x11e))],c['prototype'],a9(0x18c,0x1c8),null);__decorate([calculate(a9(0x1b8,0x1fc))],c[a9(0x16b,0x1a2)],'calculateProposedStartDate',null);__decorate([calculate(a9(0x1b0,0x1df))],c['prototype'],a9(0x1c5,0x17c),null);__decorate([calculate(a9(0x1d2,0x193))],c['prototype'],a9(0x202,0x1f2),null);__decorate([calculate('proposedEndDateMax')],c['prototype'],a9(0x182,0x197),null);__decorate([calculate(a9(0x1e3,0x219))],c['prototype'],a9(0x169,0x1b9),null);__decorate([calculate(a9(0x1bd,0x1bf))],c[a9(0x16b,0x14d)],a9(0x1fc,0x1c0),null);__decorate([calculate('assignmentsTypeSelector')],c[a9(0x16b,0x124)],'calculateAssignmentsTypeSelector',null);__decorate([calculate(a9(0x1ec,0x23c))],c[a9(0x16b,0x14b)],a9(0x1a2,0x1cd),null);__decorate([calculate('timePhasedDispatcher')],c[a9(0x16b,0x15a)],'calculateTimePhasedDispatcher',null);__decorate([calculate(a9(0x1f1,0x244))],c[a9(0x16b,0x11f)],a9(0x196,0x166),null);__decorate([calculate(a9(0x1dd,0x19c))],c[a9(0x16b,0x14f)],'calculateProposedAssignmentDuration',null);__decorate([calculate('regularAssignmentsByCalendar')],c['prototype'],a9(0x1b6,0x169),null);__decorate([calculate(a9(0x201,0x1ce))],c['prototype'],a9(0x191,0x140),null);__decorate([calculate(a9(0x166,0x145))],c[a9(0x16b,0x173)],a9(0x1ea,0x1c9),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
1
+ (function(a,b){function W(a,b){return _enb(b- -0x382,a);}const c=a();while(!![]){try{const d=-parseInt(W(-0x20b,-0x1df))/0x1+-parseInt(W(-0x1e0,-0x192))/0x2+-parseInt(W(-0x160,-0x17d))/0x3*(-parseInt(W(-0x1be,-0x1e9))/0x4)+-parseInt(W(-0x1f7,-0x1d9))/0x5+parseInt(W(-0x1cc,-0x207))/0x6*(-parseInt(W(-0x1ae,-0x1c3))/0x7)+parseInt(W(-0x21a,-0x1e2))/0x8*(parseInt(W(-0x1a3,-0x1d3))/0x9)+-parseInt(W(-0x233,-0x1fc))/0xa*(-parseInt(W(-0x1ff,-0x1ce))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa4397));var __decorate=function(a,b,e,f){function X(a,b){return _enb(b- -0x31c,a);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[X(-0x13a,-0x164)](b,e):f,j;if(typeof Reflect===X(-0x16c,-0x12d)&&typeof Reflect[X(-0x105,-0x107)]===X(-0x13a,-0x15b))h=Reflect[X(-0xbd,-0x107)](a,b,e,f);else for(var k=a[X(-0x178,-0x134)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enY(a,b){return _enb(b-0xac,a);}function _ena(){const b7=['move','isChangingOnlyEffort','effortDriven','MAX_VALUE','isManuallyScheduled','push','hasInputOnEndDate','calculateProposedAssignmentDuration','hasInputOnDuration','units','assignmentsByCalendar','type','effectiveCalendar','expandTrailingAssigmentsByDates','isPhantomTimePhased','minAssignment','8KbbWHw','collectAssignmentsByCalendar','calculateTimePhasedDispatcher','timePhasedDispatcher','Millisecond','Forward','has','4112GGvGOM','progressing','hasOnlyRegularAssignments','961534Jiezvd','isDurationDefinedByEffort','calculateProposedEndOffsetRaw','graph','proposedEndDate','proposedEndOffsets','3540880BLwrFt','getBaseOptionsForDurationCalculations','duration','maxCalendarRange','direction','calculateDuration','18846Irsjkm','calculateAssignmentsTypeSelector','FixedUnits','call','minAssignmentProposedStartDate','11epJtep','calculateStartDate','assignmentsTypeSelector','assignment','getOwnPropertyDescriptor','isChangingOnlyEndDate','addProposedValueFlag','hasUnitsOnAllAssignments','resource','input','start','7168uFxhRi','regularAssignmentsByCalendar','function','calculateProposedStartDateMin','calculateRegularAssignmentsByCalendar','calculateProjectedEffort','ignoreResourceCalendar','delete','maxAssignmentProposedEndDate','hasInputOnAssignments','timePhasedIntervalsCache','assigned','expandTrailingAssignmentsByDuration','positioning','shouldSkipNonWorkingTime','isChangingOnlyDuration','timePhasedData','hasPhantomTimePhasedAssignments','forEach','effectiveDirection','skipNonWorkingTimeInDurationWhenSchedulingManually','isConstrainedAlongDirection','calculateAssignmentsByCalendar','proposedStartOffsets','project','collectInfo','getCalendarsWorkStatus','hasTimePhasedInput','proposedTotalUnits','getCalendarsWorking','hasProposedAssignments','effort','getProject','proposedEndOffset','write','calculateProposedStartOffsets','hasPreviousEffortValue','proposedEndDateMax','get','effortUnit','isSegmented','length','sort','calculateMaxAssignmentProposedEndDate','calculateProjectedXDate','calculateEndDate','proposedStartDate','getBaseOptionsForEffortCalculations','object','1468544JaUnIX','unscheduled','HasProposedValue','selector','hasOnlyTimePhasedAssignments','useEventAvailabilityIterator','ignoreTimePhasedData','event','calculateAssignmentUnits','calculateMinAssignmentProposedStartDate','some','proposedAssignmentDuration','endDate','proposedStartDateMin','proposedMirror','max','prototype','prepare','isTimePhased','calculateProposedStartOffsetRaw','startDate','1523391ZMpngB','resolution','effectiveSchedulingMode','set','calculateEffortPure','forEachAvailabilityInterval','hasSomeInput','time','calculateTimePhasedIntervalsCache','assign','dispatcher','calculateProjectedXDateWithDuration','ion','isForward','calculateProposedEndOffsets','getTime','decorate','add','calculateProposedStartDate','Normal','calculateProjectedDuration','isChangingOnlyEffortOnAssignment','calculateEffort','new','proposedEndDateArgs','childEvents','calculateProposedEndDate','size','1014SvKqji','minOffset','hasInputOnEffort','expandTrailingAssigmentsByEffort','formulaId','isUserTimePhased','$convertDuration','FixedEffort','end','calculateProjectedXDateByEffort','calculateSelector','11577910vBBTaD','getDateShifter','proposedStartOffset'];_ena=function(){return b7;};return _ena();}import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){this['timePhasedData']=[];}[_enY(0x24f,0x23a)](a){function Z(a,b){return _enY(a,b-0x1e);}this[Z(0x2a9,0x299)][Z(0x234,0x258)]({'time':a[Z(0x2b4,0x2ce)],'type':Z(0x283,0x288),'assignment':a['assignment']},{'time':a['endDate'],'type':Z(0x289,0x24d),'assignment':a['assignment']});}[_enY(0x2db,0x2ad)](){function a0(a,b){return _enY(a,b-0x2e8);}this[a0(0x569,0x563)][a0(0x5ae,0x57d)]((a,b)=>{function a1(a,b){return a0(a,b- -0x396);}return a[a1(0x21d,0x20a)]-b['time'];});}[_enY(0x283,0x235)](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a2(0x520,0x554)][a2(0x5a2,0x56d)]-0x1){if(g[a2(0x591,0x591)]<=c){e[a2(0x587,0x54b)](g['assignment']);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a2(0x597,0x591)]){e['delete'](g[a2(0x53c,0x53c)]);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a2(0x594,0x554)][a2(0x52d,0x56d)];k+=h){const n=this['timePhasedData'][k];const o=a?n[a2(0x564,0x591)]>=d:n[a2(0x595,0x591)]<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a2(0x57c,0x591)]<c:n[a2(0x550,0x591)]>c;if(!p){if(j['getTime']()!==n[a2(0x57f,0x591)][a2(0x54d,0x599)]()){if(a){if(f(j,n[a2(0x57a,0x591)],e)===![])return-0x1;}else{if(f(n[a2(0x54e,0x591)],j,e)===![])return-0x1;}}const q=a?n[a2(0x56b,0x519)]===a2(0x562,0x543):n[a2(0x53f,0x519)]===a2(0x51e,0x508);if(q)e['add'](n[a2(0x509,0x53c)]);else e[a2(0x57d,0x54b)](n['assignment']);}l=k;j=n['time'];}if(l===void 0x0){return k;}const m=this[a2(0x5a1,0x554)][l];if(a){e[a2(0x526,0x54b)](m['assignment']);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a2(0x4fe,0x54b)](m['assignment']);if(f(d,j,e)===![])return-0x1;}function a2(a,b){return _enY(a,b-0x2d9);}return l;}}class TimePhasedEventSelector{constructor(){this[a3(0xb2,0xed)]=null;function a3(a,b){return _enY(a,b- -0x1b6);}this[a3(0x133,0x105)]=null;this[a3(0x98,0x73)]=![];this[a3(0x55,0x87)]=![];this[a3(0xa1,0x85)]=![];this['proposedEndDateArgs']=null;this[a3(0xd8,0xbe)]=![];this[a3(0xd7,0xd9)]=![];}get[_enY(0x22f,0x236)](){function a4(a,b){return _enY(a,b- -0x166);}const a=this[a4(0x129,0x155)];return this['hasInputOnEffort']&&!Boolean(a[a4(0xbc,0x103)][a4(0x10e,0x12b)](StartVar)&VariableInputState[a4(0x151,0x138)])&&!Boolean(a[a4(0x13f,0x103)]['get'](EndVar)&VariableInputState[a4(0x170,0x138)])&&!Boolean(a[a4(0xe0,0x103)]['get'](DurationVar)&VariableInputState[a4(0x101,0x138)])&&!a[a4(0x149,0x120)];}get[_enY(0x287,0x27a)](){function a5(a,b){return _enY(a,b- -0x340);}const a=this[a5(-0x33,-0x85)];return this[a5(-0xb1,-0x103)]&&!Boolean(a['input']['get'](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a5(-0xb6,-0xd7)]['get'](EndVar)&VariableInputState[a5(-0x67,-0xa2)])&&!Boolean(a['input'][a5(-0x77,-0xaf)](EffortVar)&VariableInputState[a5(-0xcf,-0xa2)])&&!a[a5(-0x7b,-0xba)];}get['isChangingOnlyEndDate'](){const a=this[a6(-0x10d,-0xcd)];const b=this[a6(-0xcc,-0xbf)];function a6(a,b){return _enY(a,b- -0x388);}return this[a6(-0x133,-0x14d)]&&(!b||!b[0x0])&&!Boolean(a[a6(-0xdb,-0x11f)]['get'](StartVar)&VariableInputState[a6(-0xd1,-0xea)])&&!Boolean(a[a6(-0x10b,-0x11f)][a6(-0xfe,-0xf7)](DurationVar)&VariableInputState[a6(-0x106,-0xea)])&&!Boolean(a['input'][a6(-0x124,-0xf7)](EffortVar)&VariableInputState[a6(-0xa6,-0xea)])&&!a['hasTimePhasedInput'];}*[_enY(0x2d4,0x284)](){const a=this['event'];this[a7(0x154,0x12b)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1b5,0x17c)]);function a7(a,b){return _enY(b,a- -0xd5);}this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$']['duration']);this[a7(0x166,0x1a1)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1d3,0x196)]);this['dispatcher']=yield a['$']['timePhasedDispatcher'];this[a7(0x1f4,0x1f8)]=yield ProposedArgumentsOf(a['$'][a7(0x1d3,0x209)]);this[a7(0x19f,0x1dd)]=yield*a[a7(0x1b4,0x1f8)]();this[a7(0x1ba,0x1d4)]=yield HasPreviousValue(a['$']['effort']);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a8(0x43b,0x422)]=null;this[a8(0x40e,0x420)]=null;this[a8(0x3e6,0x422)]=null;function a8(a,b){return _enY(b,a-0x198);}this['hasOnlyTimePhasedAssignments']=null;this[a8(0x3ff,0x409)]=null;this[a8(0x414,0x3fc)]=null;}*[_enY(0x270,0x284)](){function a9(a,b){return _enY(a,b- -0x315);}const a=this['event'];const b=this[a9(-0xd6,-0x9f)]=yield a['$'][a9(-0xb0,-0x9f)];if(b[a9(-0x64,-0x49)]===0x0){this[a9(-0x81,-0xc7)]=!![];this[a9(-0xc1,-0x75)]=![];this['hasPhantomTimePhasedAssignments']=![];this[a9(-0xc7,-0xae)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a9(-0xb2,-0xc7)]===null&&e[a9(-0xb1,-0x67)]){this[a9(-0xf3,-0xc7)]=![];c++;}if(this[a9(-0x94,-0x75)]===null&&!e[a9(-0x15,-0x67)]){this['hasOnlyTimePhasedAssignments']=![];c++;}if(this[a9(-0x5d,-0x99)]===null&&e[a9(-0x99,-0xd2)]){this[a9(-0x99,-0x99)]=!![];c++;}if(this['hasUnitsOnAllAssignments']===null&&!e['hasPreviousValueForUnits']){this[a9(-0x5b,-0xae)]=![];c++;}if(c===0x4)break;}if(this['hasOnlyRegularAssignments']===null)this[a9(-0x7a,-0xc7)]=!![];if(this[a9(-0x6a,-0x75)]===null)this[a9(-0x3f,-0x75)]=!![];if(this[a9(-0xaf,-0x99)]===null)this[a9(-0xd0,-0x99)]=![];if(this['hasUnitsOnAllAssignments']===null)this[a9(-0x88,-0xae)]=!![];}}}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x17b;let f=c[d];return f;};return _enb(a,b);}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a['prototype'];class c extends a{*['calculateProposedTotalUnits'](){const d=yield this['$'][aa(0x163,0x11f)];function aa(a,b){return _enb(a- -0x67,b);}let e=0x0;for(const f of d){const g=yield f['$'][aa(0x155,0x196)];if(!g)continue;const h=(yield ProposedOrPreviousValueOf(f['$'][aa(0x12b,0x17c)]))??0x64;e+=h;}return e;}*[ab(0xd0,0xf7)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[ab(0x10b,0xff)](){return yield ProposedOrPreviousValueOf(this['$']['endDate']);}*[ab(0x5b,0xa2)](){const d=yield this['$']['proposedStartDate'];function ac(a,b){return ab(a,b-0x45b);}const e=yield this['$'][ac(0x4c4,0x4ee)];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$'][ad(-0x8,-0x1f)];const e=yield this['$'][ad(0x18,0x4f)];function ad(a,b){return ab(b,a- -0x8f);}return d>e?d:e??d;}*[ab(0x77,0xc2)](){function ae(a,b){return ab(b,a-0x331);}const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[ae(0x39d,0x380)];for(const h of d){if(yield*h[ae(0x413,0x455)]()){const i=yield*h[ae(0x414,0x3d9)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x100,0xf3)](){const d=yield this['$'][af(0x58c,0x576)];const e=new Map();function af(a,b){return ab(b,a-0x4e2);}let f;let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[af(0x5c4,0x5e4)]()){const i=yield*h[af(0x567,0x525)]();e[af(0x5ca,0x5cb)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x7a,0x90)](){const d=new TimePhasedEventAssignmentTypeSelector();d[ag(-0x1b1,-0x174)]=this;yield*d['collectInfo']();function ag(a,b){return ab(a,b- -0x24b);}return d;}*[ab(0x17,0x65)](){const d=new TimePhasedEventSelector();d[ah(-0x12b,-0xf7)]=this;function ah(a,b){return ab(a,b- -0x1ce);}yield*d[ah(-0xe7,-0x116)]();return d;}*[ab(0x5a,0x7b)](d){const e=TimePhasedEventAssignmentDispatcher[ai(0x8a,0xa7)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e['collectInfo'](d,this['$'][ai(0xcc,0x8f)],StartVar);e['collectInfo'](d,this['$']['endDate'],EndVar);e['collectInfo'](d,this['$'][ai(0x23,0x36)],DurationVar);e[ai(0x6e,0x63)](d,this['$']['effort'],EffortVar);const f=yield this['$'][ai(0x9b,0x55)];const g=[];function ai(a,b){return ab(a,b- -0x55);}const h=[];const i=[];const j=[];for(const k of f){g[ai(0x52,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8d,0x8f)])]);h[ai(0x64,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8f,0x87)])]);i['push']([null,yield HasProposedNotPreviousValue(k['$'][ai(0x36,0x36)])]);j[ai(-0x2,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x1e,0x69)])]);}if(g[ai(0x66,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[ai(0x75,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i['some'](([l,m])=>m)){e[ai(0x58,0x45)](TimePhasedDuration);}if(j[ai(0xcd,0x85)](([l,m])=>m)){e[ai(-0xd,0x45)](TimePhasedEffort);e[ai(0x82,0x45)](EffortVar);}return e;}*[ab(0x110,0xed)](){const d=new Map();function aj(a,b){return ab(a,b-0x49b);}const e=new Map();const f=yield this['$'][aj(0x54b,0x545)];for(const g of f){if(yield*g[aj(0x543,0x57d)]()){e[aj(0x531,0x583)](g,{'proposedStartOffset':yield g['$'][aj(0x547,0x503)],'proposedEndOffset':yield g['$']['proposedEndOffset']});}}return function*(h,i){function ak(a,b){return aj(b,a- -0x523);}const j=String(i['getTime']())+'/'+(h?'1':'0');let k=d[ak(0x3d,0xb)](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x68,0x4e)](i,!![],m[ak(-0x20,-0x5b)],TimeUnit[ak(-0xb,-0x2a)]);n=yield*l['skipNonWorkingTime'](n,!![]);o=yield*l[ak(0x43,0x56)](n,!![]);}else{const p=yield l['$']['selector'];o=yield*l[ak(0x68,0x8c)](i,![],p[ak(-0x28,-0xc)]?m[ak(0x38,0x89)]:yield l['$']['phantomEndOffset'],TimeUnit[ak(-0xb,0xe)]);n=yield*l[ak(0x43,0x8b)](o,![]);}if(n&&o)k[ak(-0x1a,-0x3a)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k['prepare']();d[ak(0x60,0x61)](j,k);return k;};}*[ab(0xcf,0x95)](){function al(a,b){return ab(b,a- -0x136);}const d=yield*this['hasOnlyRegularAssignments']();if(d||(yield this['$'][al(-0x6f,-0x70)])){return yield*super['calculateStartDate']();}else{const e=yield this['$'][al(-0x84,-0x5d)];const f=yield*this[al(-0x82,-0x3d)](e['direction']);const g=yield this['$'][al(-0x47,-0x7f)];const h=yield this['$']['timePhasedDispatcher'];const i=yield PreviousValueOf(this['$'][al(-0x52,-0xf)]);if(!(yield*this[al(-0xc9,-0xd5)]())&&!(yield this['$'][al(-0x65,-0x63)])&&f){if(g[al(-0x50,-0x67)]['get'](_ene)===CalculateProposed&&i!=null&&!h[al(-0x7c,-0xb8)]){const j=yield ProposedOrPrevious;if(e[al(-0xa9,-0x60)]===Direction[al(-0xb8,-0xff)]){yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}else{if(j<i){yield*this[al(-0xc0,-0xae)](i,j,![]);}}}return yield*super[al(-0xa1,-0xaa)]();}else{if(e['direction']===Direction[al(-0xb8,-0x78)]){const k=yield*super[al(-0xa1,-0x6b)]();const l=yield this['$']['minAssignmentProposedStartDate'];return l?l<k?l:k:k;}else{if(g[al(-0x50,-0x3)]['get'](_ene)===CalculateProposed&&h[al(-0x7c,-0xb5)]){return yield*this['calculateProjectedXDateWithDuration'](yield this['$'][al(-0x5a,-0x50)],![],yield this['$']['duration']);}if(g[al(-0x50,-0x79)][al(-0x71,-0xbf)](_ene)===CalculateProposed&&!h[al(-0x7c,-0x5e)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(-0xc0,-0xb7)](i,m,![]);}return yield*super[al(-0xa1,-0x6a)]();}}}}*[ab(0xde,0xcc)](){const d=yield*this['hasOnlyRegularAssignments']();function am(a,b){return ab(b,a- -0x286);}if(d||(yield this['$'][am(-0x1bf,-0x173)])){return yield*super['calculateEndDate']();}else{const e=yield this['$'][am(-0x1d4,-0x1c8)];const f=yield*this[am(-0x1d2,-0x1f5)](e[am(-0x1f9,-0x1d2)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$'][am(-0x1b5,-0x1b8)])&&f){return yield*super[am(-0x1ba,-0x1c0)]();}else{if(e['direction']===Direction[am(-0x208,-0x217)]){const g=yield this['$'][am(-0x197,-0x198)];const h=yield this['$'][am(-0x20a,-0x25d)];if(g['resolution']['get'](_end)===CalculateProposed&&h[am(-0x1cc,-0x1f3)]){return yield*this[am(-0x196,-0x18e)](yield this['$']['startDate'],!![],yield this['$'][am(-0x1fb,-0x233)]);}const i=yield PreviousValueOf(this['$'][am(-0x1aa,-0x1e4)]);if(g[am(-0x1a0,-0x172)][am(-0x1c1,-0x1b1)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[am(-0x210,-0x1e6)](i,j,!![]);}return yield*super[am(-0x1ba,-0x185)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$']['maxAssignmentProposedEndDate'];return l>k?l:k;}}}}*[ab(0xc0,0xfa)](){const d=yield this['$'][an(0x4a2,0x459)];let e=![];for(const f of d){const g=yield f['$'][an(0x4cb,0x4aa)];if(g[an(0x455,0x481)])e=!![];if(g[an(0x4e3,0x515)]&&!g['hasInputOnlyOnEffort'])return![];}function an(a,b){return ab(b,a-0x3f8);}return e;}*[ab(0xde,0x9b)](){const d=yield this['$'][ao(0x2b5,0x295)];function ao(a,b){return ab(a,b-0x1ff);}return d[ao(0x2df,0x29a)];}*[ab(0x8f,0x6a)](){const d=yield this['$'][ap(0x41e,0x439)];function ap(a,b){return ab(a,b-0x366);}return d[ap(0x388,0x3d0)];}*[ab(0xa8,0xae)](){const d=yield this['$'][aq(0x1d,-0x2)];function aq(a,b){return ab(b,a- -0xb6);}return d[aq(-0x8,-0x16)];}*[ab(0x99,0x99)](){const d=yield this['$'][ar(-0x164,-0x121)];function ar(a,b){return ab(b,a- -0x237);}return d['isChangingOnlyEndDate'];}*[ab(0xdb,0x8e)](){const d=yield*this[as(-0x241,-0x23d)]();function as(a,b){return ab(a,b- -0x2bf);}if(d||(yield this['$'][as(-0x1f7,-0x1f8)])){return yield*super[as(-0x1e7,-0x231)]();}else{const e=yield this['$']['effectiveDirection'];const f=e[as(-0x1ec,-0x232)]===Direction[as(-0x25e,-0x241)];const g=yield this['$'][as(-0x1bc,-0x1d0)];const h=yield this['$'][as(-0x267,-0x243)];if(g[as(-0x218,-0x1d9)][as(-0x1bc,-0x1fa)](_enc)===durationFormula[as(-0x224,-0x260)]&&!h[as(-0x1b9,-0x205)]){const i=yield*super[as(-0x22f,-0x231)]();yield*this[as(-0x1fb,-0x214)](i,f);return i;}if(g[as(-0x1d0,-0x1d9)]['get'](_enc)===CalculateProposed&&!h[as(-0x1ff,-0x205)]&&!(h['input']['get'](DurationVar)&VariableInputState[as(-0x240,-0x1ed)])){const j=yield ProposedOrPrevious;return j;}if(g[as(-0x212,-0x1d9)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[as(-0x1d8,-0x222)][as(-0x1e6,-0x1fa)](DurationVar)&VariableInputState[as(-0x19a,-0x1ed)]){const k=yield ProposedOrPrevious;yield*this[as(-0x206,-0x214)](k,f);const l=yield*this[as(-0x20a,-0x1eb)]();const m=yield this['$'][as(-0x1e6,-0x1e4)];return l?k>m?m:k:k;}if(!h[as(-0x1e6,-0x205)]){const n=yield ProposedOrPrevious;yield*this[as(-0x1ee,-0x214)](n,f);return n;}else if(h[as(-0x1c5,-0x205)]){const o=yield*this[as(-0x1c7,-0x1eb)]();const p=yield this['$'][as(-0x1ef,-0x1e4)];if(o){return p;}else{return Math[as(-0x211,-0x1e0)](p,yield ProposedOrPrevious);}}else{throw new Error('Unknown\x20duration\x20scenario');}}}*[ab(0xe3,0xfb)](){function at(a,b){return ab(a,b-0xd7);}const d=yield this['$'][at(0x1ab,0x1d5)];if(d['size']>0x0||(yield this['$'][at(0x1dd,0x19e)]))return yield*super[at(0x199,0x1d2)]();else{const e=yield*this['effectiveSchedulingMode']();const f=yield this['$'][at(0x166,0x14a)];if(e===SchedulingMode[at(0x18e,0x1cf)]){if(f[at(0x1b1,0x1d7)]>0x0){if(yield*this[at(0x187,0x141)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$']['effort']);if(g<=h){return g;}else{const i=yield this['$'][at(0x1b8,0x189)];yield*this[at(0x15e,0x135)](g,h,i[at(0x177,0x164)]===Direction[at(0x12f,0x155)]);return g;}}else{return yield*this[at(0x1d9,0x1c0)]();}}else{return yield*super[at(0x1da,0x1d2)]();}}else{return yield*this[at(0x19e,0x1c0)]();}}}*['calculateEffortPure'](){if(yield this['$'][au(0x2ac,0x2ec)]){return yield*super['calculateEffortPure']();}function au(a,b){return ab(b,a-0x1e5);}const d=yield this['$'][au(0x28f,0x28a)];if(d['size']>0x0){return yield*this['calculateTotalAssignmentsEffort']();}else{const e=yield ProposedOrPreviousValueOf(this['$'][au(0x2a3,0x2ec)]);if(e===void 0x0){return yield*this[au(0x289,0x24d)](yield this['$'][au(0x2c9,0x312)],yield this['$'][au(0x2c1,0x272)]);}else{return e;}}}*['calculateTotalAssignmentsEffort'](){let d=0x0;function av(a,b){return ab(b,a- -0xb7);}const e=yield this['$'][av(-0xd,-0x31)];for(const f of e){d+=yield*this[av(0x8,-0x18)]()[av(-0x56,-0x75)](yield f['$'][av(0x7,0x2f)],yield f['$'][av(0xf,-0x3e)],TimeUnit[av(-0x3a,-0x67)]);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[av(-0x3a,-0x48)],yield this['$'][av(0xf,0x47)]);}*[ab(0x10b,0xd8)](d){function aw(a,b){return ab(b,a-0x264);}return yield*d[aw(0x33c,0x384)](null);}*[ab(0x7c,0x67)](d){function ax(a,b){return ab(a,b-0x2ac);}if(yield*this[ax(0x320,0x330)]()){const e=this;const f=yield this['$']['effort'];return function*(g){function ay(a,b){return ax(a,b- -0x193);}return yield*e[ay(0x190,0x17d)](g,d,f);};}else{return yield*super[ax(0x33f,0x313)](d);}}*[ab(0xbc,0x84)](){function az(a,b){return ab(b,a- -0xc);}const d=yield*this[az(0xdb,0x101)]();const e=yield this['$'][az(0x5f,0x16)];return d!==SchedulingMode['FixedDuration']&&d!==SchedulingMode[az(0xec,0xf7)]&&(e||d===SchedulingMode[az(0x56,0x63)])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this[az(0x8d,0x96)]())||d===SchedulingMode[az(0x85,0x9f)]&&(yield*this[az(0xee,0x115)]())&&(yield*this['hasUnitsOnAllAssignments']());}*[ab(0xf7,0xad)](){function aA(a,b){return ab(a,b- -0xb6);}if(yield*this[aA(-0x69,-0x32)]()){return(yield this['$'][aA(0x44,0x8)])>0x0;}else{return yield*super[aA(-0xa,-0x9)]();}}*[ab(0xe2,0xab)](d,e=!![]){const f=yield this['$'][aB(0x46,0x7a)];if(f==null)return;function aB(a,b){return ab(a,b- -0x61);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aB(0xa3,0x7b)]);const h=yield*this[aB(0xb2,0x8f)](g,!![],d-f,void 0x0,{'purpose':aB(0x2f,0x4b)});yield*this[aB(0x1b,0x15)](g,h,e);}else{const i=yield PreviousValueOf(this['$']['startDate']);const j=yield*this[aB(0x8b,0x8f)](i,![],d-f,void 0x0,{'purpose':aB(0x9d,0x4b)});yield*this['expandTrailingAssigmentsByDates'](i,j,e);}}}*['expandTrailingAssigmentsByDates'](d,e,f=!![]){function aC(a,b){return ab(b,a-0x3cb);}if(d[aC(0x4bf,0x4cd)]()===e[aC(0x4bf,0x4ac)]()){return;}const g=yield this['$'][aC(0x475,0x49e)];const h=[];for(const i of g){if(yield*i[aC(0x4ad,0x47e)]()){if(f){const j=yield PreviousValueOf(i['$'][aC(0x4a7,0x45c)]);if(j&&j[aC(0x4bf,0x4eb)]()===d[aC(0x4bf,0x49a)]())h[aC(0x439,0x437)](i);}else{const k=yield PreviousValueOf(i['$'][aC(0x4af,0x4ae)]);if(k&&k[aC(0x4bf,0x4f1)]()===d[aC(0x4bf,0x48c)]())h[aC(0x439,0x41e)](i);}}}this['project'][aC(0x4bc,0x4eb)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aC(a- -0x252,b);}h[aD(0x22a,0x259)](l=>{function aE(a,b){return aD(a-0x132,b);}this['graph'][aE(0x36c,0x37d)](f?l['$'][aE(0x387,0x37e)]:l['$']['startDate'],e,![]);});},'once':!![]}});}*[ab(0x96,0x5e)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aF(0x52b,0x4da)]):yield PreviousValueOf(this['$'][aF(0x533,0x4eb)]);const h=yield this['$'][aF(0x4f9,0x4ae)];const i=new Set();for(const l of h){if(yield*l[aF(0x531,0x509)]()){if(f){const m=yield PreviousValueOf(l['$'][aF(0x52b,0x570)]);if(m&&m[aF(0x543,0x53a)]()===g['getTime']())i[aF(0x545,0x516)](l);}else{const n=yield PreviousValueOf(l['$']['startDate']);if(n&&n[aF(0x543,0x4f5)]()===g[aF(0x543,0x504)]())i[aF(0x545,0x4f2)](l);}}}const j=yield*this[aF(0x4c9,0x511)](function*(o){function aG(a,b){return aF(a-0x93,b);}return i[aG(0x561,0x536)](o)||!(yield*o[aG(0x5c4,0x574)]());});const k=yield*this['calculateProjectedXDateByEffort'](g,f,d-e,void 0x0,void 0x0,j);function aF(a,b){return ab(b,a-0x44f);}this[aF(0x506,0x541)][aF(0x540,0x500)]({'commitFinalized':{'fn':()=>{function aH(a,b){return aF(a- -0x174,b);}i[aH(0x38c,0x38b)](o=>{function aI(a,b){return aH(b-0x1c4,a);}this[aI(0x4d3,0x525)][aI(0x533,0x560)](f?o['$'][aI(0x583,0x57b)]:o['$'][aI(0x597,0x583)],k,![]);});},'once':!![]}});}*[ab(0xcb,0xd5)](){return!![];}*[ab(0xa3,0x70)](){function aJ(a,b){return ab(a,b- -0xee);}const d=yield this['$'][aJ(-0x1d,-0x3c)];return d['direction']===Direction[aJ(-0x2f,-0x70)]?yield*this[aJ(-0x12,0xb)](yield this['$'][aJ(0xf,-0x11)],(yield*this[aJ(-0x4,-0x3e)]())?yield*this['calculateMaxAssignmentProposedEndDateIncludingPhantom']():yield this['$'][aJ(-0x9a,-0x47)],void 0x0,{'isForward':!![]}):yield*this[aJ(0x19,0xb)](yield this['$'][aJ(-0x7e,-0x5b)],yield this['$']['proposedEndDateMax'],void 0x0,{'isForward':![]});}*[ab(0xd5,0xf9)](d,e,f,g,...h){function aK(a,b){return ab(b,a- -0x9);}const i=yield this['$']['effectiveDirection'];const j=g?.[aK(0xe9,0x10b)]!==void 0x0?g:i['direction']===Direction[aK(0x75,0x3e)]?Object[aK(0xe5,0x10b)]({},g,{'isForward':!![]}):Object[aK(0xe5,0xd9)]({},g,{'isForward':![]});return yield*super[aK(0xf0,0xf4)](d,e,f,j,...h);}*['calculateRegularAssignmentsByCalendar'](){return yield*this['collectAssignmentsByCalendar'](function*(d){return!(yield*d['isTimePhased']());});}*[ab(0xbd,0xb5)](){return yield*this['collectAssignmentsByCalendar']();}*[ab(0x79,0x7a)](d){const e=yield this['$'][aL(0x21b,0x236)];const f=yield this['$']['assigned'];const g=this[aL(0x265,0x242)]();const h=yield*this[aL(0x213,0x201)]();const i=(yield this['$'][aL(0x24b,0x26b)])||h&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aL(0x242,0x20b)];const m=i||(yield k['$'][aL(0x24b,0x204)]);if(l){const n=m?e:yield l['$']['effectiveCalendar'];let o=j[aL(0x26b,0x237)](n);if(!o){o=[];j[aL(0x28e,0x245)](n,o);}o[aL(0x214,0x21d)](k);}}}function aL(a,b){return ab(b,a-0x1a6);}return j;}*[ab(0x134,0xea)](d,e){function aM(a,b){return ab(a,b-0x4d9);}const f=d['purpose']??'positioning';if(f==='positioning'||(yield*this[aM(0x531,0x55b)]())||d['ignoreSegments']||(yield this['$']['isSegmented'])){return yield*super[aM(0x5db,0x5c3)](d,e);}const g=d[aM(0x5a0,0x5cb)]!==![];const h=yield this['$'][aM(0x593,0x54e)];const i=this['getProject']();const j=yield*this[aM(0x526,0x546)]();const k=yield this['$'][aM(0x56f,0x579)];const l=yield this['$']['effectiveCalendarsCombination'];const m=(yield this['$'][aM(0x590,0x57e)])||d[aM(0x530,0x57e)];const n=d[aM(0x5a9,0x5af)]??![];const o=i[aM(0x531,0x565)];if(o){d=Object[aM(0x5af,0x5c7)]({'maxRange':o},d);}const p=yield this['$'][aM(0x5bb,0x582)];const q=yield*p(g,g?d[aM(0x59e,0x5bd)]:d[aM(0x5cc,0x5b5)]);let r=g?0x0:q[aM(0x5c8,0x588)][aM(0x5da,0x5a1)]-0x1;let s=g?d[aM(0x60f,0x5bd)]:d['endDate'];const t=new Set();const u=l['forEachAvailabilityInterval'](d,(v,w,x)=>{const y=x[aN(0x50c,0x54a)]();const z=x[aN(0x50f,0x4dc)]();function aN(a,b){return aM(b,a- -0x86);}r=q[aN(0x4bc,0x4f2)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aN(0x4bc,0x4ff)](g,r,s,g?w:v,t,(A,B,C)=>{function aO(a,b){return aN(a- -0x64e,b);}if(y[aO(-0x136,-0x150)](h)&&(n||someInSet(C,D=>{function aP(a,b){return aO(a-0x352,b);}return m||D['ignoreResourceCalendar']||y[aP(0x21c,0x218)](D[aP(0x1f3,0x1ff)]['effectiveCalendar'])||j&&!i[aP(0x20a,0x1e5)];})||z[aO(-0x121,-0xee)](D=>k[aO(-0x17c,-0x1c1)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*['calculateHasOnlyRegularAssignmentsRaw'](){const d=yield this['$'][aQ(0x173,0x187)];for(const e of d){if(yield*e[aQ(0x131,0x13d)]())return![];}function aQ(a,b){return ab(a,b-0xdd);}return!![];}*['hasOnlyRegularAssignments'](){const d=yield this['$'][aR(0xa8,0xb4)];function aR(a,b){return ab(a,b-0x1e);}return d['hasOnlyRegularAssignments'];}*[ab(0xe9,0xd4)](){function aS(a,b){return ab(a,b- -0x43);}const d=yield this['$']['assignmentsTypeSelector'];return d[aS(0xa1,0x91)];}*[ab(0xda,0xb0)](){const d=yield this['$'][aT(0x335,0x350)];function aT(a,b){return ab(b,a-0x29f);}return d[aT(0x34f,0x357)];}*[ab(0xac,0xd9)](){let d=MAX_DATE;function aU(a,b){return ab(b,a- -0x94);}const e=yield this['$'][aU(0x16,0x4d)];for(const f of e){const g=yield f[aU(0x4a,0x53)]['$'][aU(0x50,0x8c)];if(g&&g<d)d=g;}return d[aU(0x60,0x70)]()-MAX_DATE[aU(0x60,0x31)]()?d:null;}*[ab(0x93,0xca)](){let d=MIN_DATE;const e=yield this['$'][aV(-0x4a,-0x4a)];for(const f of e){const g=yield f[aV(-0x69,-0x16)]['$'][aV(-0x2c,-0x18)];if(g&&g>d)d=g;}function aV(a,b){return ab(a,b- -0xf4);}return d[aV(-0x15,0x0)]()-MIN_DATE[aV(-0x17,0x0)]()?d:null;}*['calculateMaxAssignmentProposedEndDateIncludingPhantom'](){let d=MIN_DATE;const e=yield this['$'][aW(0x3b8,0x39f)];function aW(a,b){return ab(a,b-0x2f5);}for(const f of e){const g=(yield*f['isTimePhased']())?(yield*f['isUserTimePhased']())?yield f['proposedMirror']['$'][aW(0x3b3,0x3d1)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aW(0x3bd,0x3e9)]()-MIN_DATE[aW(0x402,0x3e9)]()?d:null;}*[ab(0xde,0xa4)](d,e,f){const g=yield*this[aX(0x35b,0x34e)]();if(g||(yield this['$'][aX(0x3a0,0x3a6)])){return yield*super[aX(0x37d,0x354)](d,e,f);}function aX(a,b){return ab(b,a-0x2d9);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aX(0x379,0x3a4)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=(yield o['$'][aX(0x34b,0x314)])??0x64;}i[aX(0x3c1,0x38b)](l,n);}let j=0x0;const k=Object[aX(0x3c7,0x3dd)](yield*this[aX(0x3a7,0x363)](),{'startDate':d,'endDate':e},{'purpose':aX(0x35a,0x3ad)});yield*this[aX(0x3c3,0x394)](k,(p,q,r,s)=>{const t=r['getCalendarsWorking']();const u=p[aY(-0x112,-0x161)](),v=q['getTime'](),w=v-u;function aY(a,b){return aX(b- -0x52e,a);}let x=0x0;for(const y of t){x+=i[aY(-0x1b2,-0x190)](y)||0x0;}if(!f){s[aY(-0x185,-0x1a4)](z=>{function aZ(a,b){return aY(a,b-0x5cc);}x+=z[aZ(0x3d0,0x3e9)];});}j+=x*w*0.01;});return yield*this['getProject']()['$convertDuration'](j,TimeUnit['Millisecond'],yield this['$'][aX(0x39f,0x3e9)]);}*[ab(0x9e,0xf0)](d,e=!![],f,g,h){const i=yield*super[b0(0x3e9,0x401)](d,e,f,g,h);function b0(a,b){return ab(b,a-0x2f9);}if(yield this['$']['isSegmented'])return i;const j=yield*this['hasOnlyTimePhasedAssignments']();if(j){const k=yield this['$'][b0(0x3ab,0x3c7)];if(k[b0(0x386,0x3cf)]===Direction[b0(0x377,0x3be)]&&e===![]){const l=yield this['$'][b0(0x3af,0x3e8)];const m=l[b0(0x355,0x38c)];if(m>0x0){return yield*l['minAssignment']['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit[b0(0x376,0x3a8)]);}}else if(k['direction']===Direction['Backward']&&e===!![]){const n=yield this['$'][b0(0x381,0x3c1)];const o=n['minOffset'];if(o>0x0){return yield*n[b0(0x371,0x384)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit['Millisecond']);}}}return i;}*['getBaseOptionsForDurationCalculations'](){const d=yield*this[b1(0x170,0x13c)]();function b1(a,b){return ab(b,a-0x89);}if(d===SchedulingMode['FixedDuration']){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations'][b1(0x11b,0xd6)](this);}}*[ab(0x5b,0x64)](d,e=!![],f,g,h,i){if(yield this['$'][b2(0x2ca,0x2fe)]){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b2(0x2f2,0x2f5)];g=g!==void 0x0?g:yield this['$'][b2(0x2d6,0x2fd)];const j=yield*this['getProject']()[b2(0x247,0x298)](f,g,TimeUnit[b2(0x28f,0x2b4)]);if(d==null||f==null)return null;let k=d[b2(0x35b,0x32b)]();function b2(a,b){return ab(a,b-0x237);}let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object['assign'](yield*this[b2(0x2c1,0x2c1)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this['hasOnlyRegularAssignments']();if(h?.['purpose']===b2(0x2dc,0x2e3)||o){const s=new Map();const t=yield this['$'][b2(0x2a5,0x2e1)];let u=0x0;const v=new Map();for(const y of t){const z=(yield y['$']['units'])??0x64;u+=z;v['set'](y,z);}if(u===0x0){return yield*super[b2(0x262,0x29b)](d,e,f,g,h,i);}for(const A of t){s['set'](A,j*v[b2(0x329,0x2fc)](A)/u);}const w=yield this['$'][b2(0x2ca,0x2aa)];const x=new Map();for(const [B,C]of w){for(const D of C){x['set'](D,B);}}yield*this['forEachAvailabilityInterval'](n,(E,F,G)=>{const H=E[b3(0x195,0x144)](),I=F[b3(0x184,0x144)](),J=I-H;for(const K of t){const L=x[b3(0xf8,0x115)](K);if(G[b3(0x15a,0x109)]()[b3(0xe5,0x115)](L)){const M=s[b3(0x160,0x115)](K);let N=v[b3(0xcd,0x115)](K);const O=N*J*0.01;const P=M-O;if(!P||P<m){const Q=e?H+M/(0.01*N):I-M/(0.01*N);if(e&&Q>k||!e&&Q<k){k=Q;}s[b3(0xe3,0xf6)](K);}else{s['set'](K,M-O);}}}function b3(a,b){return b2(a,b- -0x1e7);}if(s['size']===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b2(0x306,0x2d7)];const q=new Map();(yield this['$']['assignmentsByCalendar'])[b2(0x2d2,0x2e8)]((E,F)=>{function b4(a,b){return b2(a,b- -0x3ed);}E[b4(-0x147,-0x105)](G=>q['set'](G,F));});const r=new Map();for(const [E,F]of p){let G=0x0;for(const H of F){G+=(yield H['$'][b2(0x295,0x2a9)])??0x64;}r[b2(0x2ef,0x31f)](E,G);}yield*this['forEachAvailabilityInterval'](n,(I,J,K,L)=>{const M=K[b5(0x230,0x22e)]();const N=K['getCalendarsWorkStatus']();const O=I[b5(0x268,0x2a0)](),P=J[b5(0x268,0x293)](),Q=P-O;let R=0x0;for(const U of M){R+=r[b5(0x239,0x1f7)](U)||0x0;}if(!i){L[b5(0x225,0x22a)](V=>{function b6(a,b){return b5(a-0x12,b);}if(N[b6(0x24b,0x20d)](q[b6(0x24b,0x28a)](V)))R+=V[b6(0x1f8,0x24b)];});}const S=R*Q*0.01;const T=l-S;function b5(a,b){return b2(b,a- -0xc3);}if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c['prototype'],'proposedStartDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x54,0x87),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xad,0xe0)],ab(0xe7,0xdd),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x105,0xe0)],ab(0xc1,0xc4),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc9,0xe0)],ab(0xd4,0x93),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb6,0xe0)],'maxAssignmentProposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb2,0xe0)],ab(0xf5,0xdb),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb9,0xe0)],ab(0x7a,0x96),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb8,0xe0)],ab(0xd7,0xbb),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c['prototype'],ab(0xa1,0x7c),void 0x0);__decorate([field()],c['prototype'],ab(0xde,0xd3),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],ab(0xff,0xb6),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xcf,0xe0)],ab(0x6e,0x88),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x9b,0xa0),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],'timePhasedIntervalsCache',void 0x0);__decorate([calculate(ab(0x75,0xbb))],c[ab(0xd5,0xe0)],'calculateProposedTotalUnits',null);__decorate([calculate(ab(0x9f,0xcd))],c[ab(0xdc,0xe0)],'calculateProposedStartDate',null);__decorate([calculate('proposedEndDate')],c[ab(0xbe,0xe0)],ab(0x127,0xff),null);__decorate([calculate('proposedStartDateMin')],c[ab(0xcd,0xe0)],ab(0x91,0xa2),null);__decorate([calculate(ab(0x84,0xc4))],c[ab(0x9a,0xe0)],'calculateProposedEndDateMax',null);__decorate([calculate(ab(0xe0,0xb6))],c[ab(0xab,0xe0)],ab(0xaa,0xc2),null);__decorate([calculate(ab(0x92,0x88))],c[ab(0x122,0xe0)],ab(0xa1,0xf3),null);__decorate([calculate('assignmentsTypeSelector')],c[ab(0xf5,0xe0)],ab(0x48,0x90),null);function ab(a,b){return _enY(a,b- -0x1cc);}__decorate([calculate(ab(0x108,0xd3))],c[ab(0xac,0xe0)],ab(0x66,0x65),null);__decorate([calculate(ab(0x2b,0x7c))],c['prototype'],ab(0xc5,0x7b),null);__decorate([calculate(ab(0x77,0xa9))],c[ab(0x8d,0xe0)],ab(0x11d,0xed),null);__decorate([calculate(ab(0xd7,0xdb))],c['prototype'],'calculateProposedAssignmentDuration',null);__decorate([calculate(ab(0xbe,0xa0))],c[ab(0x9b,0xe0)],ab(0xe9,0xa3),null);__decorate([calculate(ab(0x98,0x93))],c['prototype'],'calculateMinAssignmentProposedStartDate',null);__decorate([calculate(ab(0x89,0xa7))],c[ab(0x114,0xe0)],ab(0xba,0xca),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function m(a,b){return _enb(b- -0x2b2,a);}while(!![]){try{const d=-parseInt(m(-0x140,-0x154))/0x1*(-parseInt(m(-0x117,-0x146))/0x2)+-parseInt(m(-0x130,-0x10a))/0x3+-parseInt(m(-0x113,-0x134))/0x4+parseInt(m(-0x153,-0x16b))/0x5+parseInt(m(-0x101,-0x123))/0x6+-parseInt(m(-0xdf,-0x106))/0x7+-parseInt(m(-0x11b,-0x141))/0x8*(parseInt(m(-0x14f,-0x15f))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa1116));var __decorate=function(a,b,e,f){var g=arguments[n(0x1d8,0x1cd)],h=g<0x3?b:f===null?f=Object[n(0x1e7,0x1cd)](b,e):f,j;function n(a,b){return _enb(a-0x64,b);}if(typeof Reflect===n(0x20b,0x20d)&&typeof Reflect[n(0x1aa,0x1c4)]==='function')h=Reflect[n(0x1aa,0x1da)](a,b,e,f);else for(var k=a[n(0x1d8,0x1d5)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x142;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';function _enH(a,b){return _enb(a- -0xe8,b);}import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect}from'../../../chrono/Replica.js';import{SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';function _ena(){const N=['segmentsToCleanup','contains','autoPostponeConflicts','clearBranch','startDateConstraintIntervals','forEach','NoError','2971964cTUGka','removeEntity','isValidDependencyModel','fromEvent','finalizeCommitHook','getOwnPropertyDescriptor','CyclicDependency','dependenciesCalendar','getDependencyCycleDetectionIdentifiers','7.0.0','bwcConflictPostpone','toEvent','resourceAllocationInfoClass','removeEntities','earlySchedule','deprecate','startDate','7117758CmKyUq','SchedulerProProjectMixin','construct','isValidDependency','internalOnCommitFinalized','DuplicatingDependency','dependencyConstraintIntervalClass','getDependencies','isDependencyCyclic','getType','durationUnit','getDefaultEventModelClass','_resolutions','selector','deactivateDependencyCycleEffectResolutionClass','graph','Auto','all','validateDependency','dateConstraintIntervalClass','throw','candidate','autoPostponedConflicts','proposedTimePhasedWrites','object','3768237HBczbZ','call','getDefaultResourceAllocationInfoClass','buildInvalidDependencyResolutions','1050707iepqHV','assignmentStore','endDate','effort','duration','readAsync','event','new','isArray','decorate','5258480mYqxgs','autoScheduleManualTasksOnSecondPass','getDefaultResourceModelClass','getResolutions','getInvalidDependencies','getDefaultEventStoreClass','push','addConstraintOnDateSet','includeAsapAlapAsConstraints','modelClass','getTime','transaction','10593FtnGKO','autoSetConstraints','addEntity','active','calculateDurationPure','DeactivateDependencyCycleEffectResolution','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','resolve','deactivateDependencyConflictResolutionClass','getDefaultDependencyModelClass','getDefaultAssignmentModelClass','146qJuFMM','autoCalculatePercentDoneForParentTasks','SchedulerProTimePhasedProjectMixin','clear','effortUnit','removeDependencyConflictResolutionClass','filter','outgoingDeps','isInitialTransaction','defaultConfig','SchedulerPro','boolean','allowPostponedConflicts','afterConfigure','15044NIUPFI','$name','prototype','getDescription','project','3584MJNdun','hasInputOnEffort','branch','length','string','_invalidDependencies'];_ena=function(){return N;};return _ena();}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerBasicProjectMixin}from'../scheduler_basic/SchedulerBasicProjectMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{DateConstraintInterval}from'./HasDateConstraintMixin.js';import{DeactivateDependencyResolution,DependencyConstraintInterval,RemoveDependencyResolution}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProDependencyMixin}from'./SchedulerProDependencyMixin.js';import{SchedulerProEvent,SchedulerProTimePhasedEvent}from'./SchedulerProEvent.js';import{ResourceAllocationInfo,SchedulerProResourceMixin}from'./SchedulerProResourceMixin.js';import{SchedulerProTimePhasedAssignmentMixin}from'./SchedulerProTimePhasedAssignmentMixin.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';class SchedulerProProjectMixin extends Mixin([SchedulerBasicProjectMixin,ConstrainedEarlyEventMixin,HasChildrenMixin,HasCostSubEventsMixin],a=>{const b=a['prototype'];class c extends a{constructor(){function o(a,b){return _enb(a- -0x25b,b);}super(...arguments);this[o(-0xf5,-0x129)]=!![];}static get[p(0x3c0,0x397)](){return{'segmentModelClass':SchedulerProEventSegment};}[p(0x3e8,0x3c1)](d={}){this[q(-0x5a,-0x81)]=new Set();this[q(-0x7d,-0xa8)]=d[q(-0x7d,-0x9c)]??![];this[q(-0x49,-0x1d)]=d['bwcConflictPostpone']??![];b[q(-0x40,-0x2b)][q(-0x28,-0x19)](this,d);function q(a,b){return p(b,a- -0x401);}this[q(-0x82,-0x8a)]=d[q(-0x82,-0x5f)]??!![];if(!this[q(-0x47,-0x6f)])this['resourceAllocationInfoClass']=this[q(-0x27,-0x6)]();this['ion']({'commitFinalized':this[q(-0x3e,-0x54)]});}set[p(0x3a2,0x3d5)](d){function r(a,b){return p(a,b- -0x5ea);}_end[r(-0x251,-0x22d)](r(-0x26b,-0x233),'autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts');this[r(-0x25a,-0x241)]=d;}get[p(0x3d9,0x3d5)](){_end[s(0x301,0x2f4)]('7.0.0',s(0x2cd,0x2dc));function s(a,b){return p(b,a- -0xbc);}return this['autoPostponeConflicts'];}[p(0x38c,0x3b2)](d){this[t(0x27b,0x274)]=![];function t(a,b){return p(b,a- -0x11b);}return![];}['internalOnCommitFinalized']({transactionResult:d}){function u(a,b){return p(a,b- -0x99);}this['graph']?.[u(0x358,0x322)]([...this['segmentsToCleanup']]);this['segmentsToCleanup'][u(0x316,0x2f8)]();}[p(0x388,0x37c)](){return ChronoEventStoreMixin;}[p(0x3a8,0x3da)](){return ResourceAllocationInfo;}[p(0x37c,0x39b)](){b[v(-0x119,-0x14f)]['apply'](this,arguments);this[v(-0xe2,-0xf1)]=this[v(-0xe2,-0xf7)]||DateConstraintInterval;function v(a,b){return p(b,a- -0x4b4);}this[v(-0xef,-0xfb)]=this['dependencyConstraintIntervalClass']||DependencyConstraintInterval;}[p(0x3c2,0x3c8)](){function w(a,b){return p(a,b- -0xc);}return ProjectType[w(0x36c,0x38c)];}['getDefaultCycleEffectClass'](){return SchedulerProCycleEffect;}[p(0x3d3,0x3ca)](){return SchedulerProEvent;}[p(0x366,0x38c)](){return SchedulerProDependencyMixin;}[p(0x3bd,0x38d)](){return SchedulerProAssignmentMixin;}[p(0x3ab,0x379)](){return SchedulerProResourceMixin;}async['validateDependency'](d,e,f,g){let h;if(g){h=Array[x(-0x25b,-0x269)](g)?g:[g];}const i=CI(d[x(-0x23b,-0x266)])['some'](j=>j[x(-0x217,-0x236)]===e&&!h?.['includes'](j));if(i){return DependencyValidationResult[x(-0x20c,-0x221)];}if(d['contains'](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(-0x209,-0x213)](d,e,f,h)){return DependencyValidationResult[x(-0x21c,-0x20b)];}function x(a,b){return p(b,a- -0x5d0);}return DependencyValidationResult[x(-0x223,-0x211)];}*[p(0x395,0x387)](){const d=yield this['$'][y(0x452,0x428)];const e=yield this['$'][y(0x472,0x441)];if(!d||!e)return null;if(d>e)return 0x0;function y(a,b){return p(b,a-0x94);}return yield*super[y(0x41b,0x3f4)]();}async[p(0x3c6,0x3c2)](d,e,f,g){const h=await this[z(0x73,0x6f)](d,e,f,g);function z(a,b){return p(a,b- -0x362);}return h===DependencyValidationResult[z(0x7f,0x4b)];}[p(0x3a9,0x3b6)](d,e){function A(a,b){return p(b,a-0x8f);}return[e[A(0x44b,0x41f)]['$'][A(0x43a,0x405)],e[A(0x44b,0x47d)]['$']['endDateConstraintIntervals']];}async[p(0x396,0x3c7)](d,f,g,h){const i=this['getDependencyStore']()[B(-0x114,-0xee)];const j=new i({'fromEvent':d,'toEvent':f,'type':g});const k=this['replica'][B(-0xfb,-0xcb)]({'autoCommit':![],'onComputationCycle':B(-0x71,-0x9b)});if(h){if(!Array[B(-0xd8,-0xf9)](h)){h=[h];}h[B(-0xc4,-0xc2)](l=>k[B(-0xac,-0xbf)](l));}k[B(-0xde,-0xe9)](j);j[B(-0xf5,-0xce)]=this;function B(a,b){return p(a,b- -0x46e);}try{await Promise[B(-0x7b,-0x9e)](this[B(-0x81,-0xb8)](d,f)['map'](l=>k[B(-0xf2,-0xfc)](l)));return![];}catch(l){if(/cycle/i['test'](l))return!![];if(!/conflict/i['test'](l)){throw l;}}finally{k[B(-0x9e,-0xc4)]();}}async[p(0x382,0x3b0)](d,e){function C(a,b){return p(a,b-0xde);}return this['isValidDependency'](d[C(0x48e,0x48f)],d[C(0x49d,0x497)],d['type'],e);}}c[p(0x387,0x39d)]=p(0x3a8,0x3c0);function p(a,b){return _enb(b-0x230,a);}__decorate([model_field({'type':p(0x3c7,0x3a5),'defaultValue':DependenciesCalendar['ToEvent']})],c[p(0x3c2,0x39e)],p(0x3d3,0x3b5),void 0x0);__decorate([model_field({'type':p(0x366,0x399),'defaultValue':!![]})],c[p(0x3c5,0x39e)],p(0x375,0x38f),void 0x0);__decorate([model_field({'type':p(0x398,0x3a5),'defaultValue':StartedTaskScheduling[p(0x3fc,0x3cf)]})],c['prototype'],'startedTaskScheduling',void 0x0);__decorate([model_field({'type':p(0x3c4,0x399),'defaultValue':!![]})],c[p(0x388,0x39e)],p(0x38c,0x37e),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[p(0x375,0x39e)],p(0x3a1,0x378),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x3ad,0x39e)],p(0x3a5,0x39a),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[p(0x372,0x39e)],'autoPostponeConflicts',void 0x0);__decorate([model_field({'type':p(0x3b8,0x399),'defaultValue':!![]})],c[p(0x36a,0x39e)],'autoMergeAdjacentSegments',void 0x0);__decorate([model_field({'persist':![]})],c[p(0x3d1,0x39e)],'currency',void 0x0);return c;}){}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{function D(a,b){return _enb(a- -0x21c,b);}class b extends a{[D(-0x84,-0xb0)](){function E(a,b){return D(a- -0x182,b);}return ProjectType[E(-0x236,-0x25f)];}['getDefaultEventModelClass'](){return SchedulerProTimePhasedEvent;}[D(-0xbf,-0xb0)](){return SchedulerProTimePhasedAssignmentMixin;}[D(-0x89,-0x9c)]({transactionResult:c}){super[F(-0x19d,-0x1c5)]({'transactionResult':c});function F(a,b){return D(b- -0x13c,a);}this[F(-0x1d8,-0x1ab)]['forEach'](d=>{if(!d[G(0xa2,0x72)]){return;}function G(a,b){return F(a,b-0x22c);}const e=c[G(0x1b,0x26)][G(0x71,0x78)][G(0x5a,0x7a)];const f=d['proposedMirror'];const g=d[G(0x9,0x17)]?.[G(0x5a,0x70)];const h=g?g[G(0x42,0x46)]||g['hasInputOnAssignments']&&g['hasPreviousEffortValue']:![];if(f[G(0x2f,0x62)]!=null&&f['startDate'][G(0x5c,0x25)]()!==d[G(0x62,0x62)]?.[G(0x3a,0x25)]()){e[G(0x40,0x21)]([f['$'][G(0x7e,0x62)],d['startDate']]);}if(f[G(0xa0,0x82)]!=null&&f['endDate'][G(0x1,0x25)]()!==d[G(0x8d,0x82)]?.[G(0x6,0x25)]()){e[G(0x16,0x21)]([f['$'][G(0x67,0x82)],d[G(0x90,0x82)]]);}if(f[G(0xb5,0x84)]!=null&&f[G(0xb5,0x84)]!==d['duration']){e['push']([f['$'][G(0x56,0x84)],d[G(0xb3,0x84)]]);}if(f[G(0xa1,0x6d)]!=null&&f[G(0x5d,0x6d)]!==d['durationUnit']){e[G(0x11,0x21)]([f['$'][G(0x8f,0x6d)],d[G(0x97,0x6d)]]);}if(f[G(0x78,0x83)]!=null&&f[G(0x84,0x83)]!==d[G(0xa7,0x83)]){if(!h)e[G(0x40,0x21)]([f['$'][G(0x8c,0x83)],d[G(0x54,0x83)]]);else f[G(0x93,0x83)]=d[G(0x57,0x83)];}if(f[G(0x2b,0x36)]!=null&&f[G(0xc,0x36)]!==d[G(0x6a,0x36)]){if(!h)e[G(0x1e,0x21)]([f['$']['effortUnit'],d[G(0x1e,0x36)]]);else f[G(0x60,0x36)]=d['effortUnit'];}},this,{'includeFilteredOutRecords':!![]});}}b[D(-0xaf,-0xde)]=D(-0xbc,-0x92);return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enH(0x87,0x91)](){return this['L']('L{descriptionTpl}');}[_enH(0x72,0x48)](a){function I(a,b){return _enH(b-0x2dd,a);}a[I(0x31d,0x34b)]=![];}}DeactivateDependencyCycleEffectResolution[_enH(0x85,0xaa)]=_enH(0x70,0x76);class SchedulerProCycleEffect extends CycleEffect{[_enH(0x63,0x4e)](){if(!this['_invalidDependencies']){const a=this[J(0x35a,0x340)]();this[J(0x2fd,0x320)]=a[J(0x2e7,0x30e)](b=>b[J(0x33b,0x32b)]===b[J(0x315,0x333)]||(b[J(0x342,0x32b)]['contains'](b['toEvent'])||b[J(0x313,0x333)][J(0x32d,0x322)](b[J(0x34a,0x32b)])));}function J(a,b){return _enH(b-0x292,a);}return this[J(0x330,0x320)];}['buildInvalidDependencyResolutions'](a){function K(a,b){return _enH(b-0x248,a);}return[this[K(0x2d2,0x2c3)][K(0x2c6,0x2a4)](a),this[K(0x283,0x2bb)]['new'](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function L(a,b){return _enH(a- -0x28e,b);}return a[L(-0x220,-0x249)]&&super['matchDependencyBySourceAndTargetEvent'](a,b,c);}[_enH(0x62,0x83)](){function M(a,b){return _enH(b- -0x242,a);}if(!this['_resolutions']){const a=this[M(-0x1c0,-0x1df)]();const b=[];for(const c of a){b[M(-0x1c6,-0x1dd)](...this[M(-0x176,-0x17f)]({'dependency':c}));}if(!a[M(-0x1d6,-0x1b6)]){b[M(-0x203,-0x1dd)](this[M(-0x189,-0x18d)][M(-0x1d4,-0x1e6)](),...super[M(-0x1f2,-0x1e0)]());}this[M(-0x1b3,-0x18f)]=b;}return this['_resolutions'];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enH(0x86,0x7c)],_enH(0xb5,0x9a),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0x4e)],'removeDependencyConflictResolutionClass',void 0x0);__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enH(0x86,0xb5)],'deactivateDependencyConflictResolutionClass',void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};
1
+ (function(a,b){const c=a();function m(a,b){return _enb(b- -0x2df,a);}while(!![]){try{const d=-parseInt(m(-0x158,-0x142))/0x1+parseInt(m(-0x12a,-0xf0))/0x2*(parseInt(m(-0xe4,-0x119))/0x3)+-parseInt(m(-0xea,-0x10d))/0x4*(-parseInt(m(-0x15c,-0x121))/0x5)+-parseInt(m(-0x113,-0xe5))/0x6+-parseInt(m(-0xba,-0xe4))/0x7*(parseInt(m(-0x125,-0x113))/0x8)+parseInt(m(-0x14a,-0x143))/0x9*(-parseInt(m(-0x137,-0x10a))/0xa)+parseInt(m(-0x125,-0x14d))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6e51b));var __decorate=function(a,b,e,f){function n(a,b){return _enb(b-0x185,a);}var g=arguments[n(0x312,0x331)],h=g<0x3?b:f===null?f=Object[n(0x38d,0x358)](b,e):f,j;if(typeof Reflect===n(0x35a,0x338)&&typeof Reflect['decorate']===n(0x374,0x36e))h=Reflect[n(0x30f,0x319)](a,b,e,f);else for(var k=a[n(0x36b,0x331)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x186;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CI}from'@bryntum/engine-thin/lib/ChronoGraph/collection/Iterator.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/localization/Localizable.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{CycleEffect}from'../../../chrono/Replica.js';import{SchedulingIssueEffectResolution}from'../../../chrono/SchedulingIssueEffect.js';import{DependenciesCalendar,DependencyValidationResult,ProjectType,StartedTaskScheduling}from'../../../scheduling/Types.js';import{ChronoEventStoreMixin}from'../../store/ChronoEventStoreMixin.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{SchedulerBasicProjectMixin}from'../scheduler_basic/SchedulerBasicProjectMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{DateConstraintInterval}from'./HasDateConstraintMixin.js';import{DeactivateDependencyResolution,DependencyConstraintInterval,RemoveDependencyResolution}from'./ConstrainedByDependenciesEventMixin.js';import{SchedulerProDependencyMixin}from'./SchedulerProDependencyMixin.js';import{SchedulerProEvent,SchedulerProTimePhasedEvent}from'./SchedulerProEvent.js';import{ResourceAllocationInfo,SchedulerProResourceMixin}from'./SchedulerProResourceMixin.js';function _enH(a,b){return _enb(b-0x360,a);}import{SchedulerProTimePhasedAssignmentMixin}from'./SchedulerProTimePhasedAssignmentMixin.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{HasCostSubEventsMixin}from'./HasCostSubEventsMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';class SchedulerProProjectMixin extends Mixin([SchedulerBasicProjectMixin,ConstrainedEarlyEventMixin,HasChildrenMixin,HasCostSubEventsMixin],a=>{const b=a[o(-0xba,-0xb4)];function o(a,b){return _enb(b- -0x27e,a);}class c extends a{constructor(){super(...arguments);function p(a,b){return o(b,a-0x600);}this[p(0x53d,0x52d)]=!![];}static get[o(-0xb3,-0x8a)](){return{'segmentModelClass':SchedulerProEventSegment};}[o(-0xdc,-0xc7)](d={}){this['segmentsToCleanup']=new Set();this['autoSetConstraints']=d[q(0x503,0x53e)]??![];this[q(0x4f9,0x4ed)]=d[q(0x4f9,0x533)]??![];let e=d;if(d[q(0x4ea,0x4ef)]||d[q(0x4e4,0x516)]){e=a[q(0x54b,0x520)]({},d,{'events':d[q(0x4ea,0x4ec)]||d[q(0x4e4,0x4fe)]});}b[q(0x506,0x51e)][q(0x528,0x512)](this,e);this[q(0x51a,0x547)]=d[q(0x51a,0x503)]??!![];if(!this['resourceAllocationInfoClass'])this['resourceAllocationInfoClass']=this[q(0x501,0x518)]();function q(a,b){return o(b,a-0x5cd);}this[q(0x4fe,0x4fd)]({'commitFinalized':this['internalOnCommitFinalized']});}set[o(-0xb4,-0xcd)](d){function r(a,b){return o(b,a-0x3fe);}_end[r(0x358,0x395)](r(0x35e,0x369),r(0x32d,0x30f));this[r(0x322,0x327)]=d;}get[o(-0xb4,-0xcd)](){_end[s(0x20f,0x1fe)]('7.0.0',s(0x1e4,0x1c2));function s(a,b){return o(b,a-0x2b5);}return this[s(0x1d9,0x1ea)];}['finalizeCommitHook'](d){function t(a,b){return o(a,b-0x29f);}this[t(0x1fb,0x1dc)]=![];return![];}[o(-0x94,-0xa1)]({transactionResult:d}){function u(a,b){return o(a,b-0x1ed);}this['graph']?.[u(0xef,0x114)]([...this['segmentsToCleanup']]);this['segmentsToCleanup'][u(0xe8,0x11d)]();}[o(-0x9d,-0xc2)](){return ChronoEventStoreMixin;}['getDefaultResourceAllocationInfoClass'](){return ResourceAllocationInfo;}[o(-0xf8,-0xed)](){b['afterConfigure'][v(0x2f3,0x2fd)](this,arguments);function v(a,b){return o(a,b-0x398);}this[v(0x31b,0x2eb)]=this['dateConstraintIntervalClass']||DateConstraintInterval;this['dependencyConstraintIntervalClass']=this[v(0x2f2,0x2e3)]||DependencyConstraintInterval;}[o(-0x11a,-0xdd)](){function w(a,b){return o(b,a-0x5b0);}return ProjectType[w(0x4c9,0x49b)];}[o(-0xd5,-0xbb)](){return SchedulerProCycleEffect;}[o(-0x82,-0x94)](){return SchedulerProEvent;}['getDefaultDependencyModelClass'](){return SchedulerProDependencyMixin;}['getDefaultAssignmentModelClass'](){return SchedulerProAssignmentMixin;}[o(-0xc8,-0xc1)](){return SchedulerProResourceMixin;}async[o(-0x5f,-0x91)](d,e,f,g){let h;if(g){h=Array['isArray'](g)?g:[g];}const i=CI(d[x(-0xe4,-0xfc)])[x(-0xfb,-0x10b)](j=>j['toEvent']===e&&!h?.[x(-0x142,-0x14f)](j));if(i){return DependencyValidationResult[x(-0x116,-0x115)];}function x(a,b){return o(a,b- -0x71);}if(d[x(-0x192,-0x157)](e)||e['contains'](d)){return DependencyValidationResult['CyclicDependency'];}if(await this[x(-0x176,-0x149)](d,e,f,h)){return DependencyValidationResult[x(-0x126,-0xff)];}return DependencyValidationResult[x(-0x189,-0x151)];}*[o(-0x8d,-0xaa)](){const d=yield this['$']['startDate'];const e=yield this['$'][y(-0x115,-0x125)];if(!d||!e)return null;if(d>e)return 0x0;function y(a,b){return o(a,b- -0x83);}return yield*super[y(-0x168,-0x12d)]();}async[o(-0xb0,-0xa3)](d,e,f,g){const h=await this[z(0x23d,0x24f)](d,e,f,g);function z(a,b){return o(b,a-0x2ce);}return h===DependencyValidationResult[z(0x1ee,0x1e0)];}['getDependencyCycleDetectionIdentifiers'](d,e){function A(a,b){return o(b,a-0x3bb);}return[e[A(0x32b,0x341)]['$'][A(0x31f,0x30b)],e[A(0x32b,0x340)]['$'][A(0x2c7,0x2b5)]];}async[o(-0xfb,-0xd8)](d,f,g,h){const i=this[B(0x1ee,0x221)]()['modelClass'];const j=new i({'fromEvent':d,'toEvent':f,'type':g});function B(a,b){return o(a,b-0x2ae);}const k=this[B(0x1dc,0x1ef)]['branch']({'autoCommit':![],'onComputationCycle':'throw'});if(h){if(!Array[B(0x1bb,0x1b8)](h)){h=[h];}h[B(0x1c6,0x1d4)](l=>k[B(0x250,0x226)](l));}k[B(0x20f,0x20f)](j);j[B(0x24a,0x217)]=this;try{await Promise[B(0x1ca,0x1e8)](this[B(0x222,0x1f8)](d,f)[B(0x1f9,0x1e9)](l=>k[B(0x1c2,0x1ea)](l)));return![];}catch(l){if(/cycle/i[B(0x207,0x22d)](l))return!![];if(!/conflict/i[B(0x216,0x22d)](l)){throw l;}}finally{k[B(0x19e,0x1bd)]();}}async[o(-0x61,-0x96)](d,e){function C(a,b){return o(a,b-0x94);}return this[C(0xd,-0xf)](d[C(-0x5c,-0x2a)],d[C(0x9,-0x25)],d['type'],e);}}c[o(-0xd5,-0xae)]=o(-0xb2,-0xbc);__decorate([model_field({'type':'string','defaultValue':DependenciesCalendar[o(-0x73,-0xa8)]})],c[o(-0xe3,-0xb4)],o(-0x72,-0x8c),void 0x0);__decorate([model_field({'type':o(-0xc6,-0xf5),'defaultValue':!![]})],c['prototype'],o(-0x8b,-0xb0),void 0x0);__decorate([model_field({'type':'string','defaultValue':StartedTaskScheduling['Auto']})],c[o(-0xa3,-0xb4)],o(-0x7f,-0xa7),void 0x0);__decorate([model_field({'type':o(-0x10f,-0xf5),'defaultValue':!![]})],c[o(-0xa2,-0xb4)],o(-0xe6,-0xd7),void 0x0);__decorate([model_field({'type':o(-0xca,-0xf5),'defaultValue':!![]})],c[o(-0xed,-0xb4)],o(-0xf4,-0xd5),void 0x0);__decorate([model_field({'type':o(-0x118,-0xf5),'defaultValue':![]})],c['prototype'],'allowPostponedConflicts',void 0x0);__decorate([model_field({'type':o(-0xb9,-0xf5),'defaultValue':![]})],c[o(-0x93,-0xb4)],o(-0x111,-0xdc),void 0x0);__decorate([model_field({'type':o(-0x10e,-0xf5),'defaultValue':!![]})],c[o(-0xac,-0xb4)],o(-0x9c,-0x85),void 0x0);__decorate([model_field({'persist':![]})],c['prototype'],o(-0xaf,-0xe8),void 0x0);return c;}){}function _ena(){const O=['isArray','boolean','endDateConstraintIntervals','deactivateDependencyConflictResolutionClass','new','clearBranch','push','getResolutions','proposedMirror','afterConfigure','5279373pqEKga','durationUnit','decorate','tasksData','currency','SchedulerPro','contains','SchedulerProTimePhasedProjectMixin','candidate','tasks','9qCRkLl','640379iMJvLI','NoError','resolve','includes','getType','autoPostponeConflicts','_resolutions','forEach','removeEntities','isDependencyCyclic','addConstraintOnDateSet','DeactivateDependencyCycleEffectResolution','autoScheduleManualTasksOnSecondPass','bwcConflictPostpone','effort','length','autoPostponedConflicts\x20is\x20deprecated\x20and\x20renamed\x20to\x20autoPostponeConflicts','clear','ion','matchDependencyBySourceAndTargetEvent','autoPostponedConflicts','getDefaultResourceAllocationInfoClass','object','autoSetConstraints','deactivateDependencyCycleEffectResolutionClass','transaction','construct','all','map','readAsync','isInitialTransaction','getDefaultEventStoreClass','getDefaultResourceModelClass','12640bkSbuB','replica','fromEvent','L{descriptionTpl}','SchedulerProProjectMixin','getDefaultCycleEffectClass','getDefaultAssignmentModelClass','toEvent','196527rawkTR','active','getDependencyCycleDetectionIdentifiers','dependencyConstraintIntervalClass','prototype','includeAsapAlapAsConstraints','206744wxhOQv','duration','autoCalculatePercentDoneForParentTasks','buildInvalidDependencyResolutions','$name','dateConstraintIntervalClass','1312cvzfFf','getOwnPropertyDescriptor','calculateDurationPure','7407650AskSjP','ToEvent','startedTaskScheduling','deprecate','call','DuplicatingDependency','isValidDependency','endDate','internalOnCommitFinalized','7.0.0','addEntity','startDate','effortUnit','startDateConstraintIntervals','apply','some','assignmentStore','selector','project','isValidDependencyModel','function','getDefaultEventModelClass','getInvalidDependencies','proposedTimePhasedWrites','validateDependency','earlySchedule','26xeZFat','CyclicDependency','getDependencyStore','dependenciesCalendar','outgoingDeps','defaultConfig','getTime','removeEntity','getDescription','removeDependencyConflictResolutionClass','autoMergeAdjacentSegments','1656282RAedYI','14clojng','mergeConfigs','test','hasInputOnEffort','graph','getDependencies'];_ena=function(){return O;};return _ena();}class SchedulerProTimePhasedProjectMixin extends Mixin([SchedulerProProjectMixin],a=>{function D(a,b){return _enb(b-0x18a,a);}class b extends a{[D(0x31e,0x32b)](){function E(a,b){return D(a,b- -0x454);}return ProjectType[E(-0x15e,-0x133)];}[D(0x384,0x374)](){return SchedulerProTimePhasedEvent;}[D(0x365,0x34e)](){return SchedulerProTimePhasedAssignmentMixin;}['internalOnCommitFinalized']({transactionResult:c}){function F(a,b){return D(b,a- -0x533);}super[F(-0x1cc,-0x1d2)]({'transactionResult':c});this[F(-0x1c4,-0x19d)][F(-0x205,-0x1e4)](d=>{if(!d[G(0x84,0xaf)]){return;}const e=c[G(0xb4,0x93)][G(0x98,0xce)][G(0xea,0xf1)];const f=d[G(0x8e,0x61)];const g=d['event']?.[G(0xe4,0xcb)];const h=g?g[G(0xfc,0xd0)]||g['hasInputOnAssignments']&&g['hasPreviousEffortValue']:![];if(f[G(0xde,0xc3)]!=null&&f[G(0xde,0xe9)][G(0xf3,0xe7)]()!==d[G(0xde,0xc6)]?.[G(0xf3,0xda)]()){e[G(0x8c,0x8c)]([f['$'][G(0xde,0xea)],d[G(0xde,0xd8)]]);}if(f[G(0xda,0x109)]!=null&&f['endDate'][G(0xf3,0x117)]()!==d['endDate']?.[G(0xf3,0x128)]()){e[G(0x8c,0xb6)]([f['$'][G(0xda,0x110)],d['endDate']]);}if(f[G(0xcb,0xca)]!=null&&f[G(0xcb,0x93)]!==d[G(0xcb,0xdc)]){e[G(0x8c,0x52)]([f['$'][G(0xcb,0x103)],d[G(0xcb,0xce)]]);}function G(a,b){return F(a-0x2a7,b);}if(f[G(0x91,0x5d)]!=null&&f[G(0x91,0x74)]!==d[G(0x91,0x87)]){e[G(0x8c,0x6f)]([f['$'][G(0x91,0xaf)],d[G(0x91,0xbe)]]);}if(f[G(0xa9,0xd1)]!=null&&f[G(0xa9,0x83)]!==d[G(0xa9,0x76)]){if(!h)e['push']([f['$'][G(0xa9,0xa7)],d['effort']]);else f[G(0xa9,0x6e)]=d[G(0xa9,0xda)];}if(f[G(0xdf,0xc9)]!=null&&f[G(0xdf,0xee)]!==d[G(0xdf,0xc4)]){if(!h)e[G(0x8c,0xbd)]([f['$'][G(0xdf,0xc2)],d[G(0xdf,0xb4)]]);else f[G(0xdf,0x10d)]=d[G(0xdf,0x10b)];}},this,{'includeFilteredOutRecords':!![]});}}b['$name']=D(0x31e,0x323);return b;}){}class DeactivateDependencyCycleEffectResolution extends _enc(SchedulingIssueEffectResolution){[_enH(0x581,0x557)](){function I(a,b){return _enH(b,a- -0x51e);}return this['L'](I(0x3,0x16));}[_enH(0x4d5,0x4ff)](a){function J(a,b){return _enH(a,b- -0x22f);}a[J(0x309,0x2f8)]=![];}}DeactivateDependencyCycleEffectResolution[_enH(0x517,0x530)]=_enH(0x4ce,0x508);class SchedulerProCycleEffect extends CycleEffect{[_enH(0x56a,0x54b)](){function K(a,b){return _enH(a,b- -0x73);}if(!this['_invalidDependencies']){const a=this[K(0x444,0x474)]();this['_invalidDependencies']=a['filter'](b=>b[K(0x480,0x4ad)]===b[K(0x4b6,0x4b2)]||(b['fromEvent'][K(0x487,0x485)](b[K(0x4cd,0x4b2)])||b[K(0x479,0x4b2)]['contains'](b[K(0x489,0x4ad)])));}return this['_invalidDependencies'];}['buildInvalidDependencyResolutions'](a){function L(a,b){return _enH(b,a- -0x5bb);}return[this[L(-0x63,-0x33)][L(-0xcf,-0x94)](a),this[L(-0xd0,-0xd7)]['new'](a)];}['matchDependencyBySourceAndTargetEvent'](a,b,c){function M(a,b){return _enH(b,a- -0xd0);}return a[M(0x457,0x42e)]&&super[M(0x440,0x450)](a,b,c);}[_enH(0x509,0x4ef)](){function N(a,b){return _enH(b,a- -0xed);}if(!this['_resolutions']){const a=this[N(0x45e,0x450)]();const b=[];for(const c of a){b[N(0x401,0x3d3)](...this[N(0x442,0x464)]({'dependency':c}));}if(!a[N(0x41f,0x44f)]){b['push'](this[N(0x428,0x43e)][N(0x3ff,0x40e)](),...super[N(0x402,0x416)]());}this['_resolutions']=b;}return this[N(0x416,0x3e2)];}}__decorate([prototypeValue(DeactivateDependencyCycleEffectResolution)],SchedulerProCycleEffect[_enH(0x4ef,0x52a)],_enH(0x538,0x515),void 0x0);__decorate([prototypeValue(RemoveDependencyResolution)],SchedulerProCycleEffect['prototype'],_enH(0x55e,0x558),void 0x0);__decorate([prototypeValue(DeactivateDependencyResolution)],SchedulerProCycleEffect[_enH(0x508,0x52a)],'deactivateDependencyConflictResolutionClass',void 0x0);export{DeactivateDependencyCycleEffectResolution,SchedulerProCycleEffect,SchedulerProProjectMixin,SchedulerProTimePhasedProjectMixin};