@bryntum/engine-thin-trial 7.2.2 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(a,b){function o(a,b){return _enb(b- -0x2f6,a);}const c=a();while(!![]){try{const d=parseInt(o(-0x226,-0x231))/0x1+-parseInt(o(-0x240,-0x24a))/0x2+-parseInt(o(-0x23e,-0x227))/0x3*(parseInt(o(-0x23c,-0x230))/0x4)+parseInt(o(-0x227,-0x226))/0x5+-parseInt(o(-0x233,-0x235))/0x6+parseInt(o(-0x228,-0x224))/0x7*(-parseInt(o(-0x245,-0x22f))/0x8)+parseInt(o(-0x241,-0x239))/0x9*(parseInt(o(-0x222,-0x225))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x497a1));var __decorate=function(a,b,e,f){var g=arguments[p(0x229,0x21a)],h=g<0x3?b:f===null?f=Object[p(0x258,0x24a)](b,e):f,j;function p(a,b){return _enb(b-0x174,a);}if(typeof Reflect===p(0x234,0x219)&&typeof Reflect[p(0x244,0x248)]===p(0x24d,0x236))h=Reflect[p(0x246,0x248)](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[p(0x236,0x241)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,TimeUnit}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xa3;let f=c[d];return f;};return _enb(a,b);}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{HasSubEventsMixin}from'../scheduler_basic/HasSubEventsMixin.js';function _ena(){const y=['getOwnPropertyDescriptor','min','run','isTaskPinnableWithConstraint','object','length','Start','Millisecond','getTime','new','usesDelayFromParent','10430ClEoBh','write','startDateConstraintIntervals','push','skipWorkingTime','durationUnit','map','calculateStartDateConstraintIntervals','calculateProjectedDuration','parent','delayFromParent','number','isRoot','manuallyScheduled','getData','prototype','earlySchedule','2333763lSmvwP','flatMap','call','parentEvent','3435432jMiGKa','function','children','updateDelaysAfterShrinkWrap','78046xbixZj','4wTwYlU','24rdMrqw','calculateStartDate','startDate','graph','isManuallyScheduled','calculateDelayFromParent','defineProperty','scheduleMixinClass','914883pNLIfZ','1662725dTYqrp','30DUBkXL','11207fHzAwe','isInitialTransaction','decorate','isStmRestoring'];_ena=function(){return y;};return _ena();}import{DelayFromParentScheduleMixin}from'./DelayFromParentScheduleMixin.js';import{DateConstraintInterval,HasDateConstraintMixin}from'./HasDateConstraintMixin.js';class DelayFromParentMixin extends Mixin([HasChildrenMixin,HasSubEventsMixin,HasDateConstraintMixin],a=>{const b=a[q(0x416,0x40e)];class c extends a{get[q(0x406,0x40c)](){return this['constructor']['usesDelayFromParent'];}['isTaskPinnableWithConstraint'](){function r(a,b){return q(b-0x5a,a);}if(this[r(0x46f,0x460)]&&(this[r(0x462,0x46a)]&&!this[r(0x47a,0x46a)]['isRoot'])){return![];}return b[r(0x441,0x459)]['call'](this);}[q(0x41f,0x414)](){const d=Math[s(0x1c2,0x1b9)](...this[s(0x1ae,0x195)][s(0x19d,0x198)](e=>e[s(0x1a1,0x1b6)]||0x0));function s(a,b){return q(a- -0x270,b);}if(d!==0x0){for(const e of this['children']){this['graph'][s(0x198,0x18d)](e['$'][s(0x1a1,0x1af)],e[s(0x1a1,0x1a6)]-d);}}}['updateParentEvent'](d,e){function t(a,b){return q(b- -0xd4,a);}if(e&&this[t(0x321,0x332)]&&d[t(0x318,0x332)]){e[t(0x334,0x332)]&&e[t(0x365,0x34b)]();for(const f of d[t(0x35f,0x34a)]){this[t(0x35c,0x351)][t(0x32f,0x334)](f['$'][t(0x324,0x33d)],null);}}}*[q(0x427,0x438)](){let d=yield ProposedOrPrevious;function u(a,b){return q(b- -0x449,a);}const e=yield this['$'][u(-0x2f,-0x2e)];if(this[u(-0x31,-0x43)]&&e&&!e['isRoot']&&d==null){let f=yield ProposedOrPreviousValueOf(e['$']['startDate']);if(!f){const h=e['children'][u(-0x3e,-0x30)](i=>i[u(-0x37,-0x34)](u(-0x16,-0x25))?.['getTime']()??[]);f=new Date(Math['min'](...h));}const g=yield ProposedOrPreviousValueOf(this['$']['startDate']);if(g){if(g['getTime']()<f[u(-0x3a,-0x45)]()){d=-(yield*this['calculateProjectedDuration'](g,f));}else{d=yield*this[u(-0x2d,-0x3a)](f,g);}}}return d;}['writeStartDate'](d,e,f,g,h=!![]){function v(a,b){return q(a- -0xb3,b);}const {parent:i,children:j,project:k}=this;if(this[v(0x353,0x34f)]&&!k[v(0x37b,0x38c)]){if(i&&!i[v(0x360,0x353)]&&i[v(0x372,0x36d)]&&!k[v(0x37d,0x368)]){const l=i['run'](v(0x35c,0x369),i['startDate'],g);e[v(0x355,0x33d)](this['$']['delayFromParent'],l);!i['manuallyScheduled']&&i[v(0x36c,0x372)]();}if(!h&&j?.[v(0x34e,0x34d)]&&this[v(0x361,0x349)]&&g[v(0x351,0x368)]()<this[v(0x371,0x369)][v(0x351,0x343)]()){for(const m of j){const n=m[v(0x34b,0x347)]('convertDurationGen',m[v(0x371,0x37a)][v(0x351,0x352)]()-g[v(0x351,0x340)](),TimeUnit[v(0x350,0x34e)],this[v(0x359,0x35e)]);e[v(0x355,0x366)](m['$'][v(0x35e,0x370)],n);}}}return b['writeStartDate'][v(0x367,0x373)](this,d,e,f,g,h);}*[q(0x40e,0x422)](){function w(a,b){return q(a-0x40,b);}const d=yield*b[w(0x44e,0x43a)][w(0x45a,0x46b)](this);let e=yield this['$'][w(0x451,0x447)];if(e!=null){const f=yield this['$'][w(0x45b,0x441)];const g=yield*f[w(0x466,0x477)]();let h;if(g){h=yield f['$']['startDate'];}else{const i=yield f[w(0x457,0x44b)]['$']['startDateConstraintIntervals'];const j=yield f['$']['startDateConstraintIntervals'];if(i['length']||j['length']){const k=intersectIntervals([...i,...j]);h=k['startDate'];}if(!h){h=yield ProposedValueOf(f['$'][w(0x464,0x456)]);}}if(h){h=yield*this[w(0x44b,0x466)](h,!![],e);d[w(0x44a,0x458)](DateConstraintInterval[w(0x445,0x432)]({'owner':this,'side':ConstraintIntervalSide[w(0x442,0x45b)],'startDate':h}));}}return d;}*['calculateStartDate'](){function x(a,b){return q(b- -0x431,a);}const d=yield*b[x(-0x1d,-0xe)][x(-0x26,-0x17)](this);if(this[x(-0x2f,-0x2b)]){if(yield*this[x(-0x26,-0xb)]()){const e=yield this['$'][x(-0x39,-0x28)];if(e[x(-0x25,-0x30)]){return e[e[x(-0x44,-0x30)]-0x1][x(-0xd,-0xd)];}}}return d;}}c['scheduleMixinClass']=Mixin([a[q(0x429,0x43a)],DelayFromParentScheduleMixin],d=>d);c[q(0x406,0x406)]=!![];__decorate([model_field({'type':q(0x412,0x428)})],c['prototype'],q(0x411,0x3fc),void 0x0);__decorate([calculate(q(0x411,0x404))],c[q(0x416,0x414)],'calculateDelayFromParent',null);function q(a,b){return _enb(a-0x35b,b);}return c;}){}export{DelayFromParentMixin};
1
+ (function(a,b){function o(a,b){return _enb(b- -0x279,a);}const c=a();while(!![]){try{const d=parseInt(o(-0x144,-0x13e))/0x1*(-parseInt(o(-0x142,-0x148))/0x2)+-parseInt(o(-0x14f,-0x13c))/0x3*(-parseInt(o(-0x137,-0x131))/0x4)+-parseInt(o(-0x153,-0x15d))/0x5*(parseInt(o(-0x13a,-0x129))/0x6)+-parseInt(o(-0x157,-0x151))/0x7+parseInt(o(-0x13b,-0x12f))/0x8*(parseInt(o(-0x150,-0x15c))/0x9)+parseInt(o(-0x142,-0x134))/0xa*(parseInt(o(-0x138,-0x130))/0xb)+-parseInt(o(-0x149,-0x137))/0xc;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd8c26));var __decorate=function(a,b,e,f){var g=arguments[p(-0x12f,-0x137)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[p(-0x133,-0x141)]===p(-0x144,-0x141))h=Reflect[p(-0x133,-0x146)](a,b,e,f);else for(var k=a[p(-0x12f,-0x142)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function p(a,b){return _enb(a- -0x269,b);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const z=['convertDurationGen','delayFromParent','getTime','children','calculateDelayFromParent','constructor','calculateStartDateConstraintIntervals','function','isManuallyScheduled','usesDelayFromParent','1892436tAJoiX','startDateConstraintIntervals','updateDelaysAfterShrinkWrap','writeStartDate','Start','startDate','earlySchedule','push','calculateProjectedDuration','36EGjmyd','calculateStartDate','getData','manuallyScheduled','prototype','decorate','scheduleMixinClass','map','isTaskPinnableWithConstraint','length','26533FgWsqP','run','1059945kaATJA','call','Millisecond','durationUnit','flatMap','3340248hEczSF','isStmRestoring','graph','400vMfRwF','parent','isRoot','4OKWTOy','369534aFMWlM','176776fCGzRz','parentEvent','updateParentEvent','write','isInitialTransaction','new','3072804yDVUFm','5jJGelo','297WGzsiu'];_ena=function(){return z;};return _ena();}import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x11c;let f=c[d];return f;};return _enb(a,b);}import{HasSubEventsMixin}from'../scheduler_basic/HasSubEventsMixin.js';import{DelayFromParentScheduleMixin}from'./DelayFromParentScheduleMixin.js';import{DateConstraintInterval,HasDateConstraintMixin}from'./HasDateConstraintMixin.js';class DelayFromParentMixin extends Mixin([HasChildrenMixin,HasSubEventsMixin,HasDateConstraintMixin],a=>{const b=a[q(-0x29,-0xf)];function q(a,b){return _enb(a- -0x15e,b);}class c extends a{get[q(-0x37,-0x1d)](){function r(a,b){return q(b-0x197,a);}return this[r(0x15c,0x15c)][r(0x14a,0x160)];}[q(-0x25,-0x28)](){if(this[s(0x490,0x482)]&&(this[s(0x49d,0x4a1)]&&!this[s(0x4ba,0x4a1)]['isRoot'])){return![];}function s(a,b){return q(b-0x4b9,a);}return b[s(0x4ab,0x494)][s(0x49a,0x499)](this);}[q(-0x34,-0x48)](){const d=Math['min'](...this['children'][t(0xa2,0x91)](e=>e[t(0x89,0x72)]||0x0));function t(a,b){return q(a-0xc8,b);}if(d!==0x0){for(const e of this['children']){this[t(0xae,0xc1)]['write'](e['$'][t(0x89,0x71)],e['delayFromParent']-d);}}}[q(-0x12,0x8)](d,e){function u(a,b){return q(b-0x3f6,a);}if(e&&this['usesDelayFromParent']&&d[u(0x3ce,0x3bf)]){e[u(0x3c7,0x3bf)]&&e[u(0x3d2,0x3c2)]();for(const f of d['children']){this[u(0x3d6,0x3dc)][u(0x3f4,0x3e5)](f['$'][u(0x3bf,0x3b7)],null);}}}*[q(-0x3c,-0x47)](){function v(a,b){return q(a- -0x26e,b);}let d=yield ProposedOrPrevious;const e=yield this['$'][v(-0x281,-0x268)];if(this[v(-0x2a5,-0x2ba)]&&e&&!e[v(-0x285,-0x28e)]&&d==null){let f=yield ProposedOrPreviousValueOf(e['$']['startDate']);if(!f){const h=e[v(-0x2ab,-0x2ad)][v(-0x28b,-0x283)](i=>i[v(-0x299,-0x29f)]('startDate')?.['getTime']()??[]);if(h[v(-0x292,-0x29a)]>0x0){f=new Date(Math['min'](...h));}}const g=yield ProposedOrPreviousValueOf(this['$'][v(-0x29f,-0x2b7)]);if(g){if(g[v(-0x2ac,-0x29d)]()<f[v(-0x2ac,-0x2c7)]()){d=-(yield*this[v(-0x29c,-0x2ad)](g,f));}else{d=yield*this[v(-0x29c,-0x282)](f,g);}}}return d;}[q(-0x33,-0x4c)](d,e,f,g,h=!![]){const {parent:i,children:j,project:k}=this;if(this[w(-0x270,-0x255)]&&!k[w(-0x241,-0x22e)]){if(i&&!i[w(-0x21f,-0x235)]&&i[w(-0x23e,-0x238)]&&!k[w(-0x238,-0x239)]){const l=i[w(-0x243,-0x240)](w(-0x23e,-0x24c),i['startDate'],g);e[w(-0x237,-0x22f)](this['$'][w(-0x255,-0x25d)],l);!i[w(-0x231,-0x248)]&&i[w(-0x243,-0x252)]();}if(!h&&j?.[w(-0x22f,-0x242)]&&this['manuallyScheduled']&&g['getTime']()<this[w(-0x266,-0x24f)][w(-0x252,-0x25c)]()){for(const m of j){const n=m[w(-0x237,-0x240)](w(-0x26d,-0x25e),m['startDate'][w(-0x253,-0x25c)]()-g['getTime'](),TimeUnit[w(-0x23f,-0x23d)],this[w(-0x235,-0x23c)]);e[w(-0x21d,-0x22f)](m['$']['delayFromParent'],n);}}}function w(a,b){return q(b- -0x21e,a);}return b[w(-0x265,-0x251)][w(-0x23f,-0x23e)](this,d,e,f,g,h);}*[q(-0x3a,-0x4b)](){function x(a,b){return q(a- -0x15b,b);}const d=yield*b[x(-0x195,-0x17e)][x(-0x17b,-0x167)](this);let e=yield this['$'][x(-0x19a,-0x1a0)];if(e!=null){const f=yield this['$']['parentEvent'];const g=yield*f['isManuallyScheduled']();let h;if(g){h=yield f['$'][x(-0x18c,-0x197)];}else{const i=yield f[x(-0x18b,-0x17e)]['$'][x(-0x190,-0x18f)];const j=yield f['$'][x(-0x190,-0x189)];if(i[x(-0x17f,-0x177)]||j['length']){const k=intersectIntervals([...i,...j]);h=k[x(-0x18c,-0x19a)];}if(!h){h=yield ProposedValueOf(f['$']['startDate']);}}if(h){h=yield*this['skipWorkingTime'](h,!![],e);d[x(-0x18a,-0x1a0)](DateConstraintInterval[x(-0x16a,-0x172)]({'owner':this,'side':ConstraintIntervalSide[x(-0x18d,-0x175)],'startDate':h}));}}return d;}*[q(-0x2c,-0x42)](){const d=yield*b['calculateStartDate'][y(0xd7,0xbf)](this);if(this[y(0xbf,0xa8)]){if(yield*this[y(0xc0,0xa7)]()){const e=yield this['$'][y(0x95,0xaa)];if(e[y(0xb6,0xbb)]){return e[e[y(0xc4,0xbb)]-0x1][y(0x9f,0xae)];}}}function y(a,b){return q(b-0xdf,a);}return d;}}c[q(-0x27,-0x26)]=Mixin([a[q(-0x27,-0x29)],DelayFromParentScheduleMixin],d=>d);c[q(-0x37,-0x38)]=!![];__decorate([model_field({'type':'number'})],c[q(-0x29,-0x2b)],q(-0x3f,-0x59),void 0x0);__decorate([calculate(q(-0x3f,-0x4d))],c[q(-0x29,-0x44)],q(-0x3c,-0x3b),null);return c;}){}export{DelayFromParentMixin};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(b- -0x19b,a);}while(!![]){try{const d=-parseInt(l(-0xb9,-0xad))/0x1*(parseInt(l(-0xc7,-0xbb))/0x2)+parseInt(l(-0xb3,-0xbe))/0x3*(-parseInt(l(-0x82,-0xba))/0x4)+parseInt(l(-0xde,-0xa9))/0x5*(parseInt(l(-0xb2,-0xa1))/0x6)+parseInt(l(-0x95,-0xb8))/0x7*(parseInt(l(-0xe2,-0xcb))/0x8)+parseInt(l(-0xb7,-0x80))/0x9+parseInt(l(-0xc3,-0xa2))/0xa*(parseInt(l(-0x100,-0xd9))/0xb)+parseInt(l(-0xa7,-0x94))/0xc*(parseInt(l(-0x52,-0x6d))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd2f7b));var __decorate=function(a,b,e,f){function m(a,b){return _enb(b-0x62,a);}var g=arguments[m(0x17b,0x168)],h=g<0x3?b:f===null?f=Object[m(0x1b0,0x188)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0x10c,0x13d)]==='function')h=Reflect[m(0x176,0x13d)](a,b,e,f);else for(var k=a[m(0x181,0x168)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x145,0x138)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';function _ena(){const X=['7247867ETXEFD','event','isWritingUndefined','manuallyScheduled','new','isReverting','getDescriptionParameters','setConstraint','forceResolutionOfPostponedConflict','canPostponeIntervalsConflict','FinishNoEarlierThan','phase','kind','startDate','2423976WMPQcQ','getStm','getDescription','endDate','getConstraintTypeDefaultDate','interval','defineProperty','unshift','baseRevision','getConstraintName','isAffectedByTransaction','decorate','resolve','933zqQCvE','writeEndDate','MustFinishOn','2bJizhe','17756DJqisC','calculateConstraintType','7jHgFLP','7.0.0','RemoveDateConstraintConflictResolution','owner','format','_isManuallyScheduled','PostponeDateConstraintConflictResolution','construct','startedTaskScheduling','writeDirection','MustStartOn','833914qUKwKl','writeStartDate','call','hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict','4945NpuGEh','postponedConflict','L{constraintTypeTpl}','$name','AsSoonAsPossible','getProject','isShadow','10DCgXDg','2388ZAaDgI','getEndDatePinConstraintType','allowPostponedConflicts','ignorePinningConstraint','hasIdentifier','createEndDateConstraintsInterval','applyChangeset','L{startDateDescriptionTpl}','FinishNoLaterThan','DateConstraintIntervalDescription','prototype','isDateConstraintInterval','length','72eHPEic','isConstraintTypeApplicable','bwcConflictPostpone','createStartDateConstraintsInterval','scheduleMixinClass','L{descriptionTpl}','writeConstraintType','isRestoring','Start','getOwnConstraintConflictInfo','StartNoEarlierThan','gantt','commitAsync','isSyncingDataOnLoad','date','percentDone','resolutions','write','constraintDate','direction','525258bLptpr','calculateConstraintDate','StartNoLaterThan','graph','hasPostponedOwnConstraintConflict','project','descriptionBuilderClass','effectiveDirection','sourceSchedule','deprecate','string','getOwnPropertyDescriptor','removeDateConstraintConflictResolutionClass','End','Backward','addConstraintOnDateSet','Manual','constraintType','resolvePostponedConflict','3606824IZNZJh','AsLateAsPossible','includeAsapAlapAsConstraints','isTaskPinnableWithConstraint','Forward','get','hasSubEvents','name','eventStore','dateConstraintIntervalClass'];_ena=function(){return X;};return _ena();}function _enM(a,b){return _enb(a-0x92,b);}import _ene from'@bryntum/core-thin/lib/localization/Localizable.js';import{ConflictResolution,ConstraintInterval,ConstraintIntervalDescription}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import'../../../localization/En.js';import{ConstraintIntervalSide,ConstraintType,Direction,StartedTaskScheduling}from'../../../scheduling/Types.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc0;let f=c[d];return f;};return _enb(a,b);}import{format}from'../../../util/Functions.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintScheduleMixin}from'./HasDateConstraintScheduleMixin.js';class HasDateConstraintMixin extends Mixin([ConstrainedEarlyEventMixin,HasChildrenMixin],a=>{const b=a[n(0x3d5,0x3ba)];class c extends a{constructor(){function o(a,b){return n(a-0x10c,b);}super(...arguments);this['forceResolutionOfPostponedConflict']=![];this[o(0x4da,0x49f)]=![];}get[n(0x3f0,0x3fe)](){_end[p(0x3cd,0x3e0)](p(0x3bb,0x389),p(0x38d,0x38c),p(0x39a,0x395));function p(a,b){return n(a- -0x28,b);}return this[p(0x39c,0x3b7)];}set[n(0x3f0,0x3ca)](d){function q(a,b){return n(a- -0x619,b);}_end[q(-0x224,-0x22a)](q(-0x236,-0x256),'7.0.0',q(-0x257,-0x23f));this[q(-0x255,-0x26e)]=d;}[n(0x3c0,0x3fa)](d,e,f,g,h=!![]){const i=this[r(0x1f6,0x1e3)](),{$:j}=this;function r(a,b){return n(b- -0x1e5,a);}if(i?.[r(0x231,0x216)]&&e['graph']['hasIdentifier'](j[r(0x1ec,0x20e)])&&!i[r(0x1a6,0x1ac)]['isSyncingDataOnLoad']&&!this[r(0x1bb,0x1b3)]&&!i[r(0x1e6,0x1bd)]()[r(0x1c3,0x1fa)]&&(h||this[r(0x1e7,0x20e)]['direction']===Direction[r(0x224,0x21e)])){const k=this['getStartDatePinConstraintType']();if(k){if(e[r(0x1f9,0x20a)]===this[r(0x1e7,0x20a)]){this[r(0x1f3,0x205)]=g;this[r(0x242,0x218)]=k;}else{e[r(0x1cf,0x204)](j[r(0x1f6,0x205)],g);e['write'](j[r(0x22a,0x218)],k);}}}return b['writeStartDate'][r(0x208,0x1dc)](this,d,e,f,g,h);}[n(0x3af,0x3a2)](d,e,f,g,h=![]){const i=this[s(0x40e,0x425)]();if(i?.[s(0x441,0x452)]&&e[s(0x435,0x448)]['hasIdentifier'](this['$'][s(0x431,0x42e)])&&h&&!i['eventStore'][s(0x42b,0x423)]&&!i[s(0x3e8,0x3c9)]()['isRestoring']){const j=this[s(0x412,0x3e9)]();if(j){e[s(0x42f,0x459)](this['$']['constraintDate'],g);e[s(0x42f,0x422)](this['$'][s(0x443,0x41e)],j);}}function s(a,b){return n(a-0x46,b);}return b[s(0x3f5,0x3de)][s(0x407,0x40d)](this,d,e,f,g,h);}[n(0x3de,0x40b)](d,e,f,g,h=![]){const i=this[t(-0x61,-0x5c)]();if(!h&&!d[t(-0x94,-0xb4)]&&i[t(-0x28,-0x28)]){if(g!==ConstraintType[t(-0x62,-0x97)]&&g!==ConstraintType[t(-0x29,0xa)]){if(e[t(-0x80,-0x79)]['hasIdentifier'](d)){e['write'](this['$']['direction'],null,!![]);}}else{e[t(-0x40,-0x5e)](this['$'][t(-0x3e,-0x70)],g===ConstraintType['AsSoonAsPossible']?Direction[t(-0x26,0x10)]:Direction[t(-0x2f,-0x43)],!![]);e[t(-0x40,-0x4d)](this['$'][t(-0x3f,-0x4e)],null);}}function t(a,b){return n(a- -0x429,b);}d['constructor'][t(-0x54,-0x4f)][t(-0x40,-0x7)][t(-0x68,-0x8e)](this,d,e,f,g);}[n(0x3bd,0x3f4)](d,e,f,g,h=![]){const i=this[u(-0x2c7,-0x28e)]();if(!h&&!d[u(-0x2fa,-0x314)]&&i[u(-0x28e,-0x284)]&&(g||e[u(-0x2e6,-0x2d0)]['hasIdentifier'](d))){e['write'](this['$'][u(-0x292,-0x2b0)],g===Direction[u(-0x28c,-0x2b9)]?ConstraintType['AsSoonAsPossible']:g===Direction['Backward']?ConstraintType[u(-0x28f,-0x2aa)]:null,!![]);}function u(a,b){return n(a- -0x68f,b);}d['constructor']['prototype'][u(-0x2a6,-0x297)]['call'](this,d,e,f,g);}*[n(0x3b3,0x3d3)](){let d=yield ProposedOrPrevious;function v(a,b){return n(b- -0x4f3,a);}if(!(yield*this[v(-0x138,-0x11a)](d))){d=null;}return d;}*[n(0x3ed,0x3bf)](d){let e=yield ProposedOrPrevious;const f=yield this['$'][w(0x9d,0xca)];if(!f){e=null;}else if(!e){e=this[w(0x45,0x1f)](d,f);}function w(a,b){return n(a- -0x360,b);}return e;}['getStartDatePinConstraintType'](){function x(a,b){return n(a- -0x66,b);}const {effectiveDirection:d}=this[x(0x38b,0x366)];if(!this[x(0x39c,0x381)]())return null;switch(d['direction']){case Direction[x(0x39d,0x3ad)]:return ConstraintType[x(0x37c,0x36e)];case Direction[x(0x394,0x3a1)]:return ConstraintType['StartNoLaterThan'];}}['getEndDatePinConstraintType'](){function y(a,b){return n(b- -0x568,a);}const {effectiveDirection:d}=this[y(-0x146,-0x177)];if(!this[y(-0x178,-0x166)]())return null;switch(d['direction']){case Direction[y(-0x131,-0x165)]:return ConstraintType['FinishNoEarlierThan'];case Direction[y(-0x144,-0x16e)]:return ConstraintType[y(-0x16b,-0x195)];}}[n(0x3b9,0x3a0)](){let d=this[z(0x313,0x338)];if(!d){const e=this[z(0x36e,0x36b)][z(0x339,0x32e)];if(e===StartedTaskScheduling[z(0x379,0x395)]){d=this[z(0x364,0x33d)]>0x0;}}function z(a,b){return n(a- -0x83,b);}return d;}['isTaskPinnableWithConstraint'](){const {ignorePinningConstraint:d,constraintType:e}=this;let f=![];function A(a,b){return n(b-0xc,a);}if(!this[A(0x3b3,0x3c5)]()&&!d){if(e){switch(e){case ConstraintType[A(0x3a4,0x3d3)]:case ConstraintType[A(0x41e,0x40c)]:case ConstraintType[A(0x3c7,0x3ee)]:case ConstraintType[A(0x3d2,0x3fa)]:case ConstraintType[A(0x39e,0x3a9)]:case ConstraintType['FinishNoLaterThan']:f=!![];}}else{f=!![];}}return f;}[n(0x3d1,0x3e1)](...d){this[B(0x425,0x453)]=!![];const e=super[B(0x428,0x452)](...d);function B(a,b){return n(a-0x57,b);}this['ignorePinningConstraint']=![];return e;}[n(0x3a5,0x38d)](d,e){switch(e){case ConstraintType[C(0x3ab,0x37f)]:case ConstraintType[C(0x396,0x38b)]:case ConstraintType[C(0x32e,0x35b)]:return d(ProposedOrPreviousValueOf(this['$']['startDate']));case ConstraintType[C(0x31e,0x33a)]:case ConstraintType[C(0x368,0x370)]:case ConstraintType[C(0x31e,0x34d)]:return d(ProposedOrPreviousValueOf(this['$'][C(0x356,0x341)]));}function C(a,b){return n(b- -0x63,a);}return null;}*[n(0x3d9,0x3c0)](d){const e=yield*this[D(0x88,0x63)]();function D(a,b){return n(b- -0x3a2,a);}switch(d){case ConstraintType[D(-0x3c,-0x5)]:case ConstraintType[D(0x87,0x4c)]:case ConstraintType[D(0x3e,0xe)]:case ConstraintType['MustStartOn']:return!e;}return!![];}async[n(0x39a,0x3ae)](d,e){this['constraintType']=d;if(e!==void 0x0){this[E(-0xc1,-0xc0)]=e;}function E(a,b){return n(a- -0x4ab,b);}return this[E(-0xc7,-0xaa)]();}[n(0x39c,0x387)](d){function F(a,b){return n(a- -0x340,b);}return this[F(0xb1,0xad)][F(0x9a,0xa1)]?this[F(0xa1,0xc6)](d)[F(0x5f,0x41)]==='dependency_with_own_constraint':!![];}['getOwnConstraintConflictInfo'](d){return{'kind':'no_own_constraint_conflict'};}*['onNonEmptyEffectiveInterval'](d,e){const f=yield*e['isFirstPass']();function G(a,b){return n(a- -0x3c1,b);}const g=yield this['$'][G(0x3,0x13)];if(g&&f&&e[G(-0x23,-0x2a)]===g[G(0x33,0x5c)][G(-0x23,-0x50)]){yield Write(this['$']['postponedConflict'],null);}this[G(-0x26,-0x2a)]=![];}async[n(0x3fe,0x418)](){if(this[H(0x170,0x138)]){this['postponedConflict']=null;this[H(0x147,0x181)]=!![];}function H(a,b){return n(a- -0x254,b);}return this[H(0x19d,0x1c6)][H(0x190,0x17c)]();}*[n(0x3db,0x3bc)](d,e,f,g){const h=this['project'][I(-0x109,-0xe5)];function I(a,b){return n(a- -0x49b,b);}switch(d){case ConstraintType['MustStartOn']:g[I(-0xf3,-0x101)](h['new']({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xa4)],'startDate':e,'endDate':e}));break;case ConstraintType['StartNoEarlierThan']:g[I(-0xf3,-0xee)](h[I(-0x104,-0x123)]({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xbe)],'startDate':e}));break;case ConstraintType['StartNoLaterThan']:g[I(-0xf3,-0xe1)](h['new']({'owner':this,'side':ConstraintIntervalSide[I(-0xbb,-0xcb)],'endDate':e}));break;}}*[n(0x3d0,0x3cd)](d,e,f,g){const h=this['project']['dateConstraintIntervalClass'];function J(a,b){return n(a- -0x258,b);}switch(d){case ConstraintType[J(0x158,0x16a)]:g[J(0x150,0x17f)](h['new']({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x168)],'startDate':e,'endDate':e}));break;case ConstraintType['FinishNoEarlierThan']:g[J(0x150,0x189)](h['new']({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x197)],'startDate':e}));break;case ConstraintType[J(0x17b,0x147)]:g[J(0x150,0x152)](h[J(0x13f,0x15a)]({'owner':this,'side':ConstraintIntervalSide[J(0x1a1,0x186)],'endDate':e}));break;}}}c[n(0x3dc,0x402)]=Mixin([a['scheduleMixinClass'],HasDateConstraintScheduleMixin],d=>d);__decorate([model_field({'type':n(0x3f6,0x3e5)},{'sync':!![]})],c[n(0x3d5,0x406)],n(0x3fd,0x3c7),void 0x0);function n(a,b){return _enb(a-0x2d1,b);}__decorate([model_field({'type':n(0x3e6,0x409)},{'converter':dateConverter,'sync':!![]})],c[n(0x3d5,0x39c)],'constraintDate',void 0x0);__decorate([model_field({'defaultValue':null,'persist':![]},{'sync':!![]})],c[n(0x3d5,0x3b6)],n(0x3c4,0x3ac),void 0x0);__decorate([write(n(0x3fd,0x42b))],c[n(0x3d5,0x40e)],'writeConstraintType',null);__decorate([write(n(0x3eb,0x413))],c[n(0x3d5,0x3ce)],n(0x3bd,0x38f),null);__decorate([calculate('constraintType')],c[n(0x3d5,0x3ae)],'calculateConstraintType',null);__decorate([calculate(n(0x3ea,0x411))],c[n(0x3d5,0x3c2)],n(0x3ed,0x426),null);return c;}){}class RemoveDateConstraintConflictResolution extends _ene(ConflictResolution){['construct'](){super[K(-0x247,-0x220)](...arguments);function K(a,b){return _enb(a- -0x331,b);}this['event']=this['interval'][K(-0x24b,-0x211)];}['getDescription'](){function L(a,b){return _enb(b-0x43,a);}const {event:a}=this;return format(this['L']('L{descriptionTpl}'),a['name']||a['id'],this[L(0x125,0x118)][L(0x157,0x11c)](a[L(0x166,0x16f)]));}[_enM(0x16e,0x13d)](){const {event:a}=this;a[N(0x1e8,0x209)]=null;function N(a,b){return _enM(a-0x2a,b);}a[N(0x1d5,0x1ac)]=null;}}RemoveDateConstraintConflictResolution[_enM(0x187,0x1b2)]=_enM(0x177,0x1ab);class PostponeDateConstraintConflictResolution extends _ene(ConflictResolution){get[_enM(0x155,0x184)](){function O(a,b){return _enM(b- -0xe0,a);}return this[O(0x58,0x87)][O(0x80,0x98)];}[_enM(0x164,0x195)](){function P(a,b){return _enM(a- -0xb1,b);}const {event:a}=this;return format(this['L'](P(0xed,0xf8)),a[P(0x116,0x13e)]||a['id']);}[_enM(0x16e,0x17f)](){function Q(a,b){return _enM(a- -0x400,b);}this[Q(-0x2ab,-0x27a)][Q(-0x27b,-0x24a)]=this['conflict'];}}PostponeDateConstraintConflictResolution[_enM(0x187,0x1a6)]=_enM(0x17b,0x147);class DateConstraintIntervalDescription extends ConstraintIntervalDescription{static[_enM(0x164,0x188)](a){a=a['reflectionOf']||a;let b;function R(a,b){return _enM(b-0x16e,a);}switch(a['owner'][R(0x354,0x32c)]){case ConstraintType[R(0x2e8,0x311)]:case ConstraintType[R(0x2e6,0x2cc)]:case ConstraintType[R(0x311,0x2ed)]:case ConstraintType[R(0x2f1,0x2df)]:b=this['L'](R(0x2e5,0x301));break;case ConstraintType[R(0x346,0x31d)]:case ConstraintType[R(0x327,0x302)]:b=this['L']('L{endDateDescriptionTpl}');break;}return format(b,...this[R(0x2f1,0x2c8)](a));}static[_enM(0x16b,0x19b)](a){function S(a,b){return _enM(a- -0x1d3,b);}return this['L'](S(-0x4d,-0x48))[a];}static[_enM(0x15a,0x17f)](a){a=a['reflectionOf']||a;const b=a[T(0x4aa,0x497)];function T(a,b){return _enM(b-0x31f,a);}return[_enc[T(0x4a3,0x498)](a[T(0x4a9,0x480)],this['L']('L{dateFormat}')),_enc[T(0x49d,0x498)](a[T(0x44f,0x484)],this['L']('L{dateFormat}')),b['name']||b['id'],this[T(0x463,0x48a)](b[T(0x4dc,0x4dd)])];}}DateConstraintIntervalDescription[_enM(0x187,0x16e)]=_enM(0x195,0x1ac);class DateConstraintInterval extends ConstraintInterval{get[_enM(0x197,0x17e)](){return!![];}[_enM(0x16b,0x19c)](a){function U(a,b){return _enM(a- -0x269,b);}return this['descriptionBuilderClass'][U(-0xfe,-0xf6)](a||this[U(-0xf1,-0xbb)][U(-0xab,-0x9e)]);}['getDescription'](){return this['descriptionBuilderClass']['getDescription'](this);}[_enM(0x16c,0x180)](a){const b=this[V(0x34a,0x311)];a=a||b[V(0x344,0x349)]['activeTransaction'];function V(a,b){return _enM(b-0x199,a);}const {entries:c}=a,{$:d}=b,e=c[V(0x327,0x35e)](d[V(0x322,0x344)]),f=c[V(0x38e,0x35e)](d[V(0x391,0x357)]);return!a[V(0x2e1,0x303)][V(0x323,0x329)](b['$$'])||e&&!e[V(0x325,0x323)]()||f&&!f['isShadow']();}['getResolutions'](a,b){if(this[W(0x1bf,0x184)]!==void 0x0)return this['resolutions'];const c=[this[W(0x1cf,0x1d3)][W(0x16e,0x135)]({'interval':this})],d=this[W(0x18e,0x1a2)],e=d[W(0x19f,0x16b)]();function W(a,b){return _enM(a-0x16,b);}if((e[W(0x1a4,0x19c)]||e['autoPostponeConflicts'])&&d[W(0x173,0x18d)](a)){c['push'](PostponeDateConstraintConflictResolution[W(0x16e,0x1a2)]({'interval':this,'conflict':b}));}return this[W(0x1bf,0x1b2)]=c;}}__decorate([prototypeValue(RemoveDateConstraintConflictResolution)],DateConstraintInterval[_enM(0x196,0x1a0)],'removeDateConstraintConflictResolutionClass',void 0x0);__decorate([prototypeValue(DateConstraintIntervalDescription)],DateConstraintInterval['prototype'],_enM(0x1b3,0x18b),void 0x0);export{DateConstraintInterval,DateConstraintIntervalDescription,HasDateConstraintMixin,PostponeDateConstraintConflictResolution,RemoveDateConstraintConflictResolution};
1
+ (function(a,b){const c=a();function l(a,b){return _enb(b- -0x326,a);}while(!![]){try{const d=-parseInt(l(-0x1e1,-0x217))/0x1*(-parseInt(l(-0x24e,-0x22e))/0x2)+parseInt(l(-0x20a,-0x208))/0x3+parseInt(l(-0x1e9,-0x205))/0x4*(-parseInt(l(-0x23c,-0x251))/0x5)+parseInt(l(-0x255,-0x249))/0x6+parseInt(l(-0x1df,-0x1f3))/0x7+parseInt(l(-0x24c,-0x253))/0x8*(parseInt(l(-0x25f,-0x23e))/0x9)+parseInt(l(-0x1d5,-0x1fc))/0xa*(-parseInt(l(-0x1fe,-0x231))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x27e7a));function _enK(a,b){return _enb(b- -0x3d,a);}var __decorate=function(a,b,e,f){var g=arguments[m(0x22a,0x212)],h=g<0x3?b:f===null?f=Object[m(0x260,0x26b)](b,e):f,j;if(typeof Reflect===m(0x21b,0x1f4)&&typeof Reflect[m(0x24f,0x263)]===m(0x26b,0x277))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x22a,0x24f)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a-0x143,b);}return g>0x3&&h&&Object[m(0x23c,0x223)](b,e,h),h;};import{ProposedOrPrevious,ProposedOrPreviousValueOf,Write}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _ena(){const X=['getOwnPropertyDescriptor','194253ljzMAL','getEndDatePinConstraintType','constructor','6376FTvODS','hasPostponedOwnConstraintConflict','conflict','prototype','AsLateAsPossible','AsSoonAsPossible','_isManuallyScheduled','function','direction','210WXAPOE','calculateConstraintDate','MustStartOn','get','getStm','write','removeDateConstraintConflictResolutionClass','baseRevision','getDescription','1527911AvZaUg','onNonEmptyEffectiveInterval','string','isShadow','hasSubEvents','isAffectedByTransaction','applyChangeset','reflectionOf','isFirstPass','StartNoLaterThan','getOwnConstraintConflictInfo','FinishNoLaterThan','allowPostponedConflicts','startedTaskScheduling','name','isDateConstraintInterval','getDescriptionParameters','postponedConflict','writeEndDate','getConstraintName','isTaskPinnableWithConstraint','1547704iNeVQB','getResolutions','790dXudNM','RemoveDateConstraintConflictResolution','hasIdentifier','object','$name','resolvePostponedConflict','new','scheduleMixinClass','1858122jEZHit','effectiveDirection','constraintType','includeAsapAlapAsConstraints','no_own_constraint_conflict','Forward','kind','commitAsync','push','unshift','length','9SARlie','L{descriptionTpl}','constraintDate','calculateConstraintType','L{constraintTypeTpl}','writeDirection','Backward','addConstraintOnDateSet','resolve','sourceSchedule','writeConstraintType','dependency_with_own_constraint','event','343981xDHDPj','endDate','project','190546PrHhfS','defineProperty','isRestoring','format','owner','L{startDateDescriptionTpl}','forceResolutionOfPostponedConflict','isSyncingDataOnLoad','deprecate','resolutions','isReverting','startDate','Manual','canPostponeIntervalsConflict','getConstraintTypeDefaultDate','eventStore','L{endDateDescriptionTpl}','phase','construct','writeStartDate','decorate','call','descriptionBuilderClass','3QhhkeL','graph','getStartDatePinConstraintType','dateConstraintIntervalClass','FinishNoEarlierThan','createEndDateConstraintsInterval','DateConstraintIntervalDescription','MustFinishOn','StartNoEarlierThan','interval','7.0.0','getProject','isConstraintTypeApplicable','isWritingUndefined'];_ena=function(){return X;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{prototypeValue}from'@bryntum/engine-thin/lib/ChronoGraph/util/Helpers.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/VersionHelper.js';import _ene from'@bryntum/core-thin/lib/localization/Localizable.js';import{ConflictResolution,ConstraintInterval,ConstraintIntervalDescription}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import'../../../localization/En.js';import{ConstraintIntervalSide,ConstraintType,Direction,StartedTaskScheduling}from'../../../scheduling/Types.js';import{format}from'../../../util/Functions.js';import{HasChildrenMixin}from'../scheduler_basic/HasChildrenMixin.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasDateConstraintScheduleMixin}from'./HasDateConstraintScheduleMixin.js';class HasDateConstraintMixin extends Mixin([ConstrainedEarlyEventMixin,HasChildrenMixin],a=>{const b=a['prototype'];class c extends a{constructor(){super(...arguments);this[n(-0x29b,-0x2a7)]=![];function n(a,b){return _enb(a- -0x399,b);}this['ignorePinningConstraint']=![];}get[o(0x72,0x71)](){function p(a,b){return o(b,a-0x3c2);}_end[p(0x411,0x436)](p(0x42a,0x421),'hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict');return this['postponedConflict'];}set['hasPostponedOwnConstraintConflict'](d){_end[q(-0x64,-0x5c)]('7.0.0','hasPostponedOwnConstraintConflict\x20is\x20deprecated\x20and\x20renamed\x20to\x20postponedConflict');function q(a,b){return o(a,b- -0xab);}this[q(-0x2a,-0x18)]=d;}['writeStartDate'](d,e,f,g,h=!![]){const i=this[r(0x344,0x342)](),{$:j}=this;if(i?.[r(0x2fd,0x317)]&&e[r(0x306,0x338)][r(0x305,0x2ff)](j['effectiveDirection'])&&!i[r(0x2f6,0x32f)][r(0x30b,0x327)]&&!this[r(0x353,0x32a)]&&!i[r(0x366,0x356)]()[r(0x30a,0x322)]&&(h||this[r(0x33e,0x306)][r(0x381,0x351)]===Direction[r(0x2ec,0x30a)])){const k=this[r(0x369,0x339)]();if(k){if(e[r(0x31e,0x338)]===this['graph']){this['constraintDate']=g;this[r(0x320,0x307)]=k;}else{e[r(0x36d,0x357)](j['constraintDate'],g);e['write'](j['constraintType'],k);}}}function r(a,b){return o(a,b-0x2d9);}return b[r(0x320,0x333)][r(0x32d,0x335)](this,d,e,f,g,h);}[o(-0xe,0x1f)](d,e,f,g,h=![]){const i=this['getProject']();if(i?.[s(-0x194,-0x1ce)]&&e[s(-0x173,-0x187)][s(-0x1ac,-0x1a5)](this['$'][s(-0x15a,-0x15a)])&&h&&!i[s(-0x17c,-0x19c)][s(-0x184,-0x1ac)]&&!i[s(-0x155,-0x140)]()[s(-0x189,-0x17c)]){const j=this['getEndDatePinConstraintType']();if(j){e['write'](this['$'][s(-0x199,-0x18b)],g);e[s(-0x154,-0x141)](this['$'][s(-0x1a4,-0x1ad)],j);}}function s(a,b){return o(b,a- -0x1d2);}return b[s(-0x1b3,-0x1bd)][s(-0x176,-0x182)](this,d,e,f,g,h);}['writeConstraintType'](d,e,f,g,h=![]){const i=this[t(-0xa4,-0xa0)]();if(!h&&!d[t(-0xa2,-0xd0)]&&i[t(-0xde,-0x113)]){if(g!==ConstraintType[t(-0x98,-0x66)]&&g!==ConstraintType[t(-0x99,-0x83)]){if(e['baseRevision']['hasIdentifier'](d)){e[t(-0x8f,-0x9b)](this['$']['direction'],null,!![]);}}else{e[t(-0x8f,-0x8d)](this['$'][t(-0x95,-0x5c)],g===ConstraintType[t(-0x98,-0xb2)]?Direction['Forward']:Direction['Backward'],!![]);e[t(-0x8f,-0x7c)](this['$'][t(-0xd4,-0xed)],null);}}function t(a,b){return o(b,a- -0x10d);}d[t(-0x9e,-0xa7)][t(-0x9a,-0x72)][t(-0x8f,-0x63)]['call'](this,d,e,f,g);}['writeDirection'](d,e,f,g,h=![]){const i=this['getProject']();if(!h&&!d[u(0x8a,0xa7)]&&i[u(0xa1,0x6b)]&&(g||e[u(0xe3,0xbc)][u(0x44,0x62)](d))){e[u(0xed,0xba)](this['$'][u(0x39,0x6a)],g===Direction[u(0x4b,0x6d)]?ConstraintType['AsSoonAsPossible']:g===Direction[u(0x4e,0x79)]?ConstraintType[u(0x85,0xb0)]:null,!![]);}function u(a,b){return o(a,b-0x3c);}d[u(0xa4,0xab)]['prototype'][u(0x84,0xba)][u(0xb6,0x98)](this,d,e,f,g);}*[o(0x5d,0x3a)](){let d=yield ProposedOrPrevious;if(!(yield*this[v(0x34e,0x37b)](d))){d=null;}function v(a,b){return o(a,b-0x311);}return d;}*[o(0x3f,0x7a)](d){let e=yield ProposedOrPrevious;function w(a,b){return o(b,a- -0x21b);}const f=yield this['$'][w(-0x1ed,-0x217)];if(!f){e=null;}else if(!e){e=this[w(-0x1c6,-0x1f6)](d,f);}return e;}[o(0x82,0x60)](){function x(a,b){return o(b,a- -0x1cd);}const {effectiveDirection:d}=this[x(-0x187,-0x16d)];if(!this[x(-0x1ac,-0x1c2)]())return null;switch(d[x(-0x155,-0x126)]){case Direction[x(-0x19c,-0x161)]:return ConstraintType[x(-0x167,-0x168)];case Direction[x(-0x190,-0x1af)]:return ConstraintType[x(-0x142,-0x148)];}}[o(0x4a,0x6e)](){function y(a,b){return o(b,a- -0xc4);}const {effectiveDirection:d}=this[y(-0x7e,-0xa8)];if(!this[y(-0xa3,-0x81)]())return null;switch(d[y(-0x4c,-0x4d)]){case Direction[y(-0x93,-0xba)]:return ConstraintType[y(-0x62,-0x53)];case Direction[y(-0x87,-0x7d)]:return ConstraintType['FinishNoLaterThan'];}}[o(0x44,0x76)](){function z(a,b){return o(b,a- -0x17a);}let d=this['manuallyScheduled'];if(!d){const e=this[z(-0x134,-0x11c)][z(-0xeb,-0x100)];if(e===StartedTaskScheduling[z(-0x127,-0x153)]){d=this['percentDone']>0x0;}}return d;}[o(0x20,0x21)](){function A(a,b){return o(a,b-0x339);}const {ignorePinningConstraint:d,constraintType:e}=this;let f=![];if(!this[A(0x39e,0x3af)]()&&!d){if(e){switch(e){case ConstraintType[A(0x3ad,0x3ae)]:case ConstraintType[A(0x39b,0x3ad)]:case ConstraintType[A(0x36e,0x39f)]:case ConstraintType['StartNoLaterThan']:case ConstraintType[A(0x3ae,0x39b)]:case ConstraintType['FinishNoLaterThan']:f=!![];}}else{f=!![];}}return f;}[o(0x87,0x88)](...d){this['ignorePinningConstraint']=!![];const e=super['applyChangeset'](...d);this['ignorePinningConstraint']=![];return e;}[o(0x4d,0x55)](d,e){function B(a,b){return o(b,a- -0x8);}switch(e){case ConstraintType['StartNoEarlierThan']:case ConstraintType['StartNoLaterThan']:case ConstraintType[B(0x73,0xa9)]:return d(ProposedOrPreviousValueOf(this['$'][B(0x4a,0x2c)]));case ConstraintType[B(0x5a,0x4c)]:case ConstraintType[B(0x85,0x66)]:case ConstraintType[B(0x5d,0x94)]:return d(ProposedOrPreviousValueOf(this['$'][B(0x3d,0xc)]));}return null;}*[o(0x4f,0x6a)](d){const e=yield*this[C(-0x214,-0x1ef)]();switch(d){case ConstraintType['FinishNoEarlierThan']:case ConstraintType[C(-0x20f,-0x230)]:case ConstraintType[C(-0x235,-0x215)]:case ConstraintType[C(-0x21f,-0x22a)]:return!e;}function C(a,b){return o(b,a- -0x29a);}return!![];}async['setConstraint'](d,e){this['constraintType']=d;if(e!==void 0x0){this[D(-0x16,-0x20)]=e;}function D(a,b){return o(a,b- -0x59);}return this[D(-0x46,-0x26)]();}[o(0x3a,0x54)](d){function E(a,b){return o(b,a-0x10d);}return this[E(0x153,0x13a)]['bwcConflictPostpone']?this['getOwnConstraintConflictInfo'](d)[E(0x13f,0x144)]===E(0x14f,0x11c):!![];}[o(0xbf,0x8c)](d){function F(a,b){return o(a,b-0xf5);}return{'kind':F(0x10b,0x125)};}*[o(0x56,0x83)](d,e){function G(a,b){return o(b,a- -0x244);}const f=yield*e[G(-0x1ba,-0x1e3)]();const g=yield this['$'][G(-0x1b1,-0x1d7)];if(g&&f&&e[G(-0x1ec,-0x1e7)]===g[G(-0x204,-0x210)][G(-0x1ec,-0x21a)]){yield Write(this['$']['postponedConflict'],null);}this['forceResolutionOfPostponedConflict']=![];}async[o(0x57,0x29)](){function H(a,b){return o(a,b- -0x2a6);}if(this[H(-0x246,-0x213)]){this[H(-0x1f2,-0x213)]=null;this[H(-0x27e,-0x259)]=!![];}return this[H(-0x243,-0x260)][H(-0x274,-0x273)]();}*['createStartDateConstraintsInterval'](d,e,f,g){function I(a,b){return o(b,a-0x255);}const h=this[I(0x29b,0x26e)][I(0x2b6,0x2c7)];switch(d){case ConstraintType['MustStartOn']:g[I(0x28a,0x25a)](h['new']({'owner':this,'side':ConstraintIntervalSide['Start'],'startDate':e,'endDate':e}));break;case ConstraintType[I(0x2bb,0x2a0)]:g['unshift'](h[I(0x27f,0x258)]({'owner':this,'side':ConstraintIntervalSide['Start'],'startDate':e}));break;case ConstraintType['StartNoLaterThan']:g[I(0x28a,0x26c)](h[I(0x27f,0x270)]({'owner':this,'side':ConstraintIntervalSide['Start'],'endDate':e}));break;}}*[o(0x42,0x63)](d,e,f,g){const h=this[J(-0x233,-0x238)][J(-0x218,-0x23a)];function J(a,b){return o(b,a- -0x279);}switch(d){case ConstraintType[J(-0x214,-0x225)]:g[J(-0x244,-0x26f)](h[J(-0x24f,-0x22d)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e,'endDate':e}));break;case ConstraintType['FinishNoEarlierThan']:g[J(-0x244,-0x25d)](h[J(-0x24f,-0x22c)]({'owner':this,'side':ConstraintIntervalSide['End'],'startDate':e}));break;case ConstraintType[J(-0x1ec,-0x205)]:g['unshift'](h[J(-0x24f,-0x243)]({'owner':this,'side':ConstraintIntervalSide['End'],'endDate':e}));break;}}}function o(a,b){return _enb(b- -0xb1,a);}c[o(0x48,0x2b)]=Mixin([a['scheduleMixinClass'],HasDateConstraintScheduleMixin],d=>d);__decorate([model_field({'type':o(0x9c,0x84)},{'sync':!![]})],c[o(0x9a,0x73)],o(0x29,0x2e),void 0x0);__decorate([model_field({'type':'date'},{'converter':dateConverter,'sync':!![]})],c[o(0x59,0x73)],'constraintDate',void 0x0);__decorate([model_field({'defaultValue':null,'persist':![]},{'sync':!![]})],c['prototype'],'postponedConflict',void 0x0);__decorate([write('constraintType')],c[o(0x9c,0x73)],o(0x71,0x41),null);__decorate([write(o(0x48,0x78))],c[o(0x94,0x73)],o(0x1e,0x3c),null);__decorate([calculate(o(0x8,0x2e))],c[o(0xa8,0x73)],o(0x1,0x3a),null);__decorate([calculate(o(0x16,0x39))],c[o(0x56,0x73)],o(0x97,0x7a),null);return c;}){}class RemoveDateConstraintConflictResolution extends _ene(ConflictResolution){[_enK(0xe7,0xcd)](){function L(a,b){return _enK(a,b-0x124);}super['construct'](...arguments);this[L(0x1b6,0x1db)]=this[L(0x1d4,0x1ff)][L(0x21b,0x1e3)];}[_enK(0x11b,0xf5)](){const {event:a}=this;function M(a,b){return _enK(a,b-0xbb);}return format(this['L'](M(0x175,0x167)),a[M(0x1ab,0x1bf)]||a['id'],this['interval'][M(0x184,0x14f)](a[M(0x197,0x15d)]));}['resolve'](){const {event:a}=this;function N(a,b){return _enK(a,b- -0x11d);}a['constraintType']=null;a[N(-0x44,-0x70)]=null;}}RemoveDateConstraintConflictResolution[_enK(0x7a,0x9c)]=_enK(0x7e,0x99);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xd0;let f=c[d];return f;};return _enb(a,b);}class PostponeDateConstraintConflictResolution extends _ene(ConflictResolution){get[_enK(0xba,0xb7)](){function O(a,b){return _enK(a,b- -0xd7);}return this[O(0xf,0x4)][O(-0x26,-0x18)];}[_enK(0xcb,0xf5)](){const {event:a}=this;return format(this['L']('L{descriptionTpl}'),a['name']||a['id']);}[_enK(0xb7,0xb3)](){function P(a,b){return _enK(b,a- -0x5c);}this[P(0x5b,0x69)]['postponedConflict']=this[P(0x8a,0x6c)];}}PostponeDateConstraintConflictResolution[_enK(0xb3,0x9c)]='PostponeDateConstraintConflictResolution';class DateConstraintIntervalDescription extends ConstraintIntervalDescription{static['getDescription'](a){a=a[Q(0x219,0x23d)]||a;let b;function Q(a,b){return _enK(a,b-0x140);}switch(a['owner'][Q(0x1de,0x1e2)]){case ConstraintType[Q(0x1f8,0x21a)]:case ConstraintType[Q(0x1e9,0x216)]:case ConstraintType[Q(0x211,0x22f)]:case ConstraintType[Q(0x1f6,0x219)]:b=this['L'](Q(0x233,0x200));break;case ConstraintType[Q(0x217,0x23f)]:case ConstraintType[Q(0x20e,0x241)]:b=this['L'](Q(0x1dc,0x20b));break;}return format(b,...this[Q(0x277,0x246)](a));}static[_enK(0xbd,0x94)](a){function R(a,b){return _enK(a,b- -0x129);}return this['L'](R(-0xb4,-0x7a))[a];}static[_enK(0xfb,0x106)](a){a=a[S(-0x19f,-0x1c5)]||a;function S(a,b){return _enK(a,b- -0x2c2);}const b=a['owner'];return[_enc[S(-0x1cc,-0x204)](a[S(-0x1d8,-0x1fc)],this['L']('L{dateFormat}')),_enc[S(-0x20b,-0x204)](a['endDate'],this['L']('L{dateFormat}')),b[S(-0x1bd,-0x1be)]||b['id'],this[S(-0x20d,-0x22e)](b[S(-0x1fc,-0x220)])];}}DateConstraintIntervalDescription[_enK(0xa9,0x9c)]=_enK(0xd5,0xd8);class DateConstraintInterval extends ConstraintInterval{get[_enK(0x114,0x105)](){return!![];}['getConstraintName'](a){function T(a,b){return _enK(a,b-0xd5);}return this[T(0x189,0x1a6)][T(0x187,0x169)](a||this['owner']['constraintType']);}[_enK(0xf2,0xf5)](){function U(a,b){return _enK(b,a-0xa);}return this[U(0xdb,0xb2)][U(0xff,0xcf)](this);}[_enK(0x132,0xfb)](a){function V(a,b){return _enK(a,b-0x47);}const b=this[V(0xf2,0x106)];a=a||b[V(0x125,0x11a)]['activeTransaction'];const {entries:c}=a,{$:d}=b,e=c['get'](d[V(0xcb,0xf4)]),f=c[V(0x13c,0x137)](d[V(0xe2,0xe9)]);return!a[V(0x139,0x13b)][V(0xd9,0xe1)](b['$$'])||e&&!e[V(0x111,0x140)]()||f&&!f[V(0x121,0x140)]();}[_enK(0x5d,0x97)](a,b){if(this[W(0xa8,0x76)]!==void 0x0)return this[W(0xa8,0xa8)];const c=[this['removeDateConstraintConflictResolutionClass'][W(0x82,0xba)]({'interval':this})],d=this[W(0xa3,0x74)],e=d['getProject']();function W(a,b){return _enK(b,a- -0x1c);}if((e[W(0xe6,0x111)]||e['autoPostponeConflicts'])&&d[W(0xac,0xb5)](a)){c[W(0x8c,0xa4)](PostponeDateConstraintConflictResolution[W(0x82,0xb9)]({'interval':this,'conflict':b}));}return this['resolutions']=c;}}__decorate([prototypeValue(RemoveDateConstraintConflictResolution)],DateConstraintInterval['prototype'],_enK(0xcd,0xf3),void 0x0);__decorate([prototypeValue(DateConstraintIntervalDescription)],DateConstraintInterval[_enK(0xcc,0xe7)],_enK(0xab,0xd1),void 0x0);export{DateConstraintInterval,DateConstraintIntervalDescription,HasDateConstraintMixin,PostponeDateConstraintConflictResolution,RemoveDateConstraintConflictResolution};
@@ -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-0x2ce,b);}while(!![]){try{const d=-parseInt(W(0x4b3,0x4c2))/0x1+-parseInt(W(0x51b,0x4ce))/0x2*(parseInt(W(0x518,0x4c4))/0x3)+-parseInt(W(0x505,0x4bc))/0x4+parseInt(W(0x4df,0x4f9))/0x5*(-parseInt(W(0x533,0x55b))/0x6)+parseInt(W(0x4a1,0x4db))/0x7+-parseInt(W(0x542,0x4f2))/0x8*(-parseInt(W(0x4b0,0x47d))/0x9)+-parseInt(W(0x50c,0x4fd))/0xa*(-parseInt(W(0x4cd,0x4bf))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xaa209));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1cf;let f=c[d];return f;};return _enb(a,b);}var __decorate=function(a,b,e,f){function X(a,b){return _enb(b- -0x34c,a);}var g=arguments[X(-0xd2,-0x116)],h=g<0x3?b:f===null?f=Object[X(-0xcc,-0xfa)](b,e):f,j;if(typeof Reflect===X(-0x134,-0x11e)&&typeof Reflect[X(-0xa3,-0xda)]===X(-0x142,-0x119))h=Reflect[X(-0x88,-0xda)](a,b,e,f);else for(var k=a[X(-0xc2,-0x116)]-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[X(-0x12b,-0xdd)](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';function _ena0(a,b){return _enb(b-0x1cf,a);}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';function _ena(){const b5=['proposedEndOffsets','calculateEffort','forEach','1988742uuqsuy','calculateAssignmentsTypeSelector','resource','FixedUnits','set','minAssignmentProposedStartDate','getBaseOptionsForDurationCalculations','duration','hasInputOnEffort','isSegmented','isConstrainedAlongDirection','isChangingOnlyDuration','add','skipNonWorkingTime','MAX_VALUE','654552XqtzKI','new','calculateMaxAssignmentProposedEndDate','1363995DttZqq','calculateProposedAssignmentDuration','Normal','calculateProposedStartOffsets','HasProposedValue','graph','hasPhantomTimePhasedAssignments','proposedStartOffsets','proposedTotalUnits','proposedStartDate','some','calculateProjectedEffort','unscheduled','phantomEndOffset','push','calculateTimePhasedIntervalsCache','getTime','max','prepare','forEachAvailabilityInterval','dispatcher','hasOnlyTimePhasedAssignments','addProposedValueFlag','proposedEndOffset','calculateEndDate','isChangingOnlyEndDate','143cwaJVd','effectiveSchedulingMode','calculateProjectedXDateWithDuration','effort','shouldSkipNonWorkingTime','get','getDateShifter','getBaseOptionsForEffortCalculations','calculateProjectedXDate','getProject','proposedStartOffset','calculateProposedEndOffsetRaw','expandTrailingAssigmentsByEffort','hasUnitsOnAllAssignments','proposedAssignmentDuration','time','ignoreTimePhasedData','regularAssignmentsByCalendar','457975AXxeyw','isTimePhased','calculateAssignmentUnits','resolution','calculateDuration','timePhasedData','calculateProposedStartOffsetRaw','proposedMirror','ignoreResourceCalendar','maxAssignmentProposedEndDate','delete','calculateMinAssignmentProposedStartDate','calculateProposedEndDate','Millisecond','units','hasPreviousValueForUnits','maxCalendarRange','calculateHasOnlyRegularAssignmentsRaw','isChangingOnlyEffort','calculateProposedStartDate','calculateEffortPure','hasOnlyRegularAssignments','Backward','assigned','proposedEndDateMax','assignment','effortUnit','positioning','call','object','hasInputOnlyOnEffort','childEvents','prototype','effectiveDirection','function','calculateAssignmentsByCalendar','effectiveCalendarsCombination','length','2422560yTpcYG','collectInfo','input','Forward','hasInputOnDuration','minOffset','calculateMaxAssignmentProposedEndDateIncludingPhantom','3012170nnSdtK','expandTrailingAssignmentsByDuration','isChangingOnlyEffortOnAssignment','size','isPhantomTimePhased','isDurationDefinedByEffort','minAssignment','project','isForward','FixedDuration','start','hasTimePhasedInput','2175669ECDQyQ','type','calculateStartDate','2vzWNYM','timePhasedDispatcher','hasInputOnEndDate','endDate','effectiveCalendar','getOwnPropertyDescriptor','calculateProjectedDuration','proposedStartDateMin','effortDriven','event','calculateProposedStartDateMin','expandTrailingAssigmentsByDates','write','timePhasedIntervalsCache','isUserTimePhased','ignoreSegments','direction','calculateTotalAssignmentsEffort','assignmentsTypeSelector','has','move','Unknown\x20duration\x20scenario','getCalendarsWorking','collectAssignmentsByCalendar','72UOxEft','isManuallyScheduled','calculateTimePhasedDispatcher','proposedEndDate','hasPreviousEffortValue','hasInputOnAssignments','calculateProjectedXDateByEffort','startDate','end','selector','defineProperty','skipNonWorkingTimeInDurationWhenSchedulingManually','$convertDuration','decorate','proposedEndDateArgs','32yXNWLQ','sort','assign','getCalendarsWorkStatus','ion','purpose','assignmentsByCalendar'];_ena=function(){return b5;};return _ena();}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(){function Y(a,b){return _enb(b- -0x34,a);}this[Y(0x1c8,0x1e2)]=[];}['push'](a){function Z(a,b){return _enb(a-0x32c,b);}this[Z(0x542,0x4f6)]['push']({'time':a[Z(0x598,0x55c)],'type':Z(0x574,0x5c6),'assignment':a['assignment']},{'time':a[Z(0x57c,0x52a)],'type':Z(0x599,0x557),'assignment':a[Z(0x556,0x508)]});}[_ena0(0x414,0x3c6)](){function a1(a,b){return _ena0(b,a-0x1ba);}this[a1(0x59f,0x5f4)][a1(0x5fe,0x60e)]((a,b)=>{return a['time']-b['time'];});}[_ena0(0x47d,0x430)](a,b,c,d,e,f){const g=this[a2(0x2d,0x6)][b];if(a&&b===this[a2(0x2d,0x53)]['length']-0x1){if(g[a2(0x25,-0x1b)]<=c){e[a2(0x32,0x7)](g[a2(0x41,0x6a)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g['time']){e[a2(0x32,0x2b)](g['assignment']);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;function a2(a,b){return _ena0(b,a- -0x3b8);}let j=c;let k,l;for(k=b;k>=0x0&&k<this['timePhasedData'][a2(0x4d,0x80)];k+=h){const n=this[a2(0x2d,0x67)][k];const o=a?n['time']>=d:n['time']<=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(0x25,0x3)]<c:n['time']>c;if(!p){if(j[a2(0xc,0x20)]()!==n[a2(0x25,0x56)]['getTime']()){if(a){if(f(j,n['time'],e)===![])return-0x1;}else{if(f(n[a2(0x25,0x5)],j,e)===![])return-0x1;}}const q=a?n[a2(0x62,0x27)]===a2(0x5f,0x46):n[a2(0x62,0x10)]===a2(0x84,0x9f);if(q)e[a2(-0xa,-0x45)](n[a2(0x41,0x3d)]);else e[a2(0x32,0xb)](n[a2(0x41,0x15)]);}l=k;j=n[a2(0x25,0x4d)];}if(l===void 0x0){return k;}const m=this['timePhasedData'][l];if(a){e['delete'](m[a2(0x41,0x37)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e['delete'](m['assignment']);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this['event']=null;this[a3(0x182,0x16d)]=null;this[a3(0x132,0x14f)]=![];this['hasInputOnDuration']=![];this['hasInputOnEndDate']=![];function a3(a,b){return _ena0(a,b- -0x25b);}this[a3(0x19d,0x1e7)]=null;this[a3(0x1a8,0x1de)]=![];this[a3(0x19b,0x1dd)]=![];}get['isChangingOnlyEffort'](){const a=this[a4(0x2e4,0x2e3)];function a4(a,b){return _ena0(a,b- -0xe5);}return this[a4(0x275,0x2c5)]&&!Boolean(a[a4(0x310,0x323)]['get'](StartVar)&VariableInputState[a4(0x2a7,0x2d3)])&&!Boolean(a[a4(0x35f,0x323)][a4(0x334,0x2ee)](EndVar)&VariableInputState[a4(0x2b6,0x2d3)])&&!Boolean(a['input'][a4(0x2b5,0x2ee)](DurationVar)&VariableInputState[a4(0x2e0,0x2d3)])&&!a[a4(0x311,0x333)];}get['isChangingOnlyDuration'](){function a5(a,b){return _ena0(b,a- -0x1c0);}const a=this['dispatcher'];return this[a5(0x24a,0x244)]&&!Boolean(a[a5(0x248,0x29e)][a5(0x213,0x23c)](StartVar)&VariableInputState[a5(0x1f8,0x1f5)])&&!Boolean(a[a5(0x248,0x216)][a5(0x213,0x246)](EndVar)&VariableInputState[a5(0x1f8,0x1e3)])&&!Boolean(a[a5(0x248,0x253)]['get'](EffortVar)&VariableInputState[a5(0x1f8,0x1f2)])&&!a[a5(0x258,0x2a5)];}get[_ena0(0x3e6,0x3cd)](){const a=this['dispatcher'];function a6(a,b){return _ena0(b,a- -0x3ca);}const b=this[a6(0x78,0xc3)];return this['hasInputOnEndDate']&&(!b||!b[0x0])&&!Boolean(a[a6(0x3e,0x71)][a6(0x9,-0x35)](StartVar)&VariableInputState[a6(-0x12,0xe)])&&!Boolean(a['input'][a6(0x9,-0x4)](DurationVar)&VariableInputState[a6(-0x12,0xa)])&&!Boolean(a[a6(0x3e,-0x2)]['get'](EffortVar)&VariableInputState[a6(-0x12,-0x66)])&&!a[a6(0x4e,0xc)];}*[_ena0(0x453,0x407)](){const a=this[a7(0x597,0x569)];this[a7(0x50e,0x4ee)]=yield HasProposedNotPreviousValue(a['$'][a7(0x4d2,0x515)]);function a7(a,b){return _ena0(a,b-0x144);}this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$']['duration']);this[a7(0x51d,0x562)]=yield HasProposedNotPreviousValue(a['$'][a7(0x50d,0x563)]);this['dispatcher']=yield a['$'][a7(0x585,0x561)];this['proposedEndDateArgs']=yield ProposedArgumentsOf(a['$'][a7(0x564,0x563)]);this['hasInputOnAssignments']=yield*a['hasProposedAssignments']();this[a7(0x552,0x57c)]=yield HasPreviousValue(a['$'][a7(0x545,0x515)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a8(-0x16c,-0x1b5)]=null;this[a8(-0x19a,-0x193)]=null;this[a8(-0x19c,-0x15a)]=null;this[a8(-0x1c8,-0x1db)]=null;this[a8(-0x1b6,-0x1b2)]=null;function a8(a,b){return _ena0(b,a- -0x591);}this['hasPhantomTimePhasedAssignments']=null;}*[_ena0(0x3b3,0x407)](){function a9(a,b){return _ena0(b,a- -0x3e5);}const a=this[a9(0x40,-0x4)];const b=this[a9(0x12,-0x14)]=yield a['$']['assigned'];if(b[a9(0x2b,0x66)]===0x0){this[a9(0x10,0x5d)]=!![];this[a9(-0x1c,0x25)]=![];this[a9(-0x2b,-0x1e)]=![];this[a9(-0xa,0x1e)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$'][a9(0x58,0x89)];if(this['hasOnlyRegularAssignments']===null&&e['isTimePhased']){this[a9(0x10,0x57)]=![];c++;}if(this[a9(-0x1c,-0x22)]===null&&!e[a9(-0x4,-0xd)]){this[a9(-0x1c,-0x49)]=![];c++;}if(this[a9(-0x2b,0x26)]===null&&e[a9(0x2c,0x23)]){this[a9(-0x2b,-0x78)]=!![];c++;}if(this[a9(-0xa,-0x1a)]===null&&!e[a9(0xa,0x38)]){this[a9(-0xa,-0x3a)]=![];c++;}if(c===0x4)break;}if(this['hasOnlyRegularAssignments']===null)this['hasOnlyRegularAssignments']=!![];if(this['hasOnlyTimePhasedAssignments']===null)this['hasOnlyTimePhasedAssignments']=!![];if(this[a9(-0x2b,0x1b)]===null)this[a9(-0x2b,-0x3b)]=![];if(this[a9(-0xa,0x9)]===null)this[a9(-0xa,-0x2e)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{function aa(a,b){return _ena0(a,b- -0x3d4);}const b=a[aa(0x81,0x2c)];class c extends a{*['calculateProposedTotalUnits'](){const d=yield this['$']['assigned'];let e=0x0;for(const f of d){const g=yield f['$'][ab(0x1cb,0x1a0)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$']['units']);e+=h;}function ab(a,b){return aa(a,b-0x1d0);}return e;}*[aa(0x35,0x1f)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[aa(-0x1d,0x18)](){function ac(a,b){return aa(b,a-0x26f);}return yield ProposedOrPreviousValueOf(this['$'][ac(0x2ba,0x2ec)]);}*[aa(0xf,0x52)](){const d=yield this['$']['proposedStartDate'];const e=yield this['$']['minAssignmentProposedStartDate'];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$'][ad(0x36b,0x3a5)];function ad(a,b){return aa(a,b-0x342);}const e=yield this['$']['maxAssignmentProposedEndDate'];return d>e?d:e??d;}*[aa(-0x6a,-0x1d)](){const d=yield this['$'][ae(0xbf,0xae)];function ae(a,b){return aa(b,a-0x9c);}const e=new Map();let f;let g=Number[ae(0x78,0x41)];for(const h of d){if(yield*h[ae(0xa9,0xb2)]()){const i=yield*h[ae(0xae,0xee)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateProposedEndOffsets'](){const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[af(0x18,0x69)];function af(a,b){return aa(a,b-0x8d);}for(const h of d){if(yield*h[af(0x47,0x9a)]()){const i=yield*h[af(0x43,0x92)]();e[af(0x90,0x5f)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[aa(-0x7,-0x31)](){function ag(a,b){return aa(b,a-0x56c);}const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d[ag(0x59f,0x582)]();return d;}*['calculateSelector'](){const d=new TimePhasedEventSelector();d[ah(0x24c,0x1f6)]=this;yield*d[ah(0x22e,0x235)]();function ah(a,b){return aa(b,a-0x1fb);}return d;}*[aa(0x97,0x62)](d){const e=TimePhasedEventAssignmentDispatcher[ai(0x45b,0x465)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[ai(0x4b0,0x4a2)](d,this['$'][ai(0x4e4,0x51e)],StartVar);e['collectInfo'](d,this['$']['endDate'],EndVar);e[ai(0x4b0,0x4a1)](d,this['$'][ai(0x452,0x461)],DurationVar);e[ai(0x4b0,0x4e7)](d,this['$'][ai(0x47a,0x4b7)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];const j=[];for(const k of f){g[ai(0x46b,0x499)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x4e4,0x4b3)])]);h[ai(0x46b,0x465)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x4c8,0x4b4)])]);i[ai(0x46b,0x498)]([null,yield HasProposedNotPreviousValue(k['$']['duration'])]);j[ai(0x46b,0x434)]([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g['some'](([l,m])=>m)){e[ai(0x473,0x4c5)](TimePhasedStartDate);}function ai(a,b){return aa(b,a-0x47d);}if(h[ai(0x467,0x417)](([l,m])=>m)){e[ai(0x473,0x46a)](TimePhasedEndDate);}if(i['some'](([l,m])=>m)){e[ai(0x473,0x44e)](TimePhasedDuration);}if(j[ai(0x467,0x453)](([l,m])=>m)){e[ai(0x473,0x4a4)](TimePhasedEffort);}return e;}*[aa(0x17,-0x11)](){const d=new Map();const e=new Map();const f=yield this['$'][aj(0x293,0x251)];function aj(a,b){return aa(a,b-0x22e);}for(const g of f){if(yield*g[aj(0x23e,0x23b)]()){e['set'](g,{'proposedStartOffset':yield g['$'][aj(0x223,0x232)],'proposedEndOffset':yield g['$'][aj(0x1d3,0x225)]});}}return function*(h,i){const j=String(i[ak(0x31a,0x323)]())+'/'+(h?'1':'0');function ak(a,b){return aj(b,a-0xfc);}let k=d[ak(0x329,0x2de)](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x326,0x34b)](i,!![],m[ak(0x32e,0x375)],TimeUnit['Millisecond']);n=yield*l[ak(0x305,0x2f6)](n,!![]);o=yield*l[ak(0x32c,0x323)](n,!![]);}else{const p=yield l['$'][ak(0x393,0x36b)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p[ak(0x380,0x382)]?m[ak(0x321,0x36f)]:yield l['$'][ak(0x317,0x2c9)],TimeUnit[ak(0x343,0x31c)]);n=yield*l['calculateProjectedXDate'](o,![]);}if(n&&o)k[ak(0x318,0x326)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ak(0x31c,0x2d6)]();d[ak(0x2fc,0x306)](j,k);return k;};}*[aa(0x23,0x47)](){const d=yield*this[al(0x119,0xfe)]();function al(a,b){return aa(a,b-0xdd);}if(d||(yield this['$']['isSegmented'])){return yield*super[al(0x12b,0x124)]();}else{const e=yield this['$'][al(0xce,0x10a)];const f=yield*this[al(0xd6,0xb5)](e[al(0x182,0x135)]);const g=yield this['$']['dispatcher'];const h=yield this['$'][al(0x141,0x126)];const i=yield PreviousValueOf(this['$'][al(0x10c,0x144)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$'][al(0xe9,0xc9)])&&f){if(g[al(0x111,0xec)][al(0x99,0xdc)](_ene)===CalculateProposed&&i!=null&&!h[al(0x14d,0x121)]){const j=yield ProposedOrPrevious;if(e[al(0x12a,0x135)]===Direction[al(0xc5,0x112)]){yield*this[al(0x142,0x130)](i,j,!![]);}else{if(j<i){yield*this[al(0x12f,0x130)](i,j,![]);}}}return yield*super[al(0x157,0x124)]();}else{if(e[al(0x12b,0x135)]===Direction[al(0xef,0x112)]){const k=yield*super[al(0x139,0x124)]();const l=yield this['$'][al(0x8f,0xb0)];return l?l<k?l:k:k;}else{if(g['resolution'][al(0xdf,0xdc)](_ene)===CalculateProposed&&h[al(0xdd,0x121)]){return yield*this[al(0xd8,0xd9)](yield this['$']['endDate'],![],yield this['$'][al(0xaf,0xb2)]);}if(g[al(0x10b,0xec)][al(0x8c,0xdc)](_ene)===CalculateProposed&&!h['hasTimePhasedInput']&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(0x10b,0x130)](i,m,![]);}return yield*super[al(0xd9,0x124)]();}}}}*[aa(-0x4b,-0x8)](){function am(a,b){return aa(b,a-0x496);}const d=yield*this[am(0x4b7,0x46e)]();if(d||(yield this['$'][am(0x46d,0x482)])){return yield*super[am(0x48e,0x457)]();}else{const e=yield this['$']['effectiveDirection'];const f=yield*this[am(0x46e,0x420)](e['direction']);if(!(yield*this[am(0x4f7,0x4be)]())&&!(yield this['$'][am(0x482,0x4c3)])&&f){return yield*super[am(0x48e,0x45c)]();}else{if(e[am(0x4ee,0x506)]===Direction[am(0x4cb,0x4a1)]){const g=yield this['$'][am(0x48a,0x465)];const h=yield this['$'][am(0x4df,0x4c6)];if(g[am(0x4a5,0x4a2)][am(0x495,0x48b)](_end)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[am(0x492,0x4aa)](yield this['$'][am(0x4fd,0x54e)],!![],yield this['$'][am(0x46b,0x4a2)]);}const i=yield PreviousValueOf(this['$'][am(0x4e1,0x52a)]);if(g['resolution'][am(0x495,0x483)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}return yield*super['calculateEndDate']();}else{const k=yield*super[am(0x48e,0x49f)]();const l=yield this['$'][am(0x4ab,0x4e9)];return l>k?l:k;}}}}*['isChangingOnlyEffortOnAssignment'](){function an(a,b){return aa(b,a-0x4bc);}const d=yield this['$'][an(0x4df,0x4ef)];for(const e of d){const f=yield e['$']['selector'];if(!f[an(0x4e6,0x513)])return![];}return!![];}*['hasUnitsOnAllAssignments'](){const d=yield this['$']['assignmentsTypeSelector'];return d['hasUnitsOnAllAssignments'];}*['isChangingOnlyEffort'](){const d=yield this['$'][ao(0x477,0x446)];function ao(a,b){return aa(b,a-0x40e);}return d[ao(0x42c,0x40a)];}*[aa(-0x4,-0x27)](){function ap(a,b){return aa(a,b-0x425);}const d=yield this['$'][ap(0x449,0x48e)];return d[ap(0x42c,0x3fe)];}*['isChangingOnlyEndDate'](){const d=yield this['$'][aq(0x45a,0x4ad)];function aq(a,b){return aa(b,a-0x3f1);}return d[aq(0x3ea,0x413)];}*[aa(0x49,0x10)](){function ar(a,b){return aa(b,a- -0x3e);}const d=yield*this[ar(-0x1d,-0x34)]();if(d||(yield this['$'][ar(-0x67,-0x66)])){return yield*super[ar(-0x2e,-0x7d)]();}else{const e=yield this['$'][ar(-0x11,-0x32)];const f=e[ar(0x1a,0x49)]===Direction[ar(-0x9,0x31)];const g=yield this['$'][ar(-0x4a,-0x91)];const h=yield this['$']['timePhasedDispatcher'];if(g[ar(-0x2f,-0x8)][ar(-0x3f,-0x1f)](_enc)===durationFormula['formulaId']&&!h[ar(0x6,-0x42)]){const i=yield*super['calculateDuration']();yield*this['expandTrailingAssignmentsByDuration'](i,f);return i;}if(g[ar(-0x2f,-0x16)]['get'](_enc)===CalculateProposed&&!h[ar(0x6,0x0)]&&!(h[ar(-0xa,0x45)][ar(-0x3f,-0x37)](DurationVar)&VariableInputState['HasProposedValue'])){const j=yield ProposedOrPrevious;return j;}if(g[ar(-0x2f,-0x69)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[ar(-0xa,0x1f)][ar(-0x3f,-0x1b)](DurationVar)&VariableInputState[ar(-0x5a,-0xa9)]){const k=yield ProposedOrPrevious;yield*this[ar(-0x4,0x22)](k,f);const l=yield*this[ar(-0x49,-0x91)]();const m=yield this['$'][ar(-0x36,-0x2c)];return l?k>m?m:k:k;}if(!h[ar(0x6,-0x40)]){const n=yield ProposedOrPrevious;yield*this[ar(-0x4,0x7)](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[ar(-0x49,-0x16)]();const p=yield this['$'][ar(-0x36,-0x48)];if(o){return p;}else{return Math[ar(-0x4d,-0x67)](p,yield ProposedOrPrevious);}}else{throw new Error(ar(0x1f,0x3));}}}*['calculateEffort'](){const d=yield this['$'][as(0x4b2,0x4cb)];function as(a,b){return aa(a,b-0x4a0);}if(d[as(0x4f4,0x4dc)]>0x0||(yield this['$'][as(0x49f,0x477)]))return yield*super[as(0x444,0x46c)]();else{const e=yield*this[as(0x4be,0x49b)]();const f=yield this['$'][as(0x422,0x46a)];if(e===SchedulingMode['Normal']){if(f[as(0x4e1,0x4dc)]>0x0){if(yield*this[as(0x498,0x4be)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][as(0x4c3,0x49d)]);if(g<=h){return g;}else{const i=yield this['$'][as(0x4c2,0x4cd)];yield*this[as(0x460,0x4a6)](g,h,i['direction']===Direction[as(0x4b3,0x4d5)]);return g;}}else{return yield*this[as(0x48f,0x4c0)]();}}else{return yield*super[as(0x4ba,0x46c)]();}}else{return yield*this[as(0x48e,0x4c0)]();}}}*[aa(0x74,0x20)](){if(yield this['$'][at(-0x129,-0xe9)]){return yield*super[at(-0x92,-0xa0)]();}function at(a,b){return aa(a,b- -0xc0);}const d=yield this['$'][at(-0x8f,-0x9d)];if(d[at(-0x98,-0x84)]>0x0){return yield*this[at(-0xa3,-0x67)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][at(-0xa6,-0xc3)]);if(e===void 0x0){return yield*this['calculateProjectedEffort'](yield this['$'][at(-0x65,-0x59)],yield this['$'][at(-0x6f,-0x75)]);}else{return e;}}}*[aa(0x60,0x59)](){function au(a,b){return aa(b,a- -0x9a);}let d=0x0;const e=yield this['$']['assigned'];for(const f of e){d+=yield*this[au(-0x97,-0xe3)]()[au(-0x2e,0x24)](yield f['$'][au(-0x9d,-0x99)],yield f['$']['effortUnit'],TimeUnit[au(-0x81,-0x8d)]);}return yield*this['getProject']()[au(-0x2e,-0x19)](d,TimeUnit[au(-0x81,-0x87)],yield this['$'][au(-0x74,-0x6b)]);}*[aa(0x13,0xe)](d){function av(a,b){return aa(a,b- -0x33);}return yield*d[av(-0x23,-0x25)](null);}*[aa(0x44,0x0)](d){function aw(a,b){return aa(a,b-0xa4);}if(yield*this[aw(0xdf,0xe2)]()){const e=this;const f=yield this['$'][aw(0xc4,0xa1)];return function*(g){function ax(a,b){return aw(b,a-0x50);}return yield*e[ax(0x15a,0x171)](g,d,f);};}else{return yield*super['getDateShifter'](d);}}*['isDurationDefinedByEffort'](){const d=yield*this[ay(0x5e3,0x5a7)]();const e=yield this['$'][ay(0x60f,0x5fc)];function ay(a,b){return aa(a,b-0x5ac);}return d!==SchedulingMode[ay(0x5b4,0x5ee)]&&d!==SchedulingMode[ay(0x546,0x58e)]&&(e||d===SchedulingMode['FixedEffort'])&&!(yield*this[ay(0x5a5,0x585)]())&&!(yield*this[ay(0x558,0x5a5)]())||d===SchedulingMode[ay(0x581,0x57d)]&&(yield*this[ay(0x5c8,0x5e7)]())&&(yield*this[ay(0x605,0x5b3)]());}*['shouldSkipNonWorkingTime'](){function az(a,b){return aa(b,a-0x30c);}if((yield*this[az(0x301,0x334)]())&&(yield*this[az(0x34a,0x2fd)]())){return(yield this['$'][az(0x309,0x2f2)])>0x0;}else{return yield*super[az(0x30a,0x2e7)]();}}*[aa(0x66,0x3a)](d,e=!![]){const f=yield this['$'][aA(0x23a,0x228)];function aA(a,b){return aa(b,a-0x232);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aA(0x27d,0x298)]);const h=yield*this[aA(0x22e,0x211)](g,!![],d-f,void 0x0,{'purpose':'positioning'});yield*this[aA(0x285,0x2af)](g,h,e);}else{const i=yield PreviousValueOf(this['$'][aA(0x299,0x267)]);const j=yield*this[aA(0x22e,0x218)](i,![],d-f,void 0x0,{'purpose':'positioning'});yield*this['expandTrailingAssigmentsByDates'](i,j,e);}}}*['expandTrailingAssigmentsByDates'](d,e,f=!![]){if(d[aB(-0x97,-0x9e)]()===e[aB(-0xec,-0x9e)]()){return;}const g=yield this['$'][aB(-0x6a,-0x6b)];const h=[];for(const i of g){if(yield*i[aB(-0x7a,-0x81)]()){if(f){const j=yield PreviousValueOf(i['$'][aB(0x3,-0x43)]);if(j&&j[aB(-0xd6,-0x9e)]()===d[aB(-0xc7,-0x9e)]())h[aB(-0xe0,-0xa0)](i);}else{const k=yield PreviousValueOf(i['$']['startDate']);if(k&&k['getTime']()===d[aB(-0xc2,-0x9e)]())h[aB(-0xe0,-0xa0)](i);}}}function aB(a,b){return aa(a,b- -0x8e);}this[aB(-0x3,-0x4e)][aB(-0xc,-0x1b)]({'commitFinalized':{'fn':()=>{h['forEach'](l=>{function aC(a,b){return _enb(a- -0x17d,b);}this[aC(0x6d,0x51)][aC(0xdc,0xdc)](f?l['$']['endDate']:l['$'][aC(0xef,0xf6)],e,![]);});},'once':!![]}});}*['expandTrailingAssigmentsByEffort'](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aD(0x5,0x38)]):yield PreviousValueOf(this['$']['startDate']);const h=yield this['$'][aD(-0x23,-0xa)];const i=new Set();for(const l of h){if(yield*l['isTimePhased']()){if(f){const m=yield PreviousValueOf(l['$'][aD(0x5,0x45)]);if(m&&m['getTime']()===g['getTime']())i['add'](l);}else{const n=yield PreviousValueOf(l['$'][aD(0x21,0x64)]);if(n&&n['getTime']()===g['getTime']())i[aD(-0x6c,-0x57)](l);}}}const j=yield*this['collectAssignmentsByCalendar'](function*(o){function aE(a,b){return aD(a- -0x18e,b);}return i[aE(-0x179,-0x1c2)](o)||!(yield*o[aE(-0x1c7,-0x192)]());});const k=yield*this[aD(0x20,-0x2f)](g,f,d-e,void 0x0,void 0x0,j);function aD(a,b){return aa(b,a- -0x46);}this[aD(-0x6,-0x15)][aD(0x2d,-0x4)]({'commitFinalized':{'fn':()=>{function aF(a,b){return aD(b-0x4b9,a);}i[aF(0x3f8,0x440)](o=>{function aG(a,b){return aF(a,b- -0x40d);}this[aG(0x29,0x4b)][aG(0xee,0xba)](f?o['$'][aG(0x63,0xb1)]:o['$'][aG(0x11e,0xcd)],k,![]);});},'once':!![]}});}*['useEventAvailabilityIterator'](){return!![];}*[aa(-0x33,-0x1f)](){function aH(a,b){return aa(a,b- -0x140);}const d=yield this['$'][aH(-0x102,-0x113)];return d['direction']===Direction['Forward']?yield*this[aH(-0x13f,-0xf2)](yield this['$'][aH(-0xe6,-0xf1)],(yield*this[aH(-0x16e,-0x15a)]())?yield*this[aH(-0x13c,-0x108)]():yield this['$'][aH(-0x17d,-0x12b)],void 0x0,{'isForward':!![]}):yield*this[aH(-0xec,-0xf2)](yield this['$'][aH(-0x177,-0x16d)],yield this['$'][aH(-0x135,-0x11c)],void 0x0,{'isForward':![]});}*['calculateProjectedDuration'](d,e,f,g,...h){const i=yield this['$'][aI(0x3f0,0x3f9)];const j=g?.['isForward']!==void 0x0?g:i[aI(0x41b,0x451)]===Direction[aI(0x3f8,0x408)]?Object['assign']({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});function aI(a,b){return aa(b,a-0x3c3);}return yield*super[aI(0x411,0x3ce)](d,e,f,j,...h);}*['calculateRegularAssignmentsByCalendar'](){return yield*this['collectAssignmentsByCalendar'](function*(d){function aJ(a,b){return _enb(a- -0x58,b);}return!(yield*d[aJ(0x1ba,0x16f)]());});}*[aa(0x4b,0x2f)](){function aK(a,b){return aa(b,a-0x5b5);}return yield*this[aK(0x614,0x5ea)]();}*[aa(0x42,0x5f)](d){const e=yield this['$']['effectiveCalendar'];const f=yield this['$']['assigned'];const g=this[aL(0x33f,0x361)]();const h=yield*this[aL(0x39d,0x3d6)]();const i=(yield this['$'][aL(0x350,0x335)])||h&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'];const j=new Map();function aL(a,b){return aa(b,a-0x33c);}for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aL(0x30c,0x2b8)];const m=i||(yield k['$'][aL(0x350,0x353)]);if(l){const n=m?e:yield l['$'][aL(0x388,0x391)];let o=j[aL(0x33b,0x340)](n);if(!o){o=[];j[aL(0x30e,0x351)](n,o);}o[aL(0x32a,0x34f)](k);}}}return j;}*[aa(-0x3a,-0xd)](d,e){const f=d[aM(0x54,0xa2)]??aM(0x7,0x7);if(f===aM(0x7,-0x4e)||(yield*this[aM(0x1,-0x4f)]())||d[aM(0x37,-0x9)]||(yield this['$'][aM(-0x49,-0x55)])){return yield*super['forEachAvailabilityInterval'](d,e);}const g=d[aM(0x21,-0x22)]!==![];const h=yield this['$'][aM(0x2c,0x4e)];const i=this[aM(-0x1d,-0x5c)]();const j=yield*this[aM(0x41,0x7)]();const k=yield this['$'][aM(-0x15,0x7)];const l=yield this['$'][aM(0x10,-0x3b)];const m=(yield this['$'][aM(-0xc,0x48)])||d[aM(-0xc,-0x5)];const n=d[aM(-0x16,0x14)]??![];const o=i[aM(-0x4,-0x20)];if(o){d=Object[aM(0x51,0x5)]({'maxRange':o},d);}const p=yield this['$'][aM(0x35,0x70)];const q=yield*p(g,g?d['startDate']:d[aM(0x2b,0x21)]);let r=g?0x0:q[aM(-0xf,-0x1)][aM(0x11,0x19)]-0x1;let s=g?d[aM(0x47,0x4f)]:d[aM(0x2b,0x7)];function aM(a,b){return aa(b,a- -0x20);}const t=new Set();const u=l[aM(-0x2d,-0x6c)](d,(v,w,x)=>{const y=x[aN(0x132,0x145)]();const z=x[aN(0x11e,0x16b)]();r=q[aN(0x11c,0x117)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aN(0x11c,0x170)](g,r,s,g?w:v,t,(A,B,C)=>{function aO(a,b){return aN(a- -0xc5,b);}if(y[aO(-0x6,0x22)](h)&&(n||someInSet(C,D=>{function aP(a,b){return aO(a-0x372,b);}return m||D[aP(0x381,0x335)]||y['get'](D['resource'][aP(0x3b9,0x3c3)])||j&&!i[aP(0x3d8,0x397)];})||z['some'](D=>k['has'](D)))){if(e(A,B,x,C)===![])return![];}});function aN(a,b){return aM(a-0xe0,b);}s=g?w:v;if(r===-0x1)return![];});return u;}*[aa(-0x1a,0x1d)](){const d=yield this['$']['assigned'];for(const e of d){if(yield*e['isUserTimePhased']())return![];}return!![];}*['hasOnlyRegularAssignments'](){const d=yield this['$'][aQ(0x3d6,0x3e2)];function aQ(a,b){return aa(a,b-0x388);}return d[aQ(0x3d9,0x3a9)];}*[aa(0x41,-0xb)](){const d=yield this['$'][aR(-0x1a,0x27)];function aR(a,b){return aa(b,a- -0x74);}return d[aR(-0x7f,-0x34)];}*[aa(0x2b,-0x1a)](){function aS(a,b){return aa(a,b-0x4eb);}const d=yield this['$']['assignmentsTypeSelector'];return d[aS(0x4e8,0x4d1)];}*[aa(0x61,0x17)](){let d=MAX_DATE;function aT(a,b){return aa(a,b-0x3b6);}const e=yield this['$'][aT(0x400,0x3d9)];for(const f of e){const g=yield f[aT(0x37a,0x3c9)]['$'][aT(0x420,0x41d)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE['getTime']()?d:null;}*[aa(0xa,-0x21)](){let d=MIN_DATE;const e=yield this['$'][aU(0x37b,0x37f)];function aU(a,b){return aa(a,b-0x35c);}for(const f of e){const g=yield f[aU(0x345,0x36f)]['$']['endDate'];if(g&&g>d)d=g;}return d[aU(0x397,0x34c)]()-MIN_DATE['getTime']()?d:null;}*[aa(-0x12,0x38)](){let d=MIN_DATE;const e=yield this['$'][aV(-0x154,-0x194)];function aV(a,b){return aa(b,a- -0x177);}for(const f of e){const g=(yield*f[aV(-0x16a,-0x17d)]())?(yield*f[aV(-0x121,-0x11a)]())?yield f[aV(-0x164,-0x17d)]['$'][aV(-0x12c,-0x171)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aV(-0x187,-0x135)]()-MIN_DATE[aV(-0x187,-0x159)]()?d:null;}*[aa(-0xd,-0x15)](d,e,f){const g=yield*this[aW(0x96,0xdc)]();function aW(a,b){return aa(a,b-0xbb);}if(g||(yield this['$']['isSegmented'])){return yield*super[aW(0x71,0xa6)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$']['regularAssignmentsByCalendar'];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aW(0xc2,0xd5)];}i[aW(0x4e,0x8d)](l,n);}let j=0x0;const k=Object[aW(0x160,0x12c)](yield*this[aW(0xf8,0xbc)](),{'startDate':d,'endDate':e},{'purpose':'progressing'});yield*this[aW(0xe0,0xae)](k,(p,q,r,s)=>{const t=r[aX(0x202,0x1d0)]();const u=p[aX(0x173,0x162)](),v=q['getTime'](),w=v-u;let x=0x0;function aX(a,b){return aW(a,b-0xb7);}for(const y of t){x+=i[aX(0x19b,0x171)](y)||0x0;}if(!f){s['forEach'](z=>{function aY(a,b){return aX(b,a-0x22f);}x+=z[aY(0x3bb,0x410)];});}j+=x*w*0.01;});return yield*this['getProject']()[aW(0x163,0x127)](j,TimeUnit[aW(0xbc,0xd4)],yield this['$'][aW(0xc2,0xe1)]);}*['calculateProjectedXDateWithDuration'](d,e=!![],f,g,h){const i=yield*super[aZ(0x413,0x435)](d,e,f,g,h);function aZ(a,b){return aa(a,b-0x439);}if(yield this['$'][aZ(0x3e6,0x410)])return i;const j=yield*this[aZ(0x44c,0x42e)]();if(j){const k=yield this['$'][aZ(0x41d,0x466)];if(k[aZ(0x449,0x491)]===Direction[aZ(0x468,0x46e)]&&e===![]){const l=yield this['$'][aZ(0x46b,0x420)];const m=l[aZ(0x436,0x470)];if(m>0x0){return yield*l[aZ(0x44b,0x478)][aZ(0x3e3,0x435)](i,![],m,TimeUnit['Millisecond']);}}else if(k[aZ(0x4b0,0x491)]===Direction[aZ(0x461,0x45b)]&&e===!![]){const n=yield this['$']['proposedEndOffsets'];const o=n['minOffset'];if(o>0x0){return yield*n[aZ(0x43c,0x478)][aZ(0x435,0x435)](i,!![],o,TimeUnit[aZ(0x42e,0x452)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){const d=yield*this[b0(0x425,0x448)]();function b0(a,b){return aa(b,a-0x42a);}if(d===SchedulingMode['FixedDuration']){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b0(0x3fe,0x3d5)][b0(0x452,0x439)](this);}}*['calculateProjectedXDateByEffort'](d,e=!![],f,g,h,i){if(yield this['$']['isSegmented']){return yield*super[b1(0x4c9,0x4d1)](d,e,f,g,h,i);}function b1(a,b){return aa(a,b-0x46b);}f=f!==void 0x0?f:yield this['$'][b1(0x484,0x468)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b1(0x43b,0x46e)]()[b1(0x525,0x4d7)](f,g,TimeUnit[b1(0x4a1,0x484)]);if(d==null||f==null)return null;let k=d['getTime']();let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object[b1(0x4a9,0x4dc)](yield*this[b1(0x472,0x43f)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this[b1(0x4d7,0x48c)]();if(h?.[b1(0x4e2,0x4df)]===b1(0x476,0x492)||o){const s=new Map();const t=yield this['$']['assigned'];let u=0x0;const v=new Map();for(const y of t){const z=yield y['$'][b1(0x447,0x485)];u+=z;v[b1(0x43c,0x43d)](y,z);}if(u===0x0){return yield*super[b1(0x4b0,0x4d1)](d,e,f,g,h,i);}for(const A of t){s[b1(0x410,0x43d)](A,j*v[b1(0x487,0x46a)](A)/u);}const w=yield this['$'][b1(0x477,0x435)];const x=new Map();for(const [B,C]of w){for(const D of C){x[b1(0x41e,0x43d)](D,B);}}yield*this['forEachAvailabilityInterval'](n,(E,F,G)=>{const H=E[b2(0x1df,0x21c)](),I=F[b2(0x1df,0x1b1)](),J=I-H;for(const K of t){const L=x[b2(0x1ee,0x1a2)](K);if(G[b2(0x261,0x23b)]()[b2(0x1ee,0x23c)](L)){const M=s[b2(0x1ee,0x1c6)](K);let N=v[b2(0x1ee,0x21b)](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[b2(0x205,0x21c)](K);}else{s['set'](K,M-O);}}}function b2(a,b){return b1(b,a- -0x27c);}if(s[b2(0x22b,0x252)]===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b1(0x423,0x476)];const q=new Map();(yield this['$'][b1(0x3fc,0x435)])['forEach']((E,F)=>{E['forEach'](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['$']['units'];}r[b1(0x465,0x43d)](E,G);}yield*this[b1(0x46d,0x45e)](n,(I,J,K,L)=>{const M=K[b3(0x4a6,0x4de)]();const N=K[b3(0x4ba,0x490)]();const O=I[b3(0x438,0x46d)](),P=J[b3(0x438,0x45d)](),Q=P-O;let R=0x0;for(const U of M){R+=r[b3(0x447,0x478)](U)||0x0;}if(!i){L['forEach'](V=>{function b4(a,b){return b3(a- -0x7b,b);}if(N[b4(0x3cc,0x3f3)](q[b4(0x3cc,0x3b7)](V)))R+=V[b4(0x3e7,0x3c4)];});}const S=R*Q*0.01;const T=l-S;function b3(a,b){return b1(b,a- -0x23);}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[aa(0x4c,0x2c)],'proposedStartDate',void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x7b,0x2c)],aa(0x93,0x63),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(0x65,0x4f),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x62,0x2c)],aa(-0x19,0x24),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x18,0x2c)],aa(0x11,-0x2d),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(-0x18,0x15),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x2e,0x2c)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x23,0x2c)],aa(0x7f,0x5a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(-0x4d,-0x18),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c['prototype'],aa(0x91,0x49),void 0x0);__decorate([field()],c[aa(0x34,0x2c)],aa(0x82,0x69),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x3f,0x2c)],aa(0x7,-0x19),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x6e,0x2c)],aa(0x8,-0x35),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x38,0x2c)],aa(0x55,0xb),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x7f,0x2c)],aa(0x16,0x55),void 0x0);__decorate([calculate('proposedTotalUnits')],c[aa(0x7a,0x2c)],'calculateProposedTotalUnits',null);__decorate([calculate(aa(0x32,-0x17))],c['prototype'],aa(0xe,0x1f),null);__decorate([calculate(aa(0x28,0x63))],c[aa(0x50,0x2c)],aa(0x11,0x18),null);__decorate([calculate('proposedStartDateMin')],c[aa(0x34,0x2c)],aa(-0x3,0x52),null);__decorate([calculate(aa(0x55,0x24))],c[aa(0x3f,0x2c)],'calculateProposedEndDateMax',null);__decorate([calculate(aa(-0x39,-0x19))],c[aa(0x51,0x2c)],aa(0x27,-0x1d),null);__decorate([calculate(aa(-0x30,-0x35))],c[aa(0x4a,0x2c)],'calculateProposedEndOffsets',null);__decorate([calculate(aa(0x45,0x5a))],c[aa(0x52,0x2c)],'calculateAssignmentsTypeSelector',null);__decorate([calculate(aa(0x64,0x69))],c[aa(0x4a,0x2c)],'calculateSelector',null);__decorate([calculate('timePhasedDispatcher')],c[aa(-0x22,0x2c)],aa(0x63,0x62),null);__decorate([calculate('timePhasedIntervalsCache')],c['prototype'],aa(-0x1f,-0x11),null);__decorate([calculate(aa(-0x4,0x8))],c[aa(-0x4,0x2c)],'calculateProposedAssignmentDuration',null);__decorate([calculate('regularAssignmentsByCalendar')],c[aa(0x5d,0x2c)],'calculateRegularAssignmentsByCalendar',null);__decorate([calculate(aa(0x2,-0x2d))],c[aa(0x46,0x2c)],aa(0x15,0x17),null);__decorate([calculate(aa(-0x3e,0x15))],c[aa(0x1,0x2c)],aa(-0x52,-0x21),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};