@ricado/api-client 2.3.13 → 2.3.16

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,2 +1,2 @@
1
1
  /*! For license information please see ricado.api.client.js.LICENSE.txt */
2
- var RICADOGen4API;(()=>{var e={8647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3091));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/account-policies/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/account-policies/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/account-policies/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/account-policies",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/account-policies",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(348));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/api-account").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"updateCurrent",value:function(e){return new Promise((function(t,n){r.default.patchRequest("/api-account",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"getCurrentSecret",value:function(){return new Promise((function(e,t){r.default.getRequest("/api-account/secret").then((function(t){var n="string"!=typeof t?String(t):t;e(n)})).catch((function(e){return t(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/api-accounts/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/api-accounts/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getSecret",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e,"/secret")).then((function(e){var n="string"!=typeof e?String(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"getPolicies",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e,"/policies")).then((function(e){var n,r=(n={},"object"===a(e)&&"policies"in e?n.policies=!0!==Array.isArray(e.policies)?[]:e.policies.map((function(e){return"string"!=typeof e?String(e):e})):n.policies=[],n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"setPolicies",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/api-accounts/".concat(e,"/policies"),{policies:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/api-accounts",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/api-accounts",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1969));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/companies/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/companies/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/companies/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/companies",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/companies",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},5843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(556));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/firebase-tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/firebase-tokens/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/firebase-tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/firebase-tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/firebase-tokens",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"jsonExport",value:function(){return new Promise((function(e,t){o.default.getRequest("/packhouse/production-data-export").then((function(t){var n,r=(n={},"object"===i(t)&&"packruns"in t?n.packruns=!0!==Array.isArray(t.packruns)?[]:t.packruns.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===i(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===i(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===i(e)&&"varietyId"in e?t.varietyId="string"!=typeof e.varietyId?String(e.varietyId):e.varietyId:t.varietyId="","object"===i(e)&&"varietyCode"in e?t.varietyCode="string"!=typeof e.varietyCode?String(e.varietyCode):e.varietyCode:t.varietyCode="","object"===i(e)&&"growingMethodId"in e?t.growingMethodId="string"!=typeof e.growingMethodId?String(e.growingMethodId):e.growingMethodId:t.growingMethodId="","object"===i(e)&&"growingMethodCode"in e?t.growingMethodCode="string"!=typeof e.growingMethodCode?String(e.growingMethodCode):e.growingMethodCode:t.growingMethodCode="","object"===i(e)&&"growerCode"in e?t.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:t.growerCode="","object"===i(e)&&"growerName"in e?t.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:t.growerName="","object"===i(e)&&"maturityArea"in e?t.maturityArea="string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:t.maturityArea="","object"===i(e)&&"allocatedBins"in e?t.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):t.allocatedBins=0,"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"totalNetWeightTipped"in e?t.totalNetWeightTipped="number"!=typeof e.totalNetWeightTipped?Number(e.totalNetWeightTipped):e.totalNetWeightTipped:t.totalNetWeightTipped=0,"object"===i(e)&&"averageNetWeightPerBin"in e?t.averageNetWeightPerBin="number"!=typeof e.averageNetWeightPerBin?Number(e.averageNetWeightPerBin):e.averageNetWeightPerBin:t.averageNetWeightPerBin=0,"object"===i(e)&&"averageBinsTippedPerHour"in e?t.averageBinsTippedPerHour="number"!=typeof e.averageBinsTippedPerHour?Number(e.averageBinsTippedPerHour):e.averageBinsTippedPerHour:t.averageBinsTippedPerHour=0,"object"===i(e)&&"averageTimePerTippedBin"in e?t.averageTimePerTippedBin="number"!=typeof e.averageTimePerTippedBin?Number.isInteger(Number(e.averageTimePerTippedBin))?Number(e.averageTimePerTippedBin):Math.floor(Number(e.averageTimePerTippedBin)):Number.isInteger(e.averageTimePerTippedBin)?e.averageTimePerTippedBin:Math.floor(e.averageTimePerTippedBin):t.averageTimePerTippedBin=0,"object"===i(e)&&"averageBinTipWeightThroughput"in e?t.averageBinTipWeightThroughput="number"!=typeof e.averageBinTipWeightThroughput?Number(e.averageBinTipWeightThroughput):e.averageBinTipWeightThroughput:t.averageBinTipWeightThroughput=0,"object"===i(e)&&"softSortEventsPerBin"in e?t.softSortEventsPerBin="number"!=typeof e.softSortEventsPerBin?Number(e.softSortEventsPerBin):e.softSortEventsPerBin:t.softSortEventsPerBin=0,"object"===i(e)&&"totalSoftSortEventsCount"in e?t.totalSoftSortEventsCount="number"!=typeof e.totalSoftSortEventsCount?Number.isInteger(Number(e.totalSoftSortEventsCount))?Number(e.totalSoftSortEventsCount):Math.floor(Number(e.totalSoftSortEventsCount)):Number.isInteger(e.totalSoftSortEventsCount)?e.totalSoftSortEventsCount:Math.floor(e.totalSoftSortEventsCount):t.totalSoftSortEventsCount=0,"object"===i(e)&&"averageSoftSortEventsDuration"in e?t.averageSoftSortEventsDuration="number"!=typeof e.averageSoftSortEventsDuration?Number(e.averageSoftSortEventsDuration):e.averageSoftSortEventsDuration:t.averageSoftSortEventsDuration=0,"object"===i(e)&&"totalSoftSortEventsDuration"in e?t.totalSoftSortEventsDuration="number"!=typeof e.totalSoftSortEventsDuration?Number(e.totalSoftSortEventsDuration):e.totalSoftSortEventsDuration:t.totalSoftSortEventsDuration=0,"object"===i(e)&&"softSortEventsAccurate"in e?t.softSortEventsAccurate=null===e.softSortEventsAccurate?null:"boolean"!=typeof e.softSortEventsAccurate?Boolean(e.softSortEventsAccurate):e.softSortEventsAccurate:t.softSortEventsAccurate=null,"object"===i(e)&&"softSortEventsNotAccurateReason"in e?t.softSortEventsNotAccurateReason=null===e.softSortEventsNotAccurateReason?null:"string"!=typeof e.softSortEventsNotAccurateReason?String(e.softSortEventsNotAccurateReason):e.softSortEventsNotAccurateReason:t.softSortEventsNotAccurateReason=null,"object"===i(e)&&"class1Percentage"in e?t.class1Percentage="number"!=typeof e.class1Percentage?Number(e.class1Percentage):e.class1Percentage:t.class1Percentage=0,"object"===i(e)&&"class2Percentage"in e?t.class2Percentage="number"!=typeof e.class2Percentage?Number(e.class2Percentage):e.class2Percentage:t.class2Percentage=0,"object"===i(e)&&"class3Percentage"in e?t.class3Percentage="number"!=typeof e.class3Percentage?Number(e.class3Percentage):e.class3Percentage:t.class3Percentage=0,"object"===i(e)&&"nssPercentage"in e?t.nssPercentage="number"!=typeof e.nssPercentage?Number(e.nssPercentage):e.nssPercentage:t.nssPercentage=0,"object"===i(e)&&"undersizePercentage"in e?t.undersizePercentage="number"!=typeof e.undersizePercentage?Number(e.undersizePercentage):e.undersizePercentage:t.undersizePercentage=0,"object"===i(e)&&"cdmPercentage"in e?t.cdmPercentage="number"!=typeof e.cdmPercentage?Number(e.cdmPercentage):e.cdmPercentage:t.cdmPercentage=0,"object"===i(e)&&"wastePercentage"in e?t.wastePercentage="number"!=typeof e.wastePercentage?Number(e.wastePercentage):e.wastePercentage:t.wastePercentage=0,"object"===i(e)&&"softSortPercentage"in e?t.softSortPercentage="number"!=typeof e.softSortPercentage?Number(e.softSortPercentage):e.softSortPercentage:t.softSortPercentage=0,"object"===i(e)&&"totalNonClass1Percentage"in e?t.totalNonClass1Percentage="number"!=typeof e.totalNonClass1Percentage?Number(e.totalNonClass1Percentage):e.totalNonClass1Percentage:t.totalNonClass1Percentage=0,"object"===i(e)&&"class1Weight"in e?t.class1Weight="number"!=typeof e.class1Weight?Number(e.class1Weight):e.class1Weight:t.class1Weight=0,"object"===i(e)&&"class2Weight"in e?t.class2Weight="number"!=typeof e.class2Weight?Number(e.class2Weight):e.class2Weight:t.class2Weight=0,"object"===i(e)&&"class3Weight"in e?t.class3Weight="number"!=typeof e.class3Weight?Number(e.class3Weight):e.class3Weight:t.class3Weight=0,"object"===i(e)&&"nssWeight"in e?t.nssWeight="number"!=typeof e.nssWeight?Number(e.nssWeight):e.nssWeight:t.nssWeight=0,"object"===i(e)&&"undersizeWeight"in e?t.undersizeWeight="number"!=typeof e.undersizeWeight?Number(e.undersizeWeight):e.undersizeWeight:t.undersizeWeight=0,"object"===i(e)&&"cdmWeight"in e?t.cdmWeight="number"!=typeof e.cdmWeight?Number(e.cdmWeight):e.cdmWeight:t.cdmWeight=0,"object"===i(e)&&"wasteWeight"in e?t.wasteWeight="number"!=typeof e.wasteWeight?Number(e.wasteWeight):e.wasteWeight:t.wasteWeight=0,"object"===i(e)&&"softSortWeight"in e?t.softSortWeight="number"!=typeof e.softSortWeight?Number(e.softSortWeight):e.softSortWeight:t.softSortWeight=0,"object"===i(e)&&"totalNonClass1Weight"in e?t.totalNonClass1Weight="number"!=typeof e.totalNonClass1Weight?Number(e.totalNonClass1Weight):e.totalNonClass1Weight:t.totalNonClass1Weight=0,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number(e.totalClass1Trays):e.totalClass1Trays:t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number(e.totalClass2Trays):e.totalClass2Trays:t.totalClass2Trays=0,"object"===i(e)&&"totalClass1FruitCount"in e?t.totalClass1FruitCount="number"!=typeof e.totalClass1FruitCount?Number(e.totalClass1FruitCount):e.totalClass1FruitCount:t.totalClass1FruitCount=0,"object"===i(e)&&"totalClass2FruitCount"in e?t.totalClass2FruitCount="number"!=typeof e.totalClass2FruitCount?Number(e.totalClass2FruitCount):e.totalClass2FruitCount:t.totalClass2FruitCount=0,"object"===i(e)&&"averageClass1TrayWeight"in e?t.averageClass1TrayWeight="number"!=typeof e.averageClass1TrayWeight?Number(e.averageClass1TrayWeight):e.averageClass1TrayWeight:t.averageClass1TrayWeight=0,"object"===i(e)&&"averageClass2TrayWeight"in e?t.averageClass2TrayWeight="number"!=typeof e.averageClass2TrayWeight?Number(e.averageClass2TrayWeight):e.averageClass2TrayWeight:t.averageClass2TrayWeight=0,"object"===i(e)&&"class1TraysPerBin"in e?t.class1TraysPerBin="number"!=typeof e.class1TraysPerBin?Number(e.class1TraysPerBin):e.class1TraysPerBin:t.class1TraysPerBin=0,"object"===i(e)&&"averageFruitSize"in e?t.averageFruitSize="number"!=typeof e.averageFruitSize?Number(e.averageFruitSize):e.averageFruitSize:t.averageFruitSize=0,"object"===i(e)&&"averageFruitWeight"in e?t.averageFruitWeight="number"!=typeof e.averageFruitWeight?Number(e.averageFruitWeight):e.averageFruitWeight:t.averageFruitWeight=0,"object"===i(e)&&"totalRejectBinsCount"in e?t.totalRejectBinsCount="number"!=typeof e.totalRejectBinsCount?Number.isInteger(Number(e.totalRejectBinsCount))?Number(e.totalRejectBinsCount):Math.floor(Number(e.totalRejectBinsCount)):Number.isInteger(e.totalRejectBinsCount)?e.totalRejectBinsCount:Math.floor(e.totalRejectBinsCount):t.totalRejectBinsCount=0,"object"===i(e)&&"totalRejectBinsNetWeight"in e?t.totalRejectBinsNetWeight="number"!=typeof e.totalRejectBinsNetWeight?Number(e.totalRejectBinsNetWeight):e.totalRejectBinsNetWeight:t.totalRejectBinsNetWeight=0,"object"===i(e)&&"qualityR600TotalFruitSampled"in e?t.qualityR600TotalFruitSampled=null===e.qualityR600TotalFruitSampled?null:"number"!=typeof e.qualityR600TotalFruitSampled?Number.isInteger(Number(e.qualityR600TotalFruitSampled))?Number(e.qualityR600TotalFruitSampled):Math.floor(Number(e.qualityR600TotalFruitSampled)):Number.isInteger(e.qualityR600TotalFruitSampled)?e.qualityR600TotalFruitSampled:Math.floor(e.qualityR600TotalFruitSampled):t.qualityR600TotalFruitSampled=null,"object"===i(e)&&"qualityR600FruitSampledPercentage"in e?t.qualityR600FruitSampledPercentage=null===e.qualityR600FruitSampledPercentage?null:"number"!=typeof e.qualityR600FruitSampledPercentage?Number(e.qualityR600FruitSampledPercentage):e.qualityR600FruitSampledPercentage:t.qualityR600FruitSampledPercentage=null,"object"===i(e)&&"qualityR600AverageSampledFruitSize"in e?t.qualityR600AverageSampledFruitSize=null===e.qualityR600AverageSampledFruitSize?null:"number"!=typeof e.qualityR600AverageSampledFruitSize?Number(e.qualityR600AverageSampledFruitSize):e.qualityR600AverageSampledFruitSize:t.qualityR600AverageSampledFruitSize=null,"object"===i(e)&&"qualityR600TotalSamplesCount"in e?t.qualityR600TotalSamplesCount=null===e.qualityR600TotalSamplesCount?null:"number"!=typeof e.qualityR600TotalSamplesCount?Number.isInteger(Number(e.qualityR600TotalSamplesCount))?Number(e.qualityR600TotalSamplesCount):Math.floor(Number(e.qualityR600TotalSamplesCount)):Number.isInteger(e.qualityR600TotalSamplesCount)?e.qualityR600TotalSamplesCount:Math.floor(e.qualityR600TotalSamplesCount):t.qualityR600TotalSamplesCount=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,"object"===i(e)&&"qualityR600MinorPackingDefects"in e?t.qualityR600MinorPackingDefects=null===e.qualityR600MinorPackingDefects?null:"number"!=typeof e.qualityR600MinorPackingDefects?Number(e.qualityR600MinorPackingDefects):e.qualityR600MinorPackingDefects:t.qualityR600MinorPackingDefects=null,"object"===i(e)&&"qualityR600MajorPackingDefects"in e?t.qualityR600MajorPackingDefects=null===e.qualityR600MajorPackingDefects?null:"number"!=typeof e.qualityR600MajorPackingDefects?Number(e.qualityR600MajorPackingDefects):e.qualityR600MajorPackingDefects:t.qualityR600MajorPackingDefects=null,"object"===i(e)&&"qualityR600Softs"in e?t.qualityR600Softs=null===e.qualityR600Softs?null:"number"!=typeof e.qualityR600Softs?Number(e.qualityR600Softs):e.qualityR600Softs:t.qualityR600Softs=null,"object"===i(e)&&"qualityR600Cuts"in e?t.qualityR600Cuts=null===e.qualityR600Cuts?null:"number"!=typeof e.qualityR600Cuts?Number(e.qualityR600Cuts):e.qualityR600Cuts:t.qualityR600Cuts=null,"object"===i(e)&&"qualityR600Rots"in e?t.qualityR600Rots=null===e.qualityR600Rots?null:"number"!=typeof e.qualityR600Rots?Number(e.qualityR600Rots):e.qualityR600Rots:t.qualityR600Rots=null,"object"===i(e)&&"qualityExportFruitInClass2"in e?t.qualityExportFruitInClass2=null===e.qualityExportFruitInClass2?null:"number"!=typeof e.qualityExportFruitInClass2?Number(e.qualityExportFruitInClass2):e.qualityExportFruitInClass2:t.qualityExportFruitInClass2=null,"object"===i(e)&&"qualityExportFruitInClass3"in e?t.qualityExportFruitInClass3=null===e.qualityExportFruitInClass3?null:"number"!=typeof e.qualityExportFruitInClass3?Number(e.qualityExportFruitInClass3):e.qualityExportFruitInClass3:t.qualityExportFruitInClass3=null,"object"===i(e)&&"qualityExportFruitInWaste"in e?t.qualityExportFruitInWaste=null===e.qualityExportFruitInWaste?null:"number"!=typeof e.qualityExportFruitInWaste?Number(e.qualityExportFruitInWaste):e.qualityExportFruitInWaste:t.qualityExportFruitInWaste=null,"object"===i(e)&&"shiftIds"in e?t.shiftIds=!0!==Array.isArray(e.shiftIds)?[]:e.shiftIds.map((function(e){return"string"!=typeof e?String(e):e})):t.shiftIds=[],"object"===i(e)&&"shiftTypes"in e?t.shiftTypes=!0!==Array.isArray(e.shiftTypes)?[]:e.shiftTypes.map((function(e){return"string"!=typeof e?String(e):e})):t.shiftTypes=[],"object"===i(e)&&"lineManagerNames"in e?t.lineManagerNames=!0!==Array.isArray(e.lineManagerNames)?[]:e.lineManagerNames.map((function(e){return"string"!=typeof e?String(e):e})):t.lineManagerNames=[],"object"===i(e)&&"qualityManagerNames"in e?t.qualityManagerNames=!0!==Array.isArray(e.qualityManagerNames)?[]:e.qualityManagerNames.map((function(e){return"string"!=typeof e?String(e):e})):t.qualityManagerNames=[],"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"averageClass1Manning"in e?t.averageClass1Manning=null===e.averageClass1Manning?null:"number"!=typeof e.averageClass1Manning?Number.isInteger(Number(e.averageClass1Manning))?Number(e.averageClass1Manning):Math.floor(Number(e.averageClass1Manning)):Number.isInteger(e.averageClass1Manning)?e.averageClass1Manning:Math.floor(e.averageClass1Manning):t.averageClass1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"averageClass2Manning"in e?t.averageClass2Manning=null===e.averageClass2Manning?null:"number"!=typeof e.averageClass2Manning?Number.isInteger(Number(e.averageClass2Manning))?Number(e.averageClass2Manning):Math.floor(Number(e.averageClass2Manning)):Number.isInteger(e.averageClass2Manning)?e.averageClass2Manning:Math.floor(e.averageClass2Manning):t.averageClass2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"averageTotalManning"in e?t.averageTotalManning=null===e.averageTotalManning?null:"number"!=typeof e.averageTotalManning?Number.isInteger(Number(e.averageTotalManning))?Number(e.averageTotalManning):Math.floor(Number(e.averageTotalManning)):Number.isInteger(e.averageTotalManning)?e.averageTotalManning:Math.floor(e.averageTotalManning):t.averageTotalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalHoursWorked"in e?t.totalHoursWorked="number"!=typeof e.totalHoursWorked?Number(e.totalHoursWorked):e.totalHoursWorked:t.totalHoursWorked=0,"object"===i(e)&&"totalHoursWorkedExcludingDowntime"in e?t.totalHoursWorkedExcludingDowntime="number"!=typeof e.totalHoursWorkedExcludingDowntime?Number(e.totalHoursWorkedExcludingDowntime):e.totalHoursWorkedExcludingDowntime:t.totalHoursWorkedExcludingDowntime=0,"object"===i(e)&&"totalHoursPaid"in e?t.totalHoursPaid="number"!=typeof e.totalHoursPaid?Number(e.totalHoursPaid):e.totalHoursPaid:t.totalHoursPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"class1TraysPerHour"in e?t.class1TraysPerHour="number"!=typeof e.class1TraysPerHour?Number.isInteger(Number(e.class1TraysPerHour))?Number(e.class1TraysPerHour):Math.floor(Number(e.class1TraysPerHour)):Number.isInteger(e.class1TraysPerHour)?e.class1TraysPerHour:Math.floor(e.class1TraysPerHour):t.class1TraysPerHour=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHour"in e?t.class1TraysPerManHour=null===e.class1TraysPerManHour?null:"number"!=typeof e.class1TraysPerManHour?Number(e.class1TraysPerManHour):e.class1TraysPerManHour:t.class1TraysPerManHour=null,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHour"in e?t.class2TraysPerHour="number"!=typeof e.class2TraysPerHour?Number.isInteger(Number(e.class2TraysPerHour))?Number(e.class2TraysPerHour):Math.floor(Number(e.class2TraysPerHour)):Number.isInteger(e.class2TraysPerHour)?e.class2TraysPerHour:Math.floor(e.class2TraysPerHour):t.class2TraysPerHour=0,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHour"in e?t.class2TraysPerManHour=null===e.class2TraysPerManHour?null:"number"!=typeof e.class2TraysPerManHour?Number(e.class2TraysPerManHour):e.class2TraysPerManHour:t.class2TraysPerManHour=null,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,t;var t})):n.packruns=[],"object"===i(t)&&"shifts"in t?n.shifts=!0!==Array.isArray(t.shifts)?[]:t.shifts.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===i(e)&&"lineManagerName"in e?t.lineManagerName=null===e.lineManagerName?null:"string"!=typeof e.lineManagerName?String(e.lineManagerName):e.lineManagerName:t.lineManagerName=null,"object"===i(e)&&"qualityManagerName"in e?t.qualityManagerName=null===e.qualityManagerName?null:"string"!=typeof e.qualityManagerName?String(e.qualityManagerName):e.qualityManagerName:t.qualityManagerName=null,"object"===i(e)&&"varietyIds"in e?t.varietyIds=!0!==Array.isArray(e.varietyIds)?[]:e.varietyIds.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyIds=[],"object"===i(e)&&"varietyCodes"in e?t.varietyCodes=!0!==Array.isArray(e.varietyCodes)?[]:e.varietyCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyCodes=[],"object"===i(e)&&"growingMethodIds"in e?t.growingMethodIds=!0!==Array.isArray(e.growingMethodIds)?[]:e.growingMethodIds.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodIds=[],"object"===i(e)&&"growingMethodCodes"in e?t.growingMethodCodes=!0!==Array.isArray(e.growingMethodCodes)?[]:e.growingMethodCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodCodes=[],"object"===i(e)&&"binsTippedTarget"in e?t.binsTippedTarget="number"!=typeof e.binsTippedTarget?Number.isInteger(Number(e.binsTippedTarget))?Number(e.binsTippedTarget):Math.floor(Number(e.binsTippedTarget)):Number.isInteger(e.binsTippedTarget)?e.binsTippedTarget:Math.floor(e.binsTippedTarget):t.binsTippedTarget=0,"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"binsTippedPerHour"in e?t.binsTippedPerHour="number"!=typeof e.binsTippedPerHour?Number.isInteger(Number(e.binsTippedPerHour))?Number(e.binsTippedPerHour):Math.floor(Number(e.binsTippedPerHour)):Number.isInteger(e.binsTippedPerHour)?e.binsTippedPerHour:Math.floor(e.binsTippedPerHour):t.binsTippedPerHour=0,"object"===i(e)&&"binsTippedPerHourExcludingDowntime"in e?t.binsTippedPerHourExcludingDowntime="number"!=typeof e.binsTippedPerHourExcludingDowntime?Number.isInteger(Number(e.binsTippedPerHourExcludingDowntime))?Number(e.binsTippedPerHourExcludingDowntime):Math.floor(Number(e.binsTippedPerHourExcludingDowntime)):Number.isInteger(e.binsTippedPerHourExcludingDowntime)?e.binsTippedPerHourExcludingDowntime:Math.floor(e.binsTippedPerHourExcludingDowntime):t.binsTippedPerHourExcludingDowntime=0,"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"averageClass1Manning"in e?t.averageClass1Manning=null===e.averageClass1Manning?null:"number"!=typeof e.averageClass1Manning?Number.isInteger(Number(e.averageClass1Manning))?Number(e.averageClass1Manning):Math.floor(Number(e.averageClass1Manning)):Number.isInteger(e.averageClass1Manning)?e.averageClass1Manning:Math.floor(e.averageClass1Manning):t.averageClass1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"averageClass2Manning"in e?t.averageClass2Manning=null===e.averageClass2Manning?null:"number"!=typeof e.averageClass2Manning?Number.isInteger(Number(e.averageClass2Manning))?Number(e.averageClass2Manning):Math.floor(Number(e.averageClass2Manning)):Number.isInteger(e.averageClass2Manning)?e.averageClass2Manning:Math.floor(e.averageClass2Manning):t.averageClass2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"averageTotalManning"in e?t.averageTotalManning=null===e.averageTotalManning?null:"number"!=typeof e.averageTotalManning?Number.isInteger(Number(e.averageTotalManning))?Number(e.averageTotalManning):Math.floor(Number(e.averageTotalManning)):Number.isInteger(e.averageTotalManning)?e.averageTotalManning:Math.floor(e.averageTotalManning):t.averageTotalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalHoursWorked"in e?t.totalHoursWorked="number"!=typeof e.totalHoursWorked?Number(e.totalHoursWorked):e.totalHoursWorked:t.totalHoursWorked=0,"object"===i(e)&&"totalHoursWorkedExcludingDowntime"in e?t.totalHoursWorkedExcludingDowntime="number"!=typeof e.totalHoursWorkedExcludingDowntime?Number(e.totalHoursWorkedExcludingDowntime):e.totalHoursWorkedExcludingDowntime:t.totalHoursWorkedExcludingDowntime=0,"object"===i(e)&&"totalHoursPaid"in e?t.totalHoursPaid="number"!=typeof e.totalHoursPaid?Number(e.totalHoursPaid):e.totalHoursPaid:t.totalHoursPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number.isInteger(Number(e.totalClass1Trays))?Number(e.totalClass1Trays):Math.floor(Number(e.totalClass1Trays)):Number.isInteger(e.totalClass1Trays)?e.totalClass1Trays:Math.floor(e.totalClass1Trays):t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number.isInteger(Number(e.totalClass2Trays))?Number(e.totalClass2Trays):Math.floor(Number(e.totalClass2Trays)):Number.isInteger(e.totalClass2Trays)?e.totalClass2Trays:Math.floor(e.totalClass2Trays):t.totalClass2Trays=0,"object"===i(e)&&"class1TraysPerHour"in e?t.class1TraysPerHour="number"!=typeof e.class1TraysPerHour?Number.isInteger(Number(e.class1TraysPerHour))?Number(e.class1TraysPerHour):Math.floor(Number(e.class1TraysPerHour)):Number.isInteger(e.class1TraysPerHour)?e.class1TraysPerHour:Math.floor(e.class1TraysPerHour):t.class1TraysPerHour=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHour"in e?t.class1TraysPerManHour=null===e.class1TraysPerManHour?null:"number"!=typeof e.class1TraysPerManHour?Number(e.class1TraysPerManHour):e.class1TraysPerManHour:t.class1TraysPerManHour=null,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHour"in e?t.class2TraysPerHour="number"!=typeof e.class2TraysPerHour?Number.isInteger(Number(e.class2TraysPerHour))?Number(e.class2TraysPerHour):Math.floor(Number(e.class2TraysPerHour)):Number.isInteger(e.class2TraysPerHour)?e.class2TraysPerHour:Math.floor(e.class2TraysPerHour):t.class2TraysPerHour=0,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHour"in e?t.class2TraysPerManHour=null===e.class2TraysPerManHour?null:"number"!=typeof e.class2TraysPerManHour?Number(e.class2TraysPerManHour):e.class2TraysPerManHour:t.class2TraysPerManHour=null,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,"object"===i(e)&&"averageClass1Percentage"in e?t.averageClass1Percentage=null===e.averageClass1Percentage?null:"number"!=typeof e.averageClass1Percentage?Number(e.averageClass1Percentage):e.averageClass1Percentage:t.averageClass1Percentage=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,"object"===i(e)&&"satisfactionRating"in e?t.satisfactionRating=null===e.satisfactionRating?null:"number"!=typeof e.satisfactionRating?Number.isInteger(Number(e.satisfactionRating))?Number(e.satisfactionRating):Math.floor(Number(e.satisfactionRating)):Number.isInteger(e.satisfactionRating)?e.satisfactionRating:Math.floor(e.satisfactionRating):t.satisfactionRating=null,"object"===i(e)&&"keyCelebration"in e?t.keyCelebration=null===e.keyCelebration?null:"number"!=typeof e.keyCelebration?Number.isInteger(Number(e.keyCelebration))?Number(e.keyCelebration):Math.floor(Number(e.keyCelebration)):Number.isInteger(e.keyCelebration)?e.keyCelebration:Math.floor(e.keyCelebration):t.keyCelebration=null,"object"===i(e)&&"keyChallenge"in e?t.keyChallenge=null===e.keyChallenge?null:"number"!=typeof e.keyChallenge?Number.isInteger(Number(e.keyChallenge))?Number(e.keyChallenge):Math.floor(Number(e.keyChallenge)):Number.isInteger(e.keyChallenge)?e.keyChallenge:Math.floor(e.keyChallenge):t.keyChallenge=null,t;var t})):n.shifts=[],"object"===i(t)&&"shiftHourlyEntries"in t?n.shiftHourlyEntries=!0!==Array.isArray(t.shiftHourlyEntries)?[]:t.shiftHourlyEntries.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"lineManagerName"in e?t.lineManagerName=null===e.lineManagerName?null:"string"!=typeof e.lineManagerName?String(e.lineManagerName):e.lineManagerName:t.lineManagerName=null,"object"===i(e)&&"qualityManagerName"in e?t.qualityManagerName=null===e.qualityManagerName?null:"string"!=typeof e.qualityManagerName?String(e.qualityManagerName):e.qualityManagerName:t.qualityManagerName=null,"object"===i(e)&&"varietyIds"in e?t.varietyIds=!0!==Array.isArray(e.varietyIds)?[]:e.varietyIds.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyIds=[],"object"===i(e)&&"varietyCodes"in e?t.varietyCodes=!0!==Array.isArray(e.varietyCodes)?[]:e.varietyCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyCodes=[],"object"===i(e)&&"growingMethodIds"in e?t.growingMethodIds=!0!==Array.isArray(e.growingMethodIds)?[]:e.growingMethodIds.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodIds=[],"object"===i(e)&&"growingMethodCodes"in e?t.growingMethodCodes=!0!==Array.isArray(e.growingMethodCodes)?[]:e.growingMethodCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodCodes=[],"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"class1Manning"in e?t.class1Manning=null===e.class1Manning?null:"number"!=typeof e.class1Manning?Number.isInteger(Number(e.class1Manning))?Number(e.class1Manning):Math.floor(Number(e.class1Manning)):Number.isInteger(e.class1Manning)?e.class1Manning:Math.floor(e.class1Manning):t.class1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"class2Manning"in e?t.class2Manning=null===e.class2Manning?null:"number"!=typeof e.class2Manning?Number.isInteger(Number(e.class2Manning))?Number(e.class2Manning):Math.floor(Number(e.class2Manning)):Number.isInteger(e.class2Manning)?e.class2Manning:Math.floor(e.class2Manning):t.class2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"totalManning"in e?t.totalManning=null===e.totalManning?null:"number"!=typeof e.totalManning?Number.isInteger(Number(e.totalManning))?Number(e.totalManning):Math.floor(Number(e.totalManning)):Number.isInteger(e.totalManning)?e.totalManning:Math.floor(e.totalManning):t.totalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalMinutesWorked"in e?t.totalMinutesWorked="number"!=typeof e.totalMinutesWorked?Number(e.totalMinutesWorked):e.totalMinutesWorked:t.totalMinutesWorked=0,"object"===i(e)&&"totalMinutesWorkedExcludingDowntime"in e?t.totalMinutesWorkedExcludingDowntime="number"!=typeof e.totalMinutesWorkedExcludingDowntime?Number(e.totalMinutesWorkedExcludingDowntime):e.totalMinutesWorkedExcludingDowntime:t.totalMinutesWorkedExcludingDowntime=0,"object"===i(e)&&"totalMinutesPaid"in e?t.totalMinutesPaid="number"!=typeof e.totalMinutesPaid?Number(e.totalMinutesPaid):e.totalMinutesPaid:t.totalMinutesPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number.isInteger(Number(e.totalClass1Trays))?Number(e.totalClass1Trays):Math.floor(Number(e.totalClass1Trays)):Number.isInteger(e.totalClass1Trays)?e.totalClass1Trays:Math.floor(e.totalClass1Trays):t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number.isInteger(Number(e.totalClass2Trays))?Number(e.totalClass2Trays):Math.floor(Number(e.totalClass2Trays)):Number.isInteger(e.totalClass2Trays)?e.totalClass2Trays:Math.floor(e.totalClass2Trays):t.totalClass2Trays=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,"object"===i(e)&&"averageClass1Percentage"in e?t.averageClass1Percentage=null===e.averageClass1Percentage?null:"number"!=typeof e.averageClass1Percentage?Number(e.averageClass1Percentage):e.averageClass1Percentage:t.averageClass1Percentage=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,t;var t})):n.shiftHourlyEntries=[],"object"===i(t)&&"downtimeEvents"in t?n.downtimeEvents=!0!==Array.isArray(t.downtimeEvents)?[]:t.downtimeEvents.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"reasonCategory"in e?t.reasonCategory=null===e.reasonCategory?null:"string"!=typeof e.reasonCategory?String(e.reasonCategory):e.reasonCategory:t.reasonCategory=null,"object"===i(e)&&"reasonTag"in e?t.reasonTag=null===e.reasonTag?null:"string"!=typeof e.reasonTag?String(e.reasonTag):e.reasonTag:t.reasonTag=null,"object"===i(e)&&"remedyAction"in e?t.remedyAction=null===e.remedyAction?null:"string"!=typeof e.remedyAction?String(e.remedyAction):e.remedyAction:t.remedyAction=null,t;var t})):n.downtimeEvents=[],"object"===i(t)&&"packagingConsumption"in t?n.packagingConsumption=!0!==Array.isArray(t.packagingConsumption)?[]:t.packagingConsumption.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===i(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===i(e)&&"varietyId"in e?t.varietyId="string"!=typeof e.varietyId?String(e.varietyId):e.varietyId:t.varietyId="","object"===i(e)&&"varietyCode"in e?t.varietyCode="string"!=typeof e.varietyCode?String(e.varietyCode):e.varietyCode:t.varietyCode="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"packType"in e?t.packType="string"!=typeof e.packType?String(e.packType):e.packType:t.packType="","object"===i(e)&&"quantity"in e?t.quantity="number"!=typeof e.quantity?Number.isInteger(Number(e.quantity))?Number(e.quantity):Math.floor(Number(e.quantity)):Number.isInteger(e.quantity)?e.quantity:Math.floor(e.quantity):t.quantity=0,t;var t})):n.packagingConsumption=[],n);e(r)})).catch((function(e){return t(e)}))}))}},{key:"excelExport",value:function(){return new Promise((function(e,t){o.default.getRequest("/packhouse/production-data-export/excel").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"csvExport",value:function(){return new Promise((function(e,t){o.default.getRequest("/packhouse/production-data-export/csv").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},7236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2565));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2847));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bins"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3720));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-weights"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},9477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3428));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4601));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizers"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizers"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},5785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1237));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1425));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4031));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9256));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6865));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/downtime-events"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},9880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4461));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},2071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3794));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},6304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(7462));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/growing-methods"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/growing-methods"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1938));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2276));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizers"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizers"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6982));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8544));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5162));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/pack-types"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/pack-types"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8792));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packing-lines"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packing-lines"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3465));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getSummaryReport",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/summaryReport")).then((function(e){var t,r,o,i=(o={},"object"===a(e)&&"id"in e?o.id="string"!=typeof e.id?String(e.id):e.id:o.id="","object"===a(e)&&"name"in e?o.name="string"!=typeof e.name?String(e.name):e.name:o.name="","object"===a(e)&&"createdTimestamp"in e?o.createdTimestamp="string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):o.createdTimestamp=new Date,"object"===a(e)&&"growerName"in e?o.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:o.growerName="","object"===a(e)&&"growerCode"in e?o.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:o.growerCode="","object"===a(e)&&"maturityArea"in e?o.maturityArea=null===e.maturityArea?null:"string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:o.maturityArea=null,"object"===a(e)&&"startTimestamp"in e?o.startTimestamp=null===e.startTimestamp?null:"string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):o.startTimestamp=null,"object"===a(e)&&"finishTimestamp"in e?o.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):o.finishTimestamp=null,"object"===a(e)&&"allocatedBins"in e?o.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):o.allocatedBins=0,"object"===a(e)&&"timeBatches"in e?o.timeBatches=!0!==Array.isArray(e.timeBatches)?[]:e.timeBatches.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t})):o.timeBatches=[],"object"===a(e)&&"variety"in e?o.variety=(t={},"object"===a(e.variety)&&"id"in e.variety?t.id="string"!=typeof e.variety.id?String(e.variety.id):e.variety.id:t.id="","object"===a(e.variety)&&"code"in e.variety?t.code="string"!=typeof e.variety.code?String(e.variety.code):e.variety.code:t.code="","object"===a(e.variety)&&"name"in e.variety?t.name="string"!=typeof e.variety.name?String(e.variety.name):e.variety.name:t.name="","object"===a(e.variety)&&"description"in e.variety?t.description="string"!=typeof e.variety.description?String(e.variety.description):e.variety.description:t.description="","object"===a(e.variety)&&"image"in e.variety?t.image="string"!=typeof e.variety.image?String(e.variety.image):e.variety.image:t.image="",t):o.variety={id:"",code:"",name:"",description:"",image:""},"object"===a(e)&&"growingMethod"in e?o.growingMethod=(r={},"object"===a(e.growingMethod)&&"id"in e.growingMethod?r.id="string"!=typeof e.growingMethod.id?String(e.growingMethod.id):e.growingMethod.id:r.id="","object"===a(e.growingMethod)&&"code"in e.growingMethod?r.code="string"!=typeof e.growingMethod.code?String(e.growingMethod.code):e.growingMethod.code:r.code="","object"===a(e.growingMethod)&&"name"in e.growingMethod?r.name="string"!=typeof e.growingMethod.name?String(e.growingMethod.name):e.growingMethod.name:r.name="","object"===a(e.growingMethod)&&"description"in e.growingMethod?r.description="string"!=typeof e.growingMethod.description?String(e.growingMethod.description):e.growingMethod.description:r.description="",r):o.growingMethod={id:"",code:"",name:"",description:""},"object"===a(e)&&"packingLineId"in e?o.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:o.packingLineId="","object"===a(e)&&"packingLineName"in e?o.packingLineName=null===e.packingLineName?null:"string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:o.packingLineName=null,"object"===a(e)&&"classTypes"in e?o.classTypes=!0!==Array.isArray(e.classTypes)?[]:e.classTypes.map((function(e){return t={},"object"===a(e)&&"classType"in e?t.classType="string"!=typeof e.classType?String(e.classType):e.classType:t.classType="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="",t;var t})):o.classTypes=[],"object"===a(e)&&"compacSizers"in e?o.compacSizers=!0!==Array.isArray(e.compacSizers)?[]:e.compacSizers.map((function(e){return"object"!==a(e)?Object(e):e})):o.compacSizers=[],"object"===a(e)&&"sizers"in e?o.sizers=!0!==Array.isArray(e.sizers)?[]:e.sizers.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"batchSummaries"in e?t.batchSummaries=!0!==Array.isArray(e.batchSummaries)?[]:e.batchSummaries.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"varietyName"in e?t.varietyName="string"!=typeof e.varietyName?String(e.varietyName):e.varietyName:t.varietyName="","object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===a(e)&&"totalFruitCount"in e?t.totalFruitCount="number"!=typeof e.totalFruitCount?Number.isInteger(Number(e.totalFruitCount))?Number(e.totalFruitCount):Math.floor(Number(e.totalFruitCount)):Number.isInteger(e.totalFruitCount)?e.totalFruitCount:Math.floor(e.totalFruitCount):t.totalFruitCount=0,"object"===a(e)&&"totalFruitWeight"in e?t.totalFruitWeight="number"!=typeof e.totalFruitWeight?Number(e.totalFruitWeight):e.totalFruitWeight:t.totalFruitWeight=0,"object"===a(e)&&"recycleFruitCount"in e?t.recycleFruitCount="number"!=typeof e.recycleFruitCount?Number.isInteger(Number(e.recycleFruitCount))?Number(e.recycleFruitCount):Math.floor(Number(e.recycleFruitCount)):Number.isInteger(e.recycleFruitCount)?e.recycleFruitCount:Math.floor(e.recycleFruitCount):t.recycleFruitCount=0,"object"===a(e)&&"recycleFruitWeight"in e?t.recycleFruitWeight="number"!=typeof e.recycleFruitWeight?Number(e.recycleFruitWeight):e.recycleFruitWeight:t.recycleFruitWeight=0,"object"===a(e)&&"recyclePercentage"in e?t.recyclePercentage="number"!=typeof e.recyclePercentage?Number(e.recyclePercentage):e.recyclePercentage:t.recyclePercentage=0,t;var t})):t.batchSummaries=[],t;var t})):o.sizers=[],"object"===a(e)&&"rejectBinSummary"in e?o.rejectBinSummary="object"!==a(e.rejectBinSummary)?Object(e.rejectBinSummary):e.rejectBinSummary:o.rejectBinSummary={},"object"===a(e)&&"binTipSummary"in e?o.binTipSummary="object"!==a(e.binTipSummary)?Object(e.binTipSummary):e.binTipSummary:o.binTipSummary={},"object"===a(e)&&"classTypeTotals"in e?o.classTypeTotals=!0!==Array.isArray(e.classTypeTotals)?[]:e.classTypeTotals.map((function(e){return"object"!==a(e)?Object(e):e})):o.classTypeTotals=[],"object"===a(e)&&"class1SizerSummary"in e?o.class1SizerSummary=!0!==Array.isArray(e.class1SizerSummary)?[]:e.class1SizerSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1SizerSummary=[],"object"===a(e)&&"class1TotalTrays"in e?o.class1TotalTrays="number"!=typeof e.class1TotalTrays?Number(e.class1TotalTrays):e.class1TotalTrays:o.class1TotalTrays=0,"object"===a(e)&&"class1AverageTrayWeight"in e?o.class1AverageTrayWeight="number"!=typeof e.class1AverageTrayWeight?Number(e.class1AverageTrayWeight):e.class1AverageTrayWeight:o.class1AverageTrayWeight=0,"object"===a(e)&&"class1FruitSizeProfile"in e?o.class1FruitSizeProfile=!0!==Array.isArray(e.class1FruitSizeProfile)?[]:e.class1FruitSizeProfile.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1FruitSizeProfile=[],"object"===a(e)&&"class1AverageFruitSize"in e?o.class1AverageFruitSize="number"!=typeof e.class1AverageFruitSize?Number(e.class1AverageFruitSize):e.class1AverageFruitSize:o.class1AverageFruitSize=0,"object"===a(e)&&"class1TraysPerBin"in e?o.class1TraysPerBin="number"!=typeof e.class1TraysPerBin?Number(e.class1TraysPerBin):e.class1TraysPerBin:o.class1TraysPerBin=0,"object"===a(e)&&"class1FreshPackSummary"in e?o.class1FreshPackSummary=!0!==Array.isArray(e.class1FreshPackSummary)?[]:e.class1FreshPackSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1FreshPackSummary=[],"object"===a(e)&&"class2SizerSummary"in e?o.class2SizerSummary=!0!==Array.isArray(e.class2SizerSummary)?[]:e.class2SizerSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class2SizerSummary=[],"object"===a(e)&&"class2TotalTrays"in e?o.class2TotalTrays="number"!=typeof e.class2TotalTrays?Number(e.class2TotalTrays):e.class2TotalTrays:o.class2TotalTrays=0,"object"===a(e)&&"class2AverageTrayWeight"in e?o.class2AverageTrayWeight="number"!=typeof e.class2AverageTrayWeight?Number(e.class2AverageTrayWeight):e.class2AverageTrayWeight:o.class2AverageTrayWeight=0,"object"===a(e)&&"class2FreshPackSummary"in e?o.class2FreshPackSummary=!0!==Array.isArray(e.class2FreshPackSummary)?[]:e.class2FreshPackSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class2FreshPackSummary=[],o);n(i)})).catch((function(e){return o(e)}))}))}},{key:"getInfeedReport",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/infeedReport")).then((function(e){var t,r=(t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"createdTimestamp"in e?t.createdTimestamp="string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):t.createdTimestamp=new Date,"object"===a(e)&&"startTimestamp"in e?t.startTimestamp=null===e.startTimestamp?null:"string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=null,"object"===a(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===a(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===a(e)&&"packingLineName"in e?t.packingLineName=null===e.packingLineName?null:"string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName=null,"object"===a(e)&&"growerName"in e?t.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:t.growerName="","object"===a(e)&&"growerCode"in e?t.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:t.growerCode="","object"===a(e)&&"maturityArea"in e?t.maturityArea=null===e.maturityArea?null:"string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:t.maturityArea=null,"object"===a(e)&&"allocatedBins"in e?t.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):t.allocatedBins=0,"object"===a(e)&&"tippedBins"in e?t.tippedBins="number"!=typeof e.tippedBins?Number.isInteger(Number(e.tippedBins))?Number(e.tippedBins):Math.floor(Number(e.tippedBins)):Number.isInteger(e.tippedBins)?e.tippedBins:Math.floor(e.tippedBins):t.tippedBins=0,"object"===a(e)&&"softSortRejectWeight"in e?t.softSortRejectWeight="number"!=typeof e.softSortRejectWeight?Number(e.softSortRejectWeight):e.softSortRejectWeight:t.softSortRejectWeight=0,"object"===a(e)&&"softSortRejectPercentage"in e?t.softSortRejectPercentage="number"!=typeof e.softSortRejectPercentage?Number(e.softSortRejectPercentage):e.softSortRejectPercentage:t.softSortRejectPercentage=0,"object"===a(e)&&"softSortEventsPerBin"in e?t.softSortEventsPerBin="number"!=typeof e.softSortEventsPerBin?Number(e.softSortEventsPerBin):e.softSortEventsPerBin:t.softSortEventsPerBin=0,"object"===a(e)&&"totalSoftSortEventsCount"in e?t.totalSoftSortEventsCount="number"!=typeof e.totalSoftSortEventsCount?Number.isInteger(Number(e.totalSoftSortEventsCount))?Number(e.totalSoftSortEventsCount):Math.floor(Number(e.totalSoftSortEventsCount)):Number.isInteger(e.totalSoftSortEventsCount)?e.totalSoftSortEventsCount:Math.floor(e.totalSoftSortEventsCount):t.totalSoftSortEventsCount=0,"object"===a(e)&&"averageSoftSortEventsDuration"in e?t.averageSoftSortEventsDuration="number"!=typeof e.averageSoftSortEventsDuration?Number(e.averageSoftSortEventsDuration):e.averageSoftSortEventsDuration:t.averageSoftSortEventsDuration=0,"object"===a(e)&&"totalSoftSortEventsDuration"in e?t.totalSoftSortEventsDuration="number"!=typeof e.totalSoftSortEventsDuration?Number(e.totalSoftSortEventsDuration):e.totalSoftSortEventsDuration:t.totalSoftSortEventsDuration=0,"object"===a(e)&&"softSortEventsIsAccurate"in e?t.softSortEventsIsAccurate=null===e.softSortEventsIsAccurate?null:"boolean"!=typeof e.softSortEventsIsAccurate?Boolean(e.softSortEventsIsAccurate):e.softSortEventsIsAccurate:t.softSortEventsIsAccurate=null,"object"===a(e)&&"softSortEventsNotAccurateReason"in e?t.softSortEventsNotAccurateReason=null===e.softSortEventsNotAccurateReason?null:"string"!=typeof e.softSortEventsNotAccurateReason?String(e.softSortEventsNotAccurateReason):e.softSortEventsNotAccurateReason:t.softSortEventsNotAccurateReason=null,t);n(r)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packruns"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3908));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bins"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4738));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-scales"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-scales"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},3788:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2519));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-weights"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},6768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4045));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getSummaryReportPdf",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/summaryReportPdf")).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shifts"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8501));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5784));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9873));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},7980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6896));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-summary-reports"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1996));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-tasks"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3202));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOneEvents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t,"/events"),n).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"beltId"in e?t.beltId="string"!=typeof e.beltId?String(e.beltId):e.beltId:t.beltId="","object"===a(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===a(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===a(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===a(e)&&"endTimestamp"in e?t.endTimestamp="string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=new Date,"object"===a(e)&&"duration"in e?t.duration="number"!=typeof e.duration?Number.isInteger(Number(e.duration))?Number(e.duration):Math.floor(Number(e.duration)):Number.isInteger(e.duration)?e.duration:Math.floor(e.duration):t.duration=0,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/soft-sort-belts"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"getAllEvents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/events"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"beltId"in e?t.beltId="string"!=typeof e.beltId?String(e.beltId):e.beltId:t.beltId="","object"===a(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===a(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===a(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===a(e)&&"endTimestamp"in e?t.endTimestamp="string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=new Date,"object"===a(e)&&"duration"in e?t.duration="number"!=typeof e.duration?Number.isInteger(Number(e.duration))?Number(e.duration):Math.floor(Number(e.duration)):Number.isInteger(e.duration)?e.duration:Math.floor(e.duration):t.duration=0,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6857));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9311));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/varieties"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/varieties"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},3242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=E(n(7236)),o=E(n(3639)),i=E(n(4095)),a=E(n(9477)),u=E(n(3553)),c=E(n(5785)),s=E(n(8499)),l=E(n(446)),f=E(n(578)),m=E(n(8905)),p=E(n(9880)),d=E(n(2071)),y=E(n(6304)),g=E(n(1705)),b=E(n(657)),h=E(n(2077)),T=E(n(4572)),v=E(n(286)),N=E(n(9716)),S=E(n(9292)),w=E(n(1991)),A=E(n(1988)),j=E(n(3788)),P=E(n(6768)),k=E(n(5819)),M=E(n(817)),C=E(n(1652)),I=E(n(7980)),O=E(n(3309)),D=E(n(8780)),R=E(n(480)),_=E(n(5658));function E(e){return e&&e.__esModule?e:{default:e}}var q={BinTipBinCardController:r.default,BinTipBinController:o.default,BinTipWeightController:i.default,CompacSizerBatchController:a.default,CompacSizerController:u.default,CompacSizerOutletProductChangeController:c.default,CompacSizerOutletTypeChangeController:s.default,CompacSizerOutletTypeController:l.default,CompacSizerPackrunSummaryController:f.default,DowntimeEventController:m.default,FreshPackPackrunSummaryController:p.default,FreshQualityPackrunSummaryController:d.default,GrowingMethodController:y.default,MAFSizerBatchController:g.default,MAFSizerController:b.default,MAFSizerOutletArticleChangeController:h.default,MAFSizerPackrunSummaryController:T.default,PackTypeController:v.default,PackingLineController:N.default,PackrunController:S.default,RejectBinController:w.default,RejectBinScaleController:A.default,RejectBinWeightController:j.default,ShiftController:P.default,ShiftFocusMeetingController:k.default,ShiftHourlyEntryController:M.default,ShiftQualitySummaryController:C.default,ShiftSummaryReportController:I.default,ShiftTaskController:O.default,SoftSortBeltController:D.default,SoftSortPackrunSummaryController:R.default,VarietyController:_.default};t.default=q},8990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(9255)),o=i(n(3242));function i(e){return e&&e.__esModule?e:{default:e}}var a={ProductionDataExportController:r.default,Site:o.default};t.default=a},623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAll",value:function(e){return new Promise((function(t,n){o.default.getRequest("/rtus/".concat(e,"/global-settings")).then((function(e){var n="object"!==i(e)?Object(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,r){o.default.postRequest("/rtus/".concat(e,"/global-settings"),t).then((function(e){n(null==e||e)})).catch((function(e){return r(e)}))}))}},{key:"getOne",value:function(e,t){return new Promise((function(n,r){o.default.getRequest("/rtus/".concat(e,"/global-settings/").concat(t)).then((function(e){var t="object"!==i(e)?Object(e):e;n(t)})).catch((function(e){return r(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,r){o.default.deleteRequest("/rtus/".concat(e,"/global-settings/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return r(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},7828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAll",value:function(e){return new Promise((function(t,n){o.default.getRequest("/rtus/".concat(e,"/plugin-settings")).then((function(e){var n="object"!==i(e)?Object(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"getPlugin",value:function(e,t){return new Promise((function(n,r){o.default.getRequest("/rtus/".concat(e,"/plugin-settings/").concat(t)).then((function(e){var t="object"!==i(e)?Object(e):e;n(t)})).catch((function(e){return r(e)}))}))}},{key:"create",value:function(e,t,n){return new Promise((function(r,i){o.default.postRequest("/rtus/".concat(e,"/plugin-settings/").concat(t),n).then((function(e){r(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getOne",value:function(e,t,n){return new Promise((function(r,a){o.default.getRequest("/rtus/".concat(e,"/plugin-settings/").concat(t,"/").concat(n)).then((function(e){var t="object"!==i(e)?Object(e):e;r(t)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t,n){return new Promise((function(r,i){o.default.deleteRequest("/rtus/".concat(e,"/plugin-settings/").concat(t,"/").concat(n)).then((function(e){r(null==e||e)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(623)),o=i(n(7828));function i(e){return e&&e.__esModule?e:{default:e}}var a={GlobalSettingsController:r.default,PluginSettingsController:o.default};t.default=a},8796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(232));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/rtus/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/rtus/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/rtus/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/rtus",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/rtus",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8050));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/rtu-plugins/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/rtu-plugins/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/rtu-plugins/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/rtu-plugins",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/rtu-plugins",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2163));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarms/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/alarms/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/alarms/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOneHistory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/alarms/").concat(t,"/history"),n).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"tripTimestamp"in e?t.tripTimestamp="string"!=typeof e.tripTimestamp?new Date(String(e.tripTimestamp)):new Date(e.tripTimestamp):t.tripTimestamp=new Date,"object"===a(e)&&"resetTimestamp"in e?t.resetTimestamp=null===e.resetTimestamp?null:"string"!=typeof e.resetTimestamp?new Date(String(e.resetTimestamp)):new Date(e.resetTimestamp):t.resetTimestamp=null,"object"===a(e)&&"trippedDuration"in e?t.trippedDuration="number"!=typeof e.trippedDuration?Number.isInteger(Number(e.trippedDuration))?Number(e.trippedDuration):Math.floor(Number(e.trippedDuration)):Number.isInteger(e.trippedDuration)?e.trippedDuration:Math.floor(e.trippedDuration):t.trippedDuration=0,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarms"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/alarms"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"getAllHistory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/alarms/history"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"tripTimestamp"in e?t.tripTimestamp="string"!=typeof e.tripTimestamp?new Date(String(e.tripTimestamp)):new Date(e.tripTimestamp):t.tripTimestamp=new Date,"object"===a(e)&&"resetTimestamp"in e?t.resetTimestamp=null===e.resetTimestamp?null:"string"!=typeof e.resetTimestamp?new Date(String(e.resetTimestamp)):new Date(e.resetTimestamp):t.resetTimestamp=null,"object"===a(e)&&"trippedDuration"in e?t.trippedDuration="number"!=typeof e.trippedDuration?Number.isInteger(Number(e.trippedDuration))?Number(e.trippedDuration):Math.floor(Number(e.trippedDuration)):Number.isInteger(e.trippedDuration)?e.trippedDuration:Math.floor(e.trippedDuration):t.trippedDuration=0,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4318));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarm-groups/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/alarm-groups/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/alarm-groups/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarm-groups"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/alarm-groups"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1326));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/definitions/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/definitions/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/definitions/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/definitions"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/definitions"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6909));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-objects/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/permanent-objects/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/permanent-objects/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-objects"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/permanent-objects"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5916));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/permanent-object-data/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/permanent-object-data/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/permanent-object-data"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3932));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAllValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/points/values"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"value"in e?t.value=e.value:t.value=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"setValues",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/values"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAllHistory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/points/history"),Object.assign(n,{pointIds:t})).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"value"in e?t.value=e.value:t.value=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"addPointHistory",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/history"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAllEvents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/points/events"),Object.assign(n,{pointIds:t})).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"oldValue"in e?t.oldValue=e.oldValue:t.oldValue=null,"object"===a(e)&&"newValue"in e?t.newValue=e.newValue:t.newValue=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"addPointEvents",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/events"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/points/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/points/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/points/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/points"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/points"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(136));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/temporary-objects/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/temporary-objects/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/temporary-objects/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/temporary-objects"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/temporary-objects"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1156)),o=l(n(8216)),i=l(n(2717)),a=l(n(8659)),u=l(n(387)),c=l(n(5587)),s=l(n(5971));function l(e){return e&&e.__esModule?e:{default:e}}var f={AlarmController:r.default,AlarmGroupController:o.default,DefinitionController:i.default,PermanentObjectController:a.default,PermanentObjectDataController:u.default,PointController:c.default,TemporaryObjectController:s.default};t.default=f},175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(7410));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/sites/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/sites/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/sites/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/sites",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/sites",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8365));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/token/new",e).then((function(e){var n,r=(n={},"object"===a(e)&&"token"in e?n.token="string"!=typeof e.token?String(e.token):e.token:n.token="","object"===a(e)&&"expires"in e?n.expires="number"!=typeof e.expires?Number.isInteger(Number(e.expires))?Number(e.expires):Math.floor(Number(e.expires)):Number.isInteger(e.expires)?e.expires:Math.floor(e.expires):n.expires=0,n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"unlock",value:function(e){return new Promise((function(t,n){r.default.postRequest("/token/unlock",e).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"lock",value:function(){return new Promise((function(e,t){r.default.postRequest("/token/lock").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"destroy",value:function(){return new Promise((function(e,t){r.default.postRequest("/token/destroy").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/token").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"ping",value:function(){return new Promise((function(e,t){o.default.getRequest("/ping").then((function(t){var n="string"!=typeof t?String(t):t;e(n)})).catch((function(e){return t(e)}))}))}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},5642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3298));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/user-action-tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/user-action-tokens/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/user-action-tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/user-action-tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user-action-tokens",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"createToken",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/user-action-tokens/new",{email:e,action:t,providerId:n}).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"verifyToken",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/verify",{token:e,action:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"activateAction",value:function(e,t,n,o,i){return new Promise((function(u,c){r.default.postRequest("/user-action-tokens/actions/activate",{token:e,email:t,password:n,firstName:o,lastName:i}).then((function(e){var t,n=(t={},"object"===a(e)&&"email"in e?t.email="string"!=typeof e.email?String(e.email):e.email:t.email="","object"===a(e)&&"firstName"in e?t.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:t.firstName="","object"===a(e)&&"lastName"in e?t.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:t.lastName="",t);u(n)})).catch((function(e){return c(e)}))}))}},{key:"getActivateActionDetails",value:function(e){return new Promise((function(t,n){r.default.getRequest("/user-action-tokens/actions/activate",Object.assign({},{token:e})).then((function(e){var n,r=(n={},"object"===a(e)&&"email"in e?n.email="string"!=typeof e.email?String(e.email):e.email:n.email="","object"===a(e)&&"firstName"in e?n.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:n.firstName="","object"===a(e)&&"lastName"in e?n.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:n.lastName="",n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"resetPasswordAction",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/actions/reset-password",{token:e,newPassword:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"resetPinCodeAction",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/actions/reset-pin-code",{token:e,newPinCode:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4905));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/user").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"updateCurrent",value:function(e){return new Promise((function(t,n){r.default.patchRequest("/user",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"setPassword",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/set-password",{newPassword:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"changePassword",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user/change-password",{currentPassword:e,newPassword:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"setPinCode",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/set-pin-code",{newPinCode:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"changePinCode",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user/change-pin-code",{currentPinCode:e,newPinCode:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"deleteCurrent",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/delete-account",{currentPassword:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/users/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/users/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/users/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getPolicies",value:function(e){return new Promise((function(t,n){r.default.getRequest("/users/".concat(e,"/policies")).then((function(e){var n,r=(n={},"object"===a(e)&&"policies"in e?n.policies=!0!==Array.isArray(e.policies)?[]:e.policies.map((function(e){return"string"!=typeof e?String(e):e})):n.policies=[],n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"setPolicies",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/users/".concat(e,"/policies"),{policies:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/users",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/users",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},7053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(8647)),o=b(n(9376)),i=b(n(4533)),a=b(n(5843)),u=b(n(8796)),c=b(n(1648)),s=b(n(175)),l=b(n(8482)),f=b(n(1311)),m=b(n(5642)),p=b(n(3139)),d=b(n(8990)),y=b(n(8182)),g=b(n(2962));function b(e){return e&&e.__esModule?e:{default:e}}var h={AccountPolicyController:r.default,ApiAccountController:o.default,CompanyController:i.default,FirebaseTokenController:a.default,RTUController:u.default,RTUPluginController:c.default,SiteController:s.default,TokenController:l.default,ToolsController:f.default,UserAccountActionTokenController:m.default,UserAccountController:p.default,Packhouse:d.default,RTU:y.default,Site:g.default};t.default=h},9936:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},5812:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},4328:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},5044:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},6193:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},6850:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},8445:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(9936)),o=l(n(5812)),i=l(n(4328)),a=l(n(5044)),u=l(n(6193)),c=l(n(6850)),s=l(n(8445));function l(e){return e&&e.__esModule?e:{default:e}}var f={BadRequestError:r.default,ForbiddenError:o.default,NetworkError:i.default,NotAllowedError:a.default,NotFoundError:u.default,ServerError:c.default,UnauthorizedError:s.default};t.default=f},3091:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.name="",e.companyId="",e.resources=[],e.rules=[],e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"resources"in n&&(t.resources=!0!==Array.isArray(n.resources)?[]:n.resources.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id=e.id:t.id=null,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"actions"in e?t.actions=!0!==Array.isArray(e.actions)?[]:e.actions.map((function(e){return"string"!=typeof e?String(e):e})):t.actions=[],"object"===o(e)&&"permission"in e?t.permission="string"!=typeof e.permission?String(e.permission):e.permission:t.permission="",t;var t}))),"rules"in n&&(t.rules=!0!==Array.isArray(n.rules)?[]:n.rules.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},348:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.key=null,e.name="",e.companyId="",e.policies=[],e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"key"in n&&(t.key=null===n.key?null:"string"!=typeof n.key?String(n.key):n.key),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"policies"in n&&(t.policies=!0!==Array.isArray(n.policies)?[]:n.policies.map((function(e){return"string"!=typeof e?String(e):e}))),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},7416:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.default=o},1969:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.displayName="",e.legalName="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"displayName"in n&&(t.displayName="string"!=typeof n.displayName?String(n.displayName):n.displayName),"legalName"in n&&(t.legalName="string"!=typeof n.legalName?String(n.legalName):n.legalName),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},556:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.token="",e.enabled=!1,e.deviceName="",e.devicePlatform="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"token"in n&&(t.token="string"!=typeof n.token?String(n.token):n.token),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deviceName"in n&&(t.deviceName="string"!=typeof n.deviceName?String(n.deviceName):n.deviceName),"devicePlatform"in n&&(t.devicePlatform="string"!=typeof n.devicePlatform?String(n.devicePlatform):n.devicePlatform),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2565:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.binTipBinId="",t.createdTimestamp=new Date,t.image=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"binTipBinId"in r&&(n.binTipBinId="string"!=typeof r.binTipBinId?String(r.binTipBinId):r.binTipBinId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"image"in r&&(n.image=null===r.image?null:"string"!=typeof r.image?String(r.image):r.image),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2847:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.packrunId="",t.createdTimestamp=new Date,t.binNumber=null,t.binNumberSource=null,t.timeBatchId=null,t.fullWeight=null,t.emptyWeight=null,t.fullBinWeightId=null,t.emptyBinWeightId=null,t.freshPackFieldBinWeightApi=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"binNumber"in r&&(n.binNumber=null===r.binNumber?null:"string"!=typeof r.binNumber?String(r.binNumber):r.binNumber),"binNumberSource"in r&&(n.binNumberSource=null===r.binNumberSource?null:"string"!=typeof r.binNumberSource?String(r.binNumberSource):r.binNumberSource),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"fullWeight"in r&&(n.fullWeight=null===r.fullWeight?null:"number"!=typeof r.fullWeight?Number(r.fullWeight):r.fullWeight),"emptyWeight"in r&&(n.emptyWeight=null===r.emptyWeight?null:"number"!=typeof r.emptyWeight?Number(r.emptyWeight):r.emptyWeight),"fullBinWeightId"in r&&(n.fullBinWeightId=null===r.fullBinWeightId?null:"string"!=typeof r.fullBinWeightId?String(r.fullBinWeightId):r.fullBinWeightId),"emptyBinWeightId"in r&&(n.emptyBinWeightId=null===r.emptyBinWeightId?null:"string"!=typeof r.emptyBinWeightId?String(r.emptyBinWeightId):r.emptyBinWeightId),"freshPackFieldBinWeightApi"in r&&(n.freshPackFieldBinWeightApi=null===r.freshPackFieldBinWeightApi?null:"object"!==o(r.freshPackFieldBinWeightApi)?Object(r.freshPackFieldBinWeightApi):r.freshPackFieldBinWeightApi),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3720:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.packrunId="",t.createdTimestamp=new Date,t.weightType="",t.weight=0,t.binScaleId=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"weightType"in r&&(n.weightType="string"!=typeof r.weightType?String(r.weightType):r.weightType),"weight"in r&&(n.weight="number"!=typeof r.weight?Number(r.weight):r.weight),"binScaleId"in r&&(n.binScaleId=null===r.binScaleId?null:"string"!=typeof r.binScaleId?String(r.binScaleId):r.binScaleId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3428:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.batchId="",t.createdTimestamp=new Date,t.packrunId=null,t.batch={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"batchId"in r&&(n.batchId="string"!=typeof r.batchId?String(r.batchId):r.batchId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"batch"in r&&(n.batch="object"!==o(r.batch)?Object(r.batch):r.batch),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4601:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.lanes=[],t.points={},t.outlets=[],t.sizerType="",t.autoCreateBatchDelay=0,t.fruitSizes=[],t.packingLineId="",t.freshPackIntegration=null,t.sources=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"lanes"in r&&(n.lanes=!0!==Array.isArray(r.lanes)?[]:r.lanes.map((function(e){return"object"!==o(e)?Object(e):e}))),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"outlets"in r&&(n.outlets=!0!==Array.isArray(r.outlets)?[]:r.outlets.map((function(e){return"object"!==o(e)?Object(e):e}))),"sizerType"in r&&(n.sizerType="string"!=typeof r.sizerType?String(r.sizerType):r.sizerType),"autoCreateBatchDelay"in r&&(n.autoCreateBatchDelay="number"!=typeof r.autoCreateBatchDelay?Number.isInteger(Number(r.autoCreateBatchDelay))?Number(r.autoCreateBatchDelay):Math.floor(Number(r.autoCreateBatchDelay)):Number.isInteger(r.autoCreateBatchDelay)?r.autoCreateBatchDelay:Math.floor(r.autoCreateBatchDelay)),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return"object"!==o(e)?Object(e):e}))),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1237:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousProductId=null,t.previousProductName=null,t.newProductId="",t.newProductName="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousProductId"in r&&(n.previousProductId=null===r.previousProductId?null:"string"!=typeof r.previousProductId?String(r.previousProductId):r.previousProductId),"previousProductName"in r&&(n.previousProductName=null===r.previousProductName?null:"string"!=typeof r.previousProductName?String(r.previousProductName):r.previousProductName),"newProductId"in r&&(n.newProductId="string"!=typeof r.newProductId?String(r.newProductId):r.newProductId),"newProductName"in r&&(n.newProductName="string"!=typeof r.newProductName?String(r.newProductName):r.newProductName),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1425:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousTypeId=null,t.newTypeId="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousTypeId"in r&&(n.previousTypeId=null===r.previousTypeId?null:"string"!=typeof r.previousTypeId?String(r.previousTypeId):r.previousTypeId),"newTypeId"in r&&(n.newTypeId="string"!=typeof r.newTypeId?String(r.newTypeId):r.newTypeId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4031:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.name="",t.type="",t.description="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9256:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.outletSummaries=[],t.initialOutletProducts=[],t.outletProductChanges=[],t.initialOutletTypes=[],t.outletTypeChanges=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"outletSummaries"in r&&(n.outletSummaries=!0!==Array.isArray(r.outletSummaries)?[]:r.outletSummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===o(e)&&"totals"in e?t.totals=!0!==Array.isArray(e.totals)?[]:e.totals.map((function(e){return t={},"object"===o(e)&&"classType"in e?t.classType=null===e.classType?null:"string"!=typeof e.classType?String(e.classType):e.classType:t.classType=null,"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType=null===e.packType?null:"string"!=typeof e.packType?String(e.packType):e.packType:t.packType=null,"object"===o(e)&&"weight"in e?t.weight="number"!=typeof e.weight?Number(e.weight):e.weight:t.weight=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"packCount"in e?t.packCount=null===e.packCount?null:"number"!=typeof e.packCount?Number(e.packCount):e.packCount:t.packCount=null,t;var t})):t.totals=[],t;var t}))),"initialOutletProducts"in r&&(n.initialOutletProducts=!0!==Array.isArray(r.initialOutletProducts)?[]:r.initialOutletProducts.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"productId"in e?t.productId="string"!=typeof e.productId?String(e.productId):e.productId:t.productId="","object"===o(e)&&"productName"in e?t.productName=null===e.productName?null:"string"!=typeof e.productName?String(e.productName):e.productName:t.productName=null,t;var t}))),"outletProductChanges"in r&&(n.outletProductChanges=!0!==Array.isArray(r.outletProductChanges)?[]:r.outletProductChanges.map((function(e){return t={},"object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"productId"in e?t.productId="string"!=typeof e.productId?String(e.productId):e.productId:t.productId="","object"===o(e)&&"productName"in e?t.productName=null===e.productName?null:"string"!=typeof e.productName?String(e.productName):e.productName:t.productName=null,"object"===o(e)&&"outletProductChangeId"in e?t.outletProductChangeId="string"!=typeof e.outletProductChangeId?String(e.outletProductChangeId):e.outletProductChangeId:t.outletProductChangeId="",t;var t}))),"initialOutletTypes"in r&&(n.initialOutletTypes=!0!==Array.isArray(r.initialOutletTypes)?[]:r.initialOutletTypes.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"outletTypeChanges"in r&&(n.outletTypeChanges=!0!==Array.isArray(r.outletTypeChanges)?[]:r.outletTypeChanges.map((function(e){return t={},"object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6865:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.startTimestamp=new Date,t.endTimestamp=null,t.reasonCategory=null,t.reasonTag=null,t.remedyAction=null,t.avoidableRating=null,t.source="",t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"startTimestamp"in r&&(n.startTimestamp="string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"endTimestamp"in r&&(n.endTimestamp=null===r.endTimestamp?null:"string"!=typeof r.endTimestamp?new Date(String(r.endTimestamp)):new Date(r.endTimestamp)),"reasonCategory"in r&&(n.reasonCategory=null===r.reasonCategory?null:"string"!=typeof r.reasonCategory?String(r.reasonCategory):r.reasonCategory),"reasonTag"in r&&(n.reasonTag=null===r.reasonTag?null:"string"!=typeof r.reasonTag?String(r.reasonTag):r.reasonTag),"remedyAction"in r&&(n.remedyAction=null===r.remedyAction?null:"string"!=typeof r.remedyAction?String(r.remedyAction):r.remedyAction),"avoidableRating"in r&&(n.avoidableRating=null===r.avoidableRating?null:"number"!=typeof r.avoidableRating?Number.isInteger(Number(r.avoidableRating))?Number(r.avoidableRating):Math.floor(Number(r.avoidableRating)):Number.isInteger(r.avoidableRating)?r.avoidableRating:Math.floor(r.avoidableRating)),"source"in r&&(n.source="string"!=typeof r.source?String(r.source):r.source),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4461:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.traySummaries=[],t.clearanceSummaries=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"traySummaries"in r&&(n.traySummaries=!0!==Array.isArray(r.traySummaries)?[]:r.traySummaries.map((function(e){return"object"!==o(e)?Object(e):e}))),"clearanceSummaries"in r&&(n.clearanceSummaries=!0!==Array.isArray(r.clearanceSummaries)?[]:r.clearanceSummaries.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3794:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.class1R600Samples=[],t.categorySummaries=[],t.totalFruitSampled=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"class1R600Samples"in r&&(n.class1R600Samples=!0!==Array.isArray(r.class1R600Samples)?[]:r.class1R600Samples.map((function(e){return t={},"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType="string"!=typeof e.packType?String(e.packType):e.packType:t.packType="","object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"defects"in e?t.defects=!0!==Array.isArray(e.defects)?[]:e.defects.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"group"in e?t.group="string"!=typeof e.group?String(e.group):e.group:t.group="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,t;var t})):t.defects=[],t;var t}))),"categorySummaries"in r&&(n.categorySummaries=!0!==Array.isArray(r.categorySummaries)?[]:r.categorySummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"percentage"in e?t.percentage="number"!=typeof e.percentage?Number(e.percentage):e.percentage:t.percentage=0,"object"===o(e)&&"defects"in e?t.defects=!0!==Array.isArray(e.defects)?[]:e.defects.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"percentage"in e?t.percentage="number"!=typeof e.percentage?Number(e.percentage):e.percentage:t.percentage=0,t;var t})):t.defects=[],t;var t}))),"totalFruitSampled"in r&&(n.totalFruitSampled="number"!=typeof r.totalFruitSampled?Number.isInteger(Number(r.totalFruitSampled))?Number(r.totalFruitSampled):Math.floor(Number(r.totalFruitSampled)):Number.isInteger(r.totalFruitSampled)?r.totalFruitSampled:Math.floor(r.totalFruitSampled)),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},7462:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1938:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.batchId="",t.createdTimestamp=new Date,t.batchName=null,t.growerCode=null,t.growerName=null,t.varietyCode=null,t.varietyName=null,t.totalWeight=0,t.packrunId=null,t.articleSummaries=[],t.outletSummaries=[],t.fruitSummaries=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"batchId"in r&&(n.batchId="string"!=typeof r.batchId?String(r.batchId):r.batchId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"batchName"in r&&(n.batchName=null===r.batchName?null:"string"!=typeof r.batchName?String(r.batchName):r.batchName),"growerCode"in r&&(n.growerCode=null===r.growerCode?null:"string"!=typeof r.growerCode?String(r.growerCode):r.growerCode),"growerName"in r&&(n.growerName=null===r.growerName?null:"string"!=typeof r.growerName?String(r.growerName):r.growerName),"varietyCode"in r&&(n.varietyCode=null===r.varietyCode?null:"string"!=typeof r.varietyCode?String(r.varietyCode):r.varietyCode),"varietyName"in r&&(n.varietyName=null===r.varietyName?null:"string"!=typeof r.varietyName?String(r.varietyName):r.varietyName),"totalWeight"in r&&(n.totalWeight="number"!=typeof r.totalWeight?Number(r.totalWeight):r.totalWeight),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"articleSummaries"in r&&(n.articleSummaries=!0!==Array.isArray(r.articleSummaries)?[]:r.articleSummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"outletSummaries"in r&&(n.outletSummaries=!0!==Array.isArray(r.outletSummaries)?[]:r.outletSummaries.map((function(e){return t={},"object"===o(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"fruitSummaries"in r&&(n.fruitSummaries=!0!==Array.isArray(r.fruitSummaries)?[]:r.fruitSummaries.map((function(e){return t={},"object"===o(e)&&"articleName"in e?t.articleName="string"!=typeof e.articleName?String(e.articleName):e.articleName:t.articleName="","object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2276:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.lanes=[],t.points={},t.outlets=[],t.sizerType="",t.autoCreateBatchDelay=0,t.fruitSizes=[],t.packingLineId="",t.freshPackIntegration=null,t.mafIntegration=null,t.sources=[],t.articleClassTypes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"lanes"in r&&(n.lanes=!0!==Array.isArray(r.lanes)?[]:r.lanes.map((function(e){return"object"!==o(e)?Object(e):e}))),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"outlets"in r&&(n.outlets=!0!==Array.isArray(r.outlets)?[]:r.outlets.map((function(e){return"object"!==o(e)?Object(e):e}))),"sizerType"in r&&(n.sizerType="string"!=typeof r.sizerType?String(r.sizerType):r.sizerType),"autoCreateBatchDelay"in r&&(n.autoCreateBatchDelay="number"!=typeof r.autoCreateBatchDelay?Number.isInteger(Number(r.autoCreateBatchDelay))?Number(r.autoCreateBatchDelay):Math.floor(Number(r.autoCreateBatchDelay)):Number.isInteger(r.autoCreateBatchDelay)?r.autoCreateBatchDelay:Math.floor(r.autoCreateBatchDelay)),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return"object"!==o(e)?Object(e):e}))),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"mafIntegration"in r&&(n.mafIntegration=null===r.mafIntegration?null:"object"!==o(r.mafIntegration)?Object(r.mafIntegration):r.mafIntegration),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"articleClassTypes"in r&&(n.articleClassTypes=!0!==Array.isArray(r.articleClassTypes)?[]:r.articleClassTypes.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6982:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousArticleName=null,t.newArticleName="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousArticleName"in r&&(n.previousArticleName=null===r.previousArticleName?null:"string"!=typeof r.previousArticleName?String(r.previousArticleName):r.previousArticleName),"newArticleName"in r&&(n.newArticleName="string"!=typeof r.newArticleName?String(r.newArticleName):r.newArticleName),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8544:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.classTypeSummaries=[],t.initialOutletArticles=[],t.initialOutletTypes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"classTypeSummaries"in r&&(n.classTypeSummaries=!0!==Array.isArray(r.classTypeSummaries)?[]:r.classTypeSummaries.map((function(e){return t={},"object"===o(e)&&"classType"in e?t.classType="string"!=typeof e.classType?String(e.classType):e.classType:t.classType="","object"===o(e)&&"totals"in e?t.totals=!0!==Array.isArray(e.totals)?[]:e.totals.map((function(e){return t={},"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType=null===e.packType?null:"string"!=typeof e.packType?String(e.packType):e.packType:t.packType=null,"object"===o(e)&&"weight"in e?t.weight="number"!=typeof e.weight?Number(e.weight):e.weight:t.weight=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"packCount"in e?t.packCount=null===e.packCount?null:"number"!=typeof e.packCount?Number(e.packCount):e.packCount:t.packCount=null,t;var t})):t.totals=[],t;var t}))),"initialOutletArticles"in r&&(n.initialOutletArticles=!0!==Array.isArray(r.initialOutletArticles)?[]:r.initialOutletArticles.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"articleName"in e?t.articleName=null===e.articleName?null:"string"!=typeof e.articleName?String(e.articleName):e.articleName:t.articleName=null,t;var t}))),"initialOutletTypes"in r&&(n.initialOutletTypes=!0!==Array.isArray(r.initialOutletTypes)?[]:r.initialOutletTypes.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5162:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.form="",t.fruitSizes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"form"in r&&(n.form="string"!=typeof r.form?String(r.form):r.form),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return t={},"object"===o(e)&&"size"in e?t.size="string"!=typeof e.size?String(e.size):e.size:t.size="","object"===o(e)&&"count"in e?t.count="number"!=typeof e.count?Number.isInteger(Number(e.count))?Number(e.count):Math.floor(Number(e.count)):Number.isInteger(e.count)?e.count:Math.floor(e.count):t.count=0,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8792:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.sizers=[],t.binTips=[],t.rejectBinScales=[],t.secondaryPackingLine=null,t.automation=null,t.alarmGroups=[],t.classTypes=[],t.shiftManagement=null,t.advancedPackrunManagement=null,t.mafIntegration=null,t.freshPackIntegration=null,t.freshQualityIntegration=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"sizers"in r&&(n.sizers=!0!==Array.isArray(r.sizers)?[]:r.sizers.map((function(e){return"object"!==o(e)?Object(e):e}))),"binTips"in r&&(n.binTips=!0!==Array.isArray(r.binTips)?[]:r.binTips.map((function(e){return"object"!==o(e)?Object(e):e}))),"rejectBinScales"in r&&(n.rejectBinScales=!0!==Array.isArray(r.rejectBinScales)?[]:r.rejectBinScales.map((function(e){return"object"!==o(e)?Object(e):e}))),"secondaryPackingLine"in r&&(n.secondaryPackingLine=null===r.secondaryPackingLine?null:"object"!==o(r.secondaryPackingLine)?Object(r.secondaryPackingLine):r.secondaryPackingLine),"automation"in r&&(n.automation=null===r.automation?null:"object"!==o(r.automation)?Object(r.automation):r.automation),"alarmGroups"in r&&(n.alarmGroups=!0!==Array.isArray(r.alarmGroups)?[]:r.alarmGroups.map((function(e){return"string"!=typeof e?String(e):e}))),"classTypes"in r&&(n.classTypes=!0!==Array.isArray(r.classTypes)?[]:r.classTypes.map((function(e){return"object"!==o(e)?Object(e):e}))),"shiftManagement"in r&&(n.shiftManagement=function(){if(null===r.shiftManagement)return null;var e,t={};return"object"===o(r.shiftManagement)&&"points"in r.shiftManagement?t.points=(e={},"object"===o(r.shiftManagement.points)&&"currentShiftId"in r.shiftManagement.points?e.currentShiftId="number"!=typeof r.shiftManagement.points.currentShiftId?Number.isInteger(Number(r.shiftManagement.points.currentShiftId))?Number(r.shiftManagement.points.currentShiftId):Math.floor(Number(r.shiftManagement.points.currentShiftId)):Number.isInteger(r.shiftManagement.points.currentShiftId)?r.shiftManagement.points.currentShiftId:Math.floor(r.shiftManagement.points.currentShiftId):e.currentShiftId=0,"object"===o(r.shiftManagement.points)&&"createNewDayShiftRequest"in r.shiftManagement.points?e.createNewDayShiftRequest="number"!=typeof r.shiftManagement.points.createNewDayShiftRequest?Number.isInteger(Number(r.shiftManagement.points.createNewDayShiftRequest))?Number(r.shiftManagement.points.createNewDayShiftRequest):Math.floor(Number(r.shiftManagement.points.createNewDayShiftRequest)):Number.isInteger(r.shiftManagement.points.createNewDayShiftRequest)?r.shiftManagement.points.createNewDayShiftRequest:Math.floor(r.shiftManagement.points.createNewDayShiftRequest):e.createNewDayShiftRequest=0,"object"===o(r.shiftManagement.points)&&"createNewNightShiftRequest"in r.shiftManagement.points?e.createNewNightShiftRequest="number"!=typeof r.shiftManagement.points.createNewNightShiftRequest?Number.isInteger(Number(r.shiftManagement.points.createNewNightShiftRequest))?Number(r.shiftManagement.points.createNewNightShiftRequest):Math.floor(Number(r.shiftManagement.points.createNewNightShiftRequest)):Number.isInteger(r.shiftManagement.points.createNewNightShiftRequest)?r.shiftManagement.points.createNewNightShiftRequest:Math.floor(r.shiftManagement.points.createNewNightShiftRequest):e.createNewNightShiftRequest=0,"object"===o(r.shiftManagement.points)&&"startCurrentShiftRequest"in r.shiftManagement.points?e.startCurrentShiftRequest="number"!=typeof r.shiftManagement.points.startCurrentShiftRequest?Number.isInteger(Number(r.shiftManagement.points.startCurrentShiftRequest))?Number(r.shiftManagement.points.startCurrentShiftRequest):Math.floor(Number(r.shiftManagement.points.startCurrentShiftRequest)):Number.isInteger(r.shiftManagement.points.startCurrentShiftRequest)?r.shiftManagement.points.startCurrentShiftRequest:Math.floor(r.shiftManagement.points.startCurrentShiftRequest):e.startCurrentShiftRequest=0,"object"===o(r.shiftManagement.points)&&"finishCurrentShiftRequest"in r.shiftManagement.points?e.finishCurrentShiftRequest="number"!=typeof r.shiftManagement.points.finishCurrentShiftRequest?Number.isInteger(Number(r.shiftManagement.points.finishCurrentShiftRequest))?Number(r.shiftManagement.points.finishCurrentShiftRequest):Math.floor(Number(r.shiftManagement.points.finishCurrentShiftRequest)):Number.isInteger(r.shiftManagement.points.finishCurrentShiftRequest)?r.shiftManagement.points.finishCurrentShiftRequest:Math.floor(r.shiftManagement.points.finishCurrentShiftRequest):e.finishCurrentShiftRequest=0,"object"===o(r.shiftManagement.points)&&"currentFocusMeetingId"in r.shiftManagement.points?e.currentFocusMeetingId="number"!=typeof r.shiftManagement.points.currentFocusMeetingId?Number.isInteger(Number(r.shiftManagement.points.currentFocusMeetingId))?Number(r.shiftManagement.points.currentFocusMeetingId):Math.floor(Number(r.shiftManagement.points.currentFocusMeetingId)):Number.isInteger(r.shiftManagement.points.currentFocusMeetingId)?r.shiftManagement.points.currentFocusMeetingId:Math.floor(r.shiftManagement.points.currentFocusMeetingId):e.currentFocusMeetingId=0,"object"===o(r.shiftManagement.points)&&"startFocusMeetingRequest"in r.shiftManagement.points?e.startFocusMeetingRequest="number"!=typeof r.shiftManagement.points.startFocusMeetingRequest?Number.isInteger(Number(r.shiftManagement.points.startFocusMeetingRequest))?Number(r.shiftManagement.points.startFocusMeetingRequest):Math.floor(Number(r.shiftManagement.points.startFocusMeetingRequest)):Number.isInteger(r.shiftManagement.points.startFocusMeetingRequest)?r.shiftManagement.points.startFocusMeetingRequest:Math.floor(r.shiftManagement.points.startFocusMeetingRequest):e.startFocusMeetingRequest=0,"object"===o(r.shiftManagement.points)&&"finishFocusMeetingRequest"in r.shiftManagement.points?e.finishFocusMeetingRequest="number"!=typeof r.shiftManagement.points.finishFocusMeetingRequest?Number.isInteger(Number(r.shiftManagement.points.finishFocusMeetingRequest))?Number(r.shiftManagement.points.finishFocusMeetingRequest):Math.floor(Number(r.shiftManagement.points.finishFocusMeetingRequest)):Number.isInteger(r.shiftManagement.points.finishFocusMeetingRequest)?r.shiftManagement.points.finishFocusMeetingRequest:Math.floor(r.shiftManagement.points.finishFocusMeetingRequest):e.finishFocusMeetingRequest=0,"object"===o(r.shiftManagement.points)&&"currentShiftStatus"in r.shiftManagement.points?e.currentShiftStatus="number"!=typeof r.shiftManagement.points.currentShiftStatus?Number.isInteger(Number(r.shiftManagement.points.currentShiftStatus))?Number(r.shiftManagement.points.currentShiftStatus):Math.floor(Number(r.shiftManagement.points.currentShiftStatus)):Number.isInteger(r.shiftManagement.points.currentShiftStatus)?r.shiftManagement.points.currentShiftStatus:Math.floor(r.shiftManagement.points.currentShiftStatus):e.currentShiftStatus=0,"object"===o(r.shiftManagement.points)&&"currentShiftModifyHourlyEntryRequest"in r.shiftManagement.points?e.currentShiftModifyHourlyEntryRequest="number"!=typeof r.shiftManagement.points.currentShiftModifyHourlyEntryRequest?Number.isInteger(Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest))?Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest):Math.floor(Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest)):Number.isInteger(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest)?r.shiftManagement.points.currentShiftModifyHourlyEntryRequest:Math.floor(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest):e.currentShiftModifyHourlyEntryRequest=0,"object"===o(r.shiftManagement.points)&&"shiftSchedules"in r.shiftManagement.points?e.shiftSchedules="number"!=typeof r.shiftManagement.points.shiftSchedules?Number.isInteger(Number(r.shiftManagement.points.shiftSchedules))?Number(r.shiftManagement.points.shiftSchedules):Math.floor(Number(r.shiftManagement.points.shiftSchedules)):Number.isInteger(r.shiftManagement.points.shiftSchedules)?r.shiftManagement.points.shiftSchedules:Math.floor(r.shiftManagement.points.shiftSchedules):e.shiftSchedules=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHourTarget"in r.shiftManagement.points?e.currentShiftClass1TraysPerHourTarget="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHourTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget)?r.shiftManagement.points.currentShiftClass1TraysPerHourTarget:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget):e.currentShiftClass1TraysPerHourTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHourAdjustedTarget"in r.shiftManagement.points?e.currentShiftClass1TraysPerHourAdjustedTarget="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget)?r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget):e.currentShiftClass1TraysPerHourAdjustedTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHour"in r.shiftManagement.points?e.currentShiftClass1TraysPerHour="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHour?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHour))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHour):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHour)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHour)?r.shiftManagement.points.currentShiftClass1TraysPerHour:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHour):e.currentShiftClass1TraysPerHour=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTrayTarget"in r.shiftManagement.points?e.currentShiftCostPerTrayTarget="number"!=typeof r.shiftManagement.points.currentShiftCostPerTrayTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTrayTarget))?Number(r.shiftManagement.points.currentShiftCostPerTrayTarget):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTrayTarget)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTrayTarget)?r.shiftManagement.points.currentShiftCostPerTrayTarget:Math.floor(r.shiftManagement.points.currentShiftCostPerTrayTarget):e.currentShiftCostPerTrayTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTrayAdjustedTarget"in r.shiftManagement.points?e.currentShiftCostPerTrayAdjustedTarget="number"!=typeof r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget))?Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget)?r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget:Math.floor(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget):e.currentShiftCostPerTrayAdjustedTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTray"in r.shiftManagement.points?e.currentShiftCostPerTray="number"!=typeof r.shiftManagement.points.currentShiftCostPerTray?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTray))?Number(r.shiftManagement.points.currentShiftCostPerTray):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTray)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTray)?r.shiftManagement.points.currentShiftCostPerTray:Math.floor(r.shiftManagement.points.currentShiftCostPerTray):e.currentShiftCostPerTray=0,"object"===o(r.shiftManagement.points)&&"currentShiftManningTarget"in r.shiftManagement.points?e.currentShiftManningTarget="number"!=typeof r.shiftManagement.points.currentShiftManningTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftManningTarget))?Number(r.shiftManagement.points.currentShiftManningTarget):Math.floor(Number(r.shiftManagement.points.currentShiftManningTarget)):Number.isInteger(r.shiftManagement.points.currentShiftManningTarget)?r.shiftManagement.points.currentShiftManningTarget:Math.floor(r.shiftManagement.points.currentShiftManningTarget):e.currentShiftManningTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1Manning"in r.shiftManagement.points?e.currentShiftClass1Manning="number"!=typeof r.shiftManagement.points.currentShiftClass1Manning?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1Manning))?Number(r.shiftManagement.points.currentShiftClass1Manning):Math.floor(Number(r.shiftManagement.points.currentShiftClass1Manning)):Number.isInteger(r.shiftManagement.points.currentShiftClass1Manning)?r.shiftManagement.points.currentShiftClass1Manning:Math.floor(r.shiftManagement.points.currentShiftClass1Manning):e.currentShiftClass1Manning=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass2Manning"in r.shiftManagement.points?e.currentShiftClass2Manning="number"!=typeof r.shiftManagement.points.currentShiftClass2Manning?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass2Manning))?Number(r.shiftManagement.points.currentShiftClass2Manning):Math.floor(Number(r.shiftManagement.points.currentShiftClass2Manning)):Number.isInteger(r.shiftManagement.points.currentShiftClass2Manning)?r.shiftManagement.points.currentShiftClass2Manning:Math.floor(r.shiftManagement.points.currentShiftClass2Manning):e.currentShiftClass2Manning=0,"object"===o(r.shiftManagement.points)&&"currentShiftQualityR600IdealTarget"in r.shiftManagement.points?e.currentShiftQualityR600IdealTarget="number"!=typeof r.shiftManagement.points.currentShiftQualityR600IdealTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget))?Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget):Math.floor(Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget)):Number.isInteger(r.shiftManagement.points.currentShiftQualityR600IdealTarget)?r.shiftManagement.points.currentShiftQualityR600IdealTarget:Math.floor(r.shiftManagement.points.currentShiftQualityR600IdealTarget):e.currentShiftQualityR600IdealTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftQualityR600Ideal"in r.shiftManagement.points?e.currentShiftQualityR600Ideal="number"!=typeof r.shiftManagement.points.currentShiftQualityR600Ideal?Number.isInteger(Number(r.shiftManagement.points.currentShiftQualityR600Ideal))?Number(r.shiftManagement.points.currentShiftQualityR600Ideal):Math.floor(Number(r.shiftManagement.points.currentShiftQualityR600Ideal)):Number.isInteger(r.shiftManagement.points.currentShiftQualityR600Ideal)?r.shiftManagement.points.currentShiftQualityR600Ideal:Math.floor(r.shiftManagement.points.currentShiftQualityR600Ideal):e.currentShiftQualityR600Ideal=0,"object"===o(r.shiftManagement.points)&&"currentShiftScorePercentage"in r.shiftManagement.points?e.currentShiftScorePercentage="number"!=typeof r.shiftManagement.points.currentShiftScorePercentage?Number.isInteger(Number(r.shiftManagement.points.currentShiftScorePercentage))?Number(r.shiftManagement.points.currentShiftScorePercentage):Math.floor(Number(r.shiftManagement.points.currentShiftScorePercentage)):Number.isInteger(r.shiftManagement.points.currentShiftScorePercentage)?r.shiftManagement.points.currentShiftScorePercentage:Math.floor(r.shiftManagement.points.currentShiftScorePercentage):e.currentShiftScorePercentage=0,"object"===o(r.shiftManagement.points)&&"class1TraysPerHourTargets"in r.shiftManagement.points?e.class1TraysPerHourTargets="number"!=typeof r.shiftManagement.points.class1TraysPerHourTargets?Number.isInteger(Number(r.shiftManagement.points.class1TraysPerHourTargets))?Number(r.shiftManagement.points.class1TraysPerHourTargets):Math.floor(Number(r.shiftManagement.points.class1TraysPerHourTargets)):Number.isInteger(r.shiftManagement.points.class1TraysPerHourTargets)?r.shiftManagement.points.class1TraysPerHourTargets:Math.floor(r.shiftManagement.points.class1TraysPerHourTargets):e.class1TraysPerHourTargets=0,"object"===o(r.shiftManagement.points)&&"costPerTrayTargets"in r.shiftManagement.points?e.costPerTrayTargets="number"!=typeof r.shiftManagement.points.costPerTrayTargets?Number.isInteger(Number(r.shiftManagement.points.costPerTrayTargets))?Number(r.shiftManagement.points.costPerTrayTargets):Math.floor(Number(r.shiftManagement.points.costPerTrayTargets)):Number.isInteger(r.shiftManagement.points.costPerTrayTargets)?r.shiftManagement.points.costPerTrayTargets:Math.floor(r.shiftManagement.points.costPerTrayTargets):e.costPerTrayTargets=0,"object"===o(r.shiftManagement.points)&&"manningTargets"in r.shiftManagement.points?e.manningTargets="number"!=typeof r.shiftManagement.points.manningTargets?Number.isInteger(Number(r.shiftManagement.points.manningTargets))?Number(r.shiftManagement.points.manningTargets):Math.floor(Number(r.shiftManagement.points.manningTargets)):Number.isInteger(r.shiftManagement.points.manningTargets)?r.shiftManagement.points.manningTargets:Math.floor(r.shiftManagement.points.manningTargets):e.manningTargets=0,"object"===o(r.shiftManagement.points)&&"qualityR600IdealTargets"in r.shiftManagement.points?e.qualityR600IdealTargets="number"!=typeof r.shiftManagement.points.qualityR600IdealTargets?Number.isInteger(Number(r.shiftManagement.points.qualityR600IdealTargets))?Number(r.shiftManagement.points.qualityR600IdealTargets):Math.floor(Number(r.shiftManagement.points.qualityR600IdealTargets)):Number.isInteger(r.shiftManagement.points.qualityR600IdealTargets)?r.shiftManagement.points.qualityR600IdealTargets:Math.floor(r.shiftManagement.points.qualityR600IdealTargets):e.qualityR600IdealTargets=0,"object"===o(r.shiftManagement.points)&&"costPerManningUnitHour"in r.shiftManagement.points?e.costPerManningUnitHour="number"!=typeof r.shiftManagement.points.costPerManningUnitHour?Number.isInteger(Number(r.shiftManagement.points.costPerManningUnitHour))?Number(r.shiftManagement.points.costPerManningUnitHour):Math.floor(Number(r.shiftManagement.points.costPerManningUnitHour)):Number.isInteger(r.shiftManagement.points.costPerManningUnitHour)?r.shiftManagement.points.costPerManningUnitHour:Math.floor(r.shiftManagement.points.costPerManningUnitHour):e.costPerManningUnitHour=0,"object"===o(r.shiftManagement.points)&&"class1TraysPerHourScoreWeighting"in r.shiftManagement.points?e.class1TraysPerHourScoreWeighting="number"!=typeof r.shiftManagement.points.class1TraysPerHourScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting))?Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting):Math.floor(Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting)):Number.isInteger(r.shiftManagement.points.class1TraysPerHourScoreWeighting)?r.shiftManagement.points.class1TraysPerHourScoreWeighting:Math.floor(r.shiftManagement.points.class1TraysPerHourScoreWeighting):e.class1TraysPerHourScoreWeighting=0,"object"===o(r.shiftManagement.points)&&"costPerTrayScoreWeighting"in r.shiftManagement.points?e.costPerTrayScoreWeighting="number"!=typeof r.shiftManagement.points.costPerTrayScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.costPerTrayScoreWeighting))?Number(r.shiftManagement.points.costPerTrayScoreWeighting):Math.floor(Number(r.shiftManagement.points.costPerTrayScoreWeighting)):Number.isInteger(r.shiftManagement.points.costPerTrayScoreWeighting)?r.shiftManagement.points.costPerTrayScoreWeighting:Math.floor(r.shiftManagement.points.costPerTrayScoreWeighting):e.costPerTrayScoreWeighting=0,"object"===o(r.shiftManagement.points)&&"qualityR600IdealScoreWeighting"in r.shiftManagement.points?e.qualityR600IdealScoreWeighting="number"!=typeof r.shiftManagement.points.qualityR600IdealScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.qualityR600IdealScoreWeighting))?Number(r.shiftManagement.points.qualityR600IdealScoreWeighting):Math.floor(Number(r.shiftManagement.points.qualityR600IdealScoreWeighting)):Number.isInteger(r.shiftManagement.points.qualityR600IdealScoreWeighting)?r.shiftManagement.points.qualityR600IdealScoreWeighting:Math.floor(r.shiftManagement.points.qualityR600IdealScoreWeighting):e.qualityR600IdealScoreWeighting=0,e):t.points={currentShiftId:0,createNewDayShiftRequest:0,createNewNightShiftRequest:0,startCurrentShiftRequest:0,finishCurrentShiftRequest:0,currentFocusMeetingId:0,startFocusMeetingRequest:0,finishFocusMeetingRequest:0,currentShiftStatus:0,currentShiftModifyHourlyEntryRequest:0,shiftSchedules:0,currentShiftClass1TraysPerHourTarget:0,currentShiftClass1TraysPerHourAdjustedTarget:0,currentShiftClass1TraysPerHour:0,currentShiftCostPerTrayTarget:0,currentShiftCostPerTrayAdjustedTarget:0,currentShiftCostPerTray:0,currentShiftManningTarget:0,currentShiftClass1Manning:0,currentShiftClass2Manning:0,currentShiftQualityR600IdealTarget:0,currentShiftQualityR600Ideal:0,currentShiftScorePercentage:0,class1TraysPerHourTargets:0,costPerTrayTargets:0,manningTargets:0,qualityR600IdealTargets:0,costPerManningUnitHour:0,class1TraysPerHourScoreWeighting:0,costPerTrayScoreWeighting:0,qualityR600IdealScoreWeighting:0},"object"===o(r.shiftManagement)&&"customQualityConfiguration"in r.shiftManagement?t.customQualityConfiguration=!0!==Array.isArray(r.shiftManagement.customQualityConfiguration)?[]:r.shiftManagement.customQualityConfiguration.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"points"in e?t.points=function(){var t={};return"object"===o(e.points)&&"currentShiftCustomQualityTarget"in e.points?t.currentShiftCustomQualityTarget="number"!=typeof e.points.currentShiftCustomQualityTarget?Number.isInteger(Number(e.points.currentShiftCustomQualityTarget))?Number(e.points.currentShiftCustomQualityTarget):Math.floor(Number(e.points.currentShiftCustomQualityTarget)):Number.isInteger(e.points.currentShiftCustomQualityTarget)?e.points.currentShiftCustomQualityTarget:Math.floor(e.points.currentShiftCustomQualityTarget):t.currentShiftCustomQualityTarget=0,"object"===o(e.points)&&"currentShiftCustomQualityValue"in e.points?t.currentShiftCustomQualityValue="number"!=typeof e.points.currentShiftCustomQualityValue?Number.isInteger(Number(e.points.currentShiftCustomQualityValue))?Number(e.points.currentShiftCustomQualityValue):Math.floor(Number(e.points.currentShiftCustomQualityValue)):Number.isInteger(e.points.currentShiftCustomQualityValue)?e.points.currentShiftCustomQualityValue:Math.floor(e.points.currentShiftCustomQualityValue):t.currentShiftCustomQualityValue=0,"object"===o(e.points)&&"customQualityTargets"in e.points?t.customQualityTargets="number"!=typeof e.points.customQualityTargets?Number.isInteger(Number(e.points.customQualityTargets))?Number(e.points.customQualityTargets):Math.floor(Number(e.points.customQualityTargets)):Number.isInteger(e.points.customQualityTargets)?e.points.customQualityTargets:Math.floor(e.points.customQualityTargets):t.customQualityTargets=0,"object"===o(e.points)&&"customQualityScoreWeighting"in e.points?t.customQualityScoreWeighting="number"!=typeof e.points.customQualityScoreWeighting?Number.isInteger(Number(e.points.customQualityScoreWeighting))?Number(e.points.customQualityScoreWeighting):Math.floor(Number(e.points.customQualityScoreWeighting)):Number.isInteger(e.points.customQualityScoreWeighting)?e.points.customQualityScoreWeighting:Math.floor(e.points.customQualityScoreWeighting):t.customQualityScoreWeighting=0,t}():t.points={currentShiftCustomQualityTarget:0,currentShiftCustomQualityValue:0,customQualityTargets:0,customQualityScoreWeighting:0},t;var t})):t.customQualityConfiguration=[],"object"===o(r.shiftManagement)&&"enabled"in r.shiftManagement?t.enabled="boolean"!=typeof r.shiftManagement.enabled?Boolean(r.shiftManagement.enabled):r.shiftManagement.enabled:t.enabled=!1,"object"===o(r.shiftManagement)&&"taskDefinitions"in r.shiftManagement?t.taskDefinitions=!0!==Array.isArray(r.shiftManagement.taskDefinitions)?[]:r.shiftManagement.taskDefinitions.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"tags"in e?t.tags=!0!==Array.isArray(e.tags)?[]:e.tags.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"color"in e?t.color="string"!=typeof e.color?String(e.color):e.color:t.color="","object"===o(e)&&"deleted"in e?t.deleted="boolean"!=typeof e.deleted?Boolean(e.deleted):e.deleted:t.deleted=!1,t;var t})):t.tags=[],t;var t})):t.taskDefinitions=[],t}()),"advancedPackrunManagement"in r&&(n.advancedPackrunManagement=null===r.advancedPackrunManagement?null:"object"!==o(r.advancedPackrunManagement)?Object(r.advancedPackrunManagement):r.advancedPackrunManagement),"mafIntegration"in r&&(n.mafIntegration=null===r.mafIntegration?null:"object"!==o(r.mafIntegration)?Object(r.mafIntegration):r.mafIntegration),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"freshQualityIntegration"in r&&(n.freshQualityIntegration=null===r.freshQualityIntegration?null:"object"!==o(r.freshQualityIntegration)?Object(r.freshQualityIntegration):r.freshQualityIntegration),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3465:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.name="",t.createdTimestamp=new Date,t.growerName="",t.growerCode="",t.maturityArea="",t.startTimestamp=null,t.finishTimestamp=null,t.varietyId="",t.growingMethodId=null,t.allocatedBins=0,t.timeBatches=[],t.freshPackGraderId=null,t.freshPackBinLotCode=null,t.freshPackProduceCode=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"growerName"in r&&(n.growerName="string"!=typeof r.growerName?String(r.growerName):r.growerName),"growerCode"in r&&(n.growerCode="string"!=typeof r.growerCode?String(r.growerCode):r.growerCode),"maturityArea"in r&&(n.maturityArea="string"!=typeof r.maturityArea?String(r.maturityArea):r.maturityArea),"startTimestamp"in r&&(n.startTimestamp=null===r.startTimestamp?null:"string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"finishTimestamp"in r&&(n.finishTimestamp=null===r.finishTimestamp?null:"string"!=typeof r.finishTimestamp?new Date(String(r.finishTimestamp)):new Date(r.finishTimestamp)),"varietyId"in r&&(n.varietyId="string"!=typeof r.varietyId?String(r.varietyId):r.varietyId),"growingMethodId"in r&&(n.growingMethodId=null===r.growingMethodId?null:"string"!=typeof r.growingMethodId?String(r.growingMethodId):r.growingMethodId),"allocatedBins"in r&&(n.allocatedBins="number"!=typeof r.allocatedBins?Number.isInteger(Number(r.allocatedBins))?Number(r.allocatedBins):Math.floor(Number(r.allocatedBins)):Number.isInteger(r.allocatedBins)?r.allocatedBins:Math.floor(r.allocatedBins)),"timeBatches"in r&&(n.timeBatches=!0!==Array.isArray(r.timeBatches)?[]:r.timeBatches.map((function(e){return"object"!==o(e)?Object(e):e}))),"freshPackGraderId"in r&&(n.freshPackGraderId=null===r.freshPackGraderId?null:"number"!=typeof r.freshPackGraderId?Number.isInteger(Number(r.freshPackGraderId))?Number(r.freshPackGraderId):Math.floor(Number(r.freshPackGraderId)):Number.isInteger(r.freshPackGraderId)?r.freshPackGraderId:Math.floor(r.freshPackGraderId)),"freshPackBinLotCode"in r&&(n.freshPackBinLotCode=null===r.freshPackBinLotCode?null:"string"!=typeof r.freshPackBinLotCode?String(r.freshPackBinLotCode):r.freshPackBinLotCode),"freshPackProduceCode"in r&&(n.freshPackProduceCode=null===r.freshPackProduceCode?null:"string"!=typeof r.freshPackProduceCode?String(r.freshPackProduceCode):r.freshPackProduceCode),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3908:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rejectBinScaleId="",t.createdTimestamp=new Date,t.rejectBinScaleName="",t.tareWeight=null,t.finalizedTimestamp=null,t.freshPackMultiGrowerBins=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rejectBinScaleId"in r&&(n.rejectBinScaleId="string"!=typeof r.rejectBinScaleId?String(r.rejectBinScaleId):r.rejectBinScaleId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"rejectBinScaleName"in r&&(n.rejectBinScaleName="string"!=typeof r.rejectBinScaleName?String(r.rejectBinScaleName):r.rejectBinScaleName),"tareWeight"in r&&(n.tareWeight=null===r.tareWeight?null:"number"!=typeof r.tareWeight?Number(r.tareWeight):r.tareWeight),"finalizedTimestamp"in r&&(n.finalizedTimestamp=null===r.finalizedTimestamp?null:"string"!=typeof r.finalizedTimestamp?new Date(String(r.finalizedTimestamp)):new Date(r.finalizedTimestamp)),"freshPackMultiGrowerBins"in r&&(n.freshPackMultiGrowerBins=!0!==Array.isArray(r.freshPackMultiGrowerBins)?[]:r.freshPackMultiGrowerBins.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4738:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.packingLineId="",t.packrunSourceId=null,t.packrunGroup=null,t.sources=[],t.autoPackrunChange=null,t.supportsLiveWeighing=null,t.autoWeighingStartThreshold=null,t.autoWeighingStartDelay=null,t.autoWeighingFinishThreshold=null,t.autoWeighingFinishDelay=null,t.manualInterventionMaximumDuration=null,t.liveWeighingIncreaseTolerance=null,t.liveWeighingDecreaseTolerance=null,t.liveWeighingUpdateInterval=null,t.liveWeighingUsesStableStatus=null,t.incorrectOperationTolerance=null,t.freshPackIntegration=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunSourceId"in r&&(n.packrunSourceId=null===r.packrunSourceId?null:"string"!=typeof r.packrunSourceId?String(r.packrunSourceId):r.packrunSourceId),"packrunGroup"in r&&(n.packrunGroup=null===r.packrunGroup?null:"number"!=typeof r.packrunGroup?Number.isInteger(Number(r.packrunGroup))?Number(r.packrunGroup):Math.floor(Number(r.packrunGroup)):Number.isInteger(r.packrunGroup)?r.packrunGroup:Math.floor(r.packrunGroup)),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"autoPackrunChange"in r&&(n.autoPackrunChange=function(){if(null===r.autoPackrunChange)return null;var e={};return"object"===o(r.autoPackrunChange)&&"delay"in r.autoPackrunChange?e.delay=null===r.autoPackrunChange.delay?null:"number"!=typeof r.autoPackrunChange.delay?Number.isInteger(Number(r.autoPackrunChange.delay))?Number(r.autoPackrunChange.delay):Math.floor(Number(r.autoPackrunChange.delay)):Number.isInteger(r.autoPackrunChange.delay)?r.autoPackrunChange.delay:Math.floor(r.autoPackrunChange.delay):e.delay=null,e}()),"supportsLiveWeighing"in r&&(n.supportsLiveWeighing=null===r.supportsLiveWeighing?null:"boolean"!=typeof r.supportsLiveWeighing?Boolean(r.supportsLiveWeighing):r.supportsLiveWeighing),"autoWeighingStartThreshold"in r&&(n.autoWeighingStartThreshold=null===r.autoWeighingStartThreshold?null:"number"!=typeof r.autoWeighingStartThreshold?Number(r.autoWeighingStartThreshold):r.autoWeighingStartThreshold),"autoWeighingStartDelay"in r&&(n.autoWeighingStartDelay=null===r.autoWeighingStartDelay?null:"number"!=typeof r.autoWeighingStartDelay?Number.isInteger(Number(r.autoWeighingStartDelay))?Number(r.autoWeighingStartDelay):Math.floor(Number(r.autoWeighingStartDelay)):Number.isInteger(r.autoWeighingStartDelay)?r.autoWeighingStartDelay:Math.floor(r.autoWeighingStartDelay)),"autoWeighingFinishThreshold"in r&&(n.autoWeighingFinishThreshold=null===r.autoWeighingFinishThreshold?null:"number"!=typeof r.autoWeighingFinishThreshold?Number(r.autoWeighingFinishThreshold):r.autoWeighingFinishThreshold),"autoWeighingFinishDelay"in r&&(n.autoWeighingFinishDelay=null===r.autoWeighingFinishDelay?null:"number"!=typeof r.autoWeighingFinishDelay?Number.isInteger(Number(r.autoWeighingFinishDelay))?Number(r.autoWeighingFinishDelay):Math.floor(Number(r.autoWeighingFinishDelay)):Number.isInteger(r.autoWeighingFinishDelay)?r.autoWeighingFinishDelay:Math.floor(r.autoWeighingFinishDelay)),"manualInterventionMaximumDuration"in r&&(n.manualInterventionMaximumDuration=null===r.manualInterventionMaximumDuration?null:"number"!=typeof r.manualInterventionMaximumDuration?Number.isInteger(Number(r.manualInterventionMaximumDuration))?Number(r.manualInterventionMaximumDuration):Math.floor(Number(r.manualInterventionMaximumDuration)):Number.isInteger(r.manualInterventionMaximumDuration)?r.manualInterventionMaximumDuration:Math.floor(r.manualInterventionMaximumDuration)),"liveWeighingIncreaseTolerance"in r&&(n.liveWeighingIncreaseTolerance=null===r.liveWeighingIncreaseTolerance?null:"number"!=typeof r.liveWeighingIncreaseTolerance?Number(r.liveWeighingIncreaseTolerance):r.liveWeighingIncreaseTolerance),"liveWeighingDecreaseTolerance"in r&&(n.liveWeighingDecreaseTolerance=null===r.liveWeighingDecreaseTolerance?null:"number"!=typeof r.liveWeighingDecreaseTolerance?Number(r.liveWeighingDecreaseTolerance):r.liveWeighingDecreaseTolerance),"liveWeighingUpdateInterval"in r&&(n.liveWeighingUpdateInterval=null===r.liveWeighingUpdateInterval?null:"number"!=typeof r.liveWeighingUpdateInterval?Number.isInteger(Number(r.liveWeighingUpdateInterval))?Number(r.liveWeighingUpdateInterval):Math.floor(Number(r.liveWeighingUpdateInterval)):Number.isInteger(r.liveWeighingUpdateInterval)?r.liveWeighingUpdateInterval:Math.floor(r.liveWeighingUpdateInterval)),"liveWeighingUsesStableStatus"in r&&(n.liveWeighingUsesStableStatus=null===r.liveWeighingUsesStableStatus?null:"boolean"!=typeof r.liveWeighingUsesStableStatus?Boolean(r.liveWeighingUsesStableStatus):r.liveWeighingUsesStableStatus),"incorrectOperationTolerance"in r&&(n.incorrectOperationTolerance=null===r.incorrectOperationTolerance?null:"number"!=typeof r.incorrectOperationTolerance?Number(r.incorrectOperationTolerance):r.incorrectOperationTolerance),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2519:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rejectBinScaleId="",t.rejectBinId="",t.createdTimestamp=new Date,t.packrunId=null,t.netWeight=0,t.sources=[],t.freshPackMultiGrowerBinWeights=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rejectBinScaleId"in r&&(n.rejectBinScaleId="string"!=typeof r.rejectBinScaleId?String(r.rejectBinScaleId):r.rejectBinScaleId),"rejectBinId"in r&&(n.rejectBinId="string"!=typeof r.rejectBinId?String(r.rejectBinId):r.rejectBinId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"netWeight"in r&&(n.netWeight="number"!=typeof r.netWeight?Number(r.netWeight):r.netWeight),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"freshPackMultiGrowerBinWeights"in r&&(n.freshPackMultiGrowerBinWeights=!0!==Array.isArray(r.freshPackMultiGrowerBinWeights)?[]:r.freshPackMultiGrowerBinWeights.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8501:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.scheduledTimestamp=new Date,t.startTimestamp=null,t.finishTimestamp=null,t.nextKeyFocus=null,t.successRating=null,t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"scheduledTimestamp"in r&&(n.scheduledTimestamp="string"!=typeof r.scheduledTimestamp?new Date(String(r.scheduledTimestamp)):new Date(r.scheduledTimestamp)),"startTimestamp"in r&&(n.startTimestamp=null===r.startTimestamp?null:"string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"finishTimestamp"in r&&(n.finishTimestamp=null===r.finishTimestamp?null:"string"!=typeof r.finishTimestamp?new Date(String(r.finishTimestamp)):new Date(r.finishTimestamp)),"nextKeyFocus"in r&&(n.nextKeyFocus=null===r.nextKeyFocus?null:"string"!=typeof r.nextKeyFocus?String(r.nextKeyFocus):r.nextKeyFocus),"successRating"in r&&(n.successRating=null===r.successRating?null:"number"!=typeof r.successRating?Number.isInteger(Number(r.successRating))?Number(r.successRating):Math.floor(Number(r.successRating)):Number.isInteger(r.successRating)?r.successRating:Math.floor(r.successRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5784:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.startTimestamp=new Date,t.endTimestamp=new Date,t.class1Manning=null,t.class2Manning=null,t.averageManningTarget=null,t.averageClass1ManningTarget=null,t.averageClass2ManningTarget=null,t.averageCostPerManningUnit=null,t.layeredTrayPercentage=null,t.layeredTrayPercentageTarget=null,t.averageClass1Percentage=null,t.qualityR600IdealSamplesPercentage=null,t.averageQualityR600IdealSamplesTarget=null,t.customQualityData=[],t.totalBinsTipped=0,t.binsTippedTarget=0,t.totalDowntime=0,t.totalProductionTime=0,t.totalClass1Trays=0,t.totalClass2Trays=0,t.class1TraysPerHourExcludingDowntimeTarget=0,t.averageClass1TraysPerHourAdjustedTarget=null,t.averageCostPerTray=null,t.averageCostPerTrayTarget=null,t.primaryIssueCategory=null,t.primaryIssueTag=null,t.primaryIssuePercentage=null,t.secondaryIssueCategory=null,t.secondaryIssueTag=null,t.secondaryIssuePercentage=null,t.nextHourFocus=null,t.satisfactionRating=null,t.status="",t.class1TraysPerHourPotential=0,t.class1TraysPerHourExcludingDowntime=0,t.class1TraysPerManHourPotential=null,t.class1TraysPerManHourExcludingDowntime=null,t.manningPercentage=null,t.totalManning=null,t.uptimePercentage=0,t.downtimePercentage=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"startTimestamp"in r&&(n.startTimestamp="string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"endTimestamp"in r&&(n.endTimestamp="string"!=typeof r.endTimestamp?new Date(String(r.endTimestamp)):new Date(r.endTimestamp)),"class1Manning"in r&&(n.class1Manning=null===r.class1Manning?null:"number"!=typeof r.class1Manning?Number.isInteger(Number(r.class1Manning))?Number(r.class1Manning):Math.floor(Number(r.class1Manning)):Number.isInteger(r.class1Manning)?r.class1Manning:Math.floor(r.class1Manning)),"class2Manning"in r&&(n.class2Manning=null===r.class2Manning?null:"number"!=typeof r.class2Manning?Number.isInteger(Number(r.class2Manning))?Number(r.class2Manning):Math.floor(Number(r.class2Manning)):Number.isInteger(r.class2Manning)?r.class2Manning:Math.floor(r.class2Manning)),"averageManningTarget"in r&&(n.averageManningTarget=null===r.averageManningTarget?null:"number"!=typeof r.averageManningTarget?Number.isInteger(Number(r.averageManningTarget))?Number(r.averageManningTarget):Math.floor(Number(r.averageManningTarget)):Number.isInteger(r.averageManningTarget)?r.averageManningTarget:Math.floor(r.averageManningTarget)),"averageClass1ManningTarget"in r&&(n.averageClass1ManningTarget=null===r.averageClass1ManningTarget?null:"number"!=typeof r.averageClass1ManningTarget?Number.isInteger(Number(r.averageClass1ManningTarget))?Number(r.averageClass1ManningTarget):Math.floor(Number(r.averageClass1ManningTarget)):Number.isInteger(r.averageClass1ManningTarget)?r.averageClass1ManningTarget:Math.floor(r.averageClass1ManningTarget)),"averageClass2ManningTarget"in r&&(n.averageClass2ManningTarget=null===r.averageClass2ManningTarget?null:"number"!=typeof r.averageClass2ManningTarget?Number.isInteger(Number(r.averageClass2ManningTarget))?Number(r.averageClass2ManningTarget):Math.floor(Number(r.averageClass2ManningTarget)):Number.isInteger(r.averageClass2ManningTarget)?r.averageClass2ManningTarget:Math.floor(r.averageClass2ManningTarget)),"averageCostPerManningUnit"in r&&(n.averageCostPerManningUnit=null===r.averageCostPerManningUnit?null:"number"!=typeof r.averageCostPerManningUnit?Number(r.averageCostPerManningUnit):r.averageCostPerManningUnit),"layeredTrayPercentage"in r&&(n.layeredTrayPercentage=null===r.layeredTrayPercentage?null:"number"!=typeof r.layeredTrayPercentage?Number(r.layeredTrayPercentage):r.layeredTrayPercentage),"layeredTrayPercentageTarget"in r&&(n.layeredTrayPercentageTarget=null===r.layeredTrayPercentageTarget?null:"number"!=typeof r.layeredTrayPercentageTarget?Number(r.layeredTrayPercentageTarget):r.layeredTrayPercentageTarget),"averageClass1Percentage"in r&&(n.averageClass1Percentage=null===r.averageClass1Percentage?null:"number"!=typeof r.averageClass1Percentage?Number(r.averageClass1Percentage):r.averageClass1Percentage),"qualityR600IdealSamplesPercentage"in r&&(n.qualityR600IdealSamplesPercentage=null===r.qualityR600IdealSamplesPercentage?null:"number"!=typeof r.qualityR600IdealSamplesPercentage?Number(r.qualityR600IdealSamplesPercentage):r.qualityR600IdealSamplesPercentage),"averageQualityR600IdealSamplesTarget"in r&&(n.averageQualityR600IdealSamplesTarget=null===r.averageQualityR600IdealSamplesTarget?null:"number"!=typeof r.averageQualityR600IdealSamplesTarget?Number(r.averageQualityR600IdealSamplesTarget):r.averageQualityR600IdealSamplesTarget),"customQualityData"in r&&(n.customQualityData=!0!==Array.isArray(r.customQualityData)?[]:r.customQualityData.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,"object"===o(e)&&"averageTarget"in e?t.averageTarget=null===e.averageTarget?null:"number"!=typeof e.averageTarget?Number(e.averageTarget):e.averageTarget:t.averageTarget=null,t;var t}))),"totalBinsTipped"in r&&(n.totalBinsTipped="number"!=typeof r.totalBinsTipped?Number.isInteger(Number(r.totalBinsTipped))?Number(r.totalBinsTipped):Math.floor(Number(r.totalBinsTipped)):Number.isInteger(r.totalBinsTipped)?r.totalBinsTipped:Math.floor(r.totalBinsTipped)),"binsTippedTarget"in r&&(n.binsTippedTarget="number"!=typeof r.binsTippedTarget?Number.isInteger(Number(r.binsTippedTarget))?Number(r.binsTippedTarget):Math.floor(Number(r.binsTippedTarget)):Number.isInteger(r.binsTippedTarget)?r.binsTippedTarget:Math.floor(r.binsTippedTarget)),"totalDowntime"in r&&(n.totalDowntime="number"!=typeof r.totalDowntime?Number.isInteger(Number(r.totalDowntime))?Number(r.totalDowntime):Math.floor(Number(r.totalDowntime)):Number.isInteger(r.totalDowntime)?r.totalDowntime:Math.floor(r.totalDowntime)),"totalProductionTime"in r&&(n.totalProductionTime="number"!=typeof r.totalProductionTime?Number.isInteger(Number(r.totalProductionTime))?Number(r.totalProductionTime):Math.floor(Number(r.totalProductionTime)):Number.isInteger(r.totalProductionTime)?r.totalProductionTime:Math.floor(r.totalProductionTime)),"totalClass1Trays"in r&&(n.totalClass1Trays="number"!=typeof r.totalClass1Trays?Number.isInteger(Number(r.totalClass1Trays))?Number(r.totalClass1Trays):Math.floor(Number(r.totalClass1Trays)):Number.isInteger(r.totalClass1Trays)?r.totalClass1Trays:Math.floor(r.totalClass1Trays)),"totalClass2Trays"in r&&(n.totalClass2Trays="number"!=typeof r.totalClass2Trays?Number.isInteger(Number(r.totalClass2Trays))?Number(r.totalClass2Trays):Math.floor(Number(r.totalClass2Trays)):Number.isInteger(r.totalClass2Trays)?r.totalClass2Trays:Math.floor(r.totalClass2Trays)),"class1TraysPerHourExcludingDowntimeTarget"in r&&(n.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof r.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(r.class1TraysPerHourExcludingDowntimeTarget))?Number(r.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(r.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(r.class1TraysPerHourExcludingDowntimeTarget)?r.class1TraysPerHourExcludingDowntimeTarget:Math.floor(r.class1TraysPerHourExcludingDowntimeTarget)),"averageClass1TraysPerHourAdjustedTarget"in r&&(n.averageClass1TraysPerHourAdjustedTarget=null===r.averageClass1TraysPerHourAdjustedTarget?null:"number"!=typeof r.averageClass1TraysPerHourAdjustedTarget?Number.isInteger(Number(r.averageClass1TraysPerHourAdjustedTarget))?Number(r.averageClass1TraysPerHourAdjustedTarget):Math.floor(Number(r.averageClass1TraysPerHourAdjustedTarget)):Number.isInteger(r.averageClass1TraysPerHourAdjustedTarget)?r.averageClass1TraysPerHourAdjustedTarget:Math.floor(r.averageClass1TraysPerHourAdjustedTarget)),"averageCostPerTray"in r&&(n.averageCostPerTray=null===r.averageCostPerTray?null:"number"!=typeof r.averageCostPerTray?Number(r.averageCostPerTray):r.averageCostPerTray),"averageCostPerTrayTarget"in r&&(n.averageCostPerTrayTarget=null===r.averageCostPerTrayTarget?null:"number"!=typeof r.averageCostPerTrayTarget?Number(r.averageCostPerTrayTarget):r.averageCostPerTrayTarget),"primaryIssueCategory"in r&&(n.primaryIssueCategory=null===r.primaryIssueCategory?null:"string"!=typeof r.primaryIssueCategory?String(r.primaryIssueCategory):r.primaryIssueCategory),"primaryIssueTag"in r&&(n.primaryIssueTag=null===r.primaryIssueTag?null:"string"!=typeof r.primaryIssueTag?String(r.primaryIssueTag):r.primaryIssueTag),"primaryIssuePercentage"in r&&(n.primaryIssuePercentage=null===r.primaryIssuePercentage?null:"number"!=typeof r.primaryIssuePercentage?Number(r.primaryIssuePercentage):r.primaryIssuePercentage),"secondaryIssueCategory"in r&&(n.secondaryIssueCategory=null===r.secondaryIssueCategory?null:"string"!=typeof r.secondaryIssueCategory?String(r.secondaryIssueCategory):r.secondaryIssueCategory),"secondaryIssueTag"in r&&(n.secondaryIssueTag=null===r.secondaryIssueTag?null:"string"!=typeof r.secondaryIssueTag?String(r.secondaryIssueTag):r.secondaryIssueTag),"secondaryIssuePercentage"in r&&(n.secondaryIssuePercentage=null===r.secondaryIssuePercentage?null:"number"!=typeof r.secondaryIssuePercentage?Number(r.secondaryIssuePercentage):r.secondaryIssuePercentage),"nextHourFocus"in r&&(n.nextHourFocus=null===r.nextHourFocus?null:"string"!=typeof r.nextHourFocus?String(r.nextHourFocus):r.nextHourFocus),"satisfactionRating"in r&&(n.satisfactionRating=null===r.satisfactionRating?null:"number"!=typeof r.satisfactionRating?Number.isInteger(Number(r.satisfactionRating))?Number(r.satisfactionRating):Math.floor(Number(r.satisfactionRating)):Number.isInteger(r.satisfactionRating)?r.satisfactionRating:Math.floor(r.satisfactionRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"class1TraysPerHourPotential"in r&&(n.class1TraysPerHourPotential="number"!=typeof r.class1TraysPerHourPotential?Number.isInteger(Number(r.class1TraysPerHourPotential))?Number(r.class1TraysPerHourPotential):Math.floor(Number(r.class1TraysPerHourPotential)):Number.isInteger(r.class1TraysPerHourPotential)?r.class1TraysPerHourPotential:Math.floor(r.class1TraysPerHourPotential)),"class1TraysPerHourExcludingDowntime"in r&&(n.class1TraysPerHourExcludingDowntime="number"!=typeof r.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(r.class1TraysPerHourExcludingDowntime))?Number(r.class1TraysPerHourExcludingDowntime):Math.floor(Number(r.class1TraysPerHourExcludingDowntime)):Number.isInteger(r.class1TraysPerHourExcludingDowntime)?r.class1TraysPerHourExcludingDowntime:Math.floor(r.class1TraysPerHourExcludingDowntime)),"class1TraysPerManHourPotential"in r&&(n.class1TraysPerManHourPotential=null===r.class1TraysPerManHourPotential?null:"number"!=typeof r.class1TraysPerManHourPotential?Number(r.class1TraysPerManHourPotential):r.class1TraysPerManHourPotential),"class1TraysPerManHourExcludingDowntime"in r&&(n.class1TraysPerManHourExcludingDowntime=null===r.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof r.class1TraysPerManHourExcludingDowntime?Number(r.class1TraysPerManHourExcludingDowntime):r.class1TraysPerManHourExcludingDowntime),"manningPercentage"in r&&(n.manningPercentage=null===r.manningPercentage?null:"number"!=typeof r.manningPercentage?Number(r.manningPercentage):r.manningPercentage),"totalManning"in r&&(n.totalManning=null===r.totalManning?null:"number"!=typeof r.totalManning?Number.isInteger(Number(r.totalManning))?Number(r.totalManning):Math.floor(Number(r.totalManning)):Number.isInteger(r.totalManning)?r.totalManning:Math.floor(r.totalManning)),"uptimePercentage"in r&&(n.uptimePercentage="number"!=typeof r.uptimePercentage?Number(r.uptimePercentage):r.uptimePercentage),"downtimePercentage"in r&&(n.downtimePercentage="number"!=typeof r.downtimePercentage?Number(r.downtimePercentage):r.downtimePercentage),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4045:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.createdTimestamp=new Date,t.type="",t.lineManagerName=null,t.binsTippedTarget=null,t.initialClass1Manning=null,t.initialClass2Manning=null,t.readyTimestamp=null,t.startTimestamp=null,t.finishTimestamp=null,t.publishTimestamp=null,t.satisfactionRating=null,t.keyCelebration=null,t.keyChallenge=null,t.handoverNotes=[],t.areaNotes=[],t.schedule={startTime:"",endTime:"",breaks:[]},t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n,r=new f(t),i={};return"string"==typeof e?i=JSON.parse(e):"object"===o(e)&&(i=e),"id"in i&&(r.id="string"!=typeof i.id?String(i.id):i.id),"packingLineId"in i&&(r.packingLineId="string"!=typeof i.packingLineId?String(i.packingLineId):i.packingLineId),"createdTimestamp"in i&&(r.createdTimestamp="string"!=typeof i.createdTimestamp?new Date(String(i.createdTimestamp)):new Date(i.createdTimestamp)),"type"in i&&(r.type="string"!=typeof i.type?String(i.type):i.type),"lineManagerName"in i&&(r.lineManagerName=null===i.lineManagerName?null:"string"!=typeof i.lineManagerName?String(i.lineManagerName):i.lineManagerName),"binsTippedTarget"in i&&(r.binsTippedTarget=null===i.binsTippedTarget?null:"number"!=typeof i.binsTippedTarget?Number.isInteger(Number(i.binsTippedTarget))?Number(i.binsTippedTarget):Math.floor(Number(i.binsTippedTarget)):Number.isInteger(i.binsTippedTarget)?i.binsTippedTarget:Math.floor(i.binsTippedTarget)),"initialClass1Manning"in i&&(r.initialClass1Manning=null===i.initialClass1Manning?null:"number"!=typeof i.initialClass1Manning?Number.isInteger(Number(i.initialClass1Manning))?Number(i.initialClass1Manning):Math.floor(Number(i.initialClass1Manning)):Number.isInteger(i.initialClass1Manning)?i.initialClass1Manning:Math.floor(i.initialClass1Manning)),"initialClass2Manning"in i&&(r.initialClass2Manning=null===i.initialClass2Manning?null:"number"!=typeof i.initialClass2Manning?Number.isInteger(Number(i.initialClass2Manning))?Number(i.initialClass2Manning):Math.floor(Number(i.initialClass2Manning)):Number.isInteger(i.initialClass2Manning)?i.initialClass2Manning:Math.floor(i.initialClass2Manning)),"readyTimestamp"in i&&(r.readyTimestamp=null===i.readyTimestamp?null:"string"!=typeof i.readyTimestamp?new Date(String(i.readyTimestamp)):new Date(i.readyTimestamp)),"startTimestamp"in i&&(r.startTimestamp=null===i.startTimestamp?null:"string"!=typeof i.startTimestamp?new Date(String(i.startTimestamp)):new Date(i.startTimestamp)),"finishTimestamp"in i&&(r.finishTimestamp=null===i.finishTimestamp?null:"string"!=typeof i.finishTimestamp?new Date(String(i.finishTimestamp)):new Date(i.finishTimestamp)),"publishTimestamp"in i&&(r.publishTimestamp=null===i.publishTimestamp?null:"string"!=typeof i.publishTimestamp?new Date(String(i.publishTimestamp)):new Date(i.publishTimestamp)),"satisfactionRating"in i&&(r.satisfactionRating=null===i.satisfactionRating?null:"number"!=typeof i.satisfactionRating?Number.isInteger(Number(i.satisfactionRating))?Number(i.satisfactionRating):Math.floor(Number(i.satisfactionRating)):Number.isInteger(i.satisfactionRating)?i.satisfactionRating:Math.floor(i.satisfactionRating)),"keyCelebration"in i&&(r.keyCelebration=null===i.keyCelebration?null:"string"!=typeof i.keyCelebration?String(i.keyCelebration):i.keyCelebration),"keyChallenge"in i&&(r.keyChallenge=null===i.keyChallenge?null:"string"!=typeof i.keyChallenge?String(i.keyChallenge):i.keyChallenge),"handoverNotes"in i&&(r.handoverNotes=!0!==Array.isArray(i.handoverNotes)?[]:i.handoverNotes.map((function(e){return t={},"object"===o(e)&&"area"in e?t.area="string"!=typeof e.area?String(e.area):e.area:t.area="","object"===o(e)&&"noteContent"in e?t.noteContent="string"!=typeof e.noteContent?String(e.noteContent):e.noteContent:t.noteContent="",t;var t}))),"areaNotes"in i&&(r.areaNotes=!0!==Array.isArray(i.areaNotes)?[]:i.areaNotes.map((function(e){return t={},"object"===o(e)&&"area"in e?t.area="string"!=typeof e.area?String(e.area):e.area:t.area="","object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"content"in e?t.content="string"!=typeof e.content?String(e.content):e.content:t.content="",t;var t}))),"schedule"in i&&(r.schedule=(n={},"object"===o(i.schedule)&&"startTime"in i.schedule?n.startTime="string"!=typeof i.schedule.startTime?String(i.schedule.startTime):i.schedule.startTime:n.startTime="","object"===o(i.schedule)&&"endTime"in i.schedule?n.endTime="string"!=typeof i.schedule.endTime?String(i.schedule.endTime):i.schedule.endTime:n.endTime="","object"===o(i.schedule)&&"breaks"in i.schedule?n.breaks=!0!==Array.isArray(i.schedule.breaks)?[]:i.schedule.breaks.map((function(e){return t={},"object"===o(e)&&"startTime"in e?t.startTime="string"!=typeof e.startTime?String(e.startTime):e.startTime:t.startTime="","object"===o(e)&&"endTime"in e?t.endTime="string"!=typeof e.endTime?String(e.endTime):e.endTime:t.endTime="",t;var t})):n.breaks=[],n)),"status"in i&&(r.status="string"!=typeof i.status?String(i.status):i.status),"deleted"in i&&(r.deleted="boolean"!=typeof i.deleted?Boolean(i.deleted):i.deleted),"updateTimestamp"in i&&(r.updateTimestamp="string"!=typeof i.updateTimestamp?new Date(String(i.updateTimestamp)):new Date(i.updateTimestamp)),r}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9873:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.publishTimestamp=null,t.qualityManagerUserId="",t.qualityManagerName="",t.accuracyResults=[],t.auditResults=[],t.packrunResults=[],t.satisfactionRating=null,t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"publishTimestamp"in r&&(n.publishTimestamp=null===r.publishTimestamp?null:"string"!=typeof r.publishTimestamp?new Date(String(r.publishTimestamp)):new Date(r.publishTimestamp)),"qualityManagerUserId"in r&&(n.qualityManagerUserId="string"!=typeof r.qualityManagerUserId?String(r.qualityManagerUserId):r.qualityManagerUserId),"qualityManagerName"in r&&(n.qualityManagerName="string"!=typeof r.qualityManagerName?String(r.qualityManagerName):r.qualityManagerName),"accuracyResults"in r&&(n.accuracyResults=!0!==Array.isArray(r.accuracyResults)?[]:r.accuracyResults.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,t;var t}))),"auditResults"in r&&(n.auditResults=!0!==Array.isArray(r.auditResults)?[]:r.auditResults.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,t;var t}))),"packrunResults"in r&&(n.packrunResults=!0!==Array.isArray(r.packrunResults)?[]:r.packrunResults.map((function(e){return t={},"object"===o(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===o(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===o(e)&&"minorPackingDefects"in e?t.minorPackingDefects="number"!=typeof e.minorPackingDefects?Number(e.minorPackingDefects):e.minorPackingDefects:t.minorPackingDefects=0,"object"===o(e)&&"majorPackingDefects"in e?t.majorPackingDefects="number"!=typeof e.majorPackingDefects?Number(e.majorPackingDefects):e.majorPackingDefects:t.majorPackingDefects=0,"object"===o(e)&&"softs"in e?t.softs="number"!=typeof e.softs?Number(e.softs):e.softs:t.softs=0,"object"===o(e)&&"cuts"in e?t.cuts="number"!=typeof e.cuts?Number(e.cuts):e.cuts:t.cuts=0,"object"===o(e)&&"rots"in e?t.rots="number"!=typeof e.rots?Number(e.rots):e.rots:t.rots=0,"object"===o(e)&&"softsLineAverageSampleSize"in e?t.softsLineAverageSampleSize=null===e.softsLineAverageSampleSize?null:"number"!=typeof e.softsLineAverageSampleSize?Number.isInteger(Number(e.softsLineAverageSampleSize))?Number(e.softsLineAverageSampleSize):Math.floor(Number(e.softsLineAverageSampleSize)):Number.isInteger(e.softsLineAverageSampleSize)?e.softsLineAverageSampleSize:Math.floor(e.softsLineAverageSampleSize):t.softsLineAverageSampleSize=null,"object"===o(e)&&"softsLineAverageValue"in e?t.softsLineAverageValue=null===e.softsLineAverageValue?null:"number"!=typeof e.softsLineAverageValue?Number(e.softsLineAverageValue):e.softsLineAverageValue:t.softsLineAverageValue=null,"object"===o(e)&&"exportFruitInClass2"in e?t.exportFruitInClass2=null===e.exportFruitInClass2?null:"number"!=typeof e.exportFruitInClass2?Number(e.exportFruitInClass2):e.exportFruitInClass2:t.exportFruitInClass2=null,"object"===o(e)&&"exportFruitInLocalMarket"in e?t.exportFruitInLocalMarket=null===e.exportFruitInLocalMarket?null:"number"!=typeof e.exportFruitInLocalMarket?Number(e.exportFruitInLocalMarket):e.exportFruitInLocalMarket:t.exportFruitInLocalMarket=null,"object"===o(e)&&"exportFruitInWaste"in e?t.exportFruitInWaste=null===e.exportFruitInWaste?null:"number"!=typeof e.exportFruitInWaste?Number(e.exportFruitInWaste):e.exportFruitInWaste:t.exportFruitInWaste=null,t;var t}))),"satisfactionRating"in r&&(n.satisfactionRating=null===r.satisfactionRating?null:"number"!=typeof r.satisfactionRating?Number.isInteger(Number(r.satisfactionRating))?Number(r.satisfactionRating):Math.floor(Number(r.satisfactionRating)):Number.isInteger(r.satisfactionRating)?r.satisfactionRating:Math.floor(r.satisfactionRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6896:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.pdfReportContent=null,t.pdfReportFileName=null,t.sendGridApi=null,t.status="",t.emailContacts=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"pdfReportContent"in r&&(n.pdfReportContent=null===r.pdfReportContent?null:"string"!=typeof r.pdfReportContent?String(r.pdfReportContent):r.pdfReportContent),"pdfReportFileName"in r&&(n.pdfReportFileName=null===r.pdfReportFileName?null:"string"!=typeof r.pdfReportFileName?String(r.pdfReportFileName):r.pdfReportFileName),"sendGridApi"in r&&(n.sendGridApi=function(){if(null===r.sendGridApi)return null;var e={};return"object"===o(r.sendGridApi)&&"requestCount"in r.sendGridApi?e.requestCount="number"!=typeof r.sendGridApi.requestCount?Number.isInteger(Number(r.sendGridApi.requestCount))?Number(r.sendGridApi.requestCount):Math.floor(Number(r.sendGridApi.requestCount)):Number.isInteger(r.sendGridApi.requestCount)?r.sendGridApi.requestCount:Math.floor(r.sendGridApi.requestCount):e.requestCount=0,"object"===o(r.sendGridApi)&&"requestTimestamp"in r.sendGridApi?e.requestTimestamp=null===r.sendGridApi.requestTimestamp?null:"string"!=typeof r.sendGridApi.requestTimestamp?new Date(String(r.sendGridApi.requestTimestamp)):new Date(r.sendGridApi.requestTimestamp):e.requestTimestamp=null,"object"===o(r.sendGridApi)&&"responseCode"in r.sendGridApi?e.responseCode=null===r.sendGridApi.responseCode?null:"number"!=typeof r.sendGridApi.responseCode?Number.isInteger(Number(r.sendGridApi.responseCode))?Number(r.sendGridApi.responseCode):Math.floor(Number(r.sendGridApi.responseCode)):Number.isInteger(r.sendGridApi.responseCode)?r.sendGridApi.responseCode:Math.floor(r.sendGridApi.responseCode):e.responseCode=null,"object"===o(r.sendGridApi)&&"responseMessage"in r.sendGridApi?e.responseMessage=null===r.sendGridApi.responseMessage?null:"string"!=typeof r.sendGridApi.responseMessage?String(r.sendGridApi.responseMessage):r.sendGridApi.responseMessage:e.responseMessage=null,"object"===o(r.sendGridApi)&&"completed"in r.sendGridApi?e.completed="boolean"!=typeof r.sendGridApi.completed?Boolean(r.sendGridApi.completed):r.sendGridApi.completed:e.completed=!1,e}()),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"emailContacts"in r&&(n.emailContacts=!0!==Array.isArray(r.emailContacts)?[]:r.emailContacts.map((function(e){return t={},"object"===o(e)&&"email"in e?t.email="string"!=typeof e.email?String(e.email):e.email:t.email="","object"===o(e)&&"firstName"in e?t.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:t.firstName="","object"===o(e)&&"lastName"in e?t.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:t.lastName="",t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1996:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.completedTimestamp=null,t.authorUserId=null,t.authorName="",t.type="",t.tags=[],t.title="",t.content="",t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"completedTimestamp"in r&&(n.completedTimestamp=null===r.completedTimestamp?null:"string"!=typeof r.completedTimestamp?new Date(String(r.completedTimestamp)):new Date(r.completedTimestamp)),"authorUserId"in r&&(n.authorUserId=null===r.authorUserId?null:"string"!=typeof r.authorUserId?String(r.authorUserId):r.authorUserId),"authorName"in r&&(n.authorName="string"!=typeof r.authorName?String(r.authorName):r.authorName),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"tags"in r&&(n.tags=!0!==Array.isArray(r.tags)?[]:r.tags.map((function(e){return"string"!=typeof e?String(e):e}))),"title"in r&&(n.title="string"!=typeof r.title?String(r.title):r.title),"content"in r&&(n.content="string"!=typeof r.content?String(r.content):r.content),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3202:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.packingLineId="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6857:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.eventsPerBin=0,t.totalEventsCount=0,t.averageEventsDuration=0,t.totalEventsDuration=0,t.eventsFinalizedTimestamp=null,t.eventsAccurate=null,t.eventsNotAccurateReason=null,t.freshPackSoftSortApi=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"eventsPerBin"in r&&(n.eventsPerBin="number"!=typeof r.eventsPerBin?Number(r.eventsPerBin):r.eventsPerBin),"totalEventsCount"in r&&(n.totalEventsCount="number"!=typeof r.totalEventsCount?Number.isInteger(Number(r.totalEventsCount))?Number(r.totalEventsCount):Math.floor(Number(r.totalEventsCount)):Number.isInteger(r.totalEventsCount)?r.totalEventsCount:Math.floor(r.totalEventsCount)),"averageEventsDuration"in r&&(n.averageEventsDuration="number"!=typeof r.averageEventsDuration?Number(r.averageEventsDuration):r.averageEventsDuration),"totalEventsDuration"in r&&(n.totalEventsDuration="number"!=typeof r.totalEventsDuration?Number(r.totalEventsDuration):r.totalEventsDuration),"eventsFinalizedTimestamp"in r&&(n.eventsFinalizedTimestamp=null===r.eventsFinalizedTimestamp?null:"string"!=typeof r.eventsFinalizedTimestamp?new Date(String(r.eventsFinalizedTimestamp)):new Date(r.eventsFinalizedTimestamp)),"eventsAccurate"in r&&(n.eventsAccurate=null===r.eventsAccurate?null:"boolean"!=typeof r.eventsAccurate?Boolean(r.eventsAccurate):r.eventsAccurate),"eventsNotAccurateReason"in r&&(n.eventsNotAccurateReason=null===r.eventsNotAccurateReason?null:"string"!=typeof r.eventsNotAccurateReason?String(r.eventsNotAccurateReason):r.eventsNotAccurateReason),"freshPackSoftSortApi"in r&&(n.freshPackSoftSortApi=null===r.freshPackSoftSortApi?null:"object"!==o(r.freshPackSoftSortApi)?Object(r.freshPackSoftSortApi):r.freshPackSoftSortApi),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9311:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.image="",t.fruitSizes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"image"in r&&(n.image="string"!=typeof r.image?String(r.image):r.image),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return t={},"object"===o(e)&&"size"in e?t.size="string"!=typeof e.size?String(e.size):e.size:t.size="",t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=E(n(2565)),o=E(n(2847)),i=E(n(3720)),a=E(n(3428)),u=E(n(4601)),c=E(n(1237)),s=E(n(1425)),l=E(n(4031)),f=E(n(9256)),m=E(n(6865)),p=E(n(4461)),d=E(n(3794)),y=E(n(7462)),g=E(n(1938)),b=E(n(2276)),h=E(n(6982)),T=E(n(8544)),v=E(n(5162)),N=E(n(8792)),S=E(n(3465)),w=E(n(3908)),A=E(n(4738)),j=E(n(2519)),P=E(n(8501)),k=E(n(5784)),M=E(n(4045)),C=E(n(9873)),I=E(n(6896)),O=E(n(1996)),D=E(n(3202)),R=E(n(6857)),_=E(n(9311));function E(e){return e&&e.__esModule?e:{default:e}}var q={BinTipBinCardModel:r.default,BinTipBinModel:o.default,BinTipWeightModel:i.default,CompacSizerBatchModel:a.default,CompacSizerModel:u.default,CompacSizerOutletProductChangeModel:c.default,CompacSizerOutletTypeChangeModel:s.default,CompacSizerOutletTypeModel:l.default,CompacSizerPackrunSummaryModel:f.default,DowntimeEventModel:m.default,FreshPackPackrunSummaryModel:p.default,FreshQualityPackrunSummaryModel:d.default,GrowingMethodModel:y.default,MAFSizerBatchModel:g.default,MAFSizerModel:b.default,MAFSizerOutletArticleChangeModel:h.default,MAFSizerPackrunSummaryModel:T.default,PackTypeModel:v.default,PackingLineModel:N.default,PackrunModel:S.default,RejectBinModel:w.default,RejectBinScaleModel:A.default,RejectBinWeightModel:j.default,ShiftFocusMeetingModel:P.default,ShiftHourlyEntryModel:k.default,ShiftModel:M.default,ShiftQualitySummaryModel:C.default,ShiftSummaryReportModel:I.default,ShiftTaskModel:O.default,SoftSortBeltModel:D.default,SoftSortPackrunSummaryModel:R.default,VarietyModel:_.default};t.default=q},1475:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={Site:((r=n(9835))&&r.__esModule?r:{default:r}).default};t.default=o},232:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.siteId=0,e.name="",e.enabled=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"siteId"in n&&(t.siteId="number"!=typeof n.siteId?Number.isInteger(Number(n.siteId))?Number(n.siteId):Math.floor(Number(n.siteId)):Number.isInteger(n.siteId)?n.siteId:Math.floor(n.siteId)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8050:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.name="",e.companyId="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4318:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.resetPoint=0,t.externalResetPoints=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"resetPoint"in r&&(n.resetPoint="number"!=typeof r.resetPoint?Number.isInteger(Number(r.resetPoint))?Number(r.resetPoint):Math.floor(Number(r.resetPoint)):Number.isInteger(r.resetPoint)?r.resetPoint:Math.floor(r.resetPoint)),"externalResetPoints"in r&&(n.externalResetPoints=!0!==Array.isArray(r.externalResetPoints)?[]:r.externalResetPoints.map((function(e){return t={},"object"===o(e)&&"point"in e?t.point="number"!=typeof e.point?Number.isInteger(Number(e.point))?Number(e.point):Math.floor(Number(e.point)):Number.isInteger(e.point)?e.point:Math.floor(e.point):t.point=0,"object"===o(e)&&"value"in e?t.value="boolean"!=typeof e.value?Boolean(e.value):e.value:t.value=!1,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2163:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.groupId="",t.name="",t.critical=!1,t.tripScript="",t.resetScript=null,t.tripDelay=0,t.resetDelay=0,t.autoReset=!1,t.autoResetDelay=0,t.trippedStatePoint=0,t.trippedTimestampPoint=0,t.internalTripStartPoint=0,t.internalResetStartPoint=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"groupId"in r&&(n.groupId="string"!=typeof r.groupId?String(r.groupId):r.groupId),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"critical"in r&&(n.critical="boolean"!=typeof r.critical?Boolean(r.critical):r.critical),"tripScript"in r&&(n.tripScript="string"!=typeof r.tripScript?String(r.tripScript):r.tripScript),"resetScript"in r&&(n.resetScript=null===r.resetScript?null:"string"!=typeof r.resetScript?String(r.resetScript):r.resetScript),"tripDelay"in r&&(n.tripDelay="number"!=typeof r.tripDelay?Number.isInteger(Number(r.tripDelay))?Number(r.tripDelay):Math.floor(Number(r.tripDelay)):Number.isInteger(r.tripDelay)?r.tripDelay:Math.floor(r.tripDelay)),"resetDelay"in r&&(n.resetDelay="number"!=typeof r.resetDelay?Number.isInteger(Number(r.resetDelay))?Number(r.resetDelay):Math.floor(Number(r.resetDelay)):Number.isInteger(r.resetDelay)?r.resetDelay:Math.floor(r.resetDelay)),"autoReset"in r&&(n.autoReset="boolean"!=typeof r.autoReset?Boolean(r.autoReset):r.autoReset),"autoResetDelay"in r&&(n.autoResetDelay="number"!=typeof r.autoResetDelay?Number.isInteger(Number(r.autoResetDelay))?Number(r.autoResetDelay):Math.floor(Number(r.autoResetDelay)):Number.isInteger(r.autoResetDelay)?r.autoResetDelay:Math.floor(r.autoResetDelay)),"trippedStatePoint"in r&&(n.trippedStatePoint="number"!=typeof r.trippedStatePoint?Number.isInteger(Number(r.trippedStatePoint))?Number(r.trippedStatePoint):Math.floor(Number(r.trippedStatePoint)):Number.isInteger(r.trippedStatePoint)?r.trippedStatePoint:Math.floor(r.trippedStatePoint)),"trippedTimestampPoint"in r&&(n.trippedTimestampPoint="number"!=typeof r.trippedTimestampPoint?Number.isInteger(Number(r.trippedTimestampPoint))?Number(r.trippedTimestampPoint):Math.floor(Number(r.trippedTimestampPoint)):Number.isInteger(r.trippedTimestampPoint)?r.trippedTimestampPoint:Math.floor(r.trippedTimestampPoint)),"internalTripStartPoint"in r&&(n.internalTripStartPoint="number"!=typeof r.internalTripStartPoint?Number.isInteger(Number(r.internalTripStartPoint))?Number(r.internalTripStartPoint):Math.floor(Number(r.internalTripStartPoint)):Number.isInteger(r.internalTripStartPoint)?r.internalTripStartPoint:Math.floor(r.internalTripStartPoint)),"internalResetStartPoint"in r&&(n.internalResetStartPoint="number"!=typeof r.internalResetStartPoint?Number.isInteger(Number(r.internalResetStartPoint))?Number(r.internalResetStartPoint):Math.floor(Number(r.internalResetStartPoint)):Number.isInteger(r.internalResetStartPoint)?r.internalResetStartPoint:Math.floor(r.internalResetStartPoint)),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1326:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.type="",t.data={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"data"in r&&(n.data="object"!==o(r.data)?Object(r.data):r.data),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5916:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.permanentObjectId="",t.type="",t.timestamp=new Date,t.data={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"permanentObjectId"in r&&(n.permanentObjectId="string"!=typeof r.permanentObjectId?String(r.permanentObjectId):r.permanentObjectId),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"timestamp"in r&&(n.timestamp="string"!=typeof r.timestamp?new Date(String(r.timestamp)):new Date(r.timestamp)),"data"in r&&(n.data="object"!==o(r.data)?Object(r.data):r.data),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6909:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.keyIndex="",t.type="",t.definition={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"definition"in r&&(n.definition="object"!==o(r.definition)?Object(r.definition):r.definition),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3932:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id=0,t.rtuId=null,t.pluginId=null,t.name="",t.type="",t.valueType="",t.permissions="",t.enabled=!1,t.settings={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="number"!=typeof r.id?Number.isInteger(Number(r.id))?Number(r.id):Math.floor(Number(r.id)):Number.isInteger(r.id)?r.id:Math.floor(r.id)),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"pluginId"in r&&(n.pluginId=null===r.pluginId?null:"number"!=typeof r.pluginId?Number.isInteger(Number(r.pluginId))?Number(r.pluginId):Math.floor(Number(r.pluginId)):Number.isInteger(r.pluginId)?r.pluginId:Math.floor(r.pluginId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"valueType"in r&&(n.valueType="string"!=typeof r.valueType?String(r.valueType):r.valueType),"permissions"in r&&(n.permissions="string"!=typeof r.permissions?String(r.permissions):r.permissions),"enabled"in r&&(n.enabled="boolean"!=typeof r.enabled?Boolean(r.enabled):r.enabled),"settings"in r&&(n.settings="object"!==o(r.settings)?Object(r.settings):r.settings),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},136:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.type="",t.definition={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"definition"in r&&(n.definition="object"!==o(r.definition)?Object(r.definition):r.definition),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(4318)),o=l(n(2163)),i=l(n(1326)),a=l(n(5916)),u=l(n(6909)),c=l(n(3932)),s=l(n(136));function l(e){return e&&e.__esModule?e:{default:e}}var f={AlarmGroupModel:r.default,AlarmModel:o.default,DefinitionModel:i.default,PermanentObjectDataModel:a.default,PermanentObjectModel:u.default,PointModel:c.default,TemporaryObjectModel:s.default};t.default=f},7410:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.name="",e.companyId="",e.enabled=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8365:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.accountType="",e.issueTimestamp=new Date,e.expireTimestamp=new Date,e.activityTimestamp=null,e.unlockTimestamp=null,e.lockTimestamp=null,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"accountType"in n&&(t.accountType="string"!=typeof n.accountType?String(n.accountType):n.accountType),"issueTimestamp"in n&&(t.issueTimestamp="string"!=typeof n.issueTimestamp?new Date(String(n.issueTimestamp)):new Date(n.issueTimestamp)),"expireTimestamp"in n&&(t.expireTimestamp="string"!=typeof n.expireTimestamp?new Date(String(n.expireTimestamp)):new Date(n.expireTimestamp)),"activityTimestamp"in n&&(t.activityTimestamp=null===n.activityTimestamp?null:"string"!=typeof n.activityTimestamp?new Date(String(n.activityTimestamp)):new Date(n.activityTimestamp)),"unlockTimestamp"in n&&(t.unlockTimestamp=null===n.unlockTimestamp?null:"string"!=typeof n.unlockTimestamp?new Date(String(n.unlockTimestamp)):new Date(n.unlockTimestamp)),"lockTimestamp"in n&&(t.lockTimestamp=null===n.lockTimestamp?null:"string"!=typeof n.lockTimestamp?new Date(String(n.lockTimestamp)):new Date(n.lockTimestamp)),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3298:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.companyId="",e.action="",e.issueTimestamp=new Date,e.expireTimestamp=new Date,e.activityTimestamp=null,e.completedTimestamp=null,e.emailTimestamp=null,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"action"in n&&(t.action="string"!=typeof n.action?String(n.action):n.action),"issueTimestamp"in n&&(t.issueTimestamp="string"!=typeof n.issueTimestamp?new Date(String(n.issueTimestamp)):new Date(n.issueTimestamp)),"expireTimestamp"in n&&(t.expireTimestamp="string"!=typeof n.expireTimestamp?new Date(String(n.expireTimestamp)):new Date(n.expireTimestamp)),"activityTimestamp"in n&&(t.activityTimestamp=null===n.activityTimestamp?null:"string"!=typeof n.activityTimestamp?new Date(String(n.activityTimestamp)):new Date(n.activityTimestamp)),"completedTimestamp"in n&&(t.completedTimestamp=null===n.completedTimestamp?null:"string"!=typeof n.completedTimestamp?new Date(String(n.completedTimestamp)):new Date(n.completedTimestamp)),"emailTimestamp"in n&&(t.emailTimestamp=null===n.emailTimestamp?null:"string"!=typeof n.emailTimestamp?new Date(String(n.emailTimestamp)):new Date(n.emailTimestamp)),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4905:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.email="",e.firstName=null,e.lastName=null,e.companyId="",e.policies=[],e.hasPassword=!1,e.hasPinCode=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"email"in n&&(t.email="string"!=typeof n.email?String(n.email):n.email),"firstName"in n&&(t.firstName=null===n.firstName?null:"string"!=typeof n.firstName?String(n.firstName):n.firstName),"lastName"in n&&(t.lastName=null===n.lastName?null:"string"!=typeof n.lastName?String(n.lastName):n.lastName),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"policies"in n&&(t.policies=!0!==Array.isArray(n.policies)?[]:n.policies.map((function(e){return"string"!=typeof e?String(e):e}))),"hasPassword"in n&&(t.hasPassword="boolean"!=typeof n.hasPassword?Boolean(n.hasPassword):n.hasPassword),"hasPinCode"in n&&(t.hasPinCode="boolean"!=typeof n.hasPinCode?Boolean(n.hasPinCode):n.hasPinCode),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(3091)),o=g(n(348)),i=g(n(7416)),a=g(n(1969)),u=g(n(556)),c=g(n(232)),s=g(n(8050)),l=g(n(7410)),f=g(n(8365)),m=g(n(3298)),p=g(n(4905)),d=g(n(1475)),y=g(n(4118));function g(e){return e&&e.__esModule?e:{default:e}}var b={AccountPolicyModel:r.default,ApiAccountModel:o.default,BaseModel:i.default,CompanyModel:a.default,FirebaseTokenModel:u.default,RTUModel:c.default,RTUPluginModel:s.default,SiteModel:l.default,TokenModel:f.default,UserAccountActionTokenModel:m.default,UserAccountModel:p.default,Packhouse:d.default,Site:y.default};t.default=b},549:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=["/token/new","/ping","/user-action-tokens/new","/user-action-tokens/verify","/user-action-tokens/actions/*","/openapi.json"]},3369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.3.13"},2238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(3778)),o=n(1568),i=n(7187),a=u(n(5587));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}u(n(3932));var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initialize",value:function(){var t=this;1==(0,o.isDefined)(e._initialized)&&1==e._initialized||(1!=(0,o.isDefined)(e._emitter)&&(e._emitter=new i.EventEmitter),1!=(0,o.isDefined)(e._subscriptions)&&(e._subscriptions={}),1!=(0,o.isDefined)(e._definitions)&&(e._definitions={}),1!=(0,o.isDefined)(e._values)&&(e._values={}),r.default.on("readpoints",(function(n,r){if((0,o.isDefined)(n)&&n.includes(".")&&r.length>0){var i=n.split(".")[1],a=void 0;if(n.startsWith("site.")?(e.log("Received `"+r.length+"` Read Points for Site ID: "+i),a=Number(i)):n.startsWith("rtu.")&&(e.log("Received `"+r.length+"` Read Points for RTU ID: "+i),a=t.getDefaultSiteId()),(0,o.isDefined)(a)&&void 0!==a&&a>0){a in e._values!=1&&(e._values[a]={});var u=[];r.forEach((function(t){if("id"in t){var n=Number(t.id);if(n>0&&"value"in t&&"timestamp"in t){var r={id:n,value:t.value,timestamp:"string"==typeof t.timestamp?new Date(t.timestamp):new Date(String(t.timestamp))};e._values[a][n]=r,u.push(r)}}})),void 0!==e._emitter&&e._emitter.emit("readpoints",a,u)}}})),e._initialized=!0)}},{key:"isInitialized",value:function(){return(0,o.isDefined)(e._initialized)&&1==e._initialized}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if(1==(0,o.isDebugMode)())switch(t){case"error":console.error("Points :: "+e);break;case"warn":case"warning":console.warn("Points :: "+e);break;case"log":default:console.log("Points :: "+e)}}},{key:"subscribe",value:function(t){if(1!=e.isInitialized())throw new Error("Points.subscribe cannot be called before the API Client has been Initialized");if(1!=(0,o.hasToken)())throw new Error("Points.subscribe cannot be called before Authentication has been successful");if(t in e._subscriptions){if(1==e._subscriptions[t].initializing)throw new Error("Points.subscribe cannot not be called more than once while already Subscribing to the same Site ID");if(1==e._subscriptions[t].completed)return e.log("Points.subscribe should not be called more than once for the same Site ID","warning"),new Promise((function(e,t){e(!0)}))}else e._subscriptions[t]={initializing:!0,completed:!1,pointIds:[]};return new Promise((function(n,o){e.loadPointDefinitions(t).then((function(){r.default.subscribe("site."+t),e.loadPointValues(t).then((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!0),n(!0)})).catch((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!1),o(new Error("Failed to Subscribe to Site ID "+t+". Unable to Fetch the Point Values"))}))})).catch((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!1),o(new Error("Failed to Subscribe to Site ID "+t+". Unable to Fetch the Point Definitions"))}))}))}},{key:"unsubscribe",value:function(t){if(1!=e.isInitialized())throw new Error("Points.unsubscribe cannot be called before the API Client has been Initialized");r.default.unsubscribe("site."+t),(0,o.isDefined)(e._definitions)&&t in e._definitions&&delete e._definitions[t],(0,o.isDefined)(e._values)&&t in e._values&&delete e._values[t],(0,o.isDefined)(e._subscriptions)&&t in e._subscriptions&&delete e._subscriptions[t]}},{key:"on",value:function(t,n){1==(0,o.isDefined)(e._emitter)&&void 0!==e._emitter||(e._emitter=new i.EventEmitter),e._emitter.on(t,n)}},{key:"off",value:function(t,n){(0,o.isDefined)(e._emitter)&&void 0!==e._emitter&&e._emitter.off(t,n)}},{key:"onReadPoints",value:function(t){e.on("readpoints",t)}},{key:"offReadPoints",value:function(t){e.off("readpoints",t)}},{key:"getDefinition",value:function(t,n){if(1==e.isInitialized())return t in e._definitions&&n in e._definitions[t]?e._definitions[t][n]:void 0}},{key:"getValue",value:function(t,n){if(1==e.isInitialized())return t in e._values&&n in e._values[t]?e._values[t][n]:void 0}},{key:"setValue",value:function(t,n,i){return new Promise((function(a,u){if(t<=0)u(new Error("Invalid Site ID `"+t+"`"));else if(n<=0)u(new Error("Invalid Point ID `"+n+"`"));else{var c=e.getDefinition(t,n);1==(0,o.isDefined)(c)&&void 0!==c&&c.id==n?r.default.emit("createWritePoint",t,n,i,c.valueType,!1,(function(e){a(e)})):u(new Error("Unknown Point ID `"+n+"` for Site ID `"+t+"`"))}}))}},{key:"loadPointDefinitions",value:function(t){return t in e._definitions!=1&&(e._definitions[t]={}),new Promise((function(n,r){a.default.getAll(t).then((function(o){t in e._definitions?(o.forEach((function(n){e._definitions[t][n.id]=n})),n(!0)):r(new Error("Site ID is no longer Subscribed"))})).catch((function(t){e.log(t,"error"),r(t)}))}))}},{key:"loadPointValues",value:function(t){return t in e._values!=1&&(e._values[t]={}),new Promise((function(n,r){a.default.getAllValues(t).then((function(o){if(t in e._values){var i=[];o.forEach((function(n){n.id in e._values[t]?(e._values[t][n.id].value==n.value&&e._values[t][n.id].timestamp==n.timestamp||i.push(n),e._values[t][n.id]=n):(i.push(n),e._values[t][n.id]=n)})),i.length>0&&void 0!==e._emitter&&e._emitter.emit("readpoints",t,i),n(!0)}else r(new Error("Site ID is no longer Subscribed"))})).catch((function(t){e.log(t,"error"),r(t)}))}))}},{key:"getDefaultSiteId",value:function(){if((0,o.isDefined)(e._definitions)&&Object.keys(e._definitions).length>0)return Number(Object.keys(e._definitions)[0])}}],null&&c(t.prototype,null),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();s(l,"_initialized",!1),s(l,"_emitter",void 0),s(l,"_subscriptions",{}),s(l,"_definitions",{}),s(l,"_values",{});var f=l;t.default=f},4732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(3300)),o=n(1568),i=m(n(9936)),a=m(n(5812)),u=m(n(5044)),c=m(n(6193)),s=m(n(6850)),l=m(n(8445)),f=m(n(4328));function m(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.performRequest("GET",t,null,n)}},{key:"putRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("PUT",t,n)}},{key:"patchRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("PATCH",t,n)}},{key:"postRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("POST",t,n)}},{key:"deleteRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.performRequest("DELETE",t,null,n)}},{key:"performRequest",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.length>0&&"/"!=n[0]&&(n="/"+n),1==(0,o.isDebugMode)()&&console.log("RequestHelper :: "+t.toUpperCase()+" - "+n);var a="";if((0,o.isDefined)(i)&&"GET"==t.toUpperCase())for(var u=0,c=Object.entries(i);u<c.length;u++){var s=y(c[u],2),l=s[0],f=s[1];if(void 0!==f){var m=f;Array.isArray(f)?m=f.join(","):f instanceof Date&&(m=f.toISOString()),a+=(0==a.length?"?":"&")+l+"="+encodeURIComponent(m)}}return!0===e.hasNativeFetch()?e.performNativeFetchRequest(t,n,r,a):e.performNodeFetchRequest(t,n,r,a)}},{key:"performNativeFetchRequest",value:function(e,t,n,r){var m={method:e,mode:"cors",credentials:"omit"},p=new Headers;return(0,o.isDefined)(o.JWT)&&!1===o.NoAuthPaths.some((function(e){return new RegExp("^".concat(e,"(/.*)?$")).test(t)}))&&p.set("Authorization","Bearer ".concat(o.JWT)),(0,o.isDefined)(n)&&(p.set("Content-Type","application/json"),m.body=JSON.stringify(n)),m.headers=p,new Promise((function(e,n){fetch(o.BaseURL+t+r,m).then((function(t){if(t.ok)return 200===t.status||201===t.status?void t.json().then((function(t){e(t)})).catch((function(e){n(e)})):void e(!0);t.json().then((function(e){switch(t.status){case 400:n(new i.default(e.title));break;case 401:n(new l.default(e.title));break;case 403:n(new a.default(e.title));break;case 404:n(new c.default(e.title));break;case 405:n(new u.default(e.title));break;case 500:n(new s.default(e.title));break;default:n(new Error("Unknown HTTP Response Code `"+t.status+"`"))}})).catch((function(e){return n(e)}))})).catch((function(e){return n(new f.default(e.message))}))}))}},{key:"performNodeFetchRequest",value:function(e,t,n,m){var p={method:e,compress:!0},d=new r.Headers;return(0,o.isDefined)(o.JWT)&&!1===o.NoAuthPaths.some((function(e){return new RegExp("^".concat(e,"(/.*)?$")).test(t)}))&&d.set("Authorization","Bearer ".concat(o.JWT)),(0,o.isDefined)(n)&&(d.set("Content-Type","application/json"),p.body=JSON.stringify(n)),p.headers=d,new Promise((function(e,n){(0,r.default)(o.BaseURL+t+m,p).then((function(t){if(t.ok)return 200===t.status||201===t.status?void t.json().then((function(t){e(t)})).catch((function(e){n(e)})):void e(!0);t.json().then((function(e){switch(t.status){case 400:n(new i.default(e.title));break;case 401:n(new l.default(e.title));break;case 403:n(new a.default(e.title));break;case 404:n(new c.default(e.title));break;case 405:n(new u.default(e.title));break;case 500:n(new s.default(e.title));break;default:n(new Error("Unknown HTTP Response Code `"+t.status+"`"))}})).catch((function(e){return n(e)}))})).catch((function(e){return n(new f.default(e.message))}))}))}},{key:"hasNativeFetch",value:function(){return"object"===("undefined"==typeof window?"undefined":d(window))&&"function"==typeof window.fetch}}],null&&b(t.prototype,null),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h},3778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6809))&&r.__esModule?r:{default:r},i=n(1568),a=n(7187);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initialize",value:function(){1!=(0,i.isDefined)(e._emitter)&&(e._emitter=new a.EventEmitter),1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),e._socket=(0,o.default)(i.WebSocketServer+":"+i.WebSocketPort,{transports:["websocket"],query:{token:i.JWT}});var t=e._socket.onevent;e._socket.onevent=function(e){var n=e.data||[];t.call(this,e),e.data=["*"].concat(n),t.call(this,e)},e._socket.on("reconnect_attempt",(function(t){void 0!==e._socket&&(e._socket.io.opts.transports=["websocket"],e._socket.io.opts.query={token:i.JWT},e.log("Attempting to Re-connect. "+t+" attempts so far"))})),e._socket.on("connect",(function(){e.log("Socket Connected"),(0,i.isDefined)(e._subscriptions)&&e._subscriptions.forEach((function(t){void 0!==e._socket&&e._socket.emit("subscribe",t)}))})),e._socket.on("reconnect",(function(t){e.log("Successfully Re-connected after "+t+" attempts")})),e._socket.on("disconnect",(function(t){e.log("Socket Disconnected! Reason: "+t,"warning"),"io server disconnect"==t&&setTimeout((function(){void 0!==e._socket&&e._socket.connect()}),5e3)})),e._socket.on("ping",(function(){e.log("~PING~")})),e._socket.on("pong",(function(t){e.log("~PONG~ Latency: "+t+"ms")})),e._socket.on("unauthorized",(function(t){e.log(t)})),e._socket.on("error",(function(t){e.log("Received Error!"),e.log(t)})),e._socket.on("*",(function(t){var n;if(void 0!==e._emitter){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=e._emitter).emit.apply(n,[t].concat(o))}}))}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if(1==(0,i.isDebugMode)())switch(t){case"error":console.error("WebSocket :: "+e);break;case"warn":case"warning":console.warn("WebSocket :: "+e);break;case"log":default:console.log("WebSocket :: "+e)}}},{key:"subscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),1==(0,i.isDefined)(t)&&void 0!==t||(t="all"),0==e._subscriptions.includes(t)&&e._subscriptions.push(t),(0,i.isDefined)(e._socket)&&void 0!==e._socket&&e._socket.emit("subscribe",t)}},{key:"unsubscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),1==(0,i.isDefined)(t)&&void 0!==t||(t="all"),e._subscriptions.indexOf(t)>=0&&e._subscriptions.splice(e._subscriptions.indexOf(t),1),(0,i.isDefined)(e._socket)&&void 0!==e._socket&&e._socket.emit("unsubscribe",t)}},{key:"on",value:function(t,n){1==(0,i.isDefined)(e._emitter)&&void 0!==e._emitter||(e._emitter=new a.EventEmitter),e._emitter.on(t,n)}},{key:"emit",value:function(t){var n;if(void 0!==e._socket){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=e._socket).emit.apply(n,[t].concat(o))}}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();c(s,"_emitter",void 0),c(s,"_subscriptions",[]),c(s,"_socket",void 0);var l=s;t.default=l},1568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseURL=void 0,Object.defineProperty(t,"Controllers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Errors",{enumerable:!0,get:function(){return s.default}}),t.JWT=void 0,Object.defineProperty(t,"Models",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"NoAuthPaths",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Points",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"RequestHelper",{enumerable:!0,get:function(){return r.default}}),t.Version=void 0,Object.defineProperty(t,"WebSocketHelper",{enumerable:!0,get:function(){return o.default}}),t.WebSocketServer=t.WebSocketPort=void 0,t.apiAccountLogin=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a2a2a813-bbeb-11e8-99a9-b8ca3a64dc30";return new Promise((function(i,a){c.default.TokenController.create({key:e,secret:n,providerId:r}).then((function(e){t.JWT=d=e.token,o.default.initialize(),i(e.token)})).catch((function(e){return a(e)}))}))},t.disableDebugMode=function(){b=!1},t.enableDebugMode=function(){b=!0},t.getBaseURL=function(){return T},t.getToken=function(){return d},t.getWebSocketPort=function(){return N},t.getWebSocketServer=function(){return v},t.hasToken=function(){return p(d)&&S(d)},t.initialize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;0==g?(i.default.initialize(),void 0!==e&&(y(e),o.default.initialize()),g=!0):1==h()&&console.warn("API Client Initialize should not be called more than once")},t.isDebugMode=h,t.isDefined=p,t.isInitialized=function(){return 1==g},t.lock=function(){return new Promise((function(e,t){c.default.TokenController.lock().then((function(t){e(t)})).catch((function(e){return t(e)}))}))},t.logout=function(){return new Promise((function(e,n){c.default.TokenController.destroy().then((function(n){t.JWT=d=void 0,e(n)})).catch((function(e){return n(e)}))}))},t.passwordUnlock=function(e){return new Promise((function(t,n){c.default.TokenController.unlock({password:e}).then((function(e){t(e)})).catch((function(e){return n(e)}))}))},t.pinCodeUnlock=function(e){return new Promise((function(t,n){c.default.TokenController.unlock({pinCode:e}).then((function(e){t(e)})).catch((function(e){return n(e)}))}))},t.ping=function(){return new Promise((function(e,t){c.default.ToolsController.ping().then((function(t){return e("pong"===t)})).catch((function(e){return t(e)}))}))},t.setBaseURL=function(e){t.BaseURL=T=e},t.setToken=y,t.setWebSocketPort=function(e){t.WebSocketPort=N=e},t.setWebSocketServer=function(e){t.WebSocketServer=v=e},t.userAccountLogin=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a2a2a813-bbeb-11e8-99a9-b8ca3a64dc30";return new Promise((function(i,a){c.default.TokenController.create({email:e,password:n,providerId:r}).then((function(e){t.JWT=d=e.token,o.default.initialize(),i(e.token)})).catch((function(e){return a(e)}))}))};var r=m(n(4732)),o=m(n(3778)),i=m(n(2238)),a=n(3369),u=m(n(549)),c=m(n(7053)),s=m(n(806)),l=m(n(471)),f=n(9575);function m(e){return e&&e.__esModule?e:{default:e}}function p(e){return null!=e}var d=void 0;function y(e){if(!S(e))throw new Error("The JSON Web Token provided was not valid");t.JWT=d=e}t.JWT=d;var g=!1,b=!1;function h(){return 1==b}var T="https://api.ricado.co.nz/api/4.0";t.BaseURL=T;var v="https://websocket.ricado.co.nz";t.WebSocketServer=v;var N=443;function S(e){if(null==e||"string"!=typeof e)return!1;var t=e.split(".");if(3!==t.length)return!1;try{return JSON.parse((0,f.decode)(t[0])),JSON.parse((0,f.decode)(t[1])),!0}catch(e){return!1}}t.WebSocketPort=N;var w=a.version;t.Version=w},6906:e=>{function t(){}e.exports=function(e,n,r){var o=!1;return r=r||t,i.count=e,0===e?n():i;function i(e,t){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,n(e),n=r):0!==i.count||o||n(null,t)}}},9718:e=>{e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,u=0;a<n;a++,u++)i[u]=o[a];return i.buffer}},3010:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},3704:(e,t)=>{!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,o,i,a,u=.75*t.length,c=t.length,s=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var l=new ArrayBuffer(u),f=new Uint8Array(l);for(n=0;n<c;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),f[s++]=r<<2|o>>4,f[s++]=(15&o)<<4|i>>2,f[s++]=(3&i)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5548:e=>{var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=t&&t.prototype.append&&t.prototype.getBlob;function i(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function a(e,n){n=n||{};var r=new t;return i(e).forEach((function(e){r.append(e)})),n.type?r.getBlob(n.type):r.getBlob()}function u(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,u.prototype=Blob.prototype),e.exports=n?r?Blob:u:o?a:void 0},6077:e=>{var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},8767:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},3861:e=>{e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},3549:e=>{e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},5983:(e,t,n)=>{e.exports=n(2192),e.exports.parser=n(4455)},2192:(e,t,n)=>{var r=n(3352),o=n(8767),i=n(4802)("engine.io-client:socket"),a=n(7355),u=n(4455),c=n(4187),s=n(1830);function l(e,t){if(!(this instanceof l))return new l(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=c(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=c(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=s.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=l,l.priorWebsocketSuccess=!1,o(l.prototype),l.protocol=u.protocol,l.Socket=l,l.Transport=n(6496),l.transports=n(3352),l.parser=n(4455),l.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=u.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var e;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},l.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},l.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),m(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,m(),t.close(),t=null)}function u(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function c(){u("transport closed")}function s(){u("socket closed")}function f(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function m(){t.removeListener("open",o),t.removeListener("error",u),t.removeListener("close",c),r.removeListener("close",s),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",u),t.once("close",c),this.once("close",s),this.once("upgrading",f),t.open()},l.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},l.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},l.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){i("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},l.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},l.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},l.prototype.onError=function(e){i("socket error %j",e),l.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},l.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(i('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}},6496:(e,t,n)=>{var r=n(4455),o=n(8767);function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=i,o(i.prototype),i.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},3352:(e,t,n)=>{var r=n(2777),o=n(3416),i=n(9785),a=n(4442);t.polling=function(e){var t=!1,n=!1,a=!1!==e.jsonp;if("undefined"!=typeof location){var u="https:"===location.protocol,c=location.port;c||(c=u?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==u}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!a)throw new Error("JSONP disabled");return new i(e)},t.websocket=a},9785:(e,t,n)=>{var r=n(9015),o=n(3861),i=n(3549);e.exports=l;var a,u=/\n/g,c=/\\n/g;function s(){}function l(e){r.call(this,e),this.query=this.query||{},a||(a=i.___eio=i.___eio||[]),this.index=a.length;var t=this;a.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=s)}),!1)}o(l,r),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},l.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},l.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=a,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function s(){l(),t()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),e=e.replace(c,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&s()}:this.iframe.onload=s}},3416:(e,t,n)=>{var r=n(2777),o=n(9015),i=n(8767),a=n(3861),u=n(4802)("engine.io-client:polling-xhr"),c=n(3549);function s(){}function l(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function f(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function m(){for(var e in f.requests)f.requests.hasOwnProperty(e)&&f.requests[e].abort()}e.exports=l,e.exports.Request=f,a(l,o),l.prototype.supportsBinary=!0,l.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new f(e)},l.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},l.prototype.doPoll=function(){u("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},i(f.prototype),f.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{u("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},u("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},f.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},f.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=s:this.xhr.onreadystatechange=s,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},f.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},f.requestsCount=0,f.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",m):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",m,!1))},9015:(e,t,n)=>{var r=n(6496),o=n(1830),i=n(4455),a=n(3861),u=n(2281),c=n(4802)("engine.io-client:polling");e.exports=l;var s=null!=new(n(2777))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;s&&!t||(this.supportsBinary=!1),r.call(this,e)}a(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;c("polling got data %s",e),i.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},4442:(e,t,n)=>{var r,o,i=n(6496),a=n(4455),u=n(1830),c=n(3861),s=n(2281),l=n(4802)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(7020)}catch(e){}var f=r||o;function m(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=o),i.call(this,e)}e.exports=m,c(m,i),m.prototype.name="websocket",m.prototype.supportsBinary=!0,m.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new f(e,t):new f(e):new f(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},m.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},m.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,r=0,o=n;r<o;r++)!function(e){a.encodePacket(e,t.supportsBinary,(function(r){if(!t.usingBrowserWebSocket){var o={};e.options&&(o.compress=e.options.compress),t.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<t.perMessageDeflate.threshold&&(o.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(r):t.ws.send(r,o)}catch(e){l("websocket closed before onclose event")}--n||(t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0))}))}(e[r])},m.prototype.onClose=function(){i.prototype.onClose.call(this)},m.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},m.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||(e.b64=1),(e=u.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},m.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===m.prototype.name)}},2777:(e,t,n)=>{var r=n(8058),o=n(3549);e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},4802:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(7616)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},7616:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},4455:(e,t,n)=>{var r,o=n(7990),i=n(3466),a=n(9718),u=n(6906),c=n(3414);"undefined"!=typeof ArrayBuffer&&(r=n(3704));var s="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=s||l;t.protocol=3;var m=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=o(m),d={type:"error",data:"parser error"},y=n(5548);function g(e,t,n){for(var r=new Array(e.length),o=u(e.length,n),i=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},a=0;a<e.length;a++)i(a,e[a],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var i=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=m[e.type];for(var u=0;u<i.length;u++)a[u+1]=i[u];return r(a.buffer)}(e,n,o);if(void 0!==y&&i instanceof y)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(f)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);return o[0]=m[e.type],r(new y([o.buffer,e.data]))}(e,n,o);if(i&&i.base64)return function(e,n){return n("b"+t.packets[e.type]+e.data.data)}(e,o);var a=m[e.type];return void 0!==e.data&&(a+=r?c.encode(String(e.data),{strict:!1}):String(e.data)),o(""+a)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==y&&e.data instanceof y){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];n(o+e)},i.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),u=new Array(a.length),c=0;c<a.length;c++)u[c]=a[c];r=String.fromCharCode.apply(null,u)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return d;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=c.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return d;var o=e.charAt(0);return Number(o)==o&&p[o]?e.length>1?{type:p[o],data:e.substring(1)}:{type:p[o]}:d}o=new Uint8Array(e)[0];var i=a(e,1);return y&&"blob"===n&&(i=new y([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&y&&(o=new y([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);return n&&o?y&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void g(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))})):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(d,0,1);for(var i,a,u="",c=0,s=e.length;c<s;c++){var l=e.charAt(c);if(":"===l){if(""===u||u!=(i=Number(u)))return r(d,0,1);if(u!=(a=e.substr(c+1,i)).length)return r(d,0,1);if(a.length){if(o=t.decodePacket(a,n,!1),d.type===o.type&&d.data===o.data)return r(d,0,1);if(!1===r(o,c+i,s))return}c+=i,u=""}else u+=l}return""!==u?r(d,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),i=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;var u=n.byteLength.toString();for(a=0;a<u.length;a++)o[i++]=parseInt(u[a]);for(o[i++]=255,r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)a[o]=parseInt(i[o]);if(a[i.length]=255,y){var u=new y([t.buffer,a.buffer,e]);n(null,u)}}))}),(function(e,t){return n(new y(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var u=new Uint8Array(o),c=0===u[0],s="",l=1;255!==u[l];l++){if(s.length>310)return r(d,0,1);s+=u[l]}o=a(o,2+s.length),s=parseInt(s);var f=a(o,0,s);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var m=new Uint8Array(f);for(f="",l=0;l<m.length;l++)f+=String.fromCharCode(m[l])}i.push(f),o=a(o,s)}var p=i.length;i.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,p)}))}},7990:e=>{e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},3414:e=>{var t,n,r,o=String.fromCharCode;function i(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function a(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(e,t){return o(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(a(e,t)||(e=65533),n=o(e>>12&15|224),n+=u(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=u(e,12),n+=u(e,6)),n+o(63&e|128)}function s(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(e){var o,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(o=255&t[r],r++,0==(128&o))return o;if(192==(224&o)){if((i=(31&o)<<6|s())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&o)){if((i=(15&o)<<12|s()<<6|s())>=2048)return a(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(i=(7&o)<<18|s()<<12|s()<<6|s())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,a=-1,u="";++a<o;)u+=c(r[a],n);return u},decode:function(e,a){var u=!1!==(a=a||{}).strict;t=i(e),n=t.length,r=0;for(var c,s=[];!1!==(c=l(u));)s.push(c);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(s)}}},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):d(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var s=c.length,l=d(c,s);for(n=0;n<s;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return m(this,e,!0)},i.prototype.rawListeners=function(e){return m(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3466:(e,t,n)=>{var r=n(579),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(r(t)){for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||i&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&e(t[u]))return!0;return!1}},579:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},8058:e=>{try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},7355:e=>{var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var r=0;r<e.length;++r)if(e[r]===n)return r;return-1}},9575:function(e,t,n){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e,t="3.7.2",n="function"==typeof atob,r="function"==typeof btoa,o="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,u=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(e={},u.forEach((function(t,n){return e[t]=n})),e),s=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},m=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},p=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},d=function(e){for(var t,n,r,o,i="",a=e.length%3,c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");i+=u[(t=n<<16|r<<8|o)>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},y=r?function(e){return btoa(e)}:o?function(e){return Buffer.from(e,"binary").toString("base64")}:d,g=o?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(l.apply(null,e.subarray(n,n+4096)));return y(t.join(""))},b=function(e,t){return void 0===t&&(t=!1),t?m(g(e)):g(e)},h=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},T=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(T,h)},N=o?function(e){return Buffer.from(e,"utf8").toString("base64")}:a?function(e){return g(a.encode(e))}:function(e){return y(v(e))},S=function(e,t){return void 0===t&&(t=!1),t?m(N(e)):N(e)},w=function(e){return S(e,!0)},A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,j=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},P=function(e){return e.replace(A,j)},k=function(e){if(e=e.replace(/\s+/g,""),!s.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=c[e.charAt(i++)]<<18|c[e.charAt(i++)]<<12|(n=c[e.charAt(i++)])<<6|(r=c[e.charAt(i++)]),o+=64===n?l(t>>16&255):64===r?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,255&t);return o},M=n?function(e){return atob(p(e))}:o?function(e){return Buffer.from(e,"base64").toString("binary")}:k,C=o?function(e){return f(Buffer.from(e,"base64"))}:function(e){return f(M(e),(function(e){return e.charCodeAt(0)}))},I=function(e){return C(D(e))},O=o?function(e){return Buffer.from(e,"base64").toString("utf8")}:i?function(e){return i.decode(C(e))}:function(e){return P(M(e))},D=function(e){return p(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},R=function(e){return O(D(e))},_=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},E=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,_(t))};e("fromBase64",(function(){return R(this)})),e("toBase64",(function(e){return S(this,e)})),e("toBase64URI",(function(){return S(this,!0)})),e("toBase64URL",(function(){return S(this,!0)})),e("toUint8Array",(function(){return I(this)}))},q=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,_(t))};e("toBase64",(function(e){return b(this,e)})),e("toBase64URI",(function(){return b(this,!0)})),e("toBase64URL",(function(){return b(this,!0)}))},B={version:t,VERSION:"3.7.2",atob:M,atobPolyfill:k,btoa:y,btoaPolyfill:d,fromBase64:R,toBase64:S,encode:S,encodeURI:w,encodeURL:w,utob:v,btou:P,decode:R,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:I,extendString:E,extendUint8Array:q,extendBuiltins:function(){E(),q()},Base64:{}};return Object.keys(B).forEach((function(e){return B.Base64[e]=B[e]})),B}()},7824:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return a.long?i(u=e,o,"day")||i(u,r,"hour")||i(u,n,"minute")||i(u,t,"second")||u+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3300:(e,t)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n)return n;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},1830:(e,t)=>{t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},4187:e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var r,o,i=e,a=e.indexOf("["),u=e.indexOf("]");-1!=a&&-1!=u&&(e=e.substring(0,a)+e.substring(a,u).replace(/:/g,";")+e.substring(u,e.length));for(var c,s,l=t.exec(e||""),f={},m=14;m--;)f[n[m]]=l[m]||"";return-1!=a&&-1!=u&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(r=f.path,o=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||o.splice(0,1),"/"==r.substr(r.length-1,1)&&o.splice(o.length-1,1),o),f.queryKey=(c=f.query,s={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(s[t]=n)})),s),f}},6809:(e,t,n)=>{var r=n(3678),o=n(9113),i=n(2739),a=n(3669)("socket.io-client");e.exports=t=c;var u=t.managers={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),c=o.source,s=o.id,l=o.path,f=u[s]&&l in u[s].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",c),n=i(c,t)):(u[s]||(a("new io instance for %s",c),u[s]=i(c,t)),n=u[s]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=c,t.Manager=n(2739),t.Socket=n(8584)},2739:(e,t,n)=>{var r=n(5983),o=n(8584),i=n(8767),a=n(9113),u=n(5464),c=n(6077),s=n(3669)("socket.io-client:manager"),l=n(7355),f=n(3010),m=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)m.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)m.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(s("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;s("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=u(n,"open",(function(){o.onopen(),e&&e()})),a=u(n,"error",(function(t){if(s("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;s("connect attempt will timeout after %d",c),0===c&&i.destroy();var l=setTimeout((function(){s("connect attempt timed out after %d",c),i.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(i),this.subs.push(a),this},p.prototype.onopen=function(){s("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(u(e,"data",c(this,"ondata"))),this.subs.push(u(e,"ping",c(this,"onping"))),this.subs.push(u(e,"pong",c(this,"onpong"))),this.subs.push(u(e,"error",c(this,"onerror"))),this.subs.push(u(e,"close",c(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){s("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",i),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&i()}function i(){~l(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=l(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){s("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){s("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){s("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(e){s("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)s("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();s("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(s("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(s("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(s("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},5464:e=>{e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},8584:(e,t,n)=>{var r=n(9113),o=n(8767),i=n(4042),a=n(5464),u=n(6077),c=n(3669)("socket.io-client:socket"),s=n(1830),l=n(3466);e.exports=p;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},m=o.prototype.emit;function p(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",u(this,"onopen")),a(e,"packet",u(this,"onpacket")),a(e,"close",u(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var e=i(arguments);return e.unshift("message"),this.emit.apply(this,e),this},p.prototype.emit=function(e){if(f.hasOwnProperty(e))return m.apply(this,arguments),this;var t=i(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},p.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?s.encode(this.query):this.query;c("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},p.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},p.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?m.apply(this,t):this.receiveBuffer.push(t)},p.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=i(arguments);c("sending ack %j",o),t.packet({type:l(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},p.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(c("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):c("bad ack %s",e.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)m.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(e){return this.flags.compress=e,this},p.prototype.binary=function(e){return this.flags.binary=e,this}},3678:(e,t,n)=>{var r=n(4187),o=n(3669)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}},3669:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(1350)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},1350:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},2326:(e,t,n)=>{var r=n(6327),o=n(6066),i=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),u="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);function c(e,t){if(!e)return e;if(o(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(r(e)){for(var i=new Array(e.length),a=0;a<e.length;a++)i[a]=c(e[a],t);return i}if("object"==typeof e&&!(e instanceof Date)){for(var u in i={},e)i[u]=c(e[u],t);return i}return e}function s(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(r(e))for(var n=0;n<e.length;n++)e[n]=s(e[n],t);else if("object"==typeof e)for(var o in e)e[o]=s(e[o],t);return e}t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=c(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=s(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,i=e;!function e(c,s,l){if(!c)return c;if(a&&c instanceof Blob||u&&c instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[s]=this.result:i=this.result,--n||t(i)},f.readAsArrayBuffer(c)}else if(r(c))for(var m=0;m<c.length;m++)e(c[m],m,c);else if("object"==typeof c&&!o(c))for(var p in c)e(c[p],p,c)}(i),n||t(i)}},9113:(e,t,n)=>{var r=n(1618)("socket.io-parser"),o=n(8767),i=n(2326),a=n(6327),u=n(6066);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=f;var s=t.ERROR+'"encode error"';function l(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return s;n+=o}return r("encoded %j as %s",e,n),n}function f(){this.reconstructor=null}function m(e){this.reconPack=e,this.buffers=[]}function p(e){return{type:t.ERROR,data:"parser error: "+e}}c.prototype.encode=function(e,n){r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?function(e,t){i.removeBlobs(e,(function(e){var n=i.deconstructPacket(e),r=l(n.packet),o=n.buffers;o.unshift(r),t(o)}))}(e,n):n([l(e)])},o(f.prototype),f.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return p("unknown packet type "+o.type);if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var i=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var u=e.substring(i,n);if(u!=Number(u)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(u)}if("/"===e.charAt(n+1)){for(i=n+1;++n&&","!==(s=e.charAt(n))&&n!==e.length;);o.nsp=e.substring(i,n)}else o.nsp="/";var c=e.charAt(n+1);if(""!==c&&Number(c)==c){for(i=n+1;++n;){var s;if(null==(s=e.charAt(n))||Number(s)!=s){--n;break}if(n===e.length)break}o.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!1===l||o.type!==t.ERROR&&!a(l))return p("invalid payload");o.data=l}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new m(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!u(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},m.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},6066:e=>{e.exports=function(e){return t&&Buffer.isBuffer(e)||n&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var t="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer},1618:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(968)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},968:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},6327:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4042:e=>{e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},2281:e=>{"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},o=0,i=0;function a(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function u(){var e=a(+new Date);return e!==t?(o=0,t=e):e+"."+a(o++)}for(;i<64;i++)r[n[i]]=i;u.encode=a,u.decode=function(e){var t=0;for(i=0;i<e.length;i++)t=64*t+r[e.charAt(i)];return t},e.exports=u},7020:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r=n(1568);RICADOGen4API=r})();
2
+ var RICADOGen4API;(()=>{var e={8647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3091));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/account-policies/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/account-policies/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/account-policies/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/account-policies",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/account-policies",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(348));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/api-account").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"updateCurrent",value:function(e){return new Promise((function(t,n){r.default.patchRequest("/api-account",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"getCurrentSecret",value:function(){return new Promise((function(e,t){r.default.getRequest("/api-account/secret").then((function(t){var n="string"!=typeof t?String(t):t;e(n)})).catch((function(e){return t(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/api-accounts/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/api-accounts/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getSecret",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e,"/secret")).then((function(e){var n="string"!=typeof e?String(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"getPolicies",value:function(e){return new Promise((function(t,n){r.default.getRequest("/api-accounts/".concat(e,"/policies")).then((function(e){var n,r=(n={},"object"===a(e)&&"policies"in e?n.policies=!0!==Array.isArray(e.policies)?[]:e.policies.map((function(e){return"string"!=typeof e?String(e):e})):n.policies=[],n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"setPolicies",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/api-accounts/".concat(e,"/policies"),{policies:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/api-accounts",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/api-accounts",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1969));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/companies/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/companies/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/companies/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/companies",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/companies",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},5843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(556));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/firebase-tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/firebase-tokens/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/firebase-tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/firebase-tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/firebase-tokens",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"jsonExport",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,a){o.default.getRequest("/packhouse/production-data-export",Object.assign(n,{dateBegin:e,dateEnd:t})).then((function(e){var t,n=(t={},"object"===i(e)&&"packruns"in e?t.packruns=!0!==Array.isArray(e.packruns)?[]:e.packruns.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===i(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===i(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===i(e)&&"varietyId"in e?t.varietyId="string"!=typeof e.varietyId?String(e.varietyId):e.varietyId:t.varietyId="","object"===i(e)&&"varietyCode"in e?t.varietyCode="string"!=typeof e.varietyCode?String(e.varietyCode):e.varietyCode:t.varietyCode="","object"===i(e)&&"growingMethodId"in e?t.growingMethodId="string"!=typeof e.growingMethodId?String(e.growingMethodId):e.growingMethodId:t.growingMethodId="","object"===i(e)&&"growingMethodCode"in e?t.growingMethodCode="string"!=typeof e.growingMethodCode?String(e.growingMethodCode):e.growingMethodCode:t.growingMethodCode="","object"===i(e)&&"growerCode"in e?t.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:t.growerCode="","object"===i(e)&&"growerName"in e?t.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:t.growerName="","object"===i(e)&&"maturityArea"in e?t.maturityArea="string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:t.maturityArea="","object"===i(e)&&"allocatedBins"in e?t.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):t.allocatedBins=0,"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"totalNetWeightTipped"in e?t.totalNetWeightTipped="number"!=typeof e.totalNetWeightTipped?Number(e.totalNetWeightTipped):e.totalNetWeightTipped:t.totalNetWeightTipped=0,"object"===i(e)&&"averageNetWeightPerBin"in e?t.averageNetWeightPerBin="number"!=typeof e.averageNetWeightPerBin?Number(e.averageNetWeightPerBin):e.averageNetWeightPerBin:t.averageNetWeightPerBin=0,"object"===i(e)&&"averageBinsTippedPerHour"in e?t.averageBinsTippedPerHour="number"!=typeof e.averageBinsTippedPerHour?Number(e.averageBinsTippedPerHour):e.averageBinsTippedPerHour:t.averageBinsTippedPerHour=0,"object"===i(e)&&"averageBinsTippedPerHourExcludingDowntime"in e?t.averageBinsTippedPerHourExcludingDowntime="number"!=typeof e.averageBinsTippedPerHourExcludingDowntime?Number(e.averageBinsTippedPerHourExcludingDowntime):e.averageBinsTippedPerHourExcludingDowntime:t.averageBinsTippedPerHourExcludingDowntime=0,"object"===i(e)&&"averageTimePerTippedBin"in e?t.averageTimePerTippedBin="number"!=typeof e.averageTimePerTippedBin?Number.isInteger(Number(e.averageTimePerTippedBin))?Number(e.averageTimePerTippedBin):Math.floor(Number(e.averageTimePerTippedBin)):Number.isInteger(e.averageTimePerTippedBin)?e.averageTimePerTippedBin:Math.floor(e.averageTimePerTippedBin):t.averageTimePerTippedBin=0,"object"===i(e)&&"averageBinTipWeightThroughput"in e?t.averageBinTipWeightThroughput="number"!=typeof e.averageBinTipWeightThroughput?Number(e.averageBinTipWeightThroughput):e.averageBinTipWeightThroughput:t.averageBinTipWeightThroughput=0,"object"===i(e)&&"softSortEventsPerBin"in e?t.softSortEventsPerBin="number"!=typeof e.softSortEventsPerBin?Number(e.softSortEventsPerBin):e.softSortEventsPerBin:t.softSortEventsPerBin=0,"object"===i(e)&&"totalSoftSortEventsCount"in e?t.totalSoftSortEventsCount="number"!=typeof e.totalSoftSortEventsCount?Number.isInteger(Number(e.totalSoftSortEventsCount))?Number(e.totalSoftSortEventsCount):Math.floor(Number(e.totalSoftSortEventsCount)):Number.isInteger(e.totalSoftSortEventsCount)?e.totalSoftSortEventsCount:Math.floor(e.totalSoftSortEventsCount):t.totalSoftSortEventsCount=0,"object"===i(e)&&"averageSoftSortEventsDuration"in e?t.averageSoftSortEventsDuration="number"!=typeof e.averageSoftSortEventsDuration?Number(e.averageSoftSortEventsDuration):e.averageSoftSortEventsDuration:t.averageSoftSortEventsDuration=0,"object"===i(e)&&"totalSoftSortEventsDuration"in e?t.totalSoftSortEventsDuration="number"!=typeof e.totalSoftSortEventsDuration?Number(e.totalSoftSortEventsDuration):e.totalSoftSortEventsDuration:t.totalSoftSortEventsDuration=0,"object"===i(e)&&"softSortEventsAccurate"in e?t.softSortEventsAccurate=null===e.softSortEventsAccurate?null:"boolean"!=typeof e.softSortEventsAccurate?Boolean(e.softSortEventsAccurate):e.softSortEventsAccurate:t.softSortEventsAccurate=null,"object"===i(e)&&"softSortEventsNotAccurateReason"in e?t.softSortEventsNotAccurateReason=null===e.softSortEventsNotAccurateReason?null:"string"!=typeof e.softSortEventsNotAccurateReason?String(e.softSortEventsNotAccurateReason):e.softSortEventsNotAccurateReason:t.softSortEventsNotAccurateReason=null,"object"===i(e)&&"class1Percentage"in e?t.class1Percentage="number"!=typeof e.class1Percentage?Number(e.class1Percentage):e.class1Percentage:t.class1Percentage=0,"object"===i(e)&&"class2Percentage"in e?t.class2Percentage="number"!=typeof e.class2Percentage?Number(e.class2Percentage):e.class2Percentage:t.class2Percentage=0,"object"===i(e)&&"class3Percentage"in e?t.class3Percentage="number"!=typeof e.class3Percentage?Number(e.class3Percentage):e.class3Percentage:t.class3Percentage=0,"object"===i(e)&&"nssPercentage"in e?t.nssPercentage="number"!=typeof e.nssPercentage?Number(e.nssPercentage):e.nssPercentage:t.nssPercentage=0,"object"===i(e)&&"undersizePercentage"in e?t.undersizePercentage="number"!=typeof e.undersizePercentage?Number(e.undersizePercentage):e.undersizePercentage:t.undersizePercentage=0,"object"===i(e)&&"cdmPercentage"in e?t.cdmPercentage="number"!=typeof e.cdmPercentage?Number(e.cdmPercentage):e.cdmPercentage:t.cdmPercentage=0,"object"===i(e)&&"wastePercentage"in e?t.wastePercentage="number"!=typeof e.wastePercentage?Number(e.wastePercentage):e.wastePercentage:t.wastePercentage=0,"object"===i(e)&&"softSortPercentage"in e?t.softSortPercentage="number"!=typeof e.softSortPercentage?Number(e.softSortPercentage):e.softSortPercentage:t.softSortPercentage=0,"object"===i(e)&&"totalNonClass1Percentage"in e?t.totalNonClass1Percentage="number"!=typeof e.totalNonClass1Percentage?Number(e.totalNonClass1Percentage):e.totalNonClass1Percentage:t.totalNonClass1Percentage=0,"object"===i(e)&&"class1Weight"in e?t.class1Weight="number"!=typeof e.class1Weight?Number(e.class1Weight):e.class1Weight:t.class1Weight=0,"object"===i(e)&&"class2Weight"in e?t.class2Weight="number"!=typeof e.class2Weight?Number(e.class2Weight):e.class2Weight:t.class2Weight=0,"object"===i(e)&&"class3Weight"in e?t.class3Weight="number"!=typeof e.class3Weight?Number(e.class3Weight):e.class3Weight:t.class3Weight=0,"object"===i(e)&&"nssWeight"in e?t.nssWeight="number"!=typeof e.nssWeight?Number(e.nssWeight):e.nssWeight:t.nssWeight=0,"object"===i(e)&&"undersizeWeight"in e?t.undersizeWeight="number"!=typeof e.undersizeWeight?Number(e.undersizeWeight):e.undersizeWeight:t.undersizeWeight=0,"object"===i(e)&&"cdmWeight"in e?t.cdmWeight="number"!=typeof e.cdmWeight?Number(e.cdmWeight):e.cdmWeight:t.cdmWeight=0,"object"===i(e)&&"wasteWeight"in e?t.wasteWeight="number"!=typeof e.wasteWeight?Number(e.wasteWeight):e.wasteWeight:t.wasteWeight=0,"object"===i(e)&&"softSortWeight"in e?t.softSortWeight="number"!=typeof e.softSortWeight?Number(e.softSortWeight):e.softSortWeight:t.softSortWeight=0,"object"===i(e)&&"totalNonClass1Weight"in e?t.totalNonClass1Weight="number"!=typeof e.totalNonClass1Weight?Number(e.totalNonClass1Weight):e.totalNonClass1Weight:t.totalNonClass1Weight=0,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number(e.totalClass1Trays):e.totalClass1Trays:t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number(e.totalClass2Trays):e.totalClass2Trays:t.totalClass2Trays=0,"object"===i(e)&&"totalClass1FruitCount"in e?t.totalClass1FruitCount="number"!=typeof e.totalClass1FruitCount?Number(e.totalClass1FruitCount):e.totalClass1FruitCount:t.totalClass1FruitCount=0,"object"===i(e)&&"totalClass2FruitCount"in e?t.totalClass2FruitCount="number"!=typeof e.totalClass2FruitCount?Number(e.totalClass2FruitCount):e.totalClass2FruitCount:t.totalClass2FruitCount=0,"object"===i(e)&&"averageClass1TrayWeight"in e?t.averageClass1TrayWeight="number"!=typeof e.averageClass1TrayWeight?Number(e.averageClass1TrayWeight):e.averageClass1TrayWeight:t.averageClass1TrayWeight=0,"object"===i(e)&&"averageClass2TrayWeight"in e?t.averageClass2TrayWeight="number"!=typeof e.averageClass2TrayWeight?Number(e.averageClass2TrayWeight):e.averageClass2TrayWeight:t.averageClass2TrayWeight=0,"object"===i(e)&&"class1TraysPerBin"in e?t.class1TraysPerBin="number"!=typeof e.class1TraysPerBin?Number(e.class1TraysPerBin):e.class1TraysPerBin:t.class1TraysPerBin=0,"object"===i(e)&&"averageFruitSize"in e?t.averageFruitSize="number"!=typeof e.averageFruitSize?Number(e.averageFruitSize):e.averageFruitSize:t.averageFruitSize=0,"object"===i(e)&&"averageFruitWeight"in e?t.averageFruitWeight="number"!=typeof e.averageFruitWeight?Number(e.averageFruitWeight):e.averageFruitWeight:t.averageFruitWeight=0,"object"===i(e)&&"totalRejectBinsCount"in e?t.totalRejectBinsCount="number"!=typeof e.totalRejectBinsCount?Number.isInteger(Number(e.totalRejectBinsCount))?Number(e.totalRejectBinsCount):Math.floor(Number(e.totalRejectBinsCount)):Number.isInteger(e.totalRejectBinsCount)?e.totalRejectBinsCount:Math.floor(e.totalRejectBinsCount):t.totalRejectBinsCount=0,"object"===i(e)&&"totalRejectBinsNetWeight"in e?t.totalRejectBinsNetWeight="number"!=typeof e.totalRejectBinsNetWeight?Number(e.totalRejectBinsNetWeight):e.totalRejectBinsNetWeight:t.totalRejectBinsNetWeight=0,"object"===i(e)&&"qualityR600TotalFruitSampled"in e?t.qualityR600TotalFruitSampled=null===e.qualityR600TotalFruitSampled?null:"number"!=typeof e.qualityR600TotalFruitSampled?Number.isInteger(Number(e.qualityR600TotalFruitSampled))?Number(e.qualityR600TotalFruitSampled):Math.floor(Number(e.qualityR600TotalFruitSampled)):Number.isInteger(e.qualityR600TotalFruitSampled)?e.qualityR600TotalFruitSampled:Math.floor(e.qualityR600TotalFruitSampled):t.qualityR600TotalFruitSampled=null,"object"===i(e)&&"qualityR600FruitSampledPercentage"in e?t.qualityR600FruitSampledPercentage=null===e.qualityR600FruitSampledPercentage?null:"number"!=typeof e.qualityR600FruitSampledPercentage?Number(e.qualityR600FruitSampledPercentage):e.qualityR600FruitSampledPercentage:t.qualityR600FruitSampledPercentage=null,"object"===i(e)&&"qualityR600AverageSampledFruitSize"in e?t.qualityR600AverageSampledFruitSize=null===e.qualityR600AverageSampledFruitSize?null:"number"!=typeof e.qualityR600AverageSampledFruitSize?Number(e.qualityR600AverageSampledFruitSize):e.qualityR600AverageSampledFruitSize:t.qualityR600AverageSampledFruitSize=null,"object"===i(e)&&"qualityR600TotalSamplesCount"in e?t.qualityR600TotalSamplesCount=null===e.qualityR600TotalSamplesCount?null:"number"!=typeof e.qualityR600TotalSamplesCount?Number.isInteger(Number(e.qualityR600TotalSamplesCount))?Number(e.qualityR600TotalSamplesCount):Math.floor(Number(e.qualityR600TotalSamplesCount)):Number.isInteger(e.qualityR600TotalSamplesCount)?e.qualityR600TotalSamplesCount:Math.floor(e.qualityR600TotalSamplesCount):t.qualityR600TotalSamplesCount=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,"object"===i(e)&&"qualityR600MinorPackingDefects"in e?t.qualityR600MinorPackingDefects=null===e.qualityR600MinorPackingDefects?null:"number"!=typeof e.qualityR600MinorPackingDefects?Number(e.qualityR600MinorPackingDefects):e.qualityR600MinorPackingDefects:t.qualityR600MinorPackingDefects=null,"object"===i(e)&&"qualityR600MajorPackingDefects"in e?t.qualityR600MajorPackingDefects=null===e.qualityR600MajorPackingDefects?null:"number"!=typeof e.qualityR600MajorPackingDefects?Number(e.qualityR600MajorPackingDefects):e.qualityR600MajorPackingDefects:t.qualityR600MajorPackingDefects=null,"object"===i(e)&&"qualityR600Softs"in e?t.qualityR600Softs=null===e.qualityR600Softs?null:"number"!=typeof e.qualityR600Softs?Number(e.qualityR600Softs):e.qualityR600Softs:t.qualityR600Softs=null,"object"===i(e)&&"qualityR600Cuts"in e?t.qualityR600Cuts=null===e.qualityR600Cuts?null:"number"!=typeof e.qualityR600Cuts?Number(e.qualityR600Cuts):e.qualityR600Cuts:t.qualityR600Cuts=null,"object"===i(e)&&"qualityR600Rots"in e?t.qualityR600Rots=null===e.qualityR600Rots?null:"number"!=typeof e.qualityR600Rots?Number(e.qualityR600Rots):e.qualityR600Rots:t.qualityR600Rots=null,"object"===i(e)&&"qualityExportFruitInClass2"in e?t.qualityExportFruitInClass2=null===e.qualityExportFruitInClass2?null:"number"!=typeof e.qualityExportFruitInClass2?Number(e.qualityExportFruitInClass2):e.qualityExportFruitInClass2:t.qualityExportFruitInClass2=null,"object"===i(e)&&"qualityExportFruitInClass3"in e?t.qualityExportFruitInClass3=null===e.qualityExportFruitInClass3?null:"number"!=typeof e.qualityExportFruitInClass3?Number(e.qualityExportFruitInClass3):e.qualityExportFruitInClass3:t.qualityExportFruitInClass3=null,"object"===i(e)&&"qualityExportFruitInWaste"in e?t.qualityExportFruitInWaste=null===e.qualityExportFruitInWaste?null:"number"!=typeof e.qualityExportFruitInWaste?Number(e.qualityExportFruitInWaste):e.qualityExportFruitInWaste:t.qualityExportFruitInWaste=null,"object"===i(e)&&"shiftIds"in e?t.shiftIds=!0!==Array.isArray(e.shiftIds)?[]:e.shiftIds.map((function(e){return"string"!=typeof e?String(e):e})):t.shiftIds=[],"object"===i(e)&&"shiftTypes"in e?t.shiftTypes=!0!==Array.isArray(e.shiftTypes)?[]:e.shiftTypes.map((function(e){return"string"!=typeof e?String(e):e})):t.shiftTypes=[],"object"===i(e)&&"lineManagerNames"in e?t.lineManagerNames=!0!==Array.isArray(e.lineManagerNames)?[]:e.lineManagerNames.map((function(e){return"string"!=typeof e?String(e):e})):t.lineManagerNames=[],"object"===i(e)&&"qualityManagerNames"in e?t.qualityManagerNames=!0!==Array.isArray(e.qualityManagerNames)?[]:e.qualityManagerNames.map((function(e){return"string"!=typeof e?String(e):e})):t.qualityManagerNames=[],"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"averageClass1Manning"in e?t.averageClass1Manning=null===e.averageClass1Manning?null:"number"!=typeof e.averageClass1Manning?Number.isInteger(Number(e.averageClass1Manning))?Number(e.averageClass1Manning):Math.floor(Number(e.averageClass1Manning)):Number.isInteger(e.averageClass1Manning)?e.averageClass1Manning:Math.floor(e.averageClass1Manning):t.averageClass1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"averageClass2Manning"in e?t.averageClass2Manning=null===e.averageClass2Manning?null:"number"!=typeof e.averageClass2Manning?Number.isInteger(Number(e.averageClass2Manning))?Number(e.averageClass2Manning):Math.floor(Number(e.averageClass2Manning)):Number.isInteger(e.averageClass2Manning)?e.averageClass2Manning:Math.floor(e.averageClass2Manning):t.averageClass2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"averageTotalManning"in e?t.averageTotalManning=null===e.averageTotalManning?null:"number"!=typeof e.averageTotalManning?Number.isInteger(Number(e.averageTotalManning))?Number(e.averageTotalManning):Math.floor(Number(e.averageTotalManning)):Number.isInteger(e.averageTotalManning)?e.averageTotalManning:Math.floor(e.averageTotalManning):t.averageTotalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalHoursWorked"in e?t.totalHoursWorked="number"!=typeof e.totalHoursWorked?Number(e.totalHoursWorked):e.totalHoursWorked:t.totalHoursWorked=0,"object"===i(e)&&"totalHoursWorkedExcludingDowntime"in e?t.totalHoursWorkedExcludingDowntime="number"!=typeof e.totalHoursWorkedExcludingDowntime?Number(e.totalHoursWorkedExcludingDowntime):e.totalHoursWorkedExcludingDowntime:t.totalHoursWorkedExcludingDowntime=0,"object"===i(e)&&"totalHoursPaid"in e?t.totalHoursPaid="number"!=typeof e.totalHoursPaid?Number(e.totalHoursPaid):e.totalHoursPaid:t.totalHoursPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"class1TraysPerHour"in e?t.class1TraysPerHour="number"!=typeof e.class1TraysPerHour?Number.isInteger(Number(e.class1TraysPerHour))?Number(e.class1TraysPerHour):Math.floor(Number(e.class1TraysPerHour)):Number.isInteger(e.class1TraysPerHour)?e.class1TraysPerHour:Math.floor(e.class1TraysPerHour):t.class1TraysPerHour=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHour"in e?t.class1TraysPerManHour=null===e.class1TraysPerManHour?null:"number"!=typeof e.class1TraysPerManHour?Number(e.class1TraysPerManHour):e.class1TraysPerManHour:t.class1TraysPerManHour=null,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHour"in e?t.class2TraysPerHour="number"!=typeof e.class2TraysPerHour?Number.isInteger(Number(e.class2TraysPerHour))?Number(e.class2TraysPerHour):Math.floor(Number(e.class2TraysPerHour)):Number.isInteger(e.class2TraysPerHour)?e.class2TraysPerHour:Math.floor(e.class2TraysPerHour):t.class2TraysPerHour=0,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHour"in e?t.class2TraysPerManHour=null===e.class2TraysPerManHour?null:"number"!=typeof e.class2TraysPerManHour?Number(e.class2TraysPerManHour):e.class2TraysPerManHour:t.class2TraysPerManHour=null,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,t;var t})):t.packruns=[],"object"===i(e)&&"shifts"in e?t.shifts=!0!==Array.isArray(e.shifts)?[]:e.shifts.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===i(e)&&"lineManagerName"in e?t.lineManagerName=null===e.lineManagerName?null:"string"!=typeof e.lineManagerName?String(e.lineManagerName):e.lineManagerName:t.lineManagerName=null,"object"===i(e)&&"qualityManagerName"in e?t.qualityManagerName=null===e.qualityManagerName?null:"string"!=typeof e.qualityManagerName?String(e.qualityManagerName):e.qualityManagerName:t.qualityManagerName=null,"object"===i(e)&&"varietyIds"in e?t.varietyIds=!0!==Array.isArray(e.varietyIds)?[]:e.varietyIds.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyIds=[],"object"===i(e)&&"varietyCodes"in e?t.varietyCodes=!0!==Array.isArray(e.varietyCodes)?[]:e.varietyCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyCodes=[],"object"===i(e)&&"growingMethodIds"in e?t.growingMethodIds=!0!==Array.isArray(e.growingMethodIds)?[]:e.growingMethodIds.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodIds=[],"object"===i(e)&&"growingMethodCodes"in e?t.growingMethodCodes=!0!==Array.isArray(e.growingMethodCodes)?[]:e.growingMethodCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodCodes=[],"object"===i(e)&&"binsTippedTarget"in e?t.binsTippedTarget="number"!=typeof e.binsTippedTarget?Number.isInteger(Number(e.binsTippedTarget))?Number(e.binsTippedTarget):Math.floor(Number(e.binsTippedTarget)):Number.isInteger(e.binsTippedTarget)?e.binsTippedTarget:Math.floor(e.binsTippedTarget):t.binsTippedTarget=0,"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"binsTippedPerHour"in e?t.binsTippedPerHour="number"!=typeof e.binsTippedPerHour?Number.isInteger(Number(e.binsTippedPerHour))?Number(e.binsTippedPerHour):Math.floor(Number(e.binsTippedPerHour)):Number.isInteger(e.binsTippedPerHour)?e.binsTippedPerHour:Math.floor(e.binsTippedPerHour):t.binsTippedPerHour=0,"object"===i(e)&&"binsTippedPerHourExcludingDowntime"in e?t.binsTippedPerHourExcludingDowntime="number"!=typeof e.binsTippedPerHourExcludingDowntime?Number.isInteger(Number(e.binsTippedPerHourExcludingDowntime))?Number(e.binsTippedPerHourExcludingDowntime):Math.floor(Number(e.binsTippedPerHourExcludingDowntime)):Number.isInteger(e.binsTippedPerHourExcludingDowntime)?e.binsTippedPerHourExcludingDowntime:Math.floor(e.binsTippedPerHourExcludingDowntime):t.binsTippedPerHourExcludingDowntime=0,"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"averageClass1Manning"in e?t.averageClass1Manning=null===e.averageClass1Manning?null:"number"!=typeof e.averageClass1Manning?Number.isInteger(Number(e.averageClass1Manning))?Number(e.averageClass1Manning):Math.floor(Number(e.averageClass1Manning)):Number.isInteger(e.averageClass1Manning)?e.averageClass1Manning:Math.floor(e.averageClass1Manning):t.averageClass1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"averageClass2Manning"in e?t.averageClass2Manning=null===e.averageClass2Manning?null:"number"!=typeof e.averageClass2Manning?Number.isInteger(Number(e.averageClass2Manning))?Number(e.averageClass2Manning):Math.floor(Number(e.averageClass2Manning)):Number.isInteger(e.averageClass2Manning)?e.averageClass2Manning:Math.floor(e.averageClass2Manning):t.averageClass2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"averageTotalManning"in e?t.averageTotalManning=null===e.averageTotalManning?null:"number"!=typeof e.averageTotalManning?Number.isInteger(Number(e.averageTotalManning))?Number(e.averageTotalManning):Math.floor(Number(e.averageTotalManning)):Number.isInteger(e.averageTotalManning)?e.averageTotalManning:Math.floor(e.averageTotalManning):t.averageTotalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalHoursWorked"in e?t.totalHoursWorked="number"!=typeof e.totalHoursWorked?Number(e.totalHoursWorked):e.totalHoursWorked:t.totalHoursWorked=0,"object"===i(e)&&"totalHoursWorkedExcludingDowntime"in e?t.totalHoursWorkedExcludingDowntime="number"!=typeof e.totalHoursWorkedExcludingDowntime?Number(e.totalHoursWorkedExcludingDowntime):e.totalHoursWorkedExcludingDowntime:t.totalHoursWorkedExcludingDowntime=0,"object"===i(e)&&"totalHoursPaid"in e?t.totalHoursPaid="number"!=typeof e.totalHoursPaid?Number(e.totalHoursPaid):e.totalHoursPaid:t.totalHoursPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number.isInteger(Number(e.totalClass1Trays))?Number(e.totalClass1Trays):Math.floor(Number(e.totalClass1Trays)):Number.isInteger(e.totalClass1Trays)?e.totalClass1Trays:Math.floor(e.totalClass1Trays):t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number.isInteger(Number(e.totalClass2Trays))?Number(e.totalClass2Trays):Math.floor(Number(e.totalClass2Trays)):Number.isInteger(e.totalClass2Trays)?e.totalClass2Trays:Math.floor(e.totalClass2Trays):t.totalClass2Trays=0,"object"===i(e)&&"class1TraysPerHour"in e?t.class1TraysPerHour="number"!=typeof e.class1TraysPerHour?Number.isInteger(Number(e.class1TraysPerHour))?Number(e.class1TraysPerHour):Math.floor(Number(e.class1TraysPerHour)):Number.isInteger(e.class1TraysPerHour)?e.class1TraysPerHour:Math.floor(e.class1TraysPerHour):t.class1TraysPerHour=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHour"in e?t.class1TraysPerManHour=null===e.class1TraysPerManHour?null:"number"!=typeof e.class1TraysPerManHour?Number(e.class1TraysPerManHour):e.class1TraysPerManHour:t.class1TraysPerManHour=null,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHour"in e?t.class2TraysPerHour="number"!=typeof e.class2TraysPerHour?Number.isInteger(Number(e.class2TraysPerHour))?Number(e.class2TraysPerHour):Math.floor(Number(e.class2TraysPerHour)):Number.isInteger(e.class2TraysPerHour)?e.class2TraysPerHour:Math.floor(e.class2TraysPerHour):t.class2TraysPerHour=0,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHour"in e?t.class2TraysPerManHour=null===e.class2TraysPerManHour?null:"number"!=typeof e.class2TraysPerManHour?Number(e.class2TraysPerManHour):e.class2TraysPerManHour:t.class2TraysPerManHour=null,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,"object"===i(e)&&"averageClass1Percentage"in e?t.averageClass1Percentage=null===e.averageClass1Percentage?null:"number"!=typeof e.averageClass1Percentage?Number(e.averageClass1Percentage):e.averageClass1Percentage:t.averageClass1Percentage=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,"object"===i(e)&&"satisfactionRating"in e?t.satisfactionRating=null===e.satisfactionRating?null:"number"!=typeof e.satisfactionRating?Number.isInteger(Number(e.satisfactionRating))?Number(e.satisfactionRating):Math.floor(Number(e.satisfactionRating)):Number.isInteger(e.satisfactionRating)?e.satisfactionRating:Math.floor(e.satisfactionRating):t.satisfactionRating=null,"object"===i(e)&&"keyCelebration"in e?t.keyCelebration=null===e.keyCelebration?null:"string"!=typeof e.keyCelebration?String(e.keyCelebration):e.keyCelebration:t.keyCelebration=null,"object"===i(e)&&"keyChallenge"in e?t.keyChallenge=null===e.keyChallenge?null:"string"!=typeof e.keyChallenge?String(e.keyChallenge):e.keyChallenge:t.keyChallenge=null,t;var t})):t.shifts=[],"object"===i(e)&&"shiftHourlyEntries"in e?t.shiftHourlyEntries=!0!==Array.isArray(e.shiftHourlyEntries)?[]:e.shiftHourlyEntries.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"lineManagerName"in e?t.lineManagerName=null===e.lineManagerName?null:"string"!=typeof e.lineManagerName?String(e.lineManagerName):e.lineManagerName:t.lineManagerName=null,"object"===i(e)&&"qualityManagerName"in e?t.qualityManagerName=null===e.qualityManagerName?null:"string"!=typeof e.qualityManagerName?String(e.qualityManagerName):e.qualityManagerName:t.qualityManagerName=null,"object"===i(e)&&"varietyIds"in e?t.varietyIds=!0!==Array.isArray(e.varietyIds)?[]:e.varietyIds.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyIds=[],"object"===i(e)&&"varietyCodes"in e?t.varietyCodes=!0!==Array.isArray(e.varietyCodes)?[]:e.varietyCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.varietyCodes=[],"object"===i(e)&&"growingMethodIds"in e?t.growingMethodIds=!0!==Array.isArray(e.growingMethodIds)?[]:e.growingMethodIds.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodIds=[],"object"===i(e)&&"growingMethodCodes"in e?t.growingMethodCodes=!0!==Array.isArray(e.growingMethodCodes)?[]:e.growingMethodCodes.map((function(e){return"string"!=typeof e?String(e):e})):t.growingMethodCodes=[],"object"===i(e)&&"totalBinsTipped"in e?t.totalBinsTipped="number"!=typeof e.totalBinsTipped?Number.isInteger(Number(e.totalBinsTipped))?Number(e.totalBinsTipped):Math.floor(Number(e.totalBinsTipped)):Number.isInteger(e.totalBinsTipped)?e.totalBinsTipped:Math.floor(e.totalBinsTipped):t.totalBinsTipped=0,"object"===i(e)&&"totalProductionTime"in e?t.totalProductionTime="number"!=typeof e.totalProductionTime?Number.isInteger(Number(e.totalProductionTime))?Number(e.totalProductionTime):Math.floor(Number(e.totalProductionTime)):Number.isInteger(e.totalProductionTime)?e.totalProductionTime:Math.floor(e.totalProductionTime):t.totalProductionTime=0,"object"===i(e)&&"totalScheduledBreakTime"in e?t.totalScheduledBreakTime="number"!=typeof e.totalScheduledBreakTime?Number.isInteger(Number(e.totalScheduledBreakTime))?Number(e.totalScheduledBreakTime):Math.floor(Number(e.totalScheduledBreakTime)):Number.isInteger(e.totalScheduledBreakTime)?e.totalScheduledBreakTime:Math.floor(e.totalScheduledBreakTime):t.totalScheduledBreakTime=0,"object"===i(e)&&"totalDowntime"in e?t.totalDowntime="number"!=typeof e.totalDowntime?Number.isInteger(Number(e.totalDowntime))?Number(e.totalDowntime):Math.floor(Number(e.totalDowntime)):Number.isInteger(e.totalDowntime)?e.totalDowntime:Math.floor(e.totalDowntime):t.totalDowntime=0,"object"===i(e)&&"downtimeEventsCount"in e?t.downtimeEventsCount="number"!=typeof e.downtimeEventsCount?Number.isInteger(Number(e.downtimeEventsCount))?Number(e.downtimeEventsCount):Math.floor(Number(e.downtimeEventsCount)):Number.isInteger(e.downtimeEventsCount)?e.downtimeEventsCount:Math.floor(e.downtimeEventsCount):t.downtimeEventsCount=0,"object"===i(e)&&"downtimeEventsAverageDuration"in e?t.downtimeEventsAverageDuration="number"!=typeof e.downtimeEventsAverageDuration?Number.isInteger(Number(e.downtimeEventsAverageDuration))?Number(e.downtimeEventsAverageDuration):Math.floor(Number(e.downtimeEventsAverageDuration)):Number.isInteger(e.downtimeEventsAverageDuration)?e.downtimeEventsAverageDuration:Math.floor(e.downtimeEventsAverageDuration):t.downtimeEventsAverageDuration=0,"object"===i(e)&&"class1ManningTarget"in e?t.class1ManningTarget=null===e.class1ManningTarget?null:"number"!=typeof e.class1ManningTarget?Number.isInteger(Number(e.class1ManningTarget))?Number(e.class1ManningTarget):Math.floor(Number(e.class1ManningTarget)):Number.isInteger(e.class1ManningTarget)?e.class1ManningTarget:Math.floor(e.class1ManningTarget):t.class1ManningTarget=null,"object"===i(e)&&"class1Manning"in e?t.class1Manning=null===e.class1Manning?null:"number"!=typeof e.class1Manning?Number.isInteger(Number(e.class1Manning))?Number(e.class1Manning):Math.floor(Number(e.class1Manning)):Number.isInteger(e.class1Manning)?e.class1Manning:Math.floor(e.class1Manning):t.class1Manning=null,"object"===i(e)&&"class1ManningPercentage"in e?t.class1ManningPercentage=null===e.class1ManningPercentage?null:"number"!=typeof e.class1ManningPercentage?Number(e.class1ManningPercentage):e.class1ManningPercentage:t.class1ManningPercentage=null,"object"===i(e)&&"class2ManningTarget"in e?t.class2ManningTarget=null===e.class2ManningTarget?null:"number"!=typeof e.class2ManningTarget?Number.isInteger(Number(e.class2ManningTarget))?Number(e.class2ManningTarget):Math.floor(Number(e.class2ManningTarget)):Number.isInteger(e.class2ManningTarget)?e.class2ManningTarget:Math.floor(e.class2ManningTarget):t.class2ManningTarget=null,"object"===i(e)&&"class2Manning"in e?t.class2Manning=null===e.class2Manning?null:"number"!=typeof e.class2Manning?Number.isInteger(Number(e.class2Manning))?Number(e.class2Manning):Math.floor(Number(e.class2Manning)):Number.isInteger(e.class2Manning)?e.class2Manning:Math.floor(e.class2Manning):t.class2Manning=null,"object"===i(e)&&"class2ManningPercentage"in e?t.class2ManningPercentage=null===e.class2ManningPercentage?null:"number"!=typeof e.class2ManningPercentage?Number(e.class2ManningPercentage):e.class2ManningPercentage:t.class2ManningPercentage=null,"object"===i(e)&&"totalManningTarget"in e?t.totalManningTarget=null===e.totalManningTarget?null:"number"!=typeof e.totalManningTarget?Number.isInteger(Number(e.totalManningTarget))?Number(e.totalManningTarget):Math.floor(Number(e.totalManningTarget)):Number.isInteger(e.totalManningTarget)?e.totalManningTarget:Math.floor(e.totalManningTarget):t.totalManningTarget=null,"object"===i(e)&&"totalManning"in e?t.totalManning=null===e.totalManning?null:"number"!=typeof e.totalManning?Number.isInteger(Number(e.totalManning))?Number(e.totalManning):Math.floor(Number(e.totalManning)):Number.isInteger(e.totalManning)?e.totalManning:Math.floor(e.totalManning):t.totalManning=null,"object"===i(e)&&"totalManningPercentage"in e?t.totalManningPercentage=null===e.totalManningPercentage?null:"number"!=typeof e.totalManningPercentage?Number(e.totalManningPercentage):e.totalManningPercentage:t.totalManningPercentage=null,"object"===i(e)&&"costPerManningUnitHour"in e?t.costPerManningUnitHour=null===e.costPerManningUnitHour?null:"number"!=typeof e.costPerManningUnitHour?Number(e.costPerManningUnitHour):e.costPerManningUnitHour:t.costPerManningUnitHour=null,"object"===i(e)&&"totalMinutesWorked"in e?t.totalMinutesWorked="number"!=typeof e.totalMinutesWorked?Number(e.totalMinutesWorked):e.totalMinutesWorked:t.totalMinutesWorked=0,"object"===i(e)&&"totalMinutesWorkedExcludingDowntime"in e?t.totalMinutesWorkedExcludingDowntime="number"!=typeof e.totalMinutesWorkedExcludingDowntime?Number(e.totalMinutesWorkedExcludingDowntime):e.totalMinutesWorkedExcludingDowntime:t.totalMinutesWorkedExcludingDowntime=0,"object"===i(e)&&"totalMinutesPaid"in e?t.totalMinutesPaid="number"!=typeof e.totalMinutesPaid?Number(e.totalMinutesPaid):e.totalMinutesPaid:t.totalMinutesPaid=0,"object"===i(e)&&"class1TotalManningCost"in e?t.class1TotalManningCost=null===e.class1TotalManningCost?null:"number"!=typeof e.class1TotalManningCost?Number(e.class1TotalManningCost):e.class1TotalManningCost:t.class1TotalManningCost=null,"object"===i(e)&&"class2TotalManningCost"in e?t.class2TotalManningCost=null===e.class2TotalManningCost?null:"number"!=typeof e.class2TotalManningCost?Number(e.class2TotalManningCost):e.class2TotalManningCost:t.class2TotalManningCost=null,"object"===i(e)&&"class1DowntimeManningCost"in e?t.class1DowntimeManningCost=null===e.class1DowntimeManningCost?null:"number"!=typeof e.class1DowntimeManningCost?Number(e.class1DowntimeManningCost):e.class1DowntimeManningCost:t.class1DowntimeManningCost=null,"object"===i(e)&&"class2DowntimeManningCost"in e?t.class2DowntimeManningCost=null===e.class2DowntimeManningCost?null:"number"!=typeof e.class2DowntimeManningCost?Number(e.class2DowntimeManningCost):e.class2DowntimeManningCost:t.class2DowntimeManningCost=null,"object"===i(e)&&"class1CostPerTrayTarget"in e?t.class1CostPerTrayTarget=null===e.class1CostPerTrayTarget?null:"number"!=typeof e.class1CostPerTrayTarget?Number(e.class1CostPerTrayTarget):e.class1CostPerTrayTarget:t.class1CostPerTrayTarget=null,"object"===i(e)&&"class1CostPerTrayActual"in e?t.class1CostPerTrayActual=null===e.class1CostPerTrayActual?null:"number"!=typeof e.class1CostPerTrayActual?Number(e.class1CostPerTrayActual):e.class1CostPerTrayActual:t.class1CostPerTrayActual=null,"object"===i(e)&&"class2CostPerTrayActual"in e?t.class2CostPerTrayActual=null===e.class2CostPerTrayActual?null:"number"!=typeof e.class2CostPerTrayActual?Number(e.class2CostPerTrayActual):e.class2CostPerTrayActual:t.class2CostPerTrayActual=null,"object"===i(e)&&"totalClass1Trays"in e?t.totalClass1Trays="number"!=typeof e.totalClass1Trays?Number.isInteger(Number(e.totalClass1Trays))?Number(e.totalClass1Trays):Math.floor(Number(e.totalClass1Trays)):Number.isInteger(e.totalClass1Trays)?e.totalClass1Trays:Math.floor(e.totalClass1Trays):t.totalClass1Trays=0,"object"===i(e)&&"totalClass2Trays"in e?t.totalClass2Trays="number"!=typeof e.totalClass2Trays?Number.isInteger(Number(e.totalClass2Trays))?Number(e.totalClass2Trays):Math.floor(Number(e.totalClass2Trays)):Number.isInteger(e.totalClass2Trays)?e.totalClass2Trays:Math.floor(e.totalClass2Trays):t.totalClass2Trays=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntime"in e?t.class1TraysPerHourExcludingDowntime="number"!=typeof e.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntime))?Number(e.class1TraysPerHourExcludingDowntime):Math.floor(Number(e.class1TraysPerHourExcludingDowntime)):Number.isInteger(e.class1TraysPerHourExcludingDowntime)?e.class1TraysPerHourExcludingDowntime:Math.floor(e.class1TraysPerHourExcludingDowntime):t.class1TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class1TraysPerHourExcludingDowntimeTarget"in e?t.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof e.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(e.class1TraysPerHourExcludingDowntimeTarget))?Number(e.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(e.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(e.class1TraysPerHourExcludingDowntimeTarget)?e.class1TraysPerHourExcludingDowntimeTarget:Math.floor(e.class1TraysPerHourExcludingDowntimeTarget):t.class1TraysPerHourExcludingDowntimeTarget=0,"object"===i(e)&&"class1TraysPerManHourExcludingDowntime"in e?t.class1TraysPerManHourExcludingDowntime=null===e.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class1TraysPerManHourExcludingDowntime?Number(e.class1TraysPerManHourExcludingDowntime):e.class1TraysPerManHourExcludingDowntime:t.class1TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class2TraysPerHourExcludingDowntime"in e?t.class2TraysPerHourExcludingDowntime="number"!=typeof e.class2TraysPerHourExcludingDowntime?Number.isInteger(Number(e.class2TraysPerHourExcludingDowntime))?Number(e.class2TraysPerHourExcludingDowntime):Math.floor(Number(e.class2TraysPerHourExcludingDowntime)):Number.isInteger(e.class2TraysPerHourExcludingDowntime)?e.class2TraysPerHourExcludingDowntime:Math.floor(e.class2TraysPerHourExcludingDowntime):t.class2TraysPerHourExcludingDowntime=0,"object"===i(e)&&"class2TraysPerManHourExcludingDowntime"in e?t.class2TraysPerManHourExcludingDowntime=null===e.class2TraysPerManHourExcludingDowntime?null:"number"!=typeof e.class2TraysPerManHourExcludingDowntime?Number(e.class2TraysPerManHourExcludingDowntime):e.class2TraysPerManHourExcludingDowntime:t.class2TraysPerManHourExcludingDowntime=null,"object"===i(e)&&"class1LayeredPercentageTarget"in e?t.class1LayeredPercentageTarget=null===e.class1LayeredPercentageTarget?null:"number"!=typeof e.class1LayeredPercentageTarget?Number(e.class1LayeredPercentageTarget):e.class1LayeredPercentageTarget:t.class1LayeredPercentageTarget=null,"object"===i(e)&&"class1LayeredPercentage"in e?t.class1LayeredPercentage=null===e.class1LayeredPercentage?null:"number"!=typeof e.class1LayeredPercentage?Number(e.class1LayeredPercentage):e.class1LayeredPercentage:t.class1LayeredPercentage=null,"object"===i(e)&&"class1BulkPercentage"in e?t.class1BulkPercentage=null===e.class1BulkPercentage?null:"number"!=typeof e.class1BulkPercentage?Number(e.class1BulkPercentage):e.class1BulkPercentage:t.class1BulkPercentage=null,"object"===i(e)&&"averageClass1Percentage"in e?t.averageClass1Percentage=null===e.averageClass1Percentage?null:"number"!=typeof e.averageClass1Percentage?Number(e.averageClass1Percentage):e.averageClass1Percentage:t.averageClass1Percentage=null,"object"===i(e)&&"qualityR600IdealSamplesTarget"in e?t.qualityR600IdealSamplesTarget=null===e.qualityR600IdealSamplesTarget?null:"number"!=typeof e.qualityR600IdealSamplesTarget?Number(e.qualityR600IdealSamplesTarget):e.qualityR600IdealSamplesTarget:t.qualityR600IdealSamplesTarget=null,"object"===i(e)&&"qualityR600IdealSamplesActual"in e?t.qualityR600IdealSamplesActual=null===e.qualityR600IdealSamplesActual?null:"number"!=typeof e.qualityR600IdealSamplesActual?Number(e.qualityR600IdealSamplesActual):e.qualityR600IdealSamplesActual:t.qualityR600IdealSamplesActual=null,"object"===i(e)&&"primaryIssueCategory"in e?t.primaryIssueCategory=null===e.primaryIssueCategory?null:"string"!=typeof e.primaryIssueCategory?String(e.primaryIssueCategory):e.primaryIssueCategory:t.primaryIssueCategory=null,"object"===i(e)&&"primaryIssueTag"in e?t.primaryIssueTag=null===e.primaryIssueTag?null:"string"!=typeof e.primaryIssueTag?String(e.primaryIssueTag):e.primaryIssueTag:t.primaryIssueTag=null,"object"===i(e)&&"primaryIssuePercentage"in e?t.primaryIssuePercentage=null===e.primaryIssuePercentage?null:"number"!=typeof e.primaryIssuePercentage?Number(e.primaryIssuePercentage):e.primaryIssuePercentage:t.primaryIssuePercentage=null,"object"===i(e)&&"secondaryIssueCategory"in e?t.secondaryIssueCategory=null===e.secondaryIssueCategory?null:"string"!=typeof e.secondaryIssueCategory?String(e.secondaryIssueCategory):e.secondaryIssueCategory:t.secondaryIssueCategory=null,"object"===i(e)&&"secondaryIssueTag"in e?t.secondaryIssueTag=null===e.secondaryIssueTag?null:"string"!=typeof e.secondaryIssueTag?String(e.secondaryIssueTag):e.secondaryIssueTag:t.secondaryIssueTag=null,"object"===i(e)&&"secondaryIssuePercentage"in e?t.secondaryIssuePercentage=null===e.secondaryIssuePercentage?null:"number"!=typeof e.secondaryIssuePercentage?Number(e.secondaryIssuePercentage):e.secondaryIssuePercentage:t.secondaryIssuePercentage=null,"object"===i(e)&&"nextHourFocus"in e?t.nextHourFocus=null===e.nextHourFocus?null:"string"!=typeof e.nextHourFocus?String(e.nextHourFocus):e.nextHourFocus:t.nextHourFocus=null,t;var t})):t.shiftHourlyEntries=[],"object"===i(e)&&"downtimeEvents"in e?t.downtimeEvents=!0!==Array.isArray(e.downtimeEvents)?[]:e.downtimeEvents.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"shiftId"in e?t.shiftId="string"!=typeof e.shiftId?String(e.shiftId):e.shiftId:t.shiftId="","object"===i(e)&&"shiftType"in e?t.shiftType="string"!=typeof e.shiftType?String(e.shiftType):e.shiftType:t.shiftType="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"reasonCategory"in e?t.reasonCategory=null===e.reasonCategory?null:"string"!=typeof e.reasonCategory?String(e.reasonCategory):e.reasonCategory:t.reasonCategory=null,"object"===i(e)&&"reasonTag"in e?t.reasonTag=null===e.reasonTag?null:"string"!=typeof e.reasonTag?String(e.reasonTag):e.reasonTag:t.reasonTag=null,"object"===i(e)&&"remedyAction"in e?t.remedyAction=null===e.remedyAction?null:"string"!=typeof e.remedyAction?String(e.remedyAction):e.remedyAction:t.remedyAction=null,t;var t})):t.downtimeEvents=[],"object"===i(e)&&"packagingConsumption"in e?t.packagingConsumption=!0!==Array.isArray(e.packagingConsumption)?[]:e.packagingConsumption.map((function(e){return t={},"object"===i(e)&&"siteId"in e?t.siteId="number"!=typeof e.siteId?Number.isInteger(Number(e.siteId))?Number(e.siteId):Math.floor(Number(e.siteId)):Number.isInteger(e.siteId)?e.siteId:Math.floor(e.siteId):t.siteId=0,"object"===i(e)&&"siteName"in e?t.siteName="string"!=typeof e.siteName?String(e.siteName):e.siteName:t.siteName="","object"===i(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===i(e)&&"packingLineName"in e?t.packingLineName="string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName="","object"===i(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===i(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===i(e)&&"varietyId"in e?t.varietyId="string"!=typeof e.varietyId?String(e.varietyId):e.varietyId:t.varietyId="","object"===i(e)&&"varietyCode"in e?t.varietyCode="string"!=typeof e.varietyCode?String(e.varietyCode):e.varietyCode:t.varietyCode="","object"===i(e)&&"isoWeek"in e?t.isoWeek="number"!=typeof e.isoWeek?Number.isInteger(Number(e.isoWeek))?Number(e.isoWeek):Math.floor(Number(e.isoWeek)):Number.isInteger(e.isoWeek)?e.isoWeek:Math.floor(e.isoWeek):t.isoWeek=0,"object"===i(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===i(e)&&"endTimestamp"in e?t.endTimestamp=null===e.endTimestamp?null:"string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=null,"object"===i(e)&&"packType"in e?t.packType="string"!=typeof e.packType?String(e.packType):e.packType:t.packType="","object"===i(e)&&"quantity"in e?t.quantity="number"!=typeof e.quantity?Number.isInteger(Number(e.quantity))?Number(e.quantity):Math.floor(Number(e.quantity)):Number.isInteger(e.quantity)?e.quantity:Math.floor(e.quantity):t.quantity=0,t;var t})):t.packagingConsumption=[],t);r(n)})).catch((function(e){return a(e)}))}))}},{key:"excelExport",value:function(){return new Promise((function(e,t){o.default.getRequest("/packhouse/production-data-export/excel").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"csvExport",value:function(){return new Promise((function(e,t){o.default.getRequest("/packhouse/production-data-export/csv").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},7236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2565));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bin-cards"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2847));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-bins/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-bins"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-bins"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3720));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/bin-tip-weights/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/bin-tip-weights"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/bin-tip-weights"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},9477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3428));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-batches"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4601));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizers/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizers"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizers"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},5785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1237));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-product-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1425));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-type-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4031));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-outlet-types"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9256));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/compac-sizer-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6865));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/downtime-events/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/downtime-events"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/downtime-events"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},9880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4461));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshpack-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},2071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3794));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/freshquality-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},6304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(7462));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/growing-methods/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/growing-methods"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/growing-methods"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1938));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-batches"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2276));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizers/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizers"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizers"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6982));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-outlet-article-changes"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8544));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/maf-sizer-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5162));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/pack-types/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/pack-types"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/pack-types"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8792));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packing-lines/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packing-lines"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packing-lines"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},9292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3465));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getSummaryReport",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/summaryReport")).then((function(e){var t,r,o,i=(o={},"object"===a(e)&&"id"in e?o.id="string"!=typeof e.id?String(e.id):e.id:o.id="","object"===a(e)&&"name"in e?o.name="string"!=typeof e.name?String(e.name):e.name:o.name="","object"===a(e)&&"createdTimestamp"in e?o.createdTimestamp="string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):o.createdTimestamp=new Date,"object"===a(e)&&"growerName"in e?o.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:o.growerName="","object"===a(e)&&"growerCode"in e?o.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:o.growerCode="","object"===a(e)&&"maturityArea"in e?o.maturityArea=null===e.maturityArea?null:"string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:o.maturityArea=null,"object"===a(e)&&"startTimestamp"in e?o.startTimestamp=null===e.startTimestamp?null:"string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):o.startTimestamp=null,"object"===a(e)&&"finishTimestamp"in e?o.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):o.finishTimestamp=null,"object"===a(e)&&"allocatedBins"in e?o.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):o.allocatedBins=0,"object"===a(e)&&"timeBatches"in e?o.timeBatches=!0!==Array.isArray(e.timeBatches)?[]:e.timeBatches.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t})):o.timeBatches=[],"object"===a(e)&&"variety"in e?o.variety=(t={},"object"===a(e.variety)&&"id"in e.variety?t.id="string"!=typeof e.variety.id?String(e.variety.id):e.variety.id:t.id="","object"===a(e.variety)&&"code"in e.variety?t.code="string"!=typeof e.variety.code?String(e.variety.code):e.variety.code:t.code="","object"===a(e.variety)&&"name"in e.variety?t.name="string"!=typeof e.variety.name?String(e.variety.name):e.variety.name:t.name="","object"===a(e.variety)&&"description"in e.variety?t.description="string"!=typeof e.variety.description?String(e.variety.description):e.variety.description:t.description="","object"===a(e.variety)&&"image"in e.variety?t.image="string"!=typeof e.variety.image?String(e.variety.image):e.variety.image:t.image="",t):o.variety={id:"",code:"",name:"",description:"",image:""},"object"===a(e)&&"growingMethod"in e?o.growingMethod=(r={},"object"===a(e.growingMethod)&&"id"in e.growingMethod?r.id="string"!=typeof e.growingMethod.id?String(e.growingMethod.id):e.growingMethod.id:r.id="","object"===a(e.growingMethod)&&"code"in e.growingMethod?r.code="string"!=typeof e.growingMethod.code?String(e.growingMethod.code):e.growingMethod.code:r.code="","object"===a(e.growingMethod)&&"name"in e.growingMethod?r.name="string"!=typeof e.growingMethod.name?String(e.growingMethod.name):e.growingMethod.name:r.name="","object"===a(e.growingMethod)&&"description"in e.growingMethod?r.description="string"!=typeof e.growingMethod.description?String(e.growingMethod.description):e.growingMethod.description:r.description="",r):o.growingMethod={id:"",code:"",name:"",description:""},"object"===a(e)&&"packingLineId"in e?o.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:o.packingLineId="","object"===a(e)&&"packingLineName"in e?o.packingLineName=null===e.packingLineName?null:"string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:o.packingLineName=null,"object"===a(e)&&"classTypes"in e?o.classTypes=!0!==Array.isArray(e.classTypes)?[]:e.classTypes.map((function(e){return t={},"object"===a(e)&&"classType"in e?t.classType="string"!=typeof e.classType?String(e.classType):e.classType:t.classType="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="",t;var t})):o.classTypes=[],"object"===a(e)&&"compacSizers"in e?o.compacSizers=!0!==Array.isArray(e.compacSizers)?[]:e.compacSizers.map((function(e){return"object"!==a(e)?Object(e):e})):o.compacSizers=[],"object"===a(e)&&"sizers"in e?o.sizers=!0!==Array.isArray(e.sizers)?[]:e.sizers.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"batchSummaries"in e?t.batchSummaries=!0!==Array.isArray(e.batchSummaries)?[]:e.batchSummaries.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"varietyName"in e?t.varietyName="string"!=typeof e.varietyName?String(e.varietyName):e.varietyName:t.varietyName="","object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===a(e)&&"totalFruitCount"in e?t.totalFruitCount="number"!=typeof e.totalFruitCount?Number.isInteger(Number(e.totalFruitCount))?Number(e.totalFruitCount):Math.floor(Number(e.totalFruitCount)):Number.isInteger(e.totalFruitCount)?e.totalFruitCount:Math.floor(e.totalFruitCount):t.totalFruitCount=0,"object"===a(e)&&"totalFruitWeight"in e?t.totalFruitWeight="number"!=typeof e.totalFruitWeight?Number(e.totalFruitWeight):e.totalFruitWeight:t.totalFruitWeight=0,"object"===a(e)&&"recycleFruitCount"in e?t.recycleFruitCount="number"!=typeof e.recycleFruitCount?Number.isInteger(Number(e.recycleFruitCount))?Number(e.recycleFruitCount):Math.floor(Number(e.recycleFruitCount)):Number.isInteger(e.recycleFruitCount)?e.recycleFruitCount:Math.floor(e.recycleFruitCount):t.recycleFruitCount=0,"object"===a(e)&&"recycleFruitWeight"in e?t.recycleFruitWeight="number"!=typeof e.recycleFruitWeight?Number(e.recycleFruitWeight):e.recycleFruitWeight:t.recycleFruitWeight=0,"object"===a(e)&&"recyclePercentage"in e?t.recyclePercentage="number"!=typeof e.recyclePercentage?Number(e.recyclePercentage):e.recyclePercentage:t.recyclePercentage=0,t;var t})):t.batchSummaries=[],t;var t})):o.sizers=[],"object"===a(e)&&"rejectBinSummary"in e?o.rejectBinSummary="object"!==a(e.rejectBinSummary)?Object(e.rejectBinSummary):e.rejectBinSummary:o.rejectBinSummary={},"object"===a(e)&&"binTipSummary"in e?o.binTipSummary="object"!==a(e.binTipSummary)?Object(e.binTipSummary):e.binTipSummary:o.binTipSummary={},"object"===a(e)&&"classTypeTotals"in e?o.classTypeTotals=!0!==Array.isArray(e.classTypeTotals)?[]:e.classTypeTotals.map((function(e){return"object"!==a(e)?Object(e):e})):o.classTypeTotals=[],"object"===a(e)&&"class1SizerSummary"in e?o.class1SizerSummary=!0!==Array.isArray(e.class1SizerSummary)?[]:e.class1SizerSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1SizerSummary=[],"object"===a(e)&&"class1TotalTrays"in e?o.class1TotalTrays="number"!=typeof e.class1TotalTrays?Number(e.class1TotalTrays):e.class1TotalTrays:o.class1TotalTrays=0,"object"===a(e)&&"class1AverageTrayWeight"in e?o.class1AverageTrayWeight="number"!=typeof e.class1AverageTrayWeight?Number(e.class1AverageTrayWeight):e.class1AverageTrayWeight:o.class1AverageTrayWeight=0,"object"===a(e)&&"class1FruitSizeProfile"in e?o.class1FruitSizeProfile=!0!==Array.isArray(e.class1FruitSizeProfile)?[]:e.class1FruitSizeProfile.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1FruitSizeProfile=[],"object"===a(e)&&"class1AverageFruitSize"in e?o.class1AverageFruitSize="number"!=typeof e.class1AverageFruitSize?Number(e.class1AverageFruitSize):e.class1AverageFruitSize:o.class1AverageFruitSize=0,"object"===a(e)&&"class1TraysPerBin"in e?o.class1TraysPerBin="number"!=typeof e.class1TraysPerBin?Number(e.class1TraysPerBin):e.class1TraysPerBin:o.class1TraysPerBin=0,"object"===a(e)&&"class1FreshPackSummary"in e?o.class1FreshPackSummary=!0!==Array.isArray(e.class1FreshPackSummary)?[]:e.class1FreshPackSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class1FreshPackSummary=[],"object"===a(e)&&"class2SizerSummary"in e?o.class2SizerSummary=!0!==Array.isArray(e.class2SizerSummary)?[]:e.class2SizerSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class2SizerSummary=[],"object"===a(e)&&"class2TotalTrays"in e?o.class2TotalTrays="number"!=typeof e.class2TotalTrays?Number(e.class2TotalTrays):e.class2TotalTrays:o.class2TotalTrays=0,"object"===a(e)&&"class2AverageTrayWeight"in e?o.class2AverageTrayWeight="number"!=typeof e.class2AverageTrayWeight?Number(e.class2AverageTrayWeight):e.class2AverageTrayWeight:o.class2AverageTrayWeight=0,"object"===a(e)&&"class2FreshPackSummary"in e?o.class2FreshPackSummary=!0!==Array.isArray(e.class2FreshPackSummary)?[]:e.class2FreshPackSummary.map((function(e){return"object"!==a(e)?Object(e):e})):o.class2FreshPackSummary=[],o);n(i)})).catch((function(e){return o(e)}))}))}},{key:"getInfeedReport",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns/").concat(t,"/infeedReport")).then((function(e){var t,r=(t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===a(e)&&"createdTimestamp"in e?t.createdTimestamp="string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):t.createdTimestamp=new Date,"object"===a(e)&&"startTimestamp"in e?t.startTimestamp=null===e.startTimestamp?null:"string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=null,"object"===a(e)&&"finishTimestamp"in e?t.finishTimestamp=null===e.finishTimestamp?null:"string"!=typeof e.finishTimestamp?new Date(String(e.finishTimestamp)):new Date(e.finishTimestamp):t.finishTimestamp=null,"object"===a(e)&&"packingLineId"in e?t.packingLineId="string"!=typeof e.packingLineId?String(e.packingLineId):e.packingLineId:t.packingLineId="","object"===a(e)&&"packingLineName"in e?t.packingLineName=null===e.packingLineName?null:"string"!=typeof e.packingLineName?String(e.packingLineName):e.packingLineName:t.packingLineName=null,"object"===a(e)&&"growerName"in e?t.growerName="string"!=typeof e.growerName?String(e.growerName):e.growerName:t.growerName="","object"===a(e)&&"growerCode"in e?t.growerCode="string"!=typeof e.growerCode?String(e.growerCode):e.growerCode:t.growerCode="","object"===a(e)&&"maturityArea"in e?t.maturityArea=null===e.maturityArea?null:"string"!=typeof e.maturityArea?String(e.maturityArea):e.maturityArea:t.maturityArea=null,"object"===a(e)&&"allocatedBins"in e?t.allocatedBins="number"!=typeof e.allocatedBins?Number.isInteger(Number(e.allocatedBins))?Number(e.allocatedBins):Math.floor(Number(e.allocatedBins)):Number.isInteger(e.allocatedBins)?e.allocatedBins:Math.floor(e.allocatedBins):t.allocatedBins=0,"object"===a(e)&&"tippedBins"in e?t.tippedBins="number"!=typeof e.tippedBins?Number.isInteger(Number(e.tippedBins))?Number(e.tippedBins):Math.floor(Number(e.tippedBins)):Number.isInteger(e.tippedBins)?e.tippedBins:Math.floor(e.tippedBins):t.tippedBins=0,"object"===a(e)&&"softSortRejectWeight"in e?t.softSortRejectWeight="number"!=typeof e.softSortRejectWeight?Number(e.softSortRejectWeight):e.softSortRejectWeight:t.softSortRejectWeight=0,"object"===a(e)&&"softSortRejectPercentage"in e?t.softSortRejectPercentage="number"!=typeof e.softSortRejectPercentage?Number(e.softSortRejectPercentage):e.softSortRejectPercentage:t.softSortRejectPercentage=0,"object"===a(e)&&"softSortEventsPerBin"in e?t.softSortEventsPerBin="number"!=typeof e.softSortEventsPerBin?Number(e.softSortEventsPerBin):e.softSortEventsPerBin:t.softSortEventsPerBin=0,"object"===a(e)&&"totalSoftSortEventsCount"in e?t.totalSoftSortEventsCount="number"!=typeof e.totalSoftSortEventsCount?Number.isInteger(Number(e.totalSoftSortEventsCount))?Number(e.totalSoftSortEventsCount):Math.floor(Number(e.totalSoftSortEventsCount)):Number.isInteger(e.totalSoftSortEventsCount)?e.totalSoftSortEventsCount:Math.floor(e.totalSoftSortEventsCount):t.totalSoftSortEventsCount=0,"object"===a(e)&&"averageSoftSortEventsDuration"in e?t.averageSoftSortEventsDuration="number"!=typeof e.averageSoftSortEventsDuration?Number(e.averageSoftSortEventsDuration):e.averageSoftSortEventsDuration:t.averageSoftSortEventsDuration=0,"object"===a(e)&&"totalSoftSortEventsDuration"in e?t.totalSoftSortEventsDuration="number"!=typeof e.totalSoftSortEventsDuration?Number(e.totalSoftSortEventsDuration):e.totalSoftSortEventsDuration:t.totalSoftSortEventsDuration=0,"object"===a(e)&&"softSortEventsIsAccurate"in e?t.softSortEventsIsAccurate=null===e.softSortEventsIsAccurate?null:"boolean"!=typeof e.softSortEventsIsAccurate?Boolean(e.softSortEventsIsAccurate):e.softSortEventsIsAccurate:t.softSortEventsIsAccurate=null,"object"===a(e)&&"softSortEventsNotAccurateReason"in e?t.softSortEventsNotAccurateReason=null===e.softSortEventsNotAccurateReason?null:"string"!=typeof e.softSortEventsNotAccurateReason?String(e.softSortEventsNotAccurateReason):e.softSortEventsNotAccurateReason:t.softSortEventsNotAccurateReason=null,t);n(r)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/packruns"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/packruns"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3908));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bins/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bins"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bins"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4738));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-scales/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-scales"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-scales"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},3788:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2519));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/reject-bin-weights/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/reject-bin-weights"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/reject-bin-weights"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},6768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4045));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getSummaryReportPdf",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts/").concat(t,"/summaryReportPdf")).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shifts"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shifts"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8501));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-focus-meetings"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5784));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-hourly-entries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9873));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-quality-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},7980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6896));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-summary-reports/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-summary-reports"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-summary-reports"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1996));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/shift-tasks/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/shift-tasks"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/shift-tasks"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3202));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOneEvents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/").concat(t,"/events"),n).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"beltId"in e?t.beltId="string"!=typeof e.beltId?String(e.beltId):e.beltId:t.beltId="","object"===a(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===a(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===a(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===a(e)&&"endTimestamp"in e?t.endTimestamp="string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=new Date,"object"===a(e)&&"duration"in e?t.duration="number"!=typeof e.duration?Number.isInteger(Number(e.duration))?Number(e.duration):Math.floor(Number(e.duration)):Number.isInteger(e.duration)?e.duration:Math.floor(e.duration):t.duration=0,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/soft-sort-belts"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"getAllEvents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/soft-sort-belts/events"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"beltId"in e?t.beltId="string"!=typeof e.beltId?String(e.beltId):e.beltId:t.beltId="","object"===a(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===a(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===a(e)&&"startTimestamp"in e?t.startTimestamp="string"!=typeof e.startTimestamp?new Date(String(e.startTimestamp)):new Date(e.startTimestamp):t.startTimestamp=new Date,"object"===a(e)&&"endTimestamp"in e?t.endTimestamp="string"!=typeof e.endTimestamp?new Date(String(e.endTimestamp)):new Date(e.endTimestamp):t.endTimestamp=new Date,"object"===a(e)&&"duration"in e?t.duration="number"!=typeof e.duration?Number.isInteger(Number(e.duration))?Number(e.duration):Math.floor(Number(e.duration)):Number.isInteger(e.duration)?e.duration:Math.floor(e.duration):t.duration=0,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6857));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/softsort-packrun-summaries"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(9311));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/packhouse/sites/".concat(e,"/varieties/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/packhouse/sites/".concat(e,"/varieties"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/packhouse/sites/".concat(e,"/varieties"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},3242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=E(n(7236)),o=E(n(3639)),i=E(n(4095)),a=E(n(9477)),u=E(n(3553)),c=E(n(5785)),s=E(n(8499)),l=E(n(446)),f=E(n(578)),m=E(n(8905)),p=E(n(9880)),d=E(n(2071)),y=E(n(6304)),g=E(n(1705)),b=E(n(657)),h=E(n(2077)),T=E(n(4572)),v=E(n(286)),N=E(n(9716)),S=E(n(9292)),w=E(n(1991)),A=E(n(1988)),j=E(n(3788)),P=E(n(6768)),k=E(n(5819)),M=E(n(817)),C=E(n(1652)),I=E(n(7980)),O=E(n(3309)),D=E(n(8780)),R=E(n(480)),_=E(n(5658));function E(e){return e&&e.__esModule?e:{default:e}}var q={BinTipBinCardController:r.default,BinTipBinController:o.default,BinTipWeightController:i.default,CompacSizerBatchController:a.default,CompacSizerController:u.default,CompacSizerOutletProductChangeController:c.default,CompacSizerOutletTypeChangeController:s.default,CompacSizerOutletTypeController:l.default,CompacSizerPackrunSummaryController:f.default,DowntimeEventController:m.default,FreshPackPackrunSummaryController:p.default,FreshQualityPackrunSummaryController:d.default,GrowingMethodController:y.default,MAFSizerBatchController:g.default,MAFSizerController:b.default,MAFSizerOutletArticleChangeController:h.default,MAFSizerPackrunSummaryController:T.default,PackTypeController:v.default,PackingLineController:N.default,PackrunController:S.default,RejectBinController:w.default,RejectBinScaleController:A.default,RejectBinWeightController:j.default,ShiftController:P.default,ShiftFocusMeetingController:k.default,ShiftHourlyEntryController:M.default,ShiftQualitySummaryController:C.default,ShiftSummaryReportController:I.default,ShiftTaskController:O.default,SoftSortBeltController:D.default,SoftSortPackrunSummaryController:R.default,VarietyController:_.default};t.default=q},8990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(9255)),o=i(n(3242));function i(e){return e&&e.__esModule?e:{default:e}}var a={ProductionDataExportController:r.default,Site:o.default};t.default=a},623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAll",value:function(e){return new Promise((function(t,n){o.default.getRequest("/rtus/".concat(e,"/global-settings")).then((function(e){var n="object"!==i(e)?Object(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,r){o.default.postRequest("/rtus/".concat(e,"/global-settings"),t).then((function(e){n(null==e||e)})).catch((function(e){return r(e)}))}))}},{key:"getOne",value:function(e,t){return new Promise((function(n,r){o.default.getRequest("/rtus/".concat(e,"/global-settings/").concat(t)).then((function(e){var t="object"!==i(e)?Object(e):e;n(t)})).catch((function(e){return r(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,r){o.default.deleteRequest("/rtus/".concat(e,"/global-settings/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return r(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},7828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAll",value:function(e){return new Promise((function(t,n){o.default.getRequest("/rtus/".concat(e,"/plugin-settings")).then((function(e){var n="object"!==i(e)?Object(e):e;t(n)})).catch((function(e){return n(e)}))}))}},{key:"getPlugin",value:function(e,t){return new Promise((function(n,r){o.default.getRequest("/rtus/".concat(e,"/plugin-settings/").concat(t)).then((function(e){var t="object"!==i(e)?Object(e):e;n(t)})).catch((function(e){return r(e)}))}))}},{key:"create",value:function(e,t,n){return new Promise((function(r,i){o.default.postRequest("/rtus/".concat(e,"/plugin-settings/").concat(t),n).then((function(e){r(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getOne",value:function(e,t,n){return new Promise((function(r,a){o.default.getRequest("/rtus/".concat(e,"/plugin-settings/").concat(t,"/").concat(n)).then((function(e){var t="object"!==i(e)?Object(e):e;r(t)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t,n){return new Promise((function(r,i){o.default.deleteRequest("/rtus/".concat(e,"/plugin-settings/").concat(t,"/").concat(n)).then((function(e){r(null==e||e)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(623)),o=i(n(7828));function i(e){return e&&e.__esModule?e:{default:e}}var a={GlobalSettingsController:r.default,PluginSettingsController:o.default};t.default=a},8796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(232));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/rtus/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/rtus/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/rtus/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/rtus",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/rtus",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8050));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/rtu-plugins/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/rtu-plugins/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/rtu-plugins/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/rtu-plugins",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/rtu-plugins",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},1156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(2163));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarms/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/alarms/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/alarms/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOneHistory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/alarms/").concat(t,"/history"),n).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"tripTimestamp"in e?t.tripTimestamp="string"!=typeof e.tripTimestamp?new Date(String(e.tripTimestamp)):new Date(e.tripTimestamp):t.tripTimestamp=new Date,"object"===a(e)&&"resetTimestamp"in e?t.resetTimestamp=null===e.resetTimestamp?null:"string"!=typeof e.resetTimestamp?new Date(String(e.resetTimestamp)):new Date(e.resetTimestamp):t.resetTimestamp=null,"object"===a(e)&&"trippedDuration"in e?t.trippedDuration="number"!=typeof e.trippedDuration?Number.isInteger(Number(e.trippedDuration))?Number(e.trippedDuration):Math.floor(Number(e.trippedDuration)):Number.isInteger(e.trippedDuration)?e.trippedDuration:Math.floor(e.trippedDuration):t.trippedDuration=0,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarms"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/alarms"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"getAllHistory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/alarms/history"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===a(e)&&"tripTimestamp"in e?t.tripTimestamp="string"!=typeof e.tripTimestamp?new Date(String(e.tripTimestamp)):new Date(e.tripTimestamp):t.tripTimestamp=new Date,"object"===a(e)&&"resetTimestamp"in e?t.resetTimestamp=null===e.resetTimestamp?null:"string"!=typeof e.resetTimestamp?new Date(String(e.resetTimestamp)):new Date(e.resetTimestamp):t.resetTimestamp=null,"object"===a(e)&&"trippedDuration"in e?t.trippedDuration="number"!=typeof e.trippedDuration?Number.isInteger(Number(e.trippedDuration))?Number(e.trippedDuration):Math.floor(Number(e.trippedDuration)):Number.isInteger(e.trippedDuration)?e.trippedDuration:Math.floor(e.trippedDuration):t.trippedDuration=0,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},8216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4318));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarm-groups/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/alarm-groups/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/alarm-groups/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/alarm-groups"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/alarm-groups"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(1326));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/definitions/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/definitions/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/definitions/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/definitions"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/definitions"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(6909));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-objects/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/permanent-objects/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/permanent-objects/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-objects"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/permanent-objects"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(5916));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/permanent-object-data/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/permanent-object-data/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getComments",value:function(e,t){return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments")).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n;var t,n}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"createComment",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments"),{content:n}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"getOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n)).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);o(r)})).catch((function(e){return i(e)}))}))}},{key:"updateOneComment",value:function(e,t,n,o){return new Promise((function(i,u){r.default.patchRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n),{content:o}).then((function(e){var t,n,r=(n={},"object"===a(e)&&"id"in e?n.id="string"!=typeof e.id?String(e.id):e.id:n.id="","object"===a(e)&&"userAccount"in e?n.userAccount=(t={},"object"===a(e.userAccount)&&"id"in e.userAccount?t.id=null===e.userAccount.id?null:"string"!=typeof e.userAccount.id?String(e.userAccount.id):e.userAccount.id:t.id=null,"object"===a(e.userAccount)&&"firstName"in e.userAccount?t.firstName=null===e.userAccount.firstName?null:"string"!=typeof e.userAccount.firstName?String(e.userAccount.firstName):e.userAccount.firstName:t.firstName=null,"object"===a(e.userAccount)&&"lastName"in e.userAccount?t.lastName=null===e.userAccount.lastName?null:"string"!=typeof e.userAccount.lastName?String(e.userAccount.lastName):e.userAccount.lastName:t.lastName=null,t):n.userAccount={id:null,firstName:null,lastName:null},"object"===a(e)&&"content"in e?n.content=null===e.content?null:"string"!=typeof e.content?String(e.content):e.content:n.content=null,"object"===a(e)&&"createdTimestamp"in e?n.createdTimestamp=null===e.createdTimestamp?null:"string"!=typeof e.createdTimestamp?new Date(String(e.createdTimestamp)):new Date(e.createdTimestamp):n.createdTimestamp=null,"object"===a(e)&&"updatedTimestamp"in e?n.updatedTimestamp=null===e.updatedTimestamp?null:"string"!=typeof e.updatedTimestamp?new Date(String(e.updatedTimestamp)):new Date(e.updatedTimestamp):n.updatedTimestamp=null,n);i(r)})).catch((function(e){return u(e)}))}))}},{key:"deleteOneComment",value:function(e,t,n){return new Promise((function(o,i){r.default.deleteRequest("/sites/".concat(e,"/permanent-object-data/").concat(t,"/comments/").concat(n)).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/permanent-object-data"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/permanent-object-data"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3932));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getAllValues",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){r.default.getRequest("/sites/".concat(e,"/points/values"),t).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"value"in e?t.value=e.value:t.value=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));n(t)})).catch((function(e){return o(e)}))}))}},{key:"setValues",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/values"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAllHistory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/points/history"),Object.assign(n,{pointIds:t})).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"value"in e?t.value=e.value:t.value=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"addPointHistory",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/history"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAllEvents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){r.default.getRequest("/sites/".concat(e,"/points/events"),Object.assign(n,{pointIds:t})).then((function(e){var t=!0!==Array.isArray(e)?[]:e.map((function(e){return t={},"object"===a(e)&&"id"in e?t.id="number"!=typeof e.id?Number.isInteger(Number(e.id))?Number(e.id):Math.floor(Number(e.id)):Number.isInteger(e.id)?e.id:Math.floor(e.id):t.id=0,"object"===a(e)&&"oldValue"in e?t.oldValue=e.oldValue:t.oldValue=null,"object"===a(e)&&"newValue"in e?t.newValue=e.newValue:t.newValue=null,"object"===a(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,t;var t}));o(t)})).catch((function(e){return i(e)}))}))}},{key:"addPointEvents",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/sites/".concat(e,"/points/events"),t).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/points/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/points/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/points/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/points"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/points"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},5971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(136));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e,t){return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/temporary-objects/").concat(t)).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}},{key:"update",value:function(e,t,n){return new Promise((function(i,a){r.default.patchRequest("/sites/".concat(e,"/temporary-objects/").concat(t),n).then((function(t){var n=o.default.fromJSON(t,e);i(n)})).catch((function(e){return a(e)}))}))}},{key:"delete",value:function(e,t){return new Promise((function(n,o){r.default.deleteRequest("/sites/".concat(e,"/temporary-objects/").concat(t)).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){r.default.getRequest("/sites/".concat(e,"/temporary-objects"),t).then((function(t){var r=!0!==Array.isArray(t)?[]:t.map((function(t){return o.default.fromJSON(t,e)}));n(r)})).catch((function(e){return i(e)}))}))}},{key:"create",value:function(e,t){return new Promise((function(n,i){r.default.postRequest("/sites/".concat(e,"/temporary-objects"),t).then((function(t){var r=o.default.fromJSON(t,e);n(r)})).catch((function(e){return i(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},2962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1156)),o=l(n(8216)),i=l(n(2717)),a=l(n(8659)),u=l(n(387)),c=l(n(5587)),s=l(n(5971));function l(e){return e&&e.__esModule?e:{default:e}}var f={AlarmController:r.default,AlarmGroupController:o.default,DefinitionController:i.default,PermanentObjectController:a.default,PermanentObjectDataController:u.default,PointController:c.default,TemporaryObjectController:s.default};t.default=f},175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(7410));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/sites/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/sites/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/sites/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/sites",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/sites",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},8482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(8365));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/token/new",e).then((function(e){var n,r=(n={},"object"===a(e)&&"token"in e?n.token="string"!=typeof e.token?String(e.token):e.token:n.token="","object"===a(e)&&"expires"in e?n.expires="number"!=typeof e.expires?Number.isInteger(Number(e.expires))?Number(e.expires):Math.floor(Number(e.expires)):Number.isInteger(e.expires)?e.expires:Math.floor(e.expires):n.expires=0,n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"unlock",value:function(e){return new Promise((function(t,n){r.default.postRequest("/token/unlock",e).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"lock",value:function(){return new Promise((function(e,t){r.default.postRequest("/token/lock").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"destroy",value:function(){return new Promise((function(e,t){r.default.postRequest("/token/destroy").then((function(t){e(null==t||t)})).catch((function(e){return t(e)}))}))}},{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/token").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4732))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"ping",value:function(){return new Promise((function(e,t){o.default.getRequest("/ping").then((function(t){var n="string"!=typeof t?String(t):t;e(n)})).catch((function(e){return t(e)}))}))}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},5642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(3298));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/user-action-tokens/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/user-action-tokens/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/user-action-tokens/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/user-action-tokens",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user-action-tokens",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"createToken",value:function(e,t,n){return new Promise((function(o,i){r.default.postRequest("/user-action-tokens/new",{email:e,action:t,providerId:n}).then((function(e){o(null==e||e)})).catch((function(e){return i(e)}))}))}},{key:"verifyToken",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/verify",{token:e,action:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"activateAction",value:function(e,t,n,o,i){return new Promise((function(u,c){r.default.postRequest("/user-action-tokens/actions/activate",{token:e,email:t,password:n,firstName:o,lastName:i}).then((function(e){var t,n=(t={},"object"===a(e)&&"email"in e?t.email="string"!=typeof e.email?String(e.email):e.email:t.email="","object"===a(e)&&"firstName"in e?t.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:t.firstName="","object"===a(e)&&"lastName"in e?t.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:t.lastName="",t);u(n)})).catch((function(e){return c(e)}))}))}},{key:"getActivateActionDetails",value:function(e){return new Promise((function(t,n){r.default.getRequest("/user-action-tokens/actions/activate",Object.assign({},{token:e})).then((function(e){var n,r=(n={},"object"===a(e)&&"email"in e?n.email="string"!=typeof e.email?String(e.email):e.email:n.email="","object"===a(e)&&"firstName"in e?n.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:n.firstName="","object"===a(e)&&"lastName"in e?n.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:n.lastName="",n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"resetPasswordAction",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/actions/reset-password",{token:e,newPassword:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"resetPinCodeAction",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user-action-tokens/actions/reset-pin-code",{token:e,newPinCode:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},3139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4732)),o=i(n(4905));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getCurrent",value:function(){return new Promise((function(e,t){r.default.getRequest("/user").then((function(t){var n=o.default.fromJSON(t);e(n)})).catch((function(e){return t(e)}))}))}},{key:"updateCurrent",value:function(e){return new Promise((function(t,n){r.default.patchRequest("/user",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"setPassword",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/set-password",{newPassword:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"changePassword",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user/change-password",{currentPassword:e,newPassword:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"setPinCode",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/set-pin-code",{newPinCode:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"changePinCode",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/user/change-pin-code",{currentPinCode:e,newPinCode:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"deleteCurrent",value:function(e){return new Promise((function(t,n){r.default.postRequest("/user/delete-account",{currentPassword:e}).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getOne",value:function(e){return new Promise((function(t,n){r.default.getRequest("/users/".concat(e)).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}},{key:"update",value:function(e,t){return new Promise((function(n,i){r.default.patchRequest("/users/".concat(e),t).then((function(e){var t=o.default.fromJSON(e);n(t)})).catch((function(e){return i(e)}))}))}},{key:"delete",value:function(e){return new Promise((function(t,n){r.default.deleteRequest("/users/".concat(e)).then((function(e){t(null==e||e)})).catch((function(e){return n(e)}))}))}},{key:"getPolicies",value:function(e){return new Promise((function(t,n){r.default.getRequest("/users/".concat(e,"/policies")).then((function(e){var n,r=(n={},"object"===a(e)&&"policies"in e?n.policies=!0!==Array.isArray(e.policies)?[]:e.policies.map((function(e){return"string"!=typeof e?String(e):e})):n.policies=[],n);t(r)})).catch((function(e){return n(e)}))}))}},{key:"setPolicies",value:function(e,t){return new Promise((function(n,o){r.default.postRequest("/users/".concat(e,"/policies"),{policies:t}).then((function(e){n(null==e||e)})).catch((function(e){return o(e)}))}))}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){r.default.getRequest("/users",e).then((function(e){var n=!0!==Array.isArray(e)?[]:e.map((function(e){return o.default.fromJSON(e)}));t(n)})).catch((function(e){return n(e)}))}))}},{key:"create",value:function(e){return new Promise((function(t,n){r.default.postRequest("/users",e).then((function(e){var n=o.default.fromJSON(e);t(n)})).catch((function(e){return n(e)}))}))}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},7053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(8647)),o=b(n(9376)),i=b(n(4533)),a=b(n(5843)),u=b(n(8796)),c=b(n(1648)),s=b(n(175)),l=b(n(8482)),f=b(n(1311)),m=b(n(5642)),p=b(n(3139)),d=b(n(8990)),y=b(n(8182)),g=b(n(2962));function b(e){return e&&e.__esModule?e:{default:e}}var h={AccountPolicyController:r.default,ApiAccountController:o.default,CompanyController:i.default,FirebaseTokenController:a.default,RTUController:u.default,RTUPluginController:c.default,SiteController:s.default,TokenController:l.default,ToolsController:f.default,UserAccountActionTokenController:m.default,UserAccountController:p.default,Packhouse:d.default,RTU:y.default,Site:g.default};t.default=h},9936:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},5812:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},4328:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},5044:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},6193:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},6850:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},8445:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,a,u=(t=f,n=c(),function(){var e,r=l(t);if(n){var i=l(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function f(){var e;r(this,f);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=u.call.apply(u,[this].concat(n)),Error.captureStackTrace&&Error.captureStackTrace(i(e),f),e}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(a(Error));t.default=f},806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(9936)),o=l(n(5812)),i=l(n(4328)),a=l(n(5044)),u=l(n(6193)),c=l(n(6850)),s=l(n(8445));function l(e){return e&&e.__esModule?e:{default:e}}var f={BadRequestError:r.default,ForbiddenError:o.default,NetworkError:i.default,NotAllowedError:a.default,NotFoundError:u.default,ServerError:c.default,UnauthorizedError:s.default};t.default=f},3091:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.name="",e.companyId="",e.resources=[],e.rules=[],e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"resources"in n&&(t.resources=!0!==Array.isArray(n.resources)?[]:n.resources.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id=e.id:t.id=null,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"actions"in e?t.actions=!0!==Array.isArray(e.actions)?[]:e.actions.map((function(e){return"string"!=typeof e?String(e):e})):t.actions=[],"object"===o(e)&&"permission"in e?t.permission="string"!=typeof e.permission?String(e.permission):e.permission:t.permission="",t;var t}))),"rules"in n&&(t.rules=!0!==Array.isArray(n.rules)?[]:n.rules.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},348:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.key=null,e.name="",e.companyId="",e.policies=[],e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"key"in n&&(t.key=null===n.key?null:"string"!=typeof n.key?String(n.key):n.key),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"policies"in n&&(t.policies=!0!==Array.isArray(n.policies)?[]:n.policies.map((function(e){return"string"!=typeof e?String(e):e}))),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},7416:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.default=o},1969:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.displayName="",e.legalName="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"displayName"in n&&(t.displayName="string"!=typeof n.displayName?String(n.displayName):n.displayName),"legalName"in n&&(t.legalName="string"!=typeof n.legalName?String(n.legalName):n.legalName),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},556:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.token="",e.enabled=!1,e.deviceName="",e.devicePlatform="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"token"in n&&(t.token="string"!=typeof n.token?String(n.token):n.token),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deviceName"in n&&(t.deviceName="string"!=typeof n.deviceName?String(n.deviceName):n.deviceName),"devicePlatform"in n&&(t.devicePlatform="string"!=typeof n.devicePlatform?String(n.devicePlatform):n.devicePlatform),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2565:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.binTipBinId="",t.createdTimestamp=new Date,t.image=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"binTipBinId"in r&&(n.binTipBinId="string"!=typeof r.binTipBinId?String(r.binTipBinId):r.binTipBinId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"image"in r&&(n.image=null===r.image?null:"string"!=typeof r.image?String(r.image):r.image),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2847:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.packrunId="",t.createdTimestamp=new Date,t.binNumber=null,t.binNumberSource=null,t.timeBatchId=null,t.fullWeight=null,t.emptyWeight=null,t.fullBinWeightId=null,t.emptyBinWeightId=null,t.freshPackFieldBinWeightApi=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"binNumber"in r&&(n.binNumber=null===r.binNumber?null:"string"!=typeof r.binNumber?String(r.binNumber):r.binNumber),"binNumberSource"in r&&(n.binNumberSource=null===r.binNumberSource?null:"string"!=typeof r.binNumberSource?String(r.binNumberSource):r.binNumberSource),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"fullWeight"in r&&(n.fullWeight=null===r.fullWeight?null:"number"!=typeof r.fullWeight?Number(r.fullWeight):r.fullWeight),"emptyWeight"in r&&(n.emptyWeight=null===r.emptyWeight?null:"number"!=typeof r.emptyWeight?Number(r.emptyWeight):r.emptyWeight),"fullBinWeightId"in r&&(n.fullBinWeightId=null===r.fullBinWeightId?null:"string"!=typeof r.fullBinWeightId?String(r.fullBinWeightId):r.fullBinWeightId),"emptyBinWeightId"in r&&(n.emptyBinWeightId=null===r.emptyBinWeightId?null:"string"!=typeof r.emptyBinWeightId?String(r.emptyBinWeightId):r.emptyBinWeightId),"freshPackFieldBinWeightApi"in r&&(n.freshPackFieldBinWeightApi=null===r.freshPackFieldBinWeightApi?null:"object"!==o(r.freshPackFieldBinWeightApi)?Object(r.freshPackFieldBinWeightApi):r.freshPackFieldBinWeightApi),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3720:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.binTipId="",t.packrunId="",t.createdTimestamp=new Date,t.weightType="",t.weight=0,t.binScaleId=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"binTipId"in r&&(n.binTipId="string"!=typeof r.binTipId?String(r.binTipId):r.binTipId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"weightType"in r&&(n.weightType="string"!=typeof r.weightType?String(r.weightType):r.weightType),"weight"in r&&(n.weight="number"!=typeof r.weight?Number(r.weight):r.weight),"binScaleId"in r&&(n.binScaleId=null===r.binScaleId?null:"string"!=typeof r.binScaleId?String(r.binScaleId):r.binScaleId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3428:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.batchId="",t.createdTimestamp=new Date,t.packrunId=null,t.batch={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"batchId"in r&&(n.batchId="string"!=typeof r.batchId?String(r.batchId):r.batchId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"batch"in r&&(n.batch="object"!==o(r.batch)?Object(r.batch):r.batch),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4601:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.lanes=[],t.points={},t.outlets=[],t.sizerType="",t.autoCreateBatchDelay=0,t.fruitSizes=[],t.packingLineId="",t.freshPackIntegration=null,t.sources=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"lanes"in r&&(n.lanes=!0!==Array.isArray(r.lanes)?[]:r.lanes.map((function(e){return"object"!==o(e)?Object(e):e}))),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"outlets"in r&&(n.outlets=!0!==Array.isArray(r.outlets)?[]:r.outlets.map((function(e){return"object"!==o(e)?Object(e):e}))),"sizerType"in r&&(n.sizerType="string"!=typeof r.sizerType?String(r.sizerType):r.sizerType),"autoCreateBatchDelay"in r&&(n.autoCreateBatchDelay="number"!=typeof r.autoCreateBatchDelay?Number.isInteger(Number(r.autoCreateBatchDelay))?Number(r.autoCreateBatchDelay):Math.floor(Number(r.autoCreateBatchDelay)):Number.isInteger(r.autoCreateBatchDelay)?r.autoCreateBatchDelay:Math.floor(r.autoCreateBatchDelay)),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return"object"!==o(e)?Object(e):e}))),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1237:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousProductId=null,t.previousProductName=null,t.newProductId="",t.newProductName="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousProductId"in r&&(n.previousProductId=null===r.previousProductId?null:"string"!=typeof r.previousProductId?String(r.previousProductId):r.previousProductId),"previousProductName"in r&&(n.previousProductName=null===r.previousProductName?null:"string"!=typeof r.previousProductName?String(r.previousProductName):r.previousProductName),"newProductId"in r&&(n.newProductId="string"!=typeof r.newProductId?String(r.newProductId):r.newProductId),"newProductName"in r&&(n.newProductName="string"!=typeof r.newProductName?String(r.newProductName):r.newProductName),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1425:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousTypeId=null,t.newTypeId="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousTypeId"in r&&(n.previousTypeId=null===r.previousTypeId?null:"string"!=typeof r.previousTypeId?String(r.previousTypeId):r.previousTypeId),"newTypeId"in r&&(n.newTypeId="string"!=typeof r.newTypeId?String(r.newTypeId):r.newTypeId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4031:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.name="",t.type="",t.description="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9256:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.compacSizerId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.outletSummaries=[],t.initialOutletProducts=[],t.outletProductChanges=[],t.initialOutletTypes=[],t.outletTypeChanges=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"compacSizerId"in r&&(n.compacSizerId="string"!=typeof r.compacSizerId?String(r.compacSizerId):r.compacSizerId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"outletSummaries"in r&&(n.outletSummaries=!0!==Array.isArray(r.outletSummaries)?[]:r.outletSummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===o(e)&&"totals"in e?t.totals=!0!==Array.isArray(e.totals)?[]:e.totals.map((function(e){return t={},"object"===o(e)&&"classType"in e?t.classType=null===e.classType?null:"string"!=typeof e.classType?String(e.classType):e.classType:t.classType=null,"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType=null===e.packType?null:"string"!=typeof e.packType?String(e.packType):e.packType:t.packType=null,"object"===o(e)&&"weight"in e?t.weight="number"!=typeof e.weight?Number(e.weight):e.weight:t.weight=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"packCount"in e?t.packCount=null===e.packCount?null:"number"!=typeof e.packCount?Number(e.packCount):e.packCount:t.packCount=null,t;var t})):t.totals=[],t;var t}))),"initialOutletProducts"in r&&(n.initialOutletProducts=!0!==Array.isArray(r.initialOutletProducts)?[]:r.initialOutletProducts.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"productId"in e?t.productId="string"!=typeof e.productId?String(e.productId):e.productId:t.productId="","object"===o(e)&&"productName"in e?t.productName=null===e.productName?null:"string"!=typeof e.productName?String(e.productName):e.productName:t.productName=null,t;var t}))),"outletProductChanges"in r&&(n.outletProductChanges=!0!==Array.isArray(r.outletProductChanges)?[]:r.outletProductChanges.map((function(e){return t={},"object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"productId"in e?t.productId="string"!=typeof e.productId?String(e.productId):e.productId:t.productId="","object"===o(e)&&"productName"in e?t.productName=null===e.productName?null:"string"!=typeof e.productName?String(e.productName):e.productName:t.productName=null,"object"===o(e)&&"outletProductChangeId"in e?t.outletProductChangeId="string"!=typeof e.outletProductChangeId?String(e.outletProductChangeId):e.outletProductChangeId:t.outletProductChangeId="",t;var t}))),"initialOutletTypes"in r&&(n.initialOutletTypes=!0!==Array.isArray(r.initialOutletTypes)?[]:r.initialOutletTypes.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"outletTypeChanges"in r&&(n.outletTypeChanges=!0!==Array.isArray(r.outletTypeChanges)?[]:r.outletTypeChanges.map((function(e){return t={},"object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6865:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.startTimestamp=new Date,t.endTimestamp=null,t.reasonCategory=null,t.reasonTag=null,t.remedyAction=null,t.avoidableRating=null,t.source="",t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"startTimestamp"in r&&(n.startTimestamp="string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"endTimestamp"in r&&(n.endTimestamp=null===r.endTimestamp?null:"string"!=typeof r.endTimestamp?new Date(String(r.endTimestamp)):new Date(r.endTimestamp)),"reasonCategory"in r&&(n.reasonCategory=null===r.reasonCategory?null:"string"!=typeof r.reasonCategory?String(r.reasonCategory):r.reasonCategory),"reasonTag"in r&&(n.reasonTag=null===r.reasonTag?null:"string"!=typeof r.reasonTag?String(r.reasonTag):r.reasonTag),"remedyAction"in r&&(n.remedyAction=null===r.remedyAction?null:"string"!=typeof r.remedyAction?String(r.remedyAction):r.remedyAction),"avoidableRating"in r&&(n.avoidableRating=null===r.avoidableRating?null:"number"!=typeof r.avoidableRating?Number.isInteger(Number(r.avoidableRating))?Number(r.avoidableRating):Math.floor(Number(r.avoidableRating)):Number.isInteger(r.avoidableRating)?r.avoidableRating:Math.floor(r.avoidableRating)),"source"in r&&(n.source="string"!=typeof r.source?String(r.source):r.source),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4461:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.traySummaries=[],t.clearanceSummaries=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"traySummaries"in r&&(n.traySummaries=!0!==Array.isArray(r.traySummaries)?[]:r.traySummaries.map((function(e){return"object"!==o(e)?Object(e):e}))),"clearanceSummaries"in r&&(n.clearanceSummaries=!0!==Array.isArray(r.clearanceSummaries)?[]:r.clearanceSummaries.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3794:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.class1R600Samples=[],t.categorySummaries=[],t.totalFruitSampled=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"class1R600Samples"in r&&(n.class1R600Samples=!0!==Array.isArray(r.class1R600Samples)?[]:r.class1R600Samples.map((function(e){return t={},"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType="string"!=typeof e.packType?String(e.packType):e.packType:t.packType="","object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"defects"in e?t.defects=!0!==Array.isArray(e.defects)?[]:e.defects.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"group"in e?t.group="string"!=typeof e.group?String(e.group):e.group:t.group="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,t;var t})):t.defects=[],t;var t}))),"categorySummaries"in r&&(n.categorySummaries=!0!==Array.isArray(r.categorySummaries)?[]:r.categorySummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"percentage"in e?t.percentage="number"!=typeof e.percentage?Number(e.percentage):e.percentage:t.percentage=0,"object"===o(e)&&"defects"in e?t.defects=!0!==Array.isArray(e.defects)?[]:e.defects.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"percentage"in e?t.percentage="number"!=typeof e.percentage?Number(e.percentage):e.percentage:t.percentage=0,t;var t})):t.defects=[],t;var t}))),"totalFruitSampled"in r&&(n.totalFruitSampled="number"!=typeof r.totalFruitSampled?Number.isInteger(Number(r.totalFruitSampled))?Number(r.totalFruitSampled):Math.floor(Number(r.totalFruitSampled)):Number.isInteger(r.totalFruitSampled)?r.totalFruitSampled:Math.floor(r.totalFruitSampled)),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},7462:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1938:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.batchId="",t.createdTimestamp=new Date,t.batchName=null,t.growerCode=null,t.growerName=null,t.varietyCode=null,t.varietyName=null,t.totalWeight=0,t.packrunId=null,t.articleSummaries=[],t.outletSummaries=[],t.fruitSummaries=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"batchId"in r&&(n.batchId="string"!=typeof r.batchId?String(r.batchId):r.batchId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"batchName"in r&&(n.batchName=null===r.batchName?null:"string"!=typeof r.batchName?String(r.batchName):r.batchName),"growerCode"in r&&(n.growerCode=null===r.growerCode?null:"string"!=typeof r.growerCode?String(r.growerCode):r.growerCode),"growerName"in r&&(n.growerName=null===r.growerName?null:"string"!=typeof r.growerName?String(r.growerName):r.growerName),"varietyCode"in r&&(n.varietyCode=null===r.varietyCode?null:"string"!=typeof r.varietyCode?String(r.varietyCode):r.varietyCode),"varietyName"in r&&(n.varietyName=null===r.varietyName?null:"string"!=typeof r.varietyName?String(r.varietyName):r.varietyName),"totalWeight"in r&&(n.totalWeight="number"!=typeof r.totalWeight?Number(r.totalWeight):r.totalWeight),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"articleSummaries"in r&&(n.articleSummaries=!0!==Array.isArray(r.articleSummaries)?[]:r.articleSummaries.map((function(e){return t={},"object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"outletSummaries"in r&&(n.outletSummaries=!0!==Array.isArray(r.outletSummaries)?[]:r.outletSummaries.map((function(e){return t={},"object"===o(e)&&"number"in e?t.number="number"!=typeof e.number?Number.isInteger(Number(e.number))?Number(e.number):Math.floor(Number(e.number)):Number.isInteger(e.number)?e.number:Math.floor(e.number):t.number=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"fruitSummaries"in r&&(n.fruitSummaries=!0!==Array.isArray(r.fruitSummaries)?[]:r.fruitSummaries.map((function(e){return t={},"object"===o(e)&&"articleName"in e?t.articleName="string"!=typeof e.articleName?String(e.articleName):e.articleName:t.articleName="","object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"fruitWeight"in e?t.fruitWeight="number"!=typeof e.fruitWeight?Number(e.fruitWeight):e.fruitWeight:t.fruitWeight=0,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2276:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.lanes=[],t.points={},t.outlets=[],t.sizerType="",t.autoCreateBatchDelay=0,t.fruitSizes=[],t.packingLineId="",t.freshPackIntegration=null,t.mafIntegration=null,t.sources=[],t.articleClassTypes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"lanes"in r&&(n.lanes=!0!==Array.isArray(r.lanes)?[]:r.lanes.map((function(e){return"object"!==o(e)?Object(e):e}))),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"outlets"in r&&(n.outlets=!0!==Array.isArray(r.outlets)?[]:r.outlets.map((function(e){return"object"!==o(e)?Object(e):e}))),"sizerType"in r&&(n.sizerType="string"!=typeof r.sizerType?String(r.sizerType):r.sizerType),"autoCreateBatchDelay"in r&&(n.autoCreateBatchDelay="number"!=typeof r.autoCreateBatchDelay?Number.isInteger(Number(r.autoCreateBatchDelay))?Number(r.autoCreateBatchDelay):Math.floor(Number(r.autoCreateBatchDelay)):Number.isInteger(r.autoCreateBatchDelay)?r.autoCreateBatchDelay:Math.floor(r.autoCreateBatchDelay)),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return"object"!==o(e)?Object(e):e}))),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"mafIntegration"in r&&(n.mafIntegration=null===r.mafIntegration?null:"object"!==o(r.mafIntegration)?Object(r.mafIntegration):r.mafIntegration),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"articleClassTypes"in r&&(n.articleClassTypes=!0!==Array.isArray(r.articleClassTypes)?[]:r.articleClassTypes.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6982:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.outletNumber="",t.createdTimestamp=new Date,t.previousArticleName=null,t.newArticleName="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"outletNumber"in r&&(n.outletNumber="string"!=typeof r.outletNumber?String(r.outletNumber):r.outletNumber),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"previousArticleName"in r&&(n.previousArticleName=null===r.previousArticleName?null:"string"!=typeof r.previousArticleName?String(r.previousArticleName):r.previousArticleName),"newArticleName"in r&&(n.newArticleName="string"!=typeof r.newArticleName?String(r.newArticleName):r.newArticleName),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8544:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.mafSizerId="",t.packrunId="",t.createdTimestamp=new Date,t.timeBatchId=null,t.classTypeSummaries=[],t.initialOutletArticles=[],t.initialOutletTypes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"mafSizerId"in r&&(n.mafSizerId="string"!=typeof r.mafSizerId?String(r.mafSizerId):r.mafSizerId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"timeBatchId"in r&&(n.timeBatchId=null===r.timeBatchId?null:"string"!=typeof r.timeBatchId?String(r.timeBatchId):r.timeBatchId),"classTypeSummaries"in r&&(n.classTypeSummaries=!0!==Array.isArray(r.classTypeSummaries)?[]:r.classTypeSummaries.map((function(e){return t={},"object"===o(e)&&"classType"in e?t.classType="string"!=typeof e.classType?String(e.classType):e.classType:t.classType="","object"===o(e)&&"totals"in e?t.totals=!0!==Array.isArray(e.totals)?[]:e.totals.map((function(e){return t={},"object"===o(e)&&"fruitSize"in e?t.fruitSize="string"!=typeof e.fruitSize?String(e.fruitSize):e.fruitSize:t.fruitSize="","object"===o(e)&&"packType"in e?t.packType=null===e.packType?null:"string"!=typeof e.packType?String(e.packType):e.packType:t.packType=null,"object"===o(e)&&"weight"in e?t.weight="number"!=typeof e.weight?Number(e.weight):e.weight:t.weight=0,"object"===o(e)&&"fruitCount"in e?t.fruitCount="number"!=typeof e.fruitCount?Number.isInteger(Number(e.fruitCount))?Number(e.fruitCount):Math.floor(Number(e.fruitCount)):Number.isInteger(e.fruitCount)?e.fruitCount:Math.floor(e.fruitCount):t.fruitCount=0,"object"===o(e)&&"packCount"in e?t.packCount=null===e.packCount?null:"number"!=typeof e.packCount?Number(e.packCount):e.packCount:t.packCount=null,t;var t})):t.totals=[],t;var t}))),"initialOutletArticles"in r&&(n.initialOutletArticles=!0!==Array.isArray(r.initialOutletArticles)?[]:r.initialOutletArticles.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"articleName"in e?t.articleName=null===e.articleName?null:"string"!=typeof e.articleName?String(e.articleName):e.articleName:t.articleName=null,t;var t}))),"initialOutletTypes"in r&&(n.initialOutletTypes=!0!==Array.isArray(r.initialOutletTypes)?[]:r.initialOutletTypes.map((function(e){return t={},"object"===o(e)&&"outletNumber"in e?t.outletNumber="number"!=typeof e.outletNumber?Number.isInteger(Number(e.outletNumber))?Number(e.outletNumber):Math.floor(Number(e.outletNumber)):Number.isInteger(e.outletNumber)?e.outletNumber:Math.floor(e.outletNumber):t.outletNumber=0,"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"typeId"in e?t.typeId=null===e.typeId?null:"string"!=typeof e.typeId?String(e.typeId):e.typeId:t.typeId=null,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5162:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.form="",t.fruitSizes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"form"in r&&(n.form="string"!=typeof r.form?String(r.form):r.form),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return t={},"object"===o(e)&&"size"in e?t.size="string"!=typeof e.size?String(e.size):e.size:t.size="","object"===o(e)&&"count"in e?t.count="number"!=typeof e.count?Number.isInteger(Number(e.count))?Number(e.count):Math.floor(Number(e.count)):Number.isInteger(e.count)?e.count:Math.floor(e.count):t.count=0,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8792:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.sizers=[],t.binTips=[],t.rejectBinScales=[],t.secondaryPackingLine=null,t.automation=null,t.alarmGroups=[],t.classTypes=[],t.shiftManagement=null,t.advancedPackrunManagement=null,t.mafIntegration=null,t.freshPackIntegration=null,t.freshQualityIntegration=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"sizers"in r&&(n.sizers=!0!==Array.isArray(r.sizers)?[]:r.sizers.map((function(e){return"object"!==o(e)?Object(e):e}))),"binTips"in r&&(n.binTips=!0!==Array.isArray(r.binTips)?[]:r.binTips.map((function(e){return"object"!==o(e)?Object(e):e}))),"rejectBinScales"in r&&(n.rejectBinScales=!0!==Array.isArray(r.rejectBinScales)?[]:r.rejectBinScales.map((function(e){return"object"!==o(e)?Object(e):e}))),"secondaryPackingLine"in r&&(n.secondaryPackingLine=null===r.secondaryPackingLine?null:"object"!==o(r.secondaryPackingLine)?Object(r.secondaryPackingLine):r.secondaryPackingLine),"automation"in r&&(n.automation=null===r.automation?null:"object"!==o(r.automation)?Object(r.automation):r.automation),"alarmGroups"in r&&(n.alarmGroups=!0!==Array.isArray(r.alarmGroups)?[]:r.alarmGroups.map((function(e){return"string"!=typeof e?String(e):e}))),"classTypes"in r&&(n.classTypes=!0!==Array.isArray(r.classTypes)?[]:r.classTypes.map((function(e){return"object"!==o(e)?Object(e):e}))),"shiftManagement"in r&&(n.shiftManagement=function(){if(null===r.shiftManagement)return null;var e,t={};return"object"===o(r.shiftManagement)&&"points"in r.shiftManagement?t.points=(e={},"object"===o(r.shiftManagement.points)&&"currentShiftId"in r.shiftManagement.points?e.currentShiftId="number"!=typeof r.shiftManagement.points.currentShiftId?Number.isInteger(Number(r.shiftManagement.points.currentShiftId))?Number(r.shiftManagement.points.currentShiftId):Math.floor(Number(r.shiftManagement.points.currentShiftId)):Number.isInteger(r.shiftManagement.points.currentShiftId)?r.shiftManagement.points.currentShiftId:Math.floor(r.shiftManagement.points.currentShiftId):e.currentShiftId=0,"object"===o(r.shiftManagement.points)&&"createNewDayShiftRequest"in r.shiftManagement.points?e.createNewDayShiftRequest="number"!=typeof r.shiftManagement.points.createNewDayShiftRequest?Number.isInteger(Number(r.shiftManagement.points.createNewDayShiftRequest))?Number(r.shiftManagement.points.createNewDayShiftRequest):Math.floor(Number(r.shiftManagement.points.createNewDayShiftRequest)):Number.isInteger(r.shiftManagement.points.createNewDayShiftRequest)?r.shiftManagement.points.createNewDayShiftRequest:Math.floor(r.shiftManagement.points.createNewDayShiftRequest):e.createNewDayShiftRequest=0,"object"===o(r.shiftManagement.points)&&"createNewNightShiftRequest"in r.shiftManagement.points?e.createNewNightShiftRequest="number"!=typeof r.shiftManagement.points.createNewNightShiftRequest?Number.isInteger(Number(r.shiftManagement.points.createNewNightShiftRequest))?Number(r.shiftManagement.points.createNewNightShiftRequest):Math.floor(Number(r.shiftManagement.points.createNewNightShiftRequest)):Number.isInteger(r.shiftManagement.points.createNewNightShiftRequest)?r.shiftManagement.points.createNewNightShiftRequest:Math.floor(r.shiftManagement.points.createNewNightShiftRequest):e.createNewNightShiftRequest=0,"object"===o(r.shiftManagement.points)&&"startCurrentShiftRequest"in r.shiftManagement.points?e.startCurrentShiftRequest="number"!=typeof r.shiftManagement.points.startCurrentShiftRequest?Number.isInteger(Number(r.shiftManagement.points.startCurrentShiftRequest))?Number(r.shiftManagement.points.startCurrentShiftRequest):Math.floor(Number(r.shiftManagement.points.startCurrentShiftRequest)):Number.isInteger(r.shiftManagement.points.startCurrentShiftRequest)?r.shiftManagement.points.startCurrentShiftRequest:Math.floor(r.shiftManagement.points.startCurrentShiftRequest):e.startCurrentShiftRequest=0,"object"===o(r.shiftManagement.points)&&"finishCurrentShiftRequest"in r.shiftManagement.points?e.finishCurrentShiftRequest="number"!=typeof r.shiftManagement.points.finishCurrentShiftRequest?Number.isInteger(Number(r.shiftManagement.points.finishCurrentShiftRequest))?Number(r.shiftManagement.points.finishCurrentShiftRequest):Math.floor(Number(r.shiftManagement.points.finishCurrentShiftRequest)):Number.isInteger(r.shiftManagement.points.finishCurrentShiftRequest)?r.shiftManagement.points.finishCurrentShiftRequest:Math.floor(r.shiftManagement.points.finishCurrentShiftRequest):e.finishCurrentShiftRequest=0,"object"===o(r.shiftManagement.points)&&"currentFocusMeetingId"in r.shiftManagement.points?e.currentFocusMeetingId="number"!=typeof r.shiftManagement.points.currentFocusMeetingId?Number.isInteger(Number(r.shiftManagement.points.currentFocusMeetingId))?Number(r.shiftManagement.points.currentFocusMeetingId):Math.floor(Number(r.shiftManagement.points.currentFocusMeetingId)):Number.isInteger(r.shiftManagement.points.currentFocusMeetingId)?r.shiftManagement.points.currentFocusMeetingId:Math.floor(r.shiftManagement.points.currentFocusMeetingId):e.currentFocusMeetingId=0,"object"===o(r.shiftManagement.points)&&"startFocusMeetingRequest"in r.shiftManagement.points?e.startFocusMeetingRequest="number"!=typeof r.shiftManagement.points.startFocusMeetingRequest?Number.isInteger(Number(r.shiftManagement.points.startFocusMeetingRequest))?Number(r.shiftManagement.points.startFocusMeetingRequest):Math.floor(Number(r.shiftManagement.points.startFocusMeetingRequest)):Number.isInteger(r.shiftManagement.points.startFocusMeetingRequest)?r.shiftManagement.points.startFocusMeetingRequest:Math.floor(r.shiftManagement.points.startFocusMeetingRequest):e.startFocusMeetingRequest=0,"object"===o(r.shiftManagement.points)&&"finishFocusMeetingRequest"in r.shiftManagement.points?e.finishFocusMeetingRequest="number"!=typeof r.shiftManagement.points.finishFocusMeetingRequest?Number.isInteger(Number(r.shiftManagement.points.finishFocusMeetingRequest))?Number(r.shiftManagement.points.finishFocusMeetingRequest):Math.floor(Number(r.shiftManagement.points.finishFocusMeetingRequest)):Number.isInteger(r.shiftManagement.points.finishFocusMeetingRequest)?r.shiftManagement.points.finishFocusMeetingRequest:Math.floor(r.shiftManagement.points.finishFocusMeetingRequest):e.finishFocusMeetingRequest=0,"object"===o(r.shiftManagement.points)&&"currentShiftStatus"in r.shiftManagement.points?e.currentShiftStatus="number"!=typeof r.shiftManagement.points.currentShiftStatus?Number.isInteger(Number(r.shiftManagement.points.currentShiftStatus))?Number(r.shiftManagement.points.currentShiftStatus):Math.floor(Number(r.shiftManagement.points.currentShiftStatus)):Number.isInteger(r.shiftManagement.points.currentShiftStatus)?r.shiftManagement.points.currentShiftStatus:Math.floor(r.shiftManagement.points.currentShiftStatus):e.currentShiftStatus=0,"object"===o(r.shiftManagement.points)&&"currentShiftModifyHourlyEntryRequest"in r.shiftManagement.points?e.currentShiftModifyHourlyEntryRequest="number"!=typeof r.shiftManagement.points.currentShiftModifyHourlyEntryRequest?Number.isInteger(Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest))?Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest):Math.floor(Number(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest)):Number.isInteger(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest)?r.shiftManagement.points.currentShiftModifyHourlyEntryRequest:Math.floor(r.shiftManagement.points.currentShiftModifyHourlyEntryRequest):e.currentShiftModifyHourlyEntryRequest=0,"object"===o(r.shiftManagement.points)&&"shiftSchedules"in r.shiftManagement.points?e.shiftSchedules="number"!=typeof r.shiftManagement.points.shiftSchedules?Number.isInteger(Number(r.shiftManagement.points.shiftSchedules))?Number(r.shiftManagement.points.shiftSchedules):Math.floor(Number(r.shiftManagement.points.shiftSchedules)):Number.isInteger(r.shiftManagement.points.shiftSchedules)?r.shiftManagement.points.shiftSchedules:Math.floor(r.shiftManagement.points.shiftSchedules):e.shiftSchedules=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHourTarget"in r.shiftManagement.points?e.currentShiftClass1TraysPerHourTarget="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHourTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget)?r.shiftManagement.points.currentShiftClass1TraysPerHourTarget:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHourTarget):e.currentShiftClass1TraysPerHourTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHourAdjustedTarget"in r.shiftManagement.points?e.currentShiftClass1TraysPerHourAdjustedTarget="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget)?r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHourAdjustedTarget):e.currentShiftClass1TraysPerHourAdjustedTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1TraysPerHour"in r.shiftManagement.points?e.currentShiftClass1TraysPerHour="number"!=typeof r.shiftManagement.points.currentShiftClass1TraysPerHour?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1TraysPerHour))?Number(r.shiftManagement.points.currentShiftClass1TraysPerHour):Math.floor(Number(r.shiftManagement.points.currentShiftClass1TraysPerHour)):Number.isInteger(r.shiftManagement.points.currentShiftClass1TraysPerHour)?r.shiftManagement.points.currentShiftClass1TraysPerHour:Math.floor(r.shiftManagement.points.currentShiftClass1TraysPerHour):e.currentShiftClass1TraysPerHour=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTrayTarget"in r.shiftManagement.points?e.currentShiftCostPerTrayTarget="number"!=typeof r.shiftManagement.points.currentShiftCostPerTrayTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTrayTarget))?Number(r.shiftManagement.points.currentShiftCostPerTrayTarget):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTrayTarget)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTrayTarget)?r.shiftManagement.points.currentShiftCostPerTrayTarget:Math.floor(r.shiftManagement.points.currentShiftCostPerTrayTarget):e.currentShiftCostPerTrayTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTrayAdjustedTarget"in r.shiftManagement.points?e.currentShiftCostPerTrayAdjustedTarget="number"!=typeof r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget))?Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget)?r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget:Math.floor(r.shiftManagement.points.currentShiftCostPerTrayAdjustedTarget):e.currentShiftCostPerTrayAdjustedTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftCostPerTray"in r.shiftManagement.points?e.currentShiftCostPerTray="number"!=typeof r.shiftManagement.points.currentShiftCostPerTray?Number.isInteger(Number(r.shiftManagement.points.currentShiftCostPerTray))?Number(r.shiftManagement.points.currentShiftCostPerTray):Math.floor(Number(r.shiftManagement.points.currentShiftCostPerTray)):Number.isInteger(r.shiftManagement.points.currentShiftCostPerTray)?r.shiftManagement.points.currentShiftCostPerTray:Math.floor(r.shiftManagement.points.currentShiftCostPerTray):e.currentShiftCostPerTray=0,"object"===o(r.shiftManagement.points)&&"currentShiftManningTarget"in r.shiftManagement.points?e.currentShiftManningTarget="number"!=typeof r.shiftManagement.points.currentShiftManningTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftManningTarget))?Number(r.shiftManagement.points.currentShiftManningTarget):Math.floor(Number(r.shiftManagement.points.currentShiftManningTarget)):Number.isInteger(r.shiftManagement.points.currentShiftManningTarget)?r.shiftManagement.points.currentShiftManningTarget:Math.floor(r.shiftManagement.points.currentShiftManningTarget):e.currentShiftManningTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass1Manning"in r.shiftManagement.points?e.currentShiftClass1Manning="number"!=typeof r.shiftManagement.points.currentShiftClass1Manning?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass1Manning))?Number(r.shiftManagement.points.currentShiftClass1Manning):Math.floor(Number(r.shiftManagement.points.currentShiftClass1Manning)):Number.isInteger(r.shiftManagement.points.currentShiftClass1Manning)?r.shiftManagement.points.currentShiftClass1Manning:Math.floor(r.shiftManagement.points.currentShiftClass1Manning):e.currentShiftClass1Manning=0,"object"===o(r.shiftManagement.points)&&"currentShiftClass2Manning"in r.shiftManagement.points?e.currentShiftClass2Manning="number"!=typeof r.shiftManagement.points.currentShiftClass2Manning?Number.isInteger(Number(r.shiftManagement.points.currentShiftClass2Manning))?Number(r.shiftManagement.points.currentShiftClass2Manning):Math.floor(Number(r.shiftManagement.points.currentShiftClass2Manning)):Number.isInteger(r.shiftManagement.points.currentShiftClass2Manning)?r.shiftManagement.points.currentShiftClass2Manning:Math.floor(r.shiftManagement.points.currentShiftClass2Manning):e.currentShiftClass2Manning=0,"object"===o(r.shiftManagement.points)&&"currentShiftQualityR600IdealTarget"in r.shiftManagement.points?e.currentShiftQualityR600IdealTarget="number"!=typeof r.shiftManagement.points.currentShiftQualityR600IdealTarget?Number.isInteger(Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget))?Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget):Math.floor(Number(r.shiftManagement.points.currentShiftQualityR600IdealTarget)):Number.isInteger(r.shiftManagement.points.currentShiftQualityR600IdealTarget)?r.shiftManagement.points.currentShiftQualityR600IdealTarget:Math.floor(r.shiftManagement.points.currentShiftQualityR600IdealTarget):e.currentShiftQualityR600IdealTarget=0,"object"===o(r.shiftManagement.points)&&"currentShiftQualityR600Ideal"in r.shiftManagement.points?e.currentShiftQualityR600Ideal="number"!=typeof r.shiftManagement.points.currentShiftQualityR600Ideal?Number.isInteger(Number(r.shiftManagement.points.currentShiftQualityR600Ideal))?Number(r.shiftManagement.points.currentShiftQualityR600Ideal):Math.floor(Number(r.shiftManagement.points.currentShiftQualityR600Ideal)):Number.isInteger(r.shiftManagement.points.currentShiftQualityR600Ideal)?r.shiftManagement.points.currentShiftQualityR600Ideal:Math.floor(r.shiftManagement.points.currentShiftQualityR600Ideal):e.currentShiftQualityR600Ideal=0,"object"===o(r.shiftManagement.points)&&"currentShiftScorePercentage"in r.shiftManagement.points?e.currentShiftScorePercentage="number"!=typeof r.shiftManagement.points.currentShiftScorePercentage?Number.isInteger(Number(r.shiftManagement.points.currentShiftScorePercentage))?Number(r.shiftManagement.points.currentShiftScorePercentage):Math.floor(Number(r.shiftManagement.points.currentShiftScorePercentage)):Number.isInteger(r.shiftManagement.points.currentShiftScorePercentage)?r.shiftManagement.points.currentShiftScorePercentage:Math.floor(r.shiftManagement.points.currentShiftScorePercentage):e.currentShiftScorePercentage=0,"object"===o(r.shiftManagement.points)&&"class1TraysPerHourTargets"in r.shiftManagement.points?e.class1TraysPerHourTargets="number"!=typeof r.shiftManagement.points.class1TraysPerHourTargets?Number.isInteger(Number(r.shiftManagement.points.class1TraysPerHourTargets))?Number(r.shiftManagement.points.class1TraysPerHourTargets):Math.floor(Number(r.shiftManagement.points.class1TraysPerHourTargets)):Number.isInteger(r.shiftManagement.points.class1TraysPerHourTargets)?r.shiftManagement.points.class1TraysPerHourTargets:Math.floor(r.shiftManagement.points.class1TraysPerHourTargets):e.class1TraysPerHourTargets=0,"object"===o(r.shiftManagement.points)&&"costPerTrayTargets"in r.shiftManagement.points?e.costPerTrayTargets="number"!=typeof r.shiftManagement.points.costPerTrayTargets?Number.isInteger(Number(r.shiftManagement.points.costPerTrayTargets))?Number(r.shiftManagement.points.costPerTrayTargets):Math.floor(Number(r.shiftManagement.points.costPerTrayTargets)):Number.isInteger(r.shiftManagement.points.costPerTrayTargets)?r.shiftManagement.points.costPerTrayTargets:Math.floor(r.shiftManagement.points.costPerTrayTargets):e.costPerTrayTargets=0,"object"===o(r.shiftManagement.points)&&"manningTargets"in r.shiftManagement.points?e.manningTargets="number"!=typeof r.shiftManagement.points.manningTargets?Number.isInteger(Number(r.shiftManagement.points.manningTargets))?Number(r.shiftManagement.points.manningTargets):Math.floor(Number(r.shiftManagement.points.manningTargets)):Number.isInteger(r.shiftManagement.points.manningTargets)?r.shiftManagement.points.manningTargets:Math.floor(r.shiftManagement.points.manningTargets):e.manningTargets=0,"object"===o(r.shiftManagement.points)&&"qualityR600IdealTargets"in r.shiftManagement.points?e.qualityR600IdealTargets="number"!=typeof r.shiftManagement.points.qualityR600IdealTargets?Number.isInteger(Number(r.shiftManagement.points.qualityR600IdealTargets))?Number(r.shiftManagement.points.qualityR600IdealTargets):Math.floor(Number(r.shiftManagement.points.qualityR600IdealTargets)):Number.isInteger(r.shiftManagement.points.qualityR600IdealTargets)?r.shiftManagement.points.qualityR600IdealTargets:Math.floor(r.shiftManagement.points.qualityR600IdealTargets):e.qualityR600IdealTargets=0,"object"===o(r.shiftManagement.points)&&"costPerManningUnitHour"in r.shiftManagement.points?e.costPerManningUnitHour="number"!=typeof r.shiftManagement.points.costPerManningUnitHour?Number.isInteger(Number(r.shiftManagement.points.costPerManningUnitHour))?Number(r.shiftManagement.points.costPerManningUnitHour):Math.floor(Number(r.shiftManagement.points.costPerManningUnitHour)):Number.isInteger(r.shiftManagement.points.costPerManningUnitHour)?r.shiftManagement.points.costPerManningUnitHour:Math.floor(r.shiftManagement.points.costPerManningUnitHour):e.costPerManningUnitHour=0,"object"===o(r.shiftManagement.points)&&"class1TraysPerHourScoreWeighting"in r.shiftManagement.points?e.class1TraysPerHourScoreWeighting="number"!=typeof r.shiftManagement.points.class1TraysPerHourScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting))?Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting):Math.floor(Number(r.shiftManagement.points.class1TraysPerHourScoreWeighting)):Number.isInteger(r.shiftManagement.points.class1TraysPerHourScoreWeighting)?r.shiftManagement.points.class1TraysPerHourScoreWeighting:Math.floor(r.shiftManagement.points.class1TraysPerHourScoreWeighting):e.class1TraysPerHourScoreWeighting=0,"object"===o(r.shiftManagement.points)&&"costPerTrayScoreWeighting"in r.shiftManagement.points?e.costPerTrayScoreWeighting="number"!=typeof r.shiftManagement.points.costPerTrayScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.costPerTrayScoreWeighting))?Number(r.shiftManagement.points.costPerTrayScoreWeighting):Math.floor(Number(r.shiftManagement.points.costPerTrayScoreWeighting)):Number.isInteger(r.shiftManagement.points.costPerTrayScoreWeighting)?r.shiftManagement.points.costPerTrayScoreWeighting:Math.floor(r.shiftManagement.points.costPerTrayScoreWeighting):e.costPerTrayScoreWeighting=0,"object"===o(r.shiftManagement.points)&&"qualityR600IdealScoreWeighting"in r.shiftManagement.points?e.qualityR600IdealScoreWeighting="number"!=typeof r.shiftManagement.points.qualityR600IdealScoreWeighting?Number.isInteger(Number(r.shiftManagement.points.qualityR600IdealScoreWeighting))?Number(r.shiftManagement.points.qualityR600IdealScoreWeighting):Math.floor(Number(r.shiftManagement.points.qualityR600IdealScoreWeighting)):Number.isInteger(r.shiftManagement.points.qualityR600IdealScoreWeighting)?r.shiftManagement.points.qualityR600IdealScoreWeighting:Math.floor(r.shiftManagement.points.qualityR600IdealScoreWeighting):e.qualityR600IdealScoreWeighting=0,e):t.points={currentShiftId:0,createNewDayShiftRequest:0,createNewNightShiftRequest:0,startCurrentShiftRequest:0,finishCurrentShiftRequest:0,currentFocusMeetingId:0,startFocusMeetingRequest:0,finishFocusMeetingRequest:0,currentShiftStatus:0,currentShiftModifyHourlyEntryRequest:0,shiftSchedules:0,currentShiftClass1TraysPerHourTarget:0,currentShiftClass1TraysPerHourAdjustedTarget:0,currentShiftClass1TraysPerHour:0,currentShiftCostPerTrayTarget:0,currentShiftCostPerTrayAdjustedTarget:0,currentShiftCostPerTray:0,currentShiftManningTarget:0,currentShiftClass1Manning:0,currentShiftClass2Manning:0,currentShiftQualityR600IdealTarget:0,currentShiftQualityR600Ideal:0,currentShiftScorePercentage:0,class1TraysPerHourTargets:0,costPerTrayTargets:0,manningTargets:0,qualityR600IdealTargets:0,costPerManningUnitHour:0,class1TraysPerHourScoreWeighting:0,costPerTrayScoreWeighting:0,qualityR600IdealScoreWeighting:0},"object"===o(r.shiftManagement)&&"customQualityConfiguration"in r.shiftManagement?t.customQualityConfiguration=!0!==Array.isArray(r.shiftManagement.customQualityConfiguration)?[]:r.shiftManagement.customQualityConfiguration.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"points"in e?t.points=function(){var t={};return"object"===o(e.points)&&"currentShiftCustomQualityTarget"in e.points?t.currentShiftCustomQualityTarget="number"!=typeof e.points.currentShiftCustomQualityTarget?Number.isInteger(Number(e.points.currentShiftCustomQualityTarget))?Number(e.points.currentShiftCustomQualityTarget):Math.floor(Number(e.points.currentShiftCustomQualityTarget)):Number.isInteger(e.points.currentShiftCustomQualityTarget)?e.points.currentShiftCustomQualityTarget:Math.floor(e.points.currentShiftCustomQualityTarget):t.currentShiftCustomQualityTarget=0,"object"===o(e.points)&&"currentShiftCustomQualityValue"in e.points?t.currentShiftCustomQualityValue="number"!=typeof e.points.currentShiftCustomQualityValue?Number.isInteger(Number(e.points.currentShiftCustomQualityValue))?Number(e.points.currentShiftCustomQualityValue):Math.floor(Number(e.points.currentShiftCustomQualityValue)):Number.isInteger(e.points.currentShiftCustomQualityValue)?e.points.currentShiftCustomQualityValue:Math.floor(e.points.currentShiftCustomQualityValue):t.currentShiftCustomQualityValue=0,"object"===o(e.points)&&"customQualityTargets"in e.points?t.customQualityTargets="number"!=typeof e.points.customQualityTargets?Number.isInteger(Number(e.points.customQualityTargets))?Number(e.points.customQualityTargets):Math.floor(Number(e.points.customQualityTargets)):Number.isInteger(e.points.customQualityTargets)?e.points.customQualityTargets:Math.floor(e.points.customQualityTargets):t.customQualityTargets=0,"object"===o(e.points)&&"customQualityScoreWeighting"in e.points?t.customQualityScoreWeighting="number"!=typeof e.points.customQualityScoreWeighting?Number.isInteger(Number(e.points.customQualityScoreWeighting))?Number(e.points.customQualityScoreWeighting):Math.floor(Number(e.points.customQualityScoreWeighting)):Number.isInteger(e.points.customQualityScoreWeighting)?e.points.customQualityScoreWeighting:Math.floor(e.points.customQualityScoreWeighting):t.customQualityScoreWeighting=0,t}():t.points={currentShiftCustomQualityTarget:0,currentShiftCustomQualityValue:0,customQualityTargets:0,customQualityScoreWeighting:0},t;var t})):t.customQualityConfiguration=[],"object"===o(r.shiftManagement)&&"enabled"in r.shiftManagement?t.enabled="boolean"!=typeof r.shiftManagement.enabled?Boolean(r.shiftManagement.enabled):r.shiftManagement.enabled:t.enabled=!1,"object"===o(r.shiftManagement)&&"taskDefinitions"in r.shiftManagement?t.taskDefinitions=!0!==Array.isArray(r.shiftManagement.taskDefinitions)?[]:r.shiftManagement.taskDefinitions.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"tags"in e?t.tags=!0!==Array.isArray(e.tags)?[]:e.tags.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"color"in e?t.color="string"!=typeof e.color?String(e.color):e.color:t.color="","object"===o(e)&&"deleted"in e?t.deleted="boolean"!=typeof e.deleted?Boolean(e.deleted):e.deleted:t.deleted=!1,t;var t})):t.tags=[],t;var t})):t.taskDefinitions=[],t}()),"advancedPackrunManagement"in r&&(n.advancedPackrunManagement=null===r.advancedPackrunManagement?null:"object"!==o(r.advancedPackrunManagement)?Object(r.advancedPackrunManagement):r.advancedPackrunManagement),"mafIntegration"in r&&(n.mafIntegration=null===r.mafIntegration?null:"object"!==o(r.mafIntegration)?Object(r.mafIntegration):r.mafIntegration),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"freshQualityIntegration"in r&&(n.freshQualityIntegration=null===r.freshQualityIntegration?null:"object"!==o(r.freshQualityIntegration)?Object(r.freshQualityIntegration):r.freshQualityIntegration),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3465:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.name="",t.createdTimestamp=new Date,t.growerName="",t.growerCode="",t.maturityArea="",t.startTimestamp=null,t.finishTimestamp=null,t.varietyId="",t.growingMethodId=null,t.allocatedBins=0,t.timeBatches=[],t.freshPackGraderId=null,t.freshPackBinLotCode=null,t.freshPackProduceCode=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"growerName"in r&&(n.growerName="string"!=typeof r.growerName?String(r.growerName):r.growerName),"growerCode"in r&&(n.growerCode="string"!=typeof r.growerCode?String(r.growerCode):r.growerCode),"maturityArea"in r&&(n.maturityArea="string"!=typeof r.maturityArea?String(r.maturityArea):r.maturityArea),"startTimestamp"in r&&(n.startTimestamp=null===r.startTimestamp?null:"string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"finishTimestamp"in r&&(n.finishTimestamp=null===r.finishTimestamp?null:"string"!=typeof r.finishTimestamp?new Date(String(r.finishTimestamp)):new Date(r.finishTimestamp)),"varietyId"in r&&(n.varietyId="string"!=typeof r.varietyId?String(r.varietyId):r.varietyId),"growingMethodId"in r&&(n.growingMethodId=null===r.growingMethodId?null:"string"!=typeof r.growingMethodId?String(r.growingMethodId):r.growingMethodId),"allocatedBins"in r&&(n.allocatedBins="number"!=typeof r.allocatedBins?Number.isInteger(Number(r.allocatedBins))?Number(r.allocatedBins):Math.floor(Number(r.allocatedBins)):Number.isInteger(r.allocatedBins)?r.allocatedBins:Math.floor(r.allocatedBins)),"timeBatches"in r&&(n.timeBatches=!0!==Array.isArray(r.timeBatches)?[]:r.timeBatches.map((function(e){return"object"!==o(e)?Object(e):e}))),"freshPackGraderId"in r&&(n.freshPackGraderId=null===r.freshPackGraderId?null:"number"!=typeof r.freshPackGraderId?Number.isInteger(Number(r.freshPackGraderId))?Number(r.freshPackGraderId):Math.floor(Number(r.freshPackGraderId)):Number.isInteger(r.freshPackGraderId)?r.freshPackGraderId:Math.floor(r.freshPackGraderId)),"freshPackBinLotCode"in r&&(n.freshPackBinLotCode=null===r.freshPackBinLotCode?null:"string"!=typeof r.freshPackBinLotCode?String(r.freshPackBinLotCode):r.freshPackBinLotCode),"freshPackProduceCode"in r&&(n.freshPackProduceCode=null===r.freshPackProduceCode?null:"string"!=typeof r.freshPackProduceCode?String(r.freshPackProduceCode):r.freshPackProduceCode),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3908:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rejectBinScaleId="",t.createdTimestamp=new Date,t.rejectBinScaleName="",t.tareWeight=null,t.finalizedTimestamp=null,t.freshPackMultiGrowerBins=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rejectBinScaleId"in r&&(n.rejectBinScaleId="string"!=typeof r.rejectBinScaleId?String(r.rejectBinScaleId):r.rejectBinScaleId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"rejectBinScaleName"in r&&(n.rejectBinScaleName="string"!=typeof r.rejectBinScaleName?String(r.rejectBinScaleName):r.rejectBinScaleName),"tareWeight"in r&&(n.tareWeight=null===r.tareWeight?null:"number"!=typeof r.tareWeight?Number(r.tareWeight):r.tareWeight),"finalizedTimestamp"in r&&(n.finalizedTimestamp=null===r.finalizedTimestamp?null:"string"!=typeof r.finalizedTimestamp?new Date(String(r.finalizedTimestamp)):new Date(r.finalizedTimestamp)),"freshPackMultiGrowerBins"in r&&(n.freshPackMultiGrowerBins=!0!==Array.isArray(r.freshPackMultiGrowerBins)?[]:r.freshPackMultiGrowerBins.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4738:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.packingLineId="",t.packrunSourceId=null,t.packrunGroup=null,t.sources=[],t.autoPackrunChange=null,t.supportsLiveWeighing=null,t.autoWeighingStartThreshold=null,t.autoWeighingStartDelay=null,t.autoWeighingFinishThreshold=null,t.autoWeighingFinishDelay=null,t.manualInterventionMaximumDuration=null,t.liveWeighingIncreaseTolerance=null,t.liveWeighingDecreaseTolerance=null,t.liveWeighingUpdateInterval=null,t.liveWeighingUsesStableStatus=null,t.incorrectOperationTolerance=null,t.freshPackIntegration=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunSourceId"in r&&(n.packrunSourceId=null===r.packrunSourceId?null:"string"!=typeof r.packrunSourceId?String(r.packrunSourceId):r.packrunSourceId),"packrunGroup"in r&&(n.packrunGroup=null===r.packrunGroup?null:"number"!=typeof r.packrunGroup?Number.isInteger(Number(r.packrunGroup))?Number(r.packrunGroup):Math.floor(Number(r.packrunGroup)):Number.isInteger(r.packrunGroup)?r.packrunGroup:Math.floor(r.packrunGroup)),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"autoPackrunChange"in r&&(n.autoPackrunChange=function(){if(null===r.autoPackrunChange)return null;var e={};return"object"===o(r.autoPackrunChange)&&"delay"in r.autoPackrunChange?e.delay=null===r.autoPackrunChange.delay?null:"number"!=typeof r.autoPackrunChange.delay?Number.isInteger(Number(r.autoPackrunChange.delay))?Number(r.autoPackrunChange.delay):Math.floor(Number(r.autoPackrunChange.delay)):Number.isInteger(r.autoPackrunChange.delay)?r.autoPackrunChange.delay:Math.floor(r.autoPackrunChange.delay):e.delay=null,e}()),"supportsLiveWeighing"in r&&(n.supportsLiveWeighing=null===r.supportsLiveWeighing?null:"boolean"!=typeof r.supportsLiveWeighing?Boolean(r.supportsLiveWeighing):r.supportsLiveWeighing),"autoWeighingStartThreshold"in r&&(n.autoWeighingStartThreshold=null===r.autoWeighingStartThreshold?null:"number"!=typeof r.autoWeighingStartThreshold?Number(r.autoWeighingStartThreshold):r.autoWeighingStartThreshold),"autoWeighingStartDelay"in r&&(n.autoWeighingStartDelay=null===r.autoWeighingStartDelay?null:"number"!=typeof r.autoWeighingStartDelay?Number.isInteger(Number(r.autoWeighingStartDelay))?Number(r.autoWeighingStartDelay):Math.floor(Number(r.autoWeighingStartDelay)):Number.isInteger(r.autoWeighingStartDelay)?r.autoWeighingStartDelay:Math.floor(r.autoWeighingStartDelay)),"autoWeighingFinishThreshold"in r&&(n.autoWeighingFinishThreshold=null===r.autoWeighingFinishThreshold?null:"number"!=typeof r.autoWeighingFinishThreshold?Number(r.autoWeighingFinishThreshold):r.autoWeighingFinishThreshold),"autoWeighingFinishDelay"in r&&(n.autoWeighingFinishDelay=null===r.autoWeighingFinishDelay?null:"number"!=typeof r.autoWeighingFinishDelay?Number.isInteger(Number(r.autoWeighingFinishDelay))?Number(r.autoWeighingFinishDelay):Math.floor(Number(r.autoWeighingFinishDelay)):Number.isInteger(r.autoWeighingFinishDelay)?r.autoWeighingFinishDelay:Math.floor(r.autoWeighingFinishDelay)),"manualInterventionMaximumDuration"in r&&(n.manualInterventionMaximumDuration=null===r.manualInterventionMaximumDuration?null:"number"!=typeof r.manualInterventionMaximumDuration?Number.isInteger(Number(r.manualInterventionMaximumDuration))?Number(r.manualInterventionMaximumDuration):Math.floor(Number(r.manualInterventionMaximumDuration)):Number.isInteger(r.manualInterventionMaximumDuration)?r.manualInterventionMaximumDuration:Math.floor(r.manualInterventionMaximumDuration)),"liveWeighingIncreaseTolerance"in r&&(n.liveWeighingIncreaseTolerance=null===r.liveWeighingIncreaseTolerance?null:"number"!=typeof r.liveWeighingIncreaseTolerance?Number(r.liveWeighingIncreaseTolerance):r.liveWeighingIncreaseTolerance),"liveWeighingDecreaseTolerance"in r&&(n.liveWeighingDecreaseTolerance=null===r.liveWeighingDecreaseTolerance?null:"number"!=typeof r.liveWeighingDecreaseTolerance?Number(r.liveWeighingDecreaseTolerance):r.liveWeighingDecreaseTolerance),"liveWeighingUpdateInterval"in r&&(n.liveWeighingUpdateInterval=null===r.liveWeighingUpdateInterval?null:"number"!=typeof r.liveWeighingUpdateInterval?Number.isInteger(Number(r.liveWeighingUpdateInterval))?Number(r.liveWeighingUpdateInterval):Math.floor(Number(r.liveWeighingUpdateInterval)):Number.isInteger(r.liveWeighingUpdateInterval)?r.liveWeighingUpdateInterval:Math.floor(r.liveWeighingUpdateInterval)),"liveWeighingUsesStableStatus"in r&&(n.liveWeighingUsesStableStatus=null===r.liveWeighingUsesStableStatus?null:"boolean"!=typeof r.liveWeighingUsesStableStatus?Boolean(r.liveWeighingUsesStableStatus):r.liveWeighingUsesStableStatus),"incorrectOperationTolerance"in r&&(n.incorrectOperationTolerance=null===r.incorrectOperationTolerance?null:"number"!=typeof r.incorrectOperationTolerance?Number(r.incorrectOperationTolerance):r.incorrectOperationTolerance),"freshPackIntegration"in r&&(n.freshPackIntegration=null===r.freshPackIntegration?null:"object"!==o(r.freshPackIntegration)?Object(r.freshPackIntegration):r.freshPackIntegration),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2519:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rejectBinScaleId="",t.rejectBinId="",t.createdTimestamp=new Date,t.packrunId=null,t.netWeight=0,t.sources=[],t.freshPackMultiGrowerBinWeights=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rejectBinScaleId"in r&&(n.rejectBinScaleId="string"!=typeof r.rejectBinScaleId?String(r.rejectBinScaleId):r.rejectBinScaleId),"rejectBinId"in r&&(n.rejectBinId="string"!=typeof r.rejectBinId?String(r.rejectBinId):r.rejectBinId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"packrunId"in r&&(n.packrunId=null===r.packrunId?null:"string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"netWeight"in r&&(n.netWeight="number"!=typeof r.netWeight?Number(r.netWeight):r.netWeight),"sources"in r&&(n.sources=!0!==Array.isArray(r.sources)?[]:r.sources.map((function(e){return"object"!==o(e)?Object(e):e}))),"freshPackMultiGrowerBinWeights"in r&&(n.freshPackMultiGrowerBinWeights=!0!==Array.isArray(r.freshPackMultiGrowerBinWeights)?[]:r.freshPackMultiGrowerBinWeights.map((function(e){return"object"!==o(e)?Object(e):e}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8501:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.scheduledTimestamp=new Date,t.startTimestamp=null,t.finishTimestamp=null,t.nextKeyFocus=null,t.successRating=null,t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"scheduledTimestamp"in r&&(n.scheduledTimestamp="string"!=typeof r.scheduledTimestamp?new Date(String(r.scheduledTimestamp)):new Date(r.scheduledTimestamp)),"startTimestamp"in r&&(n.startTimestamp=null===r.startTimestamp?null:"string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"finishTimestamp"in r&&(n.finishTimestamp=null===r.finishTimestamp?null:"string"!=typeof r.finishTimestamp?new Date(String(r.finishTimestamp)):new Date(r.finishTimestamp)),"nextKeyFocus"in r&&(n.nextKeyFocus=null===r.nextKeyFocus?null:"string"!=typeof r.nextKeyFocus?String(r.nextKeyFocus):r.nextKeyFocus),"successRating"in r&&(n.successRating=null===r.successRating?null:"number"!=typeof r.successRating?Number.isInteger(Number(r.successRating))?Number(r.successRating):Math.floor(Number(r.successRating)):Number.isInteger(r.successRating)?r.successRating:Math.floor(r.successRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5784:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.startTimestamp=new Date,t.endTimestamp=new Date,t.class1Manning=null,t.class2Manning=null,t.averageManningTarget=null,t.averageClass1ManningTarget=null,t.averageClass2ManningTarget=null,t.averageCostPerManningUnit=null,t.layeredTrayPercentage=null,t.layeredTrayPercentageTarget=null,t.averageClass1Percentage=null,t.qualityR600IdealSamplesPercentage=null,t.averageQualityR600IdealSamplesTarget=null,t.customQualityData=[],t.totalBinsTipped=0,t.binsTippedTarget=0,t.totalDowntime=0,t.totalProductionTime=0,t.totalClass1Trays=0,t.totalClass2Trays=0,t.class1TraysPerHourExcludingDowntimeTarget=0,t.averageClass1TraysPerHourAdjustedTarget=null,t.averageCostPerTray=null,t.averageCostPerTrayTarget=null,t.primaryIssueCategory=null,t.primaryIssueTag=null,t.primaryIssuePercentage=null,t.secondaryIssueCategory=null,t.secondaryIssueTag=null,t.secondaryIssuePercentage=null,t.nextHourFocus=null,t.satisfactionRating=null,t.status="",t.class1TraysPerHourPotential=0,t.class1TraysPerHourExcludingDowntime=0,t.class1TraysPerManHourPotential=null,t.class1TraysPerManHourExcludingDowntime=null,t.manningPercentage=null,t.totalManning=null,t.uptimePercentage=0,t.downtimePercentage=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"startTimestamp"in r&&(n.startTimestamp="string"!=typeof r.startTimestamp?new Date(String(r.startTimestamp)):new Date(r.startTimestamp)),"endTimestamp"in r&&(n.endTimestamp="string"!=typeof r.endTimestamp?new Date(String(r.endTimestamp)):new Date(r.endTimestamp)),"class1Manning"in r&&(n.class1Manning=null===r.class1Manning?null:"number"!=typeof r.class1Manning?Number.isInteger(Number(r.class1Manning))?Number(r.class1Manning):Math.floor(Number(r.class1Manning)):Number.isInteger(r.class1Manning)?r.class1Manning:Math.floor(r.class1Manning)),"class2Manning"in r&&(n.class2Manning=null===r.class2Manning?null:"number"!=typeof r.class2Manning?Number.isInteger(Number(r.class2Manning))?Number(r.class2Manning):Math.floor(Number(r.class2Manning)):Number.isInteger(r.class2Manning)?r.class2Manning:Math.floor(r.class2Manning)),"averageManningTarget"in r&&(n.averageManningTarget=null===r.averageManningTarget?null:"number"!=typeof r.averageManningTarget?Number.isInteger(Number(r.averageManningTarget))?Number(r.averageManningTarget):Math.floor(Number(r.averageManningTarget)):Number.isInteger(r.averageManningTarget)?r.averageManningTarget:Math.floor(r.averageManningTarget)),"averageClass1ManningTarget"in r&&(n.averageClass1ManningTarget=null===r.averageClass1ManningTarget?null:"number"!=typeof r.averageClass1ManningTarget?Number.isInteger(Number(r.averageClass1ManningTarget))?Number(r.averageClass1ManningTarget):Math.floor(Number(r.averageClass1ManningTarget)):Number.isInteger(r.averageClass1ManningTarget)?r.averageClass1ManningTarget:Math.floor(r.averageClass1ManningTarget)),"averageClass2ManningTarget"in r&&(n.averageClass2ManningTarget=null===r.averageClass2ManningTarget?null:"number"!=typeof r.averageClass2ManningTarget?Number.isInteger(Number(r.averageClass2ManningTarget))?Number(r.averageClass2ManningTarget):Math.floor(Number(r.averageClass2ManningTarget)):Number.isInteger(r.averageClass2ManningTarget)?r.averageClass2ManningTarget:Math.floor(r.averageClass2ManningTarget)),"averageCostPerManningUnit"in r&&(n.averageCostPerManningUnit=null===r.averageCostPerManningUnit?null:"number"!=typeof r.averageCostPerManningUnit?Number(r.averageCostPerManningUnit):r.averageCostPerManningUnit),"layeredTrayPercentage"in r&&(n.layeredTrayPercentage=null===r.layeredTrayPercentage?null:"number"!=typeof r.layeredTrayPercentage?Number(r.layeredTrayPercentage):r.layeredTrayPercentage),"layeredTrayPercentageTarget"in r&&(n.layeredTrayPercentageTarget=null===r.layeredTrayPercentageTarget?null:"number"!=typeof r.layeredTrayPercentageTarget?Number(r.layeredTrayPercentageTarget):r.layeredTrayPercentageTarget),"averageClass1Percentage"in r&&(n.averageClass1Percentage=null===r.averageClass1Percentage?null:"number"!=typeof r.averageClass1Percentage?Number(r.averageClass1Percentage):r.averageClass1Percentage),"qualityR600IdealSamplesPercentage"in r&&(n.qualityR600IdealSamplesPercentage=null===r.qualityR600IdealSamplesPercentage?null:"number"!=typeof r.qualityR600IdealSamplesPercentage?Number(r.qualityR600IdealSamplesPercentage):r.qualityR600IdealSamplesPercentage),"averageQualityR600IdealSamplesTarget"in r&&(n.averageQualityR600IdealSamplesTarget=null===r.averageQualityR600IdealSamplesTarget?null:"number"!=typeof r.averageQualityR600IdealSamplesTarget?Number(r.averageQualityR600IdealSamplesTarget):r.averageQualityR600IdealSamplesTarget),"customQualityData"in r&&(n.customQualityData=!0!==Array.isArray(r.customQualityData)?[]:r.customQualityData.map((function(e){return t={},"object"===o(e)&&"id"in e?t.id="string"!=typeof e.id?String(e.id):e.id:t.id="","object"===o(e)&&"name"in e?t.name="string"!=typeof e.name?String(e.name):e.name:t.name="","object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,"object"===o(e)&&"averageTarget"in e?t.averageTarget=null===e.averageTarget?null:"number"!=typeof e.averageTarget?Number(e.averageTarget):e.averageTarget:t.averageTarget=null,t;var t}))),"totalBinsTipped"in r&&(n.totalBinsTipped="number"!=typeof r.totalBinsTipped?Number.isInteger(Number(r.totalBinsTipped))?Number(r.totalBinsTipped):Math.floor(Number(r.totalBinsTipped)):Number.isInteger(r.totalBinsTipped)?r.totalBinsTipped:Math.floor(r.totalBinsTipped)),"binsTippedTarget"in r&&(n.binsTippedTarget="number"!=typeof r.binsTippedTarget?Number.isInteger(Number(r.binsTippedTarget))?Number(r.binsTippedTarget):Math.floor(Number(r.binsTippedTarget)):Number.isInteger(r.binsTippedTarget)?r.binsTippedTarget:Math.floor(r.binsTippedTarget)),"totalDowntime"in r&&(n.totalDowntime="number"!=typeof r.totalDowntime?Number.isInteger(Number(r.totalDowntime))?Number(r.totalDowntime):Math.floor(Number(r.totalDowntime)):Number.isInteger(r.totalDowntime)?r.totalDowntime:Math.floor(r.totalDowntime)),"totalProductionTime"in r&&(n.totalProductionTime="number"!=typeof r.totalProductionTime?Number.isInteger(Number(r.totalProductionTime))?Number(r.totalProductionTime):Math.floor(Number(r.totalProductionTime)):Number.isInteger(r.totalProductionTime)?r.totalProductionTime:Math.floor(r.totalProductionTime)),"totalClass1Trays"in r&&(n.totalClass1Trays="number"!=typeof r.totalClass1Trays?Number.isInteger(Number(r.totalClass1Trays))?Number(r.totalClass1Trays):Math.floor(Number(r.totalClass1Trays)):Number.isInteger(r.totalClass1Trays)?r.totalClass1Trays:Math.floor(r.totalClass1Trays)),"totalClass2Trays"in r&&(n.totalClass2Trays="number"!=typeof r.totalClass2Trays?Number.isInteger(Number(r.totalClass2Trays))?Number(r.totalClass2Trays):Math.floor(Number(r.totalClass2Trays)):Number.isInteger(r.totalClass2Trays)?r.totalClass2Trays:Math.floor(r.totalClass2Trays)),"class1TraysPerHourExcludingDowntimeTarget"in r&&(n.class1TraysPerHourExcludingDowntimeTarget="number"!=typeof r.class1TraysPerHourExcludingDowntimeTarget?Number.isInteger(Number(r.class1TraysPerHourExcludingDowntimeTarget))?Number(r.class1TraysPerHourExcludingDowntimeTarget):Math.floor(Number(r.class1TraysPerHourExcludingDowntimeTarget)):Number.isInteger(r.class1TraysPerHourExcludingDowntimeTarget)?r.class1TraysPerHourExcludingDowntimeTarget:Math.floor(r.class1TraysPerHourExcludingDowntimeTarget)),"averageClass1TraysPerHourAdjustedTarget"in r&&(n.averageClass1TraysPerHourAdjustedTarget=null===r.averageClass1TraysPerHourAdjustedTarget?null:"number"!=typeof r.averageClass1TraysPerHourAdjustedTarget?Number.isInteger(Number(r.averageClass1TraysPerHourAdjustedTarget))?Number(r.averageClass1TraysPerHourAdjustedTarget):Math.floor(Number(r.averageClass1TraysPerHourAdjustedTarget)):Number.isInteger(r.averageClass1TraysPerHourAdjustedTarget)?r.averageClass1TraysPerHourAdjustedTarget:Math.floor(r.averageClass1TraysPerHourAdjustedTarget)),"averageCostPerTray"in r&&(n.averageCostPerTray=null===r.averageCostPerTray?null:"number"!=typeof r.averageCostPerTray?Number(r.averageCostPerTray):r.averageCostPerTray),"averageCostPerTrayTarget"in r&&(n.averageCostPerTrayTarget=null===r.averageCostPerTrayTarget?null:"number"!=typeof r.averageCostPerTrayTarget?Number(r.averageCostPerTrayTarget):r.averageCostPerTrayTarget),"primaryIssueCategory"in r&&(n.primaryIssueCategory=null===r.primaryIssueCategory?null:"string"!=typeof r.primaryIssueCategory?String(r.primaryIssueCategory):r.primaryIssueCategory),"primaryIssueTag"in r&&(n.primaryIssueTag=null===r.primaryIssueTag?null:"string"!=typeof r.primaryIssueTag?String(r.primaryIssueTag):r.primaryIssueTag),"primaryIssuePercentage"in r&&(n.primaryIssuePercentage=null===r.primaryIssuePercentage?null:"number"!=typeof r.primaryIssuePercentage?Number(r.primaryIssuePercentage):r.primaryIssuePercentage),"secondaryIssueCategory"in r&&(n.secondaryIssueCategory=null===r.secondaryIssueCategory?null:"string"!=typeof r.secondaryIssueCategory?String(r.secondaryIssueCategory):r.secondaryIssueCategory),"secondaryIssueTag"in r&&(n.secondaryIssueTag=null===r.secondaryIssueTag?null:"string"!=typeof r.secondaryIssueTag?String(r.secondaryIssueTag):r.secondaryIssueTag),"secondaryIssuePercentage"in r&&(n.secondaryIssuePercentage=null===r.secondaryIssuePercentage?null:"number"!=typeof r.secondaryIssuePercentage?Number(r.secondaryIssuePercentage):r.secondaryIssuePercentage),"nextHourFocus"in r&&(n.nextHourFocus=null===r.nextHourFocus?null:"string"!=typeof r.nextHourFocus?String(r.nextHourFocus):r.nextHourFocus),"satisfactionRating"in r&&(n.satisfactionRating=null===r.satisfactionRating?null:"number"!=typeof r.satisfactionRating?Number.isInteger(Number(r.satisfactionRating))?Number(r.satisfactionRating):Math.floor(Number(r.satisfactionRating)):Number.isInteger(r.satisfactionRating)?r.satisfactionRating:Math.floor(r.satisfactionRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"class1TraysPerHourPotential"in r&&(n.class1TraysPerHourPotential="number"!=typeof r.class1TraysPerHourPotential?Number.isInteger(Number(r.class1TraysPerHourPotential))?Number(r.class1TraysPerHourPotential):Math.floor(Number(r.class1TraysPerHourPotential)):Number.isInteger(r.class1TraysPerHourPotential)?r.class1TraysPerHourPotential:Math.floor(r.class1TraysPerHourPotential)),"class1TraysPerHourExcludingDowntime"in r&&(n.class1TraysPerHourExcludingDowntime="number"!=typeof r.class1TraysPerHourExcludingDowntime?Number.isInteger(Number(r.class1TraysPerHourExcludingDowntime))?Number(r.class1TraysPerHourExcludingDowntime):Math.floor(Number(r.class1TraysPerHourExcludingDowntime)):Number.isInteger(r.class1TraysPerHourExcludingDowntime)?r.class1TraysPerHourExcludingDowntime:Math.floor(r.class1TraysPerHourExcludingDowntime)),"class1TraysPerManHourPotential"in r&&(n.class1TraysPerManHourPotential=null===r.class1TraysPerManHourPotential?null:"number"!=typeof r.class1TraysPerManHourPotential?Number(r.class1TraysPerManHourPotential):r.class1TraysPerManHourPotential),"class1TraysPerManHourExcludingDowntime"in r&&(n.class1TraysPerManHourExcludingDowntime=null===r.class1TraysPerManHourExcludingDowntime?null:"number"!=typeof r.class1TraysPerManHourExcludingDowntime?Number(r.class1TraysPerManHourExcludingDowntime):r.class1TraysPerManHourExcludingDowntime),"manningPercentage"in r&&(n.manningPercentage=null===r.manningPercentage?null:"number"!=typeof r.manningPercentage?Number(r.manningPercentage):r.manningPercentage),"totalManning"in r&&(n.totalManning=null===r.totalManning?null:"number"!=typeof r.totalManning?Number.isInteger(Number(r.totalManning))?Number(r.totalManning):Math.floor(Number(r.totalManning)):Number.isInteger(r.totalManning)?r.totalManning:Math.floor(r.totalManning)),"uptimePercentage"in r&&(n.uptimePercentage="number"!=typeof r.uptimePercentage?Number(r.uptimePercentage):r.uptimePercentage),"downtimePercentage"in r&&(n.downtimePercentage="number"!=typeof r.downtimePercentage?Number(r.downtimePercentage):r.downtimePercentage),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4045:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.createdTimestamp=new Date,t.type="",t.lineManagerName=null,t.binsTippedTarget=null,t.initialClass1Manning=null,t.initialClass2Manning=null,t.readyTimestamp=null,t.startTimestamp=null,t.finishTimestamp=null,t.publishTimestamp=null,t.satisfactionRating=null,t.keyCelebration=null,t.keyChallenge=null,t.handoverNotes=[],t.areaNotes=[],t.schedule={startTime:"",endTime:"",breaks:[]},t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n,r=new f(t),i={};return"string"==typeof e?i=JSON.parse(e):"object"===o(e)&&(i=e),"id"in i&&(r.id="string"!=typeof i.id?String(i.id):i.id),"packingLineId"in i&&(r.packingLineId="string"!=typeof i.packingLineId?String(i.packingLineId):i.packingLineId),"createdTimestamp"in i&&(r.createdTimestamp="string"!=typeof i.createdTimestamp?new Date(String(i.createdTimestamp)):new Date(i.createdTimestamp)),"type"in i&&(r.type="string"!=typeof i.type?String(i.type):i.type),"lineManagerName"in i&&(r.lineManagerName=null===i.lineManagerName?null:"string"!=typeof i.lineManagerName?String(i.lineManagerName):i.lineManagerName),"binsTippedTarget"in i&&(r.binsTippedTarget=null===i.binsTippedTarget?null:"number"!=typeof i.binsTippedTarget?Number.isInteger(Number(i.binsTippedTarget))?Number(i.binsTippedTarget):Math.floor(Number(i.binsTippedTarget)):Number.isInteger(i.binsTippedTarget)?i.binsTippedTarget:Math.floor(i.binsTippedTarget)),"initialClass1Manning"in i&&(r.initialClass1Manning=null===i.initialClass1Manning?null:"number"!=typeof i.initialClass1Manning?Number.isInteger(Number(i.initialClass1Manning))?Number(i.initialClass1Manning):Math.floor(Number(i.initialClass1Manning)):Number.isInteger(i.initialClass1Manning)?i.initialClass1Manning:Math.floor(i.initialClass1Manning)),"initialClass2Manning"in i&&(r.initialClass2Manning=null===i.initialClass2Manning?null:"number"!=typeof i.initialClass2Manning?Number.isInteger(Number(i.initialClass2Manning))?Number(i.initialClass2Manning):Math.floor(Number(i.initialClass2Manning)):Number.isInteger(i.initialClass2Manning)?i.initialClass2Manning:Math.floor(i.initialClass2Manning)),"readyTimestamp"in i&&(r.readyTimestamp=null===i.readyTimestamp?null:"string"!=typeof i.readyTimestamp?new Date(String(i.readyTimestamp)):new Date(i.readyTimestamp)),"startTimestamp"in i&&(r.startTimestamp=null===i.startTimestamp?null:"string"!=typeof i.startTimestamp?new Date(String(i.startTimestamp)):new Date(i.startTimestamp)),"finishTimestamp"in i&&(r.finishTimestamp=null===i.finishTimestamp?null:"string"!=typeof i.finishTimestamp?new Date(String(i.finishTimestamp)):new Date(i.finishTimestamp)),"publishTimestamp"in i&&(r.publishTimestamp=null===i.publishTimestamp?null:"string"!=typeof i.publishTimestamp?new Date(String(i.publishTimestamp)):new Date(i.publishTimestamp)),"satisfactionRating"in i&&(r.satisfactionRating=null===i.satisfactionRating?null:"number"!=typeof i.satisfactionRating?Number.isInteger(Number(i.satisfactionRating))?Number(i.satisfactionRating):Math.floor(Number(i.satisfactionRating)):Number.isInteger(i.satisfactionRating)?i.satisfactionRating:Math.floor(i.satisfactionRating)),"keyCelebration"in i&&(r.keyCelebration=null===i.keyCelebration?null:"string"!=typeof i.keyCelebration?String(i.keyCelebration):i.keyCelebration),"keyChallenge"in i&&(r.keyChallenge=null===i.keyChallenge?null:"string"!=typeof i.keyChallenge?String(i.keyChallenge):i.keyChallenge),"handoverNotes"in i&&(r.handoverNotes=!0!==Array.isArray(i.handoverNotes)?[]:i.handoverNotes.map((function(e){return t={},"object"===o(e)&&"area"in e?t.area="string"!=typeof e.area?String(e.area):e.area:t.area="","object"===o(e)&&"noteContent"in e?t.noteContent="string"!=typeof e.noteContent?String(e.noteContent):e.noteContent:t.noteContent="",t;var t}))),"areaNotes"in i&&(r.areaNotes=!0!==Array.isArray(i.areaNotes)?[]:i.areaNotes.map((function(e){return t={},"object"===o(e)&&"area"in e?t.area="string"!=typeof e.area?String(e.area):e.area:t.area="","object"===o(e)&&"timestamp"in e?t.timestamp="string"!=typeof e.timestamp?new Date(String(e.timestamp)):new Date(e.timestamp):t.timestamp=new Date,"object"===o(e)&&"content"in e?t.content="string"!=typeof e.content?String(e.content):e.content:t.content="",t;var t}))),"schedule"in i&&(r.schedule=(n={},"object"===o(i.schedule)&&"startTime"in i.schedule?n.startTime="string"!=typeof i.schedule.startTime?String(i.schedule.startTime):i.schedule.startTime:n.startTime="","object"===o(i.schedule)&&"endTime"in i.schedule?n.endTime="string"!=typeof i.schedule.endTime?String(i.schedule.endTime):i.schedule.endTime:n.endTime="","object"===o(i.schedule)&&"breaks"in i.schedule?n.breaks=!0!==Array.isArray(i.schedule.breaks)?[]:i.schedule.breaks.map((function(e){return t={},"object"===o(e)&&"startTime"in e?t.startTime="string"!=typeof e.startTime?String(e.startTime):e.startTime:t.startTime="","object"===o(e)&&"endTime"in e?t.endTime="string"!=typeof e.endTime?String(e.endTime):e.endTime:t.endTime="",t;var t})):n.breaks=[],n)),"status"in i&&(r.status="string"!=typeof i.status?String(i.status):i.status),"deleted"in i&&(r.deleted="boolean"!=typeof i.deleted?Boolean(i.deleted):i.deleted),"updateTimestamp"in i&&(r.updateTimestamp="string"!=typeof i.updateTimestamp?new Date(String(i.updateTimestamp)):new Date(i.updateTimestamp)),r}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9873:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.publishTimestamp=null,t.qualityManagerUserId="",t.qualityManagerName="",t.accuracyResults=[],t.auditResults=[],t.packrunResults=[],t.satisfactionRating=null,t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"publishTimestamp"in r&&(n.publishTimestamp=null===r.publishTimestamp?null:"string"!=typeof r.publishTimestamp?new Date(String(r.publishTimestamp)):new Date(r.publishTimestamp)),"qualityManagerUserId"in r&&(n.qualityManagerUserId="string"!=typeof r.qualityManagerUserId?String(r.qualityManagerUserId):r.qualityManagerUserId),"qualityManagerName"in r&&(n.qualityManagerName="string"!=typeof r.qualityManagerName?String(r.qualityManagerName):r.qualityManagerName),"accuracyResults"in r&&(n.accuracyResults=!0!==Array.isArray(r.accuracyResults)?[]:r.accuracyResults.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,t;var t}))),"auditResults"in r&&(n.auditResults=!0!==Array.isArray(r.auditResults)?[]:r.auditResults.map((function(e){return t={},"object"===o(e)&&"type"in e?t.type="string"!=typeof e.type?String(e.type):e.type:t.type="","object"===o(e)&&"value"in e?t.value="number"!=typeof e.value?Number(e.value):e.value:t.value=0,t;var t}))),"packrunResults"in r&&(n.packrunResults=!0!==Array.isArray(r.packrunResults)?[]:r.packrunResults.map((function(e){return t={},"object"===o(e)&&"packrunId"in e?t.packrunId="string"!=typeof e.packrunId?String(e.packrunId):e.packrunId:t.packrunId="","object"===o(e)&&"packrunName"in e?t.packrunName="string"!=typeof e.packrunName?String(e.packrunName):e.packrunName:t.packrunName="","object"===o(e)&&"minorPackingDefects"in e?t.minorPackingDefects="number"!=typeof e.minorPackingDefects?Number(e.minorPackingDefects):e.minorPackingDefects:t.minorPackingDefects=0,"object"===o(e)&&"majorPackingDefects"in e?t.majorPackingDefects="number"!=typeof e.majorPackingDefects?Number(e.majorPackingDefects):e.majorPackingDefects:t.majorPackingDefects=0,"object"===o(e)&&"softs"in e?t.softs="number"!=typeof e.softs?Number(e.softs):e.softs:t.softs=0,"object"===o(e)&&"cuts"in e?t.cuts="number"!=typeof e.cuts?Number(e.cuts):e.cuts:t.cuts=0,"object"===o(e)&&"rots"in e?t.rots="number"!=typeof e.rots?Number(e.rots):e.rots:t.rots=0,"object"===o(e)&&"softsLineAverageSampleSize"in e?t.softsLineAverageSampleSize=null===e.softsLineAverageSampleSize?null:"number"!=typeof e.softsLineAverageSampleSize?Number.isInteger(Number(e.softsLineAverageSampleSize))?Number(e.softsLineAverageSampleSize):Math.floor(Number(e.softsLineAverageSampleSize)):Number.isInteger(e.softsLineAverageSampleSize)?e.softsLineAverageSampleSize:Math.floor(e.softsLineAverageSampleSize):t.softsLineAverageSampleSize=null,"object"===o(e)&&"softsLineAverageValue"in e?t.softsLineAverageValue=null===e.softsLineAverageValue?null:"number"!=typeof e.softsLineAverageValue?Number(e.softsLineAverageValue):e.softsLineAverageValue:t.softsLineAverageValue=null,"object"===o(e)&&"exportFruitInClass2"in e?t.exportFruitInClass2=null===e.exportFruitInClass2?null:"number"!=typeof e.exportFruitInClass2?Number(e.exportFruitInClass2):e.exportFruitInClass2:t.exportFruitInClass2=null,"object"===o(e)&&"exportFruitInLocalMarket"in e?t.exportFruitInLocalMarket=null===e.exportFruitInLocalMarket?null:"number"!=typeof e.exportFruitInLocalMarket?Number(e.exportFruitInLocalMarket):e.exportFruitInLocalMarket:t.exportFruitInLocalMarket=null,"object"===o(e)&&"exportFruitInWaste"in e?t.exportFruitInWaste=null===e.exportFruitInWaste?null:"number"!=typeof e.exportFruitInWaste?Number(e.exportFruitInWaste):e.exportFruitInWaste:t.exportFruitInWaste=null,t;var t}))),"satisfactionRating"in r&&(n.satisfactionRating=null===r.satisfactionRating?null:"number"!=typeof r.satisfactionRating?Number.isInteger(Number(r.satisfactionRating))?Number(r.satisfactionRating):Math.floor(Number(r.satisfactionRating)):Number.isInteger(r.satisfactionRating)?r.satisfactionRating:Math.floor(r.satisfactionRating)),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6896:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.pdfReportContent=null,t.pdfReportFileName=null,t.sendGridApi=null,t.status="",t.emailContacts=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"pdfReportContent"in r&&(n.pdfReportContent=null===r.pdfReportContent?null:"string"!=typeof r.pdfReportContent?String(r.pdfReportContent):r.pdfReportContent),"pdfReportFileName"in r&&(n.pdfReportFileName=null===r.pdfReportFileName?null:"string"!=typeof r.pdfReportFileName?String(r.pdfReportFileName):r.pdfReportFileName),"sendGridApi"in r&&(n.sendGridApi=function(){if(null===r.sendGridApi)return null;var e={};return"object"===o(r.sendGridApi)&&"requestCount"in r.sendGridApi?e.requestCount="number"!=typeof r.sendGridApi.requestCount?Number.isInteger(Number(r.sendGridApi.requestCount))?Number(r.sendGridApi.requestCount):Math.floor(Number(r.sendGridApi.requestCount)):Number.isInteger(r.sendGridApi.requestCount)?r.sendGridApi.requestCount:Math.floor(r.sendGridApi.requestCount):e.requestCount=0,"object"===o(r.sendGridApi)&&"requestTimestamp"in r.sendGridApi?e.requestTimestamp=null===r.sendGridApi.requestTimestamp?null:"string"!=typeof r.sendGridApi.requestTimestamp?new Date(String(r.sendGridApi.requestTimestamp)):new Date(r.sendGridApi.requestTimestamp):e.requestTimestamp=null,"object"===o(r.sendGridApi)&&"responseCode"in r.sendGridApi?e.responseCode=null===r.sendGridApi.responseCode?null:"number"!=typeof r.sendGridApi.responseCode?Number.isInteger(Number(r.sendGridApi.responseCode))?Number(r.sendGridApi.responseCode):Math.floor(Number(r.sendGridApi.responseCode)):Number.isInteger(r.sendGridApi.responseCode)?r.sendGridApi.responseCode:Math.floor(r.sendGridApi.responseCode):e.responseCode=null,"object"===o(r.sendGridApi)&&"responseMessage"in r.sendGridApi?e.responseMessage=null===r.sendGridApi.responseMessage?null:"string"!=typeof r.sendGridApi.responseMessage?String(r.sendGridApi.responseMessage):r.sendGridApi.responseMessage:e.responseMessage=null,"object"===o(r.sendGridApi)&&"completed"in r.sendGridApi?e.completed="boolean"!=typeof r.sendGridApi.completed?Boolean(r.sendGridApi.completed):r.sendGridApi.completed:e.completed=!1,e}()),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"emailContacts"in r&&(n.emailContacts=!0!==Array.isArray(r.emailContacts)?[]:r.emailContacts.map((function(e){return t={},"object"===o(e)&&"email"in e?t.email="string"!=typeof e.email?String(e.email):e.email:t.email="","object"===o(e)&&"firstName"in e?t.firstName="string"!=typeof e.firstName?String(e.firstName):e.firstName:t.firstName="","object"===o(e)&&"lastName"in e?t.lastName="string"!=typeof e.lastName?String(e.lastName):e.lastName:t.lastName="",t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1996:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.shiftId="",t.createdTimestamp=new Date,t.completedTimestamp=null,t.authorUserId=null,t.authorName="",t.type="",t.tags=[],t.title="",t.content="",t.status="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"shiftId"in r&&(n.shiftId="string"!=typeof r.shiftId?String(r.shiftId):r.shiftId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"completedTimestamp"in r&&(n.completedTimestamp=null===r.completedTimestamp?null:"string"!=typeof r.completedTimestamp?new Date(String(r.completedTimestamp)):new Date(r.completedTimestamp)),"authorUserId"in r&&(n.authorUserId=null===r.authorUserId?null:"string"!=typeof r.authorUserId?String(r.authorUserId):r.authorUserId),"authorName"in r&&(n.authorName="string"!=typeof r.authorName?String(r.authorName):r.authorName),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"tags"in r&&(n.tags=!0!==Array.isArray(r.tags)?[]:r.tags.map((function(e){return"string"!=typeof e?String(e):e}))),"title"in r&&(n.title="string"!=typeof r.title?String(r.title):r.title),"content"in r&&(n.content="string"!=typeof r.content?String(r.content):r.content),"status"in r&&(n.status="string"!=typeof r.status?String(r.status):r.status),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3202:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.points={},t.packingLineId="",t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"points"in r&&(n.points="object"!==o(r.points)?Object(r.points):r.points),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6857:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.packingLineId="",t.packrunId="",t.createdTimestamp=new Date,t.eventsPerBin=0,t.totalEventsCount=0,t.averageEventsDuration=0,t.totalEventsDuration=0,t.eventsFinalizedTimestamp=null,t.eventsAccurate=null,t.eventsNotAccurateReason=null,t.freshPackSoftSortApi=null,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"packingLineId"in r&&(n.packingLineId="string"!=typeof r.packingLineId?String(r.packingLineId):r.packingLineId),"packrunId"in r&&(n.packrunId="string"!=typeof r.packrunId?String(r.packrunId):r.packrunId),"createdTimestamp"in r&&(n.createdTimestamp="string"!=typeof r.createdTimestamp?new Date(String(r.createdTimestamp)):new Date(r.createdTimestamp)),"eventsPerBin"in r&&(n.eventsPerBin="number"!=typeof r.eventsPerBin?Number(r.eventsPerBin):r.eventsPerBin),"totalEventsCount"in r&&(n.totalEventsCount="number"!=typeof r.totalEventsCount?Number.isInteger(Number(r.totalEventsCount))?Number(r.totalEventsCount):Math.floor(Number(r.totalEventsCount)):Number.isInteger(r.totalEventsCount)?r.totalEventsCount:Math.floor(r.totalEventsCount)),"averageEventsDuration"in r&&(n.averageEventsDuration="number"!=typeof r.averageEventsDuration?Number(r.averageEventsDuration):r.averageEventsDuration),"totalEventsDuration"in r&&(n.totalEventsDuration="number"!=typeof r.totalEventsDuration?Number(r.totalEventsDuration):r.totalEventsDuration),"eventsFinalizedTimestamp"in r&&(n.eventsFinalizedTimestamp=null===r.eventsFinalizedTimestamp?null:"string"!=typeof r.eventsFinalizedTimestamp?new Date(String(r.eventsFinalizedTimestamp)):new Date(r.eventsFinalizedTimestamp)),"eventsAccurate"in r&&(n.eventsAccurate=null===r.eventsAccurate?null:"boolean"!=typeof r.eventsAccurate?Boolean(r.eventsAccurate):r.eventsAccurate),"eventsNotAccurateReason"in r&&(n.eventsNotAccurateReason=null===r.eventsNotAccurateReason?null:"string"!=typeof r.eventsNotAccurateReason?String(r.eventsNotAccurateReason):r.eventsNotAccurateReason),"freshPackSoftSortApi"in r&&(n.freshPackSoftSortApi=null===r.freshPackSoftSortApi?null:"object"!==o(r.freshPackSoftSortApi)?Object(r.freshPackSoftSortApi):r.freshPackSoftSortApi),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9311:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.code="",t.name="",t.description="",t.image="",t.fruitSizes=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"code"in r&&(n.code="string"!=typeof r.code?String(r.code):r.code),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"description"in r&&(n.description="string"!=typeof r.description?String(r.description):r.description),"image"in r&&(n.image="string"!=typeof r.image?String(r.image):r.image),"fruitSizes"in r&&(n.fruitSizes=!0!==Array.isArray(r.fruitSizes)?[]:r.fruitSizes.map((function(e){return t={},"object"===o(e)&&"size"in e?t.size="string"!=typeof e.size?String(e.size):e.size:t.size="",t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},9835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=E(n(2565)),o=E(n(2847)),i=E(n(3720)),a=E(n(3428)),u=E(n(4601)),c=E(n(1237)),s=E(n(1425)),l=E(n(4031)),f=E(n(9256)),m=E(n(6865)),p=E(n(4461)),d=E(n(3794)),y=E(n(7462)),g=E(n(1938)),b=E(n(2276)),h=E(n(6982)),T=E(n(8544)),v=E(n(5162)),N=E(n(8792)),S=E(n(3465)),w=E(n(3908)),A=E(n(4738)),j=E(n(2519)),P=E(n(8501)),k=E(n(5784)),M=E(n(4045)),C=E(n(9873)),I=E(n(6896)),O=E(n(1996)),D=E(n(3202)),R=E(n(6857)),_=E(n(9311));function E(e){return e&&e.__esModule?e:{default:e}}var q={BinTipBinCardModel:r.default,BinTipBinModel:o.default,BinTipWeightModel:i.default,CompacSizerBatchModel:a.default,CompacSizerModel:u.default,CompacSizerOutletProductChangeModel:c.default,CompacSizerOutletTypeChangeModel:s.default,CompacSizerOutletTypeModel:l.default,CompacSizerPackrunSummaryModel:f.default,DowntimeEventModel:m.default,FreshPackPackrunSummaryModel:p.default,FreshQualityPackrunSummaryModel:d.default,GrowingMethodModel:y.default,MAFSizerBatchModel:g.default,MAFSizerModel:b.default,MAFSizerOutletArticleChangeModel:h.default,MAFSizerPackrunSummaryModel:T.default,PackTypeModel:v.default,PackingLineModel:N.default,PackrunModel:S.default,RejectBinModel:w.default,RejectBinScaleModel:A.default,RejectBinWeightModel:j.default,ShiftFocusMeetingModel:P.default,ShiftHourlyEntryModel:k.default,ShiftModel:M.default,ShiftQualitySummaryModel:C.default,ShiftSummaryReportModel:I.default,ShiftTaskModel:O.default,SoftSortBeltModel:D.default,SoftSortPackrunSummaryModel:R.default,VarietyModel:_.default};t.default=q},1475:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={Site:((r=n(9835))&&r.__esModule?r:{default:r}).default};t.default=o},232:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.siteId=0,e.name="",e.enabled=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"siteId"in n&&(t.siteId="number"!=typeof n.siteId?Number.isInteger(Number(n.siteId))?Number(n.siteId):Math.floor(Number(n.siteId)):Number.isInteger(n.siteId)?n.siteId:Math.floor(n.siteId)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8050:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.name="",e.companyId="",e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4318:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.name="",t.resetPoint=0,t.externalResetPoints=[],t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"resetPoint"in r&&(n.resetPoint="number"!=typeof r.resetPoint?Number.isInteger(Number(r.resetPoint))?Number(r.resetPoint):Math.floor(Number(r.resetPoint)):Number.isInteger(r.resetPoint)?r.resetPoint:Math.floor(r.resetPoint)),"externalResetPoints"in r&&(n.externalResetPoints=!0!==Array.isArray(r.externalResetPoints)?[]:r.externalResetPoints.map((function(e){return t={},"object"===o(e)&&"point"in e?t.point="number"!=typeof e.point?Number.isInteger(Number(e.point))?Number(e.point):Math.floor(Number(e.point)):Number.isInteger(e.point)?e.point:Math.floor(e.point):t.point=0,"object"===o(e)&&"value"in e?t.value="boolean"!=typeof e.value?Boolean(e.value):e.value:t.value=!1,t;var t}))),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},2163:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.groupId="",t.name="",t.critical=!1,t.tripScript="",t.resetScript=null,t.tripDelay=0,t.resetDelay=0,t.autoReset=!1,t.autoResetDelay=0,t.trippedStatePoint=0,t.trippedTimestampPoint=0,t.internalTripStartPoint=0,t.internalResetStartPoint=0,t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"groupId"in r&&(n.groupId="string"!=typeof r.groupId?String(r.groupId):r.groupId),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"critical"in r&&(n.critical="boolean"!=typeof r.critical?Boolean(r.critical):r.critical),"tripScript"in r&&(n.tripScript="string"!=typeof r.tripScript?String(r.tripScript):r.tripScript),"resetScript"in r&&(n.resetScript=null===r.resetScript?null:"string"!=typeof r.resetScript?String(r.resetScript):r.resetScript),"tripDelay"in r&&(n.tripDelay="number"!=typeof r.tripDelay?Number.isInteger(Number(r.tripDelay))?Number(r.tripDelay):Math.floor(Number(r.tripDelay)):Number.isInteger(r.tripDelay)?r.tripDelay:Math.floor(r.tripDelay)),"resetDelay"in r&&(n.resetDelay="number"!=typeof r.resetDelay?Number.isInteger(Number(r.resetDelay))?Number(r.resetDelay):Math.floor(Number(r.resetDelay)):Number.isInteger(r.resetDelay)?r.resetDelay:Math.floor(r.resetDelay)),"autoReset"in r&&(n.autoReset="boolean"!=typeof r.autoReset?Boolean(r.autoReset):r.autoReset),"autoResetDelay"in r&&(n.autoResetDelay="number"!=typeof r.autoResetDelay?Number.isInteger(Number(r.autoResetDelay))?Number(r.autoResetDelay):Math.floor(Number(r.autoResetDelay)):Number.isInteger(r.autoResetDelay)?r.autoResetDelay:Math.floor(r.autoResetDelay)),"trippedStatePoint"in r&&(n.trippedStatePoint="number"!=typeof r.trippedStatePoint?Number.isInteger(Number(r.trippedStatePoint))?Number(r.trippedStatePoint):Math.floor(Number(r.trippedStatePoint)):Number.isInteger(r.trippedStatePoint)?r.trippedStatePoint:Math.floor(r.trippedStatePoint)),"trippedTimestampPoint"in r&&(n.trippedTimestampPoint="number"!=typeof r.trippedTimestampPoint?Number.isInteger(Number(r.trippedTimestampPoint))?Number(r.trippedTimestampPoint):Math.floor(Number(r.trippedTimestampPoint)):Number.isInteger(r.trippedTimestampPoint)?r.trippedTimestampPoint:Math.floor(r.trippedTimestampPoint)),"internalTripStartPoint"in r&&(n.internalTripStartPoint="number"!=typeof r.internalTripStartPoint?Number.isInteger(Number(r.internalTripStartPoint))?Number(r.internalTripStartPoint):Math.floor(Number(r.internalTripStartPoint)):Number.isInteger(r.internalTripStartPoint)?r.internalTripStartPoint:Math.floor(r.internalTripStartPoint)),"internalResetStartPoint"in r&&(n.internalResetStartPoint="number"!=typeof r.internalResetStartPoint?Number.isInteger(Number(r.internalResetStartPoint))?Number(r.internalResetStartPoint):Math.floor(Number(r.internalResetStartPoint)):Number.isInteger(r.internalResetStartPoint)?r.internalResetStartPoint:Math.floor(r.internalResetStartPoint)),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},1326:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.type="",t.data={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"data"in r&&(n.data="object"!==o(r.data)?Object(r.data):r.data),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},5916:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.permanentObjectId="",t.type="",t.timestamp=new Date,t.data={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"permanentObjectId"in r&&(n.permanentObjectId="string"!=typeof r.permanentObjectId?String(r.permanentObjectId):r.permanentObjectId),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"timestamp"in r&&(n.timestamp="string"!=typeof r.timestamp?new Date(String(r.timestamp)):new Date(r.timestamp)),"data"in r&&(n.data="object"!==o(r.data)?Object(r.data):r.data),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},6909:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.rtuId=null,t.keyIndex="",t.type="",t.definition={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"definition"in r&&(n.definition="object"!==o(r.definition)?Object(r.definition):r.definition),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3932:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id=0,t.rtuId=null,t.pluginId=null,t.name="",t.type="",t.valueType="",t.permissions="",t.enabled=!1,t.settings={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="number"!=typeof r.id?Number.isInteger(Number(r.id))?Number(r.id):Math.floor(Number(r.id)):Number.isInteger(r.id)?r.id:Math.floor(r.id)),"rtuId"in r&&(n.rtuId=null===r.rtuId?null:"number"!=typeof r.rtuId?Number.isInteger(Number(r.rtuId))?Number(r.rtuId):Math.floor(Number(r.rtuId)):Number.isInteger(r.rtuId)?r.rtuId:Math.floor(r.rtuId)),"pluginId"in r&&(n.pluginId=null===r.pluginId?null:"number"!=typeof r.pluginId?Number.isInteger(Number(r.pluginId))?Number(r.pluginId):Math.floor(Number(r.pluginId)):Number.isInteger(r.pluginId)?r.pluginId:Math.floor(r.pluginId)),"name"in r&&(n.name="string"!=typeof r.name?String(r.name):r.name),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"valueType"in r&&(n.valueType="string"!=typeof r.valueType?String(r.valueType):r.valueType),"permissions"in r&&(n.permissions="string"!=typeof r.permissions?String(r.permissions):r.permissions),"enabled"in r&&(n.enabled="boolean"!=typeof r.enabled?Boolean(r.enabled):r.enabled),"settings"in r&&(n.settings="object"!==o(r.settings)?Object(r.settings):r.settings),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},136:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this)).id="",t.keyIndex="",t.type="",t.definition={},t.deleted=!1,t.updateTimestamp=new Date,t.siteId=e,t}return t=f,n=[{key:"fromJSON",value:function(e,t){var n=new f(t),r={};return"string"==typeof e?r=JSON.parse(e):"object"===o(e)&&(r=e),"id"in r&&(n.id="string"!=typeof r.id?String(r.id):r.id),"keyIndex"in r&&(n.keyIndex="string"!=typeof r.keyIndex?String(r.keyIndex):r.keyIndex),"type"in r&&(n.type="string"!=typeof r.type?String(r.type):r.type),"definition"in r&&(n.definition="object"!==o(r.definition)?Object(r.definition):r.definition),"deleted"in r&&(n.deleted="boolean"!=typeof r.deleted?Boolean(r.deleted):r.deleted),"updateTimestamp"in r&&(n.updateTimestamp="string"!=typeof r.updateTimestamp?new Date(String(r.updateTimestamp)):new Date(r.updateTimestamp)),n}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(4318)),o=l(n(2163)),i=l(n(1326)),a=l(n(5916)),u=l(n(6909)),c=l(n(3932)),s=l(n(136));function l(e){return e&&e.__esModule?e:{default:e}}var f={AlarmGroupModel:r.default,AlarmModel:o.default,DefinitionModel:i.default,PermanentObjectDataModel:a.default,PermanentObjectModel:u.default,PointModel:c.default,TemporaryObjectModel:s.default};t.default=f},7410:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id=0,e.name="",e.companyId="",e.enabled=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="number"!=typeof n.id?Number.isInteger(Number(n.id))?Number(n.id):Math.floor(Number(n.id)):Number.isInteger(n.id)?n.id:Math.floor(n.id)),"name"in n&&(t.name="string"!=typeof n.name?String(n.name):n.name),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"enabled"in n&&(t.enabled="boolean"!=typeof n.enabled?Boolean(n.enabled):n.enabled),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},8365:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.accountType="",e.issueTimestamp=new Date,e.expireTimestamp=new Date,e.activityTimestamp=null,e.unlockTimestamp=null,e.lockTimestamp=null,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"accountType"in n&&(t.accountType="string"!=typeof n.accountType?String(n.accountType):n.accountType),"issueTimestamp"in n&&(t.issueTimestamp="string"!=typeof n.issueTimestamp?new Date(String(n.issueTimestamp)):new Date(n.issueTimestamp)),"expireTimestamp"in n&&(t.expireTimestamp="string"!=typeof n.expireTimestamp?new Date(String(n.expireTimestamp)):new Date(n.expireTimestamp)),"activityTimestamp"in n&&(t.activityTimestamp=null===n.activityTimestamp?null:"string"!=typeof n.activityTimestamp?new Date(String(n.activityTimestamp)):new Date(n.activityTimestamp)),"unlockTimestamp"in n&&(t.unlockTimestamp=null===n.unlockTimestamp?null:"string"!=typeof n.unlockTimestamp?new Date(String(n.unlockTimestamp)):new Date(n.unlockTimestamp)),"lockTimestamp"in n&&(t.lockTimestamp=null===n.lockTimestamp?null:"string"!=typeof n.lockTimestamp?new Date(String(n.lockTimestamp)):new Date(n.lockTimestamp)),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},3298:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.accountId="",e.companyId="",e.action="",e.issueTimestamp=new Date,e.expireTimestamp=new Date,e.activityTimestamp=null,e.completedTimestamp=null,e.emailTimestamp=null,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"accountId"in n&&(t.accountId="string"!=typeof n.accountId?String(n.accountId):n.accountId),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"action"in n&&(t.action="string"!=typeof n.action?String(n.action):n.action),"issueTimestamp"in n&&(t.issueTimestamp="string"!=typeof n.issueTimestamp?new Date(String(n.issueTimestamp)):new Date(n.issueTimestamp)),"expireTimestamp"in n&&(t.expireTimestamp="string"!=typeof n.expireTimestamp?new Date(String(n.expireTimestamp)):new Date(n.expireTimestamp)),"activityTimestamp"in n&&(t.activityTimestamp=null===n.activityTimestamp?null:"string"!=typeof n.activityTimestamp?new Date(String(n.activityTimestamp)):new Date(n.activityTimestamp)),"completedTimestamp"in n&&(t.completedTimestamp=null===n.completedTimestamp?null:"string"!=typeof n.completedTimestamp?new Date(String(n.completedTimestamp)):new Date(n.completedTimestamp)),"emailTimestamp"in n&&(t.emailTimestamp=null===n.emailTimestamp?null:"string"!=typeof n.emailTimestamp?new Date(String(n.emailTimestamp)):new Date(n.emailTimestamp)),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},4905:(e,t,n)=>{"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,r,s,l=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(s){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this)).id="",e.email="",e.firstName=null,e.lastName=null,e.companyId="",e.policies=[],e.hasPassword=!1,e.hasPinCode=!1,e.deleted=!1,e.updateTimestamp=new Date,e}return t=f,n=[{key:"fromJSON",value:function(e){var t=new f,n={};return"string"==typeof e?n=JSON.parse(e):"object"===o(e)&&(n=e),"id"in n&&(t.id="string"!=typeof n.id?String(n.id):n.id),"email"in n&&(t.email="string"!=typeof n.email?String(n.email):n.email),"firstName"in n&&(t.firstName=null===n.firstName?null:"string"!=typeof n.firstName?String(n.firstName):n.firstName),"lastName"in n&&(t.lastName=null===n.lastName?null:"string"!=typeof n.lastName?String(n.lastName):n.lastName),"companyId"in n&&(t.companyId="string"!=typeof n.companyId?String(n.companyId):n.companyId),"policies"in n&&(t.policies=!0!==Array.isArray(n.policies)?[]:n.policies.map((function(e){return"string"!=typeof e?String(e):e}))),"hasPassword"in n&&(t.hasPassword="boolean"!=typeof n.hasPassword?Boolean(n.hasPassword):n.hasPassword),"hasPinCode"in n&&(t.hasPinCode="boolean"!=typeof n.hasPinCode?Boolean(n.hasPinCode):n.hasPinCode),"deleted"in n&&(t.deleted="boolean"!=typeof n.deleted?Boolean(n.deleted):n.deleted),"updateTimestamp"in n&&(t.updateTimestamp="string"!=typeof n.updateTimestamp?new Date(String(n.updateTimestamp)):new Date(n.updateTimestamp)),t}}],null&&i(t.prototype,null),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(((r=n(7416))&&r.__esModule?r:{default:r}).default);t.default=s},471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(3091)),o=g(n(348)),i=g(n(7416)),a=g(n(1969)),u=g(n(556)),c=g(n(232)),s=g(n(8050)),l=g(n(7410)),f=g(n(8365)),m=g(n(3298)),p=g(n(4905)),d=g(n(1475)),y=g(n(4118));function g(e){return e&&e.__esModule?e:{default:e}}var b={AccountPolicyModel:r.default,ApiAccountModel:o.default,BaseModel:i.default,CompanyModel:a.default,FirebaseTokenModel:u.default,RTUModel:c.default,RTUPluginModel:s.default,SiteModel:l.default,TokenModel:f.default,UserAccountActionTokenModel:m.default,UserAccountModel:p.default,Packhouse:d.default,Site:y.default};t.default=b},549:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=["/token/new","/ping","/user-action-tokens/new","/user-action-tokens/verify","/user-action-tokens/actions/*","/openapi.json"]},3369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.3.16"},2238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(3778)),o=n(1568),i=n(7187),a=u(n(5587));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}u(n(3932));var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initialize",value:function(){var t=this;1==(0,o.isDefined)(e._initialized)&&1==e._initialized||(1!=(0,o.isDefined)(e._emitter)&&(e._emitter=new i.EventEmitter),1!=(0,o.isDefined)(e._subscriptions)&&(e._subscriptions={}),1!=(0,o.isDefined)(e._definitions)&&(e._definitions={}),1!=(0,o.isDefined)(e._values)&&(e._values={}),r.default.on("readpoints",(function(n,r){if((0,o.isDefined)(n)&&n.includes(".")&&r.length>0){var i=n.split(".")[1],a=void 0;if(n.startsWith("site.")?(e.log("Received `"+r.length+"` Read Points for Site ID: "+i),a=Number(i)):n.startsWith("rtu.")&&(e.log("Received `"+r.length+"` Read Points for RTU ID: "+i),a=t.getDefaultSiteId()),(0,o.isDefined)(a)&&void 0!==a&&a>0){a in e._values!=1&&(e._values[a]={});var u=[];r.forEach((function(t){if("id"in t){var n=Number(t.id);if(n>0&&"value"in t&&"timestamp"in t){var r={id:n,value:t.value,timestamp:"string"==typeof t.timestamp?new Date(t.timestamp):new Date(String(t.timestamp))};e._values[a][n]=r,u.push(r)}}})),void 0!==e._emitter&&e._emitter.emit("readpoints",a,u)}}})),e._initialized=!0)}},{key:"isInitialized",value:function(){return(0,o.isDefined)(e._initialized)&&1==e._initialized}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if(1==(0,o.isDebugMode)())switch(t){case"error":console.error("Points :: "+e);break;case"warn":case"warning":console.warn("Points :: "+e);break;case"log":default:console.log("Points :: "+e)}}},{key:"subscribe",value:function(t){if(1!=e.isInitialized())throw new Error("Points.subscribe cannot be called before the API Client has been Initialized");if(1!=(0,o.hasToken)())throw new Error("Points.subscribe cannot be called before Authentication has been successful");if(t in e._subscriptions){if(1==e._subscriptions[t].initializing)throw new Error("Points.subscribe cannot not be called more than once while already Subscribing to the same Site ID");if(1==e._subscriptions[t].completed)return e.log("Points.subscribe should not be called more than once for the same Site ID","warning"),new Promise((function(e,t){e(!0)}))}else e._subscriptions[t]={initializing:!0,completed:!1,pointIds:[]};return new Promise((function(n,o){e.loadPointDefinitions(t).then((function(){r.default.subscribe("site."+t),e.loadPointValues(t).then((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!0),n(!0)})).catch((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!1),o(new Error("Failed to Subscribe to Site ID "+t+". Unable to Fetch the Point Values"))}))})).catch((function(){t in e._subscriptions&&(e._subscriptions[t].initializing=!1,e._subscriptions[t].completed=!1),o(new Error("Failed to Subscribe to Site ID "+t+". Unable to Fetch the Point Definitions"))}))}))}},{key:"unsubscribe",value:function(t){if(1!=e.isInitialized())throw new Error("Points.unsubscribe cannot be called before the API Client has been Initialized");r.default.unsubscribe("site."+t),(0,o.isDefined)(e._definitions)&&t in e._definitions&&delete e._definitions[t],(0,o.isDefined)(e._values)&&t in e._values&&delete e._values[t],(0,o.isDefined)(e._subscriptions)&&t in e._subscriptions&&delete e._subscriptions[t]}},{key:"on",value:function(t,n){1==(0,o.isDefined)(e._emitter)&&void 0!==e._emitter||(e._emitter=new i.EventEmitter),e._emitter.on(t,n)}},{key:"off",value:function(t,n){(0,o.isDefined)(e._emitter)&&void 0!==e._emitter&&e._emitter.off(t,n)}},{key:"onReadPoints",value:function(t){e.on("readpoints",t)}},{key:"offReadPoints",value:function(t){e.off("readpoints",t)}},{key:"getDefinition",value:function(t,n){if(1==e.isInitialized())return t in e._definitions&&n in e._definitions[t]?e._definitions[t][n]:void 0}},{key:"getValue",value:function(t,n){if(1==e.isInitialized())return t in e._values&&n in e._values[t]?e._values[t][n]:void 0}},{key:"setValue",value:function(t,n,i){return new Promise((function(a,u){if(t<=0)u(new Error("Invalid Site ID `"+t+"`"));else if(n<=0)u(new Error("Invalid Point ID `"+n+"`"));else{var c=e.getDefinition(t,n);1==(0,o.isDefined)(c)&&void 0!==c&&c.id==n?r.default.emit("createWritePoint",t,n,i,c.valueType,!1,(function(e){a(e)})):u(new Error("Unknown Point ID `"+n+"` for Site ID `"+t+"`"))}}))}},{key:"loadPointDefinitions",value:function(t){return t in e._definitions!=1&&(e._definitions[t]={}),new Promise((function(n,r){a.default.getAll(t).then((function(o){t in e._definitions?(o.forEach((function(n){e._definitions[t][n.id]=n})),n(!0)):r(new Error("Site ID is no longer Subscribed"))})).catch((function(t){e.log(t,"error"),r(t)}))}))}},{key:"loadPointValues",value:function(t){return t in e._values!=1&&(e._values[t]={}),new Promise((function(n,r){a.default.getAllValues(t).then((function(o){if(t in e._values){var i=[];o.forEach((function(n){n.id in e._values[t]?(e._values[t][n.id].value==n.value&&e._values[t][n.id].timestamp==n.timestamp||i.push(n),e._values[t][n.id]=n):(i.push(n),e._values[t][n.id]=n)})),i.length>0&&void 0!==e._emitter&&e._emitter.emit("readpoints",t,i),n(!0)}else r(new Error("Site ID is no longer Subscribed"))})).catch((function(t){e.log(t,"error"),r(t)}))}))}},{key:"getDefaultSiteId",value:function(){if((0,o.isDefined)(e._definitions)&&Object.keys(e._definitions).length>0)return Number(Object.keys(e._definitions)[0])}}],null&&c(t.prototype,null),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();s(l,"_initialized",!1),s(l,"_emitter",void 0),s(l,"_subscriptions",{}),s(l,"_definitions",{}),s(l,"_values",{});var f=l;t.default=f},4732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(3300)),o=n(1568),i=m(n(9936)),a=m(n(5812)),u=m(n(5044)),c=m(n(6193)),s=m(n(6850)),l=m(n(8445)),f=m(n(4328));function m(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.performRequest("GET",t,null,n)}},{key:"putRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("PUT",t,n)}},{key:"patchRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("PATCH",t,n)}},{key:"postRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.performRequest("POST",t,n)}},{key:"deleteRequest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.performRequest("DELETE",t,null,n)}},{key:"performRequest",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.length>0&&"/"!=n[0]&&(n="/"+n),1==(0,o.isDebugMode)()&&console.log("RequestHelper :: "+t.toUpperCase()+" - "+n);var a="";if((0,o.isDefined)(i)&&"GET"==t.toUpperCase())for(var u=0,c=Object.entries(i);u<c.length;u++){var s=y(c[u],2),l=s[0],f=s[1];if(void 0!==f){var m=f;Array.isArray(f)?m=f.join(","):f instanceof Date&&(m=f.toISOString()),a+=(0==a.length?"?":"&")+l+"="+encodeURIComponent(m)}}return!0===e.hasNativeFetch()?e.performNativeFetchRequest(t,n,r,a):e.performNodeFetchRequest(t,n,r,a)}},{key:"performNativeFetchRequest",value:function(e,t,n,r){var m={method:e,mode:"cors",credentials:"omit"},p=new Headers;return(0,o.isDefined)(o.JWT)&&!1===o.NoAuthPaths.some((function(e){return new RegExp("^".concat(e,"(/.*)?$")).test(t)}))&&p.set("Authorization","Bearer ".concat(o.JWT)),(0,o.isDefined)(n)&&(p.set("Content-Type","application/json"),m.body=JSON.stringify(n)),m.headers=p,new Promise((function(e,n){fetch(o.BaseURL+t+r,m).then((function(t){if(t.ok)return 200===t.status||201===t.status?void t.json().then((function(t){e(t)})).catch((function(e){n(e)})):void e(!0);t.json().then((function(e){switch(t.status){case 400:n(new i.default(e.title));break;case 401:n(new l.default(e.title));break;case 403:n(new a.default(e.title));break;case 404:n(new c.default(e.title));break;case 405:n(new u.default(e.title));break;case 500:n(new s.default(e.title));break;default:n(new Error("Unknown HTTP Response Code `"+t.status+"`"))}})).catch((function(e){return n(e)}))})).catch((function(e){return n(new f.default(e.message))}))}))}},{key:"performNodeFetchRequest",value:function(e,t,n,m){var p={method:e,compress:!0},d=new r.Headers;return(0,o.isDefined)(o.JWT)&&!1===o.NoAuthPaths.some((function(e){return new RegExp("^".concat(e,"(/.*)?$")).test(t)}))&&d.set("Authorization","Bearer ".concat(o.JWT)),(0,o.isDefined)(n)&&(d.set("Content-Type","application/json"),p.body=JSON.stringify(n)),p.headers=d,new Promise((function(e,n){(0,r.default)(o.BaseURL+t+m,p).then((function(t){if(t.ok)return 200===t.status||201===t.status?void t.json().then((function(t){e(t)})).catch((function(e){n(e)})):void e(!0);t.json().then((function(e){switch(t.status){case 400:n(new i.default(e.title));break;case 401:n(new l.default(e.title));break;case 403:n(new a.default(e.title));break;case 404:n(new c.default(e.title));break;case 405:n(new u.default(e.title));break;case 500:n(new s.default(e.title));break;default:n(new Error("Unknown HTTP Response Code `"+t.status+"`"))}})).catch((function(e){return n(e)}))})).catch((function(e){return n(new f.default(e.message))}))}))}},{key:"hasNativeFetch",value:function(){return"object"===("undefined"==typeof window?"undefined":d(window))&&"function"==typeof window.fetch}}],null&&b(t.prototype,null),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h},3778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6809))&&r.__esModule?r:{default:r},i=n(1568),a=n(7187);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initialize",value:function(){1!=(0,i.isDefined)(e._emitter)&&(e._emitter=new a.EventEmitter),1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),e._socket=(0,o.default)(i.WebSocketServer+":"+i.WebSocketPort,{transports:["websocket"],query:{token:i.JWT}});var t=e._socket.onevent;e._socket.onevent=function(e){var n=e.data||[];t.call(this,e),e.data=["*"].concat(n),t.call(this,e)},e._socket.on("reconnect_attempt",(function(t){void 0!==e._socket&&(e._socket.io.opts.transports=["websocket"],e._socket.io.opts.query={token:i.JWT},e.log("Attempting to Re-connect. "+t+" attempts so far"))})),e._socket.on("connect",(function(){e.log("Socket Connected"),(0,i.isDefined)(e._subscriptions)&&e._subscriptions.forEach((function(t){void 0!==e._socket&&e._socket.emit("subscribe",t)}))})),e._socket.on("reconnect",(function(t){e.log("Successfully Re-connected after "+t+" attempts")})),e._socket.on("disconnect",(function(t){e.log("Socket Disconnected! Reason: "+t,"warning"),"io server disconnect"==t&&setTimeout((function(){void 0!==e._socket&&e._socket.connect()}),5e3)})),e._socket.on("ping",(function(){e.log("~PING~")})),e._socket.on("pong",(function(t){e.log("~PONG~ Latency: "+t+"ms")})),e._socket.on("unauthorized",(function(t){e.log(t)})),e._socket.on("error",(function(t){e.log("Received Error!"),e.log(t)})),e._socket.on("*",(function(t){var n;if(void 0!==e._emitter){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=e._emitter).emit.apply(n,[t].concat(o))}}))}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if(1==(0,i.isDebugMode)())switch(t){case"error":console.error("WebSocket :: "+e);break;case"warn":case"warning":console.warn("WebSocket :: "+e);break;case"log":default:console.log("WebSocket :: "+e)}}},{key:"subscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),1==(0,i.isDefined)(t)&&void 0!==t||(t="all"),0==e._subscriptions.includes(t)&&e._subscriptions.push(t),(0,i.isDefined)(e._socket)&&void 0!==e._socket&&e._socket.emit("subscribe",t)}},{key:"unsubscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;1!=(0,i.isDefined)(e._subscriptions)&&(e._subscriptions=[]),1==(0,i.isDefined)(t)&&void 0!==t||(t="all"),e._subscriptions.indexOf(t)>=0&&e._subscriptions.splice(e._subscriptions.indexOf(t),1),(0,i.isDefined)(e._socket)&&void 0!==e._socket&&e._socket.emit("unsubscribe",t)}},{key:"on",value:function(t,n){1==(0,i.isDefined)(e._emitter)&&void 0!==e._emitter||(e._emitter=new a.EventEmitter),e._emitter.on(t,n)}},{key:"emit",value:function(t){var n;if(void 0!==e._socket){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(n=e._socket).emit.apply(n,[t].concat(o))}}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();c(s,"_emitter",void 0),c(s,"_subscriptions",[]),c(s,"_socket",void 0);var l=s;t.default=l},1568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseURL=void 0,Object.defineProperty(t,"Controllers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Errors",{enumerable:!0,get:function(){return s.default}}),t.JWT=void 0,Object.defineProperty(t,"Models",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"NoAuthPaths",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Points",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"RequestHelper",{enumerable:!0,get:function(){return r.default}}),t.Version=void 0,Object.defineProperty(t,"WebSocketHelper",{enumerable:!0,get:function(){return o.default}}),t.WebSocketServer=t.WebSocketPort=void 0,t.apiAccountLogin=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a2a2a813-bbeb-11e8-99a9-b8ca3a64dc30";return new Promise((function(i,a){c.default.TokenController.create({key:e,secret:n,providerId:r}).then((function(e){t.JWT=d=e.token,o.default.initialize(),i(e.token)})).catch((function(e){return a(e)}))}))},t.disableDebugMode=function(){b=!1},t.enableDebugMode=function(){b=!0},t.getBaseURL=function(){return T},t.getToken=function(){return d},t.getWebSocketPort=function(){return N},t.getWebSocketServer=function(){return v},t.hasToken=function(){return p(d)&&S(d)},t.initialize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;0==g?(i.default.initialize(),void 0!==e&&(y(e),o.default.initialize()),g=!0):1==h()&&console.warn("API Client Initialize should not be called more than once")},t.isDebugMode=h,t.isDefined=p,t.isInitialized=function(){return 1==g},t.lock=function(){return new Promise((function(e,t){c.default.TokenController.lock().then((function(t){e(t)})).catch((function(e){return t(e)}))}))},t.logout=function(){return new Promise((function(e,n){c.default.TokenController.destroy().then((function(n){t.JWT=d=void 0,e(n)})).catch((function(e){return n(e)}))}))},t.passwordUnlock=function(e){return new Promise((function(t,n){c.default.TokenController.unlock({password:e}).then((function(e){t(e)})).catch((function(e){return n(e)}))}))},t.pinCodeUnlock=function(e){return new Promise((function(t,n){c.default.TokenController.unlock({pinCode:e}).then((function(e){t(e)})).catch((function(e){return n(e)}))}))},t.ping=function(){return new Promise((function(e,t){c.default.ToolsController.ping().then((function(t){return e("pong"===t)})).catch((function(e){return t(e)}))}))},t.setBaseURL=function(e){t.BaseURL=T=e},t.setToken=y,t.setWebSocketPort=function(e){t.WebSocketPort=N=e},t.setWebSocketServer=function(e){t.WebSocketServer=v=e},t.userAccountLogin=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a2a2a813-bbeb-11e8-99a9-b8ca3a64dc30";return new Promise((function(i,a){c.default.TokenController.create({email:e,password:n,providerId:r}).then((function(e){t.JWT=d=e.token,o.default.initialize(),i(e.token)})).catch((function(e){return a(e)}))}))};var r=m(n(4732)),o=m(n(3778)),i=m(n(2238)),a=n(3369),u=m(n(549)),c=m(n(7053)),s=m(n(806)),l=m(n(471)),f=n(9575);function m(e){return e&&e.__esModule?e:{default:e}}function p(e){return null!=e}var d=void 0;function y(e){if(!S(e))throw new Error("The JSON Web Token provided was not valid");t.JWT=d=e}t.JWT=d;var g=!1,b=!1;function h(){return 1==b}var T="https://api.ricado.co.nz/api/4.0";t.BaseURL=T;var v="https://websocket.ricado.co.nz";t.WebSocketServer=v;var N=443;function S(e){if(null==e||"string"!=typeof e)return!1;var t=e.split(".");if(3!==t.length)return!1;try{return JSON.parse((0,f.decode)(t[0])),JSON.parse((0,f.decode)(t[1])),!0}catch(e){return!1}}t.WebSocketPort=N;var w=a.version;t.Version=w},6906:e=>{function t(){}e.exports=function(e,n,r){var o=!1;return r=r||t,i.count=e,0===e?n():i;function i(e,t){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,n(e),n=r):0!==i.count||o||n(null,t)}}},9718:e=>{e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,u=0;a<n;a++,u++)i[u]=o[a];return i.buffer}},3010:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},3704:(e,t)=>{!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,o,i,a,u=.75*t.length,c=t.length,s=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var l=new ArrayBuffer(u),f=new Uint8Array(l);for(n=0;n<c;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),f[s++]=r<<2|o>>4,f[s++]=(15&o)<<4|i>>2,f[s++]=(3&i)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5548:e=>{var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=t&&t.prototype.append&&t.prototype.getBlob;function i(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function a(e,n){n=n||{};var r=new t;return i(e).forEach((function(e){r.append(e)})),n.type?r.getBlob(n.type):r.getBlob()}function u(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,u.prototype=Blob.prototype),e.exports=n?r?Blob:u:o?a:void 0},6077:e=>{var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},8767:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},3861:e=>{e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},3549:e=>{e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},5983:(e,t,n)=>{e.exports=n(2192),e.exports.parser=n(4455)},2192:(e,t,n)=>{var r=n(3352),o=n(8767),i=n(4802)("engine.io-client:socket"),a=n(7355),u=n(4455),c=n(4187),s=n(1830);function l(e,t){if(!(this instanceof l))return new l(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=c(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=c(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=s.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=l,l.priorWebsocketSuccess=!1,o(l.prototype),l.protocol=u.protocol,l.Socket=l,l.Transport=n(6496),l.transports=n(3352),l.parser=n(4455),l.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=u.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var e;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},l.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},l.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),m(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,m(),t.close(),t=null)}function u(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function c(){u("transport closed")}function s(){u("socket closed")}function f(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function m(){t.removeListener("open",o),t.removeListener("error",u),t.removeListener("close",c),r.removeListener("close",s),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",u),t.once("close",c),this.once("close",s),this.once("upgrading",f),t.open()},l.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},l.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},l.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){i("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},l.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},l.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},l.prototype.onError=function(e){i("socket error %j",e),l.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},l.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(i('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}},6496:(e,t,n)=>{var r=n(4455),o=n(8767);function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=i,o(i.prototype),i.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},3352:(e,t,n)=>{var r=n(2777),o=n(3416),i=n(9785),a=n(4442);t.polling=function(e){var t=!1,n=!1,a=!1!==e.jsonp;if("undefined"!=typeof location){var u="https:"===location.protocol,c=location.port;c||(c=u?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==u}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!a)throw new Error("JSONP disabled");return new i(e)},t.websocket=a},9785:(e,t,n)=>{var r=n(9015),o=n(3861),i=n(3549);e.exports=l;var a,u=/\n/g,c=/\\n/g;function s(){}function l(e){r.call(this,e),this.query=this.query||{},a||(a=i.___eio=i.___eio||[]),this.index=a.length;var t=this;a.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=s)}),!1)}o(l,r),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},l.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},l.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=a,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function s(){l(),t()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),e=e.replace(c,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&s()}:this.iframe.onload=s}},3416:(e,t,n)=>{var r=n(2777),o=n(9015),i=n(8767),a=n(3861),u=n(4802)("engine.io-client:polling-xhr"),c=n(3549);function s(){}function l(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function f(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function m(){for(var e in f.requests)f.requests.hasOwnProperty(e)&&f.requests[e].abort()}e.exports=l,e.exports.Request=f,a(l,o),l.prototype.supportsBinary=!0,l.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new f(e)},l.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},l.prototype.doPoll=function(){u("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},i(f.prototype),f.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{u("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},u("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},f.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},f.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=s:this.xhr.onreadystatechange=s,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},f.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},f.requestsCount=0,f.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",m):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",m,!1))},9015:(e,t,n)=>{var r=n(6496),o=n(1830),i=n(4455),a=n(3861),u=n(2281),c=n(4802)("engine.io-client:polling");e.exports=l;var s=null!=new(n(2777))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;s&&!t||(this.supportsBinary=!1),r.call(this,e)}a(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;c("polling got data %s",e),i.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},4442:(e,t,n)=>{var r,o,i=n(6496),a=n(4455),u=n(1830),c=n(3861),s=n(2281),l=n(4802)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(7020)}catch(e){}var f=r||o;function m(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=o),i.call(this,e)}e.exports=m,c(m,i),m.prototype.name="websocket",m.prototype.supportsBinary=!0,m.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new f(e,t):new f(e):new f(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},m.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},m.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,r=0,o=n;r<o;r++)!function(e){a.encodePacket(e,t.supportsBinary,(function(r){if(!t.usingBrowserWebSocket){var o={};e.options&&(o.compress=e.options.compress),t.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<t.perMessageDeflate.threshold&&(o.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(r):t.ws.send(r,o)}catch(e){l("websocket closed before onclose event")}--n||(t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0))}))}(e[r])},m.prototype.onClose=function(){i.prototype.onClose.call(this)},m.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},m.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||(e.b64=1),(e=u.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},m.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===m.prototype.name)}},2777:(e,t,n)=>{var r=n(8058),o=n(3549);e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},4802:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(7616)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},7616:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},4455:(e,t,n)=>{var r,o=n(7990),i=n(3466),a=n(9718),u=n(6906),c=n(3414);"undefined"!=typeof ArrayBuffer&&(r=n(3704));var s="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=s||l;t.protocol=3;var m=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=o(m),d={type:"error",data:"parser error"},y=n(5548);function g(e,t,n){for(var r=new Array(e.length),o=u(e.length,n),i=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},a=0;a<e.length;a++)i(a,e[a],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var i=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=m[e.type];for(var u=0;u<i.length;u++)a[u+1]=i[u];return r(a.buffer)}(e,n,o);if(void 0!==y&&i instanceof y)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(f)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);return o[0]=m[e.type],r(new y([o.buffer,e.data]))}(e,n,o);if(i&&i.base64)return function(e,n){return n("b"+t.packets[e.type]+e.data.data)}(e,o);var a=m[e.type];return void 0!==e.data&&(a+=r?c.encode(String(e.data),{strict:!1}):String(e.data)),o(""+a)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==y&&e.data instanceof y){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];n(o+e)},i.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),u=new Array(a.length),c=0;c<a.length;c++)u[c]=a[c];r=String.fromCharCode.apply(null,u)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return d;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=c.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return d;var o=e.charAt(0);return Number(o)==o&&p[o]?e.length>1?{type:p[o],data:e.substring(1)}:{type:p[o]}:d}o=new Uint8Array(e)[0];var i=a(e,1);return y&&"blob"===n&&(i=new y([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&y&&(o=new y([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);return n&&o?y&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void g(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))})):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(d,0,1);for(var i,a,u="",c=0,s=e.length;c<s;c++){var l=e.charAt(c);if(":"===l){if(""===u||u!=(i=Number(u)))return r(d,0,1);if(u!=(a=e.substr(c+1,i)).length)return r(d,0,1);if(a.length){if(o=t.decodePacket(a,n,!1),d.type===o.type&&d.data===o.data)return r(d,0,1);if(!1===r(o,c+i,s))return}c+=i,u=""}else u+=l}return""!==u?r(d,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),i=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;var u=n.byteLength.toString();for(a=0;a<u.length;a++)o[i++]=parseInt(u[a]);for(o[i++]=255,r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)a[o]=parseInt(i[o]);if(a[i.length]=255,y){var u=new y([t.buffer,a.buffer,e]);n(null,u)}}))}),(function(e,t){return n(new y(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var u=new Uint8Array(o),c=0===u[0],s="",l=1;255!==u[l];l++){if(s.length>310)return r(d,0,1);s+=u[l]}o=a(o,2+s.length),s=parseInt(s);var f=a(o,0,s);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var m=new Uint8Array(f);for(f="",l=0;l<m.length;l++)f+=String.fromCharCode(m[l])}i.push(f),o=a(o,s)}var p=i.length;i.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,p)}))}},7990:e=>{e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},3414:e=>{var t,n,r,o=String.fromCharCode;function i(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function a(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(e,t){return o(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(a(e,t)||(e=65533),n=o(e>>12&15|224),n+=u(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=u(e,12),n+=u(e,6)),n+o(63&e|128)}function s(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(e){var o,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(o=255&t[r],r++,0==(128&o))return o;if(192==(224&o)){if((i=(31&o)<<6|s())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&o)){if((i=(15&o)<<12|s()<<6|s())>=2048)return a(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(i=(7&o)<<18|s()<<12|s()<<6|s())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,a=-1,u="";++a<o;)u+=c(r[a],n);return u},decode:function(e,a){var u=!1!==(a=a||{}).strict;t=i(e),n=t.length,r=0;for(var c,s=[];!1!==(c=l(u));)s.push(c);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(s)}}},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):d(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var s=c.length,l=d(c,s);for(n=0;n<s;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return m(this,e,!0)},i.prototype.rawListeners=function(e){return m(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3466:(e,t,n)=>{var r=n(579),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(r(t)){for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||i&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&e(t[u]))return!0;return!1}},579:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},8058:e=>{try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},7355:e=>{var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var r=0;r<e.length;++r)if(e[r]===n)return r;return-1}},9575:function(e,t,n){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e,t="3.7.2",n="function"==typeof atob,r="function"==typeof btoa,o="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,u=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(e={},u.forEach((function(t,n){return e[t]=n})),e),s=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},m=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},p=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},d=function(e){for(var t,n,r,o,i="",a=e.length%3,c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");i+=u[(t=n<<16|r<<8|o)>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},y=r?function(e){return btoa(e)}:o?function(e){return Buffer.from(e,"binary").toString("base64")}:d,g=o?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(l.apply(null,e.subarray(n,n+4096)));return y(t.join(""))},b=function(e,t){return void 0===t&&(t=!1),t?m(g(e)):g(e)},h=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},T=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(T,h)},N=o?function(e){return Buffer.from(e,"utf8").toString("base64")}:a?function(e){return g(a.encode(e))}:function(e){return y(v(e))},S=function(e,t){return void 0===t&&(t=!1),t?m(N(e)):N(e)},w=function(e){return S(e,!0)},A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,j=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},P=function(e){return e.replace(A,j)},k=function(e){if(e=e.replace(/\s+/g,""),!s.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=c[e.charAt(i++)]<<18|c[e.charAt(i++)]<<12|(n=c[e.charAt(i++)])<<6|(r=c[e.charAt(i++)]),o+=64===n?l(t>>16&255):64===r?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,255&t);return o},M=n?function(e){return atob(p(e))}:o?function(e){return Buffer.from(e,"base64").toString("binary")}:k,C=o?function(e){return f(Buffer.from(e,"base64"))}:function(e){return f(M(e),(function(e){return e.charCodeAt(0)}))},I=function(e){return C(D(e))},O=o?function(e){return Buffer.from(e,"base64").toString("utf8")}:i?function(e){return i.decode(C(e))}:function(e){return P(M(e))},D=function(e){return p(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},R=function(e){return O(D(e))},_=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},E=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,_(t))};e("fromBase64",(function(){return R(this)})),e("toBase64",(function(e){return S(this,e)})),e("toBase64URI",(function(){return S(this,!0)})),e("toBase64URL",(function(){return S(this,!0)})),e("toUint8Array",(function(){return I(this)}))},q=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,_(t))};e("toBase64",(function(e){return b(this,e)})),e("toBase64URI",(function(){return b(this,!0)})),e("toBase64URL",(function(){return b(this,!0)}))},B={version:t,VERSION:"3.7.2",atob:M,atobPolyfill:k,btoa:y,btoaPolyfill:d,fromBase64:R,toBase64:S,encode:S,encodeURI:w,encodeURL:w,utob:v,btou:P,decode:R,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:I,extendString:E,extendUint8Array:q,extendBuiltins:function(){E(),q()},Base64:{}};return Object.keys(B).forEach((function(e){return B.Base64[e]=B[e]})),B}()},7824:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return a.long?i(u=e,o,"day")||i(u,r,"hour")||i(u,n,"minute")||i(u,t,"second")||u+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3300:(e,t)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n)return n;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},1830:(e,t)=>{t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},4187:e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var r,o,i=e,a=e.indexOf("["),u=e.indexOf("]");-1!=a&&-1!=u&&(e=e.substring(0,a)+e.substring(a,u).replace(/:/g,";")+e.substring(u,e.length));for(var c,s,l=t.exec(e||""),f={},m=14;m--;)f[n[m]]=l[m]||"";return-1!=a&&-1!=u&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(r=f.path,o=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||o.splice(0,1),"/"==r.substr(r.length-1,1)&&o.splice(o.length-1,1),o),f.queryKey=(c=f.query,s={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(s[t]=n)})),s),f}},6809:(e,t,n)=>{var r=n(3678),o=n(9113),i=n(2739),a=n(3669)("socket.io-client");e.exports=t=c;var u=t.managers={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),c=o.source,s=o.id,l=o.path,f=u[s]&&l in u[s].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",c),n=i(c,t)):(u[s]||(a("new io instance for %s",c),u[s]=i(c,t)),n=u[s]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=c,t.Manager=n(2739),t.Socket=n(8584)},2739:(e,t,n)=>{var r=n(5983),o=n(8584),i=n(8767),a=n(9113),u=n(5464),c=n(6077),s=n(3669)("socket.io-client:manager"),l=n(7355),f=n(3010),m=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)m.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)m.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(s("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;s("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=u(n,"open",(function(){o.onopen(),e&&e()})),a=u(n,"error",(function(t){if(s("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;s("connect attempt will timeout after %d",c),0===c&&i.destroy();var l=setTimeout((function(){s("connect attempt timed out after %d",c),i.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(i),this.subs.push(a),this},p.prototype.onopen=function(){s("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(u(e,"data",c(this,"ondata"))),this.subs.push(u(e,"ping",c(this,"onping"))),this.subs.push(u(e,"pong",c(this,"onpong"))),this.subs.push(u(e,"error",c(this,"onerror"))),this.subs.push(u(e,"close",c(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){s("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",i),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&i()}function i(){~l(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=l(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){s("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){s("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){s("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(e){s("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)s("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();s("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(s("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(s("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(s("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},5464:e=>{e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},8584:(e,t,n)=>{var r=n(9113),o=n(8767),i=n(4042),a=n(5464),u=n(6077),c=n(3669)("socket.io-client:socket"),s=n(1830),l=n(3466);e.exports=p;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},m=o.prototype.emit;function p(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",u(this,"onopen")),a(e,"packet",u(this,"onpacket")),a(e,"close",u(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var e=i(arguments);return e.unshift("message"),this.emit.apply(this,e),this},p.prototype.emit=function(e){if(f.hasOwnProperty(e))return m.apply(this,arguments),this;var t=i(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},p.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?s.encode(this.query):this.query;c("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},p.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},p.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?m.apply(this,t):this.receiveBuffer.push(t)},p.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=i(arguments);c("sending ack %j",o),t.packet({type:l(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},p.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(c("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):c("bad ack %s",e.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)m.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(e){return this.flags.compress=e,this},p.prototype.binary=function(e){return this.flags.binary=e,this}},3678:(e,t,n)=>{var r=n(4187),o=n(3669)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}},3669:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(1350)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},1350:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},2326:(e,t,n)=>{var r=n(6327),o=n(6066),i=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),u="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);function c(e,t){if(!e)return e;if(o(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(r(e)){for(var i=new Array(e.length),a=0;a<e.length;a++)i[a]=c(e[a],t);return i}if("object"==typeof e&&!(e instanceof Date)){for(var u in i={},e)i[u]=c(e[u],t);return i}return e}function s(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(r(e))for(var n=0;n<e.length;n++)e[n]=s(e[n],t);else if("object"==typeof e)for(var o in e)e[o]=s(e[o],t);return e}t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=c(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=s(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,i=e;!function e(c,s,l){if(!c)return c;if(a&&c instanceof Blob||u&&c instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[s]=this.result:i=this.result,--n||t(i)},f.readAsArrayBuffer(c)}else if(r(c))for(var m=0;m<c.length;m++)e(c[m],m,c);else if("object"==typeof c&&!o(c))for(var p in c)e(c[p],p,c)}(i),n||t(i)}},9113:(e,t,n)=>{var r=n(1618)("socket.io-parser"),o=n(8767),i=n(2326),a=n(6327),u=n(6066);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=f;var s=t.ERROR+'"encode error"';function l(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return s;n+=o}return r("encoded %j as %s",e,n),n}function f(){this.reconstructor=null}function m(e){this.reconPack=e,this.buffers=[]}function p(e){return{type:t.ERROR,data:"parser error: "+e}}c.prototype.encode=function(e,n){r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?function(e,t){i.removeBlobs(e,(function(e){var n=i.deconstructPacket(e),r=l(n.packet),o=n.buffers;o.unshift(r),t(o)}))}(e,n):n([l(e)])},o(f.prototype),f.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return p("unknown packet type "+o.type);if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var i=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var u=e.substring(i,n);if(u!=Number(u)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(u)}if("/"===e.charAt(n+1)){for(i=n+1;++n&&","!==(s=e.charAt(n))&&n!==e.length;);o.nsp=e.substring(i,n)}else o.nsp="/";var c=e.charAt(n+1);if(""!==c&&Number(c)==c){for(i=n+1;++n;){var s;if(null==(s=e.charAt(n))||Number(s)!=s){--n;break}if(n===e.length)break}o.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!1===l||o.type!==t.ERROR&&!a(l))return p("invalid payload");o.data=l}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new m(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!u(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},m.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},6066:e=>{e.exports=function(e){return t&&Buffer.isBuffer(e)||n&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var t="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer},1618:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(968)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},968:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var s=r.log||t.log||console.log.bind(console);s.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.instances=[],t.names=[],t.skips=[],t.formatters={}},6327:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4042:e=>{e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},2281:e=>{"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},o=0,i=0;function a(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function u(){var e=a(+new Date);return e!==t?(o=0,t=e):e+"."+a(o++)}for(;i<64;i++)r[n[i]]=i;u.encode=a,u.decode=function(e){var t=0;for(i=0;i<e.length;i++)t=64*t+r[e.charAt(i)];return t},e.exports=u},7020:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r=n(1568);RICADOGen4API=r})();